Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1:/tmp/cvs-serv17347/include

Modified Files:
        MessageViewer.h ViewFilter.h 
Added Files:
        MTextStyle.h 
Log Message:
1. extracted MTextStyle in its own header
2. moved the view filters in their own subdir under src/modules
3. added another view filter, for mailing list trailer detection


***** Error reading new file: [Errno 2] No such file or directory: 'MTextStyle.h'
Index: MessageViewer.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MessageViewer.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -b -u -2 -r1.12 -r1.13
--- MessageViewer.h     29 Nov 2002 02:02:39 -0000      1.12
+++ MessageViewer.h     30 Nov 2002 01:47:40 -0000      1.13
@@ -21,11 +21,6 @@
 class ClickableInfo;
 
-// 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
-class MTextStyle : public wxTextAttr
-{
-};
-
 #include "MModule.h"
+#include "MTextStyle.h"
 
 // the message viewer module interface name

Index: ViewFilter.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/ViewFilter.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -u -2 -r1.1 -r1.2
--- ViewFilter.h        29 Nov 2002 02:02:39 -0000      1.1
+++ ViewFilter.h        30 Nov 2002 01:47:40 -0000      1.2
@@ -39,17 +39,20 @@
      random (i.e. undefined) order
     */
-   enum Priority
+   enum
    {
       /// the filter with this priority is applied after all the others
-      Priority_Lowest = -10,
+      Priority_Lowest = -100,
 
-      /// low priority filter: applied after the built in logic
-      Priority_Low = -5,
+      /// low priority filter: applied after the default ones
+      Priority_Low = -50,
 
       /// this is the priority of the URL detection/colorization default filter
       Priority_Default = 0,
 
-      /// the filter with this priority is appleid before all the others
-      Priority_Highest = 10,
+      /// high priority filter: applied before the default ones
+      Priority_High = 50,
+
+      /// the filter with this priority is applied before all the others
+      Priority_Highest = 100,
 
       /// invalid value for filter priority
@@ -95,5 +98,5 @@
    void Process(String& text,
                 MessageViewer *viewer,
-                const MTextStyle& style)
+                MTextStyle& style)
    {
       if ( IsEnabled() )
@@ -122,5 +125,5 @@
    virtual void DoProcess(String& text,
                           MessageViewer *viewer,
-                          const MTextStyle& style) = 0;
+                          MTextStyle& style) = 0;
 
    /// pointer to the next filter or NULL if this is the last one
@@ -139,5 +142,5 @@
 public:
    /// returns the priority of the filter object of this class
-   virtual ViewFilter::Priority GetPriority() const = 0;
+   virtual int GetPriority() const = 0;
 
    /// return the default filter state: active or not?
@@ -152,5 +155,5 @@
 
   @param cname    the name of the class (derived from ViewFilter)
-  @param prio     the filter priority (see ViewFilter::Priority enum)
+  @param prio     the filter priority (see ViewFilter::Priority_XXX enum)
   @param state    the initial state (enabled or disabled)
   @param desc     the short description shown in the filters dialog
@@ -161,5 +164,5 @@
    {                                                                       \
    public:                                                                 \
-      virtual ViewFilter::Priority GetPriority() const { return prio; }    \
+      virtual int GetPriority() const { return prio; }                     \
       virtual bool GetDefaultState() const { return state; }               \
       virtual ViewFilter *Create(ViewFilter *next) const                   \



-------------------------------------------------------
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

Reply via email to