Update of /cvsroot/mahogany/M/include/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10505/include/gui

Modified Files:
        wxOptionsPage.h 
Log Message:
added the possibility to choose the config source to save changes to

Index: wxOptionsPage.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxOptionsPage.h,v
retrieving revision 1.69
retrieving revision 1.70
diff -b -u -2 -r1.69 -r1.70
--- wxOptionsPage.h     19 Sep 2004 15:41:15 -0000      1.69
+++ wxOptionsPage.h     6 Jul 2005 22:05:39 -0000       1.70
@@ -195,4 +195,21 @@
    String GetFolderName() const;
 
+   // get the parent dialog
+   wxOptionsEditDialog *GetOptionsDialog() const
+   {
+      wxOptionsEditDialog *
+         dialog = GET_PARENT_OF_CLASS(this, wxOptionsEditDialog);
+      ASSERT_MSG( dialog, _T("options page outside of options dialog?") );
+      return dialog;
+   }
+
+   // get the config source to use for saving
+   ConfigSource *GetConfigForSave() const
+   {
+      wxOptionsEditDialog *dialog = GetOptionsDialog();
+      return dialog ? dialog->GetConfigForSave() : NULL;
+   }
+
+
    // range of our controls in m_aFields
    size_t m_nFirst, m_nLast;



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to