X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba2279bbef3df929e29a66533f000bfcf5d1ac09..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/propgrid/manager.h diff --git a/include/wx/propgrid/manager.h b/include/wx/propgrid/manager.h index bfc3e6cdf8..77adfd827f 100644 --- a/include/wx/propgrid/manager.h +++ b/include/wx/propgrid/manager.h @@ -6,12 +6,14 @@ // Created: 2005-01-14 // RCS-ID: $Id$ // Copyright: (c) Jaakko Salli -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_PROPGRID_MANAGER_H_ #define _WX_PROPGRID_MANAGER_H_ +#include "wx/defs.h" + #if wxUSE_PROPGRID #include "wx/propgrid/propgrid.h" @@ -126,7 +128,7 @@ public: */ int GetToolId() const { - return m_id; + return m_toolId; } /** Do any member initialization in this method. @@ -170,20 +172,18 @@ protected: */ wxString m_label; -#ifndef SWIG - //virtual bool ProcessEvent( wxEvent& event ); wxPropertyGridManager* m_manager; - int m_id; // toolbar index + // Toolbar tool id. Note that this is only valid when the tool bar + // exists. + int m_toolId; private: bool m_isDefault; // is this base page object? -private: DECLARE_EVENT_TABLE() -#endif }; // ----------------------------------------------------------------------- @@ -574,6 +574,11 @@ public: */ void SetSplitterLeft( bool subProps = false, bool allPages = true ); + /** Moves splitter as left as possible on an individual page, while still allowing all + labels to be shown in full. + */ + void SetPageSplitterLeft(int page, bool subProps = false); + /** Sets splitter position on individual page. @@ -616,7 +621,7 @@ protected: /** Creates property grid for the manager. Reimplement in derived class to - use subclassed wxPropertyGrid. However, if you you do this then you + use subclassed wxPropertyGrid. However, if you do this then you must also use the two-step construction (ie. default constructor and Create() instead of constructor with arguments) when creating the manager. @@ -639,8 +644,6 @@ public: virtual void SetWindowStyleFlag ( long style ); virtual bool Reparent( wxWindowBase *newParent ); -#ifndef SWIG - protected: virtual wxSize DoGetBestSize() const; @@ -692,15 +695,15 @@ protected: int m_splitterHeight; - int m_nextTbInd; - int m_dragOffset; wxCursor m_cursorSizeNS; int m_nextDescBoxSize; - wxWindowID m_baseId; + // Toolbar tool ids for categorized and alphabetic mode selectors. + int m_categorizedModeToolId; + int m_alphabeticModeToolId; unsigned char m_dragStatus; @@ -748,7 +751,6 @@ protected: private: DECLARE_EVENT_TABLE() -#endif // #ifndef SWIG }; // -----------------------------------------------------------------------