]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/configtool/src/configtoolview.h
Fix docs for Bind
[wxWidgets.git] / utils / configtool / src / configtoolview.h
index 85e9e58a50175c5e8c05bb43a528de3971db6cdf..287f153523b8b9f6d2cb58891af615c67c9ffc04 100644 (file)
 #ifndef _CT_CONFIGTOOLVIEW_H_
 #define _CT_CONFIGTOOLVIEW_H_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface "configtoolview.cpp"
 #endif
 
 #include "wx/docview.h"
 #include "wx/treectrl.h"
+#include "wx/fdrepdlg.h"
 #include "configitem.h"
 
 class ctConfigTreeCtrl;
@@ -190,6 +191,22 @@ public:
     /// Save configure command file update handler
     void OnUpdateSaveConfigureCommand(wxUpdateUIEvent& event);
 
+    // Find
+
+    /// Find text
+    void OnFind(wxCommandEvent& event);
+
+    /// Update find text
+    void OnUpdateFind(wxUpdateUIEvent& event);
+
+    // Go (now: save setup.h or configurewx.sh. later: invoke configure/make)
+
+    /// Save default file type
+    void OnGo(wxCommandEvent& event);
+
+    /// Update
+    void OnUpdateGo(wxUpdateUIEvent& event);
+
 DECLARE_EVENT_TABLE()
 
 protected:
@@ -221,5 +238,37 @@ public:
     int             m_op;
 };
 
+/*
+ * ctFindReplaceDialog
+ */
+
+class ctFindReplaceDialog: public wxFindReplaceDialog
+{
+public:
+    // constructors and destructors
+    ctFindReplaceDialog( wxWindow* parent, const wxString& title,
+        long style = 0 );
+    
+    void OnFind(wxFindDialogEvent& event);
+    void OnClose(wxFindDialogEvent& event);
+
+    // If wrap is TRUE, go back to the beginning if at the end of the
+    // document.
+    bool DoFind(const wxString& textToFind, bool matchCase, bool wholeWord, bool wrap = TRUE);
+
+    ctConfigItem* FindNextItem(ctConfigToolDoc* doc,
+                                                      ctConfigItem* item,
+                                                      const wxString& text,
+                                                      bool matchCase,
+                                                      bool matchWordOnly,
+                                                      bool wrap,
+                                                      bool skipFirst);
+    static wxFindReplaceData    sm_findData;
+    static wxString             sm_currentItem; // card name
+
+private:
+    DECLARE_EVENT_TABLE()
+};
+
 #endif
         // _CT_CONFIGTOOLVIEW_H_