]> git.saurik.com Git - wxWidgets.git/commitdiff
added DockFixed() pane option; doc updates
authorBenjamin Williams <bwilliams@kirix.com>
Wed, 10 Oct 2007 10:27:03 +0000 (10:27 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Wed, 10 Oct 2007 10:27:03 +0000 (10:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/auipaneinfo.tex
include/wx/aui/framemanager.h
src/aui/framemanager.cpp

index f1f80e24483f4b0611248ed5b02e49179edafb3d..c7e68b7b5e406382fffc33ca5d7bfe0f3ad9fa5c 100644 (file)
@@ -127,6 +127,13 @@ Direction() determines the direction of the docked pane. It is functionally the
 
 \func{wxAuiPaneInfo\&}{Dock}{\void}
 
+Dock() indicates that a pane should be docked.  It is the opposite of Float().
+
+\membersection{wxAuiPaneInfo::DockFixed}\label{wxauipaneinfodockfixed}
+
+\func{wxAuiPaneInfo\&}{DockFixed}{\param{bool }{b = true}}
+
+DockFixed() causes the containing dock to have no resize sash.  This is useful for creating panes that span the entire width or height of a dock, but should not be resizable in the other direction.
 
 \membersection{wxAuiPaneInfo::Dockable}\label{wxauipaneinfodockable}
 
@@ -144,7 +151,7 @@ Fixed() forces a pane to be fixed size so that it cannot be resized. After calli
 
 \func{wxAuiPaneInfo\&}{Float}{\void}
 
-Float() indicates that a pane should be floated.
+Float() indicates that a pane should be floated.  It is the opposite of Dock().
 
 \membersection{wxAuiPaneInfo::Floatable}\label{wxauipaneinfofloatable}
 
index 801c64f44f2c52916a29e2114d6652b0a6f633af..56109d443fff3864a125e59d3385f1606a4bce36 100644 (file)
@@ -298,6 +298,7 @@ public:
     wxAuiPaneInfo& RightDockable(bool b = true) { return SetFlag(optionRightDockable, b); }
     wxAuiPaneInfo& Floatable(bool b = true) { return SetFlag(optionFloatable, b); }
     wxAuiPaneInfo& Movable(bool b = true) { return SetFlag(optionMovable, b); }
+    wxAuiPaneInfo& DockFixed(bool b = true) { return SetFlag(optionDockFixed, b); }
 
     wxAuiPaneInfo& Dockable(bool b = true)
     {
@@ -375,6 +376,7 @@ public:
         optionActive          = 1 << 14,
         optionGripperTop      = 1 << 15,
         optionMaximized       = 1 << 16,
+        optionDockFixed       = 1 << 17,
 
         buttonClose           = 1 << 21,
         buttonMaximize        = 1 << 22,
index c40be51d1758681a70b79707562dc6d5d8b84541..518eab1b33a04c15b8c579c8736f21085ff5b588 100644 (file)
@@ -2089,6 +2089,8 @@ wxSizer* wxAuiManager::LayoutAll(wxAuiPaneInfoArray& panes,
                 dock.fixed = false;
             if (!pane.IsToolbar())
                 dock.toolbar = false;
+            if (pane.HasFlag(wxAuiPaneInfo::optionDockFixed))
+                dock.fixed = true;
             if (pane.state & wxAuiPaneInfo::actionPane)
                 action_pane_marked = true;
         }