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

Modified Files:
        wxFolderView.h 
Log Message:
added quick search commands in the folder view (bug 817)

Index: wxFolderView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxFolderView.h,v
retrieving revision 1.144
retrieving revision 1.145
diff -b -u -2 -r1.144 -r1.145
--- wxFolderView.h      18 Sep 2003 16:30:44 -0000      1.144
+++ wxFolderView.h      1 Oct 2003 22:10:46 -0000       1.145
@@ -221,4 +221,7 @@
 
 private:
+   /// show the next or previous message matching the search criteria
+   void MoveToNextSearchMatch(bool forward);
+
    /// the full name of the folder opened in this folder view
    wxString m_fullname;
@@ -321,4 +324,34 @@
    /// the last message we the user has jumped to
    long m_nLastJump;
+
+   /// the search parameters
+   struct SearchData
+   {
+      /// what we searched for
+      String str;
+
+      /// the UIDs of the messages we found during last search
+      UIdArray uids;
+
+      /// the index of the next matching message to show (used by
+      /// MoveToNextSearchMatch())
+      size_t idx;
+
+      /// true if we are doing fwd sesrch ('/'), false if backwards ('?')
+      bool forward;
+
+      /// true if the new search has just been started, reset by first call to
+      /// MoveToNextSearchMatch()
+      bool justStarted;
+
+      /// should be called to initialize with the search results data
+      void Init(const UIdArray& uidsSearched)
+      {
+         uids = uidsSearched;
+         idx = forward ? 0 : uidsSearched.GetCount() - 1;
+         justStarted = true;
+      }
+   } m_searchData;
+
 
    /// read the values from the profile into AllProfileSettings structure



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to