Update of /cvsroot/mahogany/M/include/wx
In directory sc8-pr-cvs1:/tmp/cvs-serv26786/include/wx
Modified Files:
persctrl.h
Log Message:
added wxPListbook
Index: persctrl.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/wx/persctrl.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -b -u -2 -r1.35 -r1.36
--- persctrl.h 22 Jul 2003 22:01:39 -0000 1.35
+++ persctrl.h 22 Aug 2003 22:16:22 -0000 1.36
@@ -33,4 +33,7 @@
#include <wx/radiobox.h>
#include <wx/treectrl.h>
+#if wxUSE_LISTBOOK
+ #include <wx/listbook.h>
+#endif
// we can be compiled inside wxWin or not
@@ -135,4 +138,59 @@
DECLARE_NO_COPY_CLASS(wxPNotebook)
};
+
+// ----------------------------------------------------------------------------
+// exactly the same as wxPNotebook but for wxListbook
+// ----------------------------------------------------------------------------
+
+#if wxUSE_LISTBOOK
+
+class WXDLLMAYEXP wxPListbook : public wxListbook
+{
+public:
+ // ctors and dtor
+ wxPListbook();
+
+ wxPListbook(const wxString& configPath,
+ wxWindow *parent,
+ wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ wxConfigBase *config = NULL);
+
+ bool Create(const wxString& configPath,
+ wxWindow *parent,
+ wxWindowID id = -1,
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = 0,
+ wxConfigBase *config = NULL);
+
+ ~wxPListbook();
+
+ // accessors
+ // set the config object to use (must be !NULL)
+ void SetConfigObject(wxConfigBase *config);
+ // set the path to use (either absolute or relative)
+ void SetConfigPath(const wxString& path);
+
+ // callbacks
+ // when we're resized the first time we restore our page
+ void OnSize(wxSizeEvent& event);
+
+protected:
+ static const char *ms_path;
+
+ void RestorePage();
+
+ bool m_bFirstTime; // FIXME hack used in OnSize()
+ wxPHelper *m_persist;
+
+private:
+ DECLARE_EVENT_TABLE()
+ DECLARE_NO_COPY_CLASS(wxPListbook)
+};
+
+#endif // wxUSE_LISTBOOK
// ----------------------------------------------------------------------------
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates