Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1:/tmp/cvs-serv22402/include
Modified Files:
MessageView.h MessageViewer.h
Added Files:
ViewFilter.h
Log Message:
1. added ViewFilter
2. implemented an example filter: Rot13Filter
3. initial support for the filters in MessageView and FolderView,
still incomplete
***** Error reading new file: [Errno 2] No such file or directory: 'ViewFilter.h'
Index: MessageView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MessageView.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -b -u -2 -r1.34 -r1.35
--- MessageView.h 13 Sep 2002 01:27:46 -0000 1.34
+++ MessageView.h 29 Nov 2002 02:02:39 -0000 1.35
@@ -219,8 +219,19 @@
//@}
+ /** @name wxFolderView helpers
+ */
+ //@{
+
/// get the info about all available viewers
static size_t GetAllAvailableViewers(wxArrayString *names,
wxArrayString *descs);
+ /// get the info about all available filters
+ static size_t GetAllAvailableFilters(wxArrayString *names,
+ wxArrayString *labels,
+ wxArrayInt *states);
+
+ //@}
+
/// return a descriptive label for this MIME part
static String GetLabelFor(const MimePart *mimepart);
@@ -618,6 +629,23 @@
/// is it the default one?
bool m_usingDefViewer;
+
//@}
+ /// @name View filters stuff
+ //@{
+
+ /// should be called exactly once to load all filters
+ void InitializeViewFilters();
+
+ /// update the state (enabled/disabled) of the filters from profile
+ void UpdateViewFiltersState();
+
+ /// linked list of the filters
+ class ViewFilterNode *m_filters;
+
+ //@}
+
+
+ /// the obejct to which we delegate the menu command processing
MsgCmdProc *m_msgCmdProc;
Index: MessageViewer.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MessageViewer.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -b -u -2 -r1.11 -r1.12
--- MessageViewer.h 3 May 2002 17:01:07 -0000 1.11
+++ MessageViewer.h 29 Nov 2002 02:02:39 -0000 1.12
@@ -23,5 +23,7 @@
// use the standard wxWin class: even if it is not really intended for this, it
// just what we need here as it combines text colours and font info
-typedef wxTextAttr MTextStyle;
+class MTextStyle : public wxTextAttr
+{
+};
#include "MModule.h"
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates