Update of /cvsroot/mahogany/M/include/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3164/include/gui
Modified Files:
wxOptionsPage.h
Log Message:
added delayed construction of wxOptionsPage[Dynamic]
Index: wxOptionsPage.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxOptionsPage.h,v
retrieving revision 1.67
retrieving revision 1.68
diff -b -u -2 -r1.67 -r1.68
--- wxOptionsPage.h 21 Apr 2004 21:54:12 -0000 1.67
+++ wxOptionsPage.h 11 Jul 2004 21:41:52 -0000 1.68
@@ -135,6 +135,22 @@
{ return m_aFields[n].flags & Field_Flags; }
- // ctor will add this page to the notebook (with the image refering to the
- // notebook's imagelist)
+ // almost default ctor: this just takes the parent notebook
+ //
+ // you'll need to call Create() later
+ wxOptionsPage(wxNotebook *parent) : wxNotebookPageBase(parent) { }
+
+ // initialize this page and add it to the notebook (with the image refering
+ // to the notebook's imagelist)
+ bool Create(FieldInfoArray aFields,
+ ConfigValuesArray aDefaults,
+ size_t nFirst,
+ size_t nLast,
+ wxNotebook *notebook,
+ const wxChar *title,
+ Profile *profile,
+ int helpId = -1,
+ int image = -1);
+
+ // this ctor is equivalent to the other one and Create()
wxOptionsPage(FieldInfoArray aFields,
ConfigValuesArray aDefaults,
@@ -145,6 +161,8 @@
int helpID = -1,
int image = -1);
+
virtual ~wxOptionsPage();
+
// transfer data to/from the controls
virtual bool TransferDataToWindow();
@@ -328,5 +346,19 @@
{
public:
+ // if you use this ctor, you must use Create() later
+ wxOptionsPageDynamic(wxNotebook *parent) : wxOptionsPage(parent) { }
+
// the aFields array contains the controls descriptions
+ bool Create(wxNotebook *parent,
+ const wxChar *title,
+ Profile *profile,
+ FieldInfoArray aFields,
+ ConfigValuesArray aDefaults,
+ size_t nFields,
+ size_t nOffset = 0,
+ int helpID = -1,
+ int image = -1);
+
+ // ctor doing all at once
wxOptionsPageDynamic(wxNotebook *parent,
const wxChar *title,
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates