Update of /cvsroot/mahogany/M/include/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32024/include/gui
Modified Files:
SpamOptionsPage.h
Log Message:
fixed confusion between different spam options dialogs: the options are now
set globally in "Edit spam filters" one while the spam filters to use for the
given rule are specified using "Configure details" button in the rule editing
dialog
Index: SpamOptionsPage.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/SpamOptionsPage.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -u -2 -r1.1 -r1.2
--- SpamOptionsPage.h 12 Jul 2004 00:33:37 -0000 1.1
+++ SpamOptionsPage.h 25 Feb 2005 22:16:27 -0000 1.2
@@ -25,46 +25,17 @@
/**
- SpamOptionsPage provides additional methods for serialization to/from
- strings.
+ SpamOptionsPage is currently empty, but it was used before and is left in
+ case it may become useful in the future.
+
+ This class is used for the option pages created by the spam filters in their
+ CreateOptionPage() and shown in the spam filters options dialog.
*/
class SpamOptionsPage : public wxOptionsPageDynamic
{
public:
- SpamOptionsPage(wxNotebook *parent, Profile *profile, String *params)
+ SpamOptionsPage(wxNotebook *parent, Profile *profile)
: wxOptionsPageDynamic(parent)
{
- m_profile = profile;
- m_params = params;
- }
-
- virtual bool TransferDataToWindow()
- {
- if ( m_params )
- {
- WriteParamsToProfile();
- }
-
- return wxOptionsPageDynamic::TransferDataToWindow();
- }
-
- virtual bool TransferDataFromWindow()
- {
- if ( !wxOptionsPageDynamic::TransferDataFromWindow() )
- return false;
-
- if ( m_params )
- {
- ReadParamsFromProfile();
}
-
- return true;
- }
-
-protected:
- virtual void WriteParamsToProfile() { }
- virtual void ReadParamsFromProfile() { }
-
- Profile *m_profile;
- String *m_params;
};
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates