mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 21:05:59 +02:00
Lost changes
This commit is contained in:
parent
e6c4a95ccd
commit
8e9d7ed4c4
56 changed files with 1579 additions and 794 deletions
|
@ -200,7 +200,8 @@ namespace Beefy.widgets
|
|||
{
|
||||
return (mTabbedView.mParentDockingFrame.mParentDockingFrame == null) &&
|
||||
(mTabbedView.mParentDockingFrame.GetDockedWindowCount() == 1) &&
|
||||
(mTabbedView.GetTabCount() == 1);
|
||||
(mTabbedView.GetTabCount() == 1) &&
|
||||
mTabbedView.mAutoClose;
|
||||
}
|
||||
|
||||
void WindowDragLostFocusHandler(BFWindow window, BFWindow newFocus)
|
||||
|
@ -237,7 +238,7 @@ namespace Beefy.widgets
|
|||
300, 500,
|
||||
BFWindowBase.Flags.Border | BFWindowBase.Flags.ThickFrame | BFWindowBase.Flags.Resizable | BFWindowBase.Flags.SysMenu |
|
||||
BFWindowBase.Flags.Caption | BFWindowBase.Flags.Minimize | BFWindowBase.Flags.ToolWindow | BFWindowBase.Flags.TopMost |
|
||||
BFWindowBase.Flags.UseParentMenu,
|
||||
BFWindowBase.Flags.UseParentMenu | BFWindowBase.Flags.Maximize,
|
||||
subFrame);
|
||||
Dock(subFrame, null, DockingFrame.WidgetAlign.Top);
|
||||
//subFrame.AddDockedWidget(fourthTabbedView, null, DockingFrame.WidgetAlign.Left, false);
|
||||
|
@ -288,7 +289,7 @@ namespace Beefy.widgets
|
|||
if ((refWidget != null) && (refWidget.mWidgetWindow != mWidgetWindow) && (mWidgetWindow != null))
|
||||
mWidgetWindow.SetForeground();
|
||||
|
||||
if (mTabbedView.GetTabCount() == 1)
|
||||
if ((mTabbedView.GetTabCount() == 1) && mTabbedView.mAutoClose)
|
||||
{
|
||||
mTabbedView.Dock(frame, refWidget, align);
|
||||
return;
|
||||
|
@ -327,7 +328,7 @@ namespace Beefy.widgets
|
|||
tabbedView.Dock(frame, refWidget, align);
|
||||
}
|
||||
|
||||
if (prevTabbedView.GetTabCount() == 0)
|
||||
if ((prevTabbedView.GetTabCount() == 0) && prevTabbedView.mAutoClose)
|
||||
{
|
||||
prevTabbedView.mParentDockingFrame.RemoveDockedWidget(prevTabbedView);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue