X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e776786754b4a54f90873b0f1801ba50f79c2d90..08b97268061292f7c3794dae243a6490b23a42f1:/utils/configtool/src/configtoolview.h diff --git a/utils/configtool/src/configtoolview.h b/utils/configtool/src/configtoolview.h index 02ea972f5b..dde015e2ac 100644 --- a/utils/configtool/src/configtoolview.h +++ b/utils/configtool/src/configtoolview.h @@ -12,10 +12,6 @@ #ifndef _CT_CONFIGTOOLVIEW_H_ #define _CT_CONFIGTOOLVIEW_H_ -#ifdef __GNUG__ -#pragma interface "configtoolview.cpp" -#endif - #include "wx/docview.h" #include "wx/treectrl.h" #include "wx/fdrepdlg.h" @@ -33,15 +29,15 @@ class ctConfigToolView: public wxView { DECLARE_DYNAMIC_CLASS(ctConfigToolView) public: - ctConfigToolView(); - ~ctConfigToolView() {}; - + ctConfigToolView(){}; + ~ctConfigToolView(){}; + //// Overrides bool OnCreate(wxDocument *doc, long flags); void OnDraw(wxDC *dc); void OnUpdate(wxView *sender, wxObject *hint = (wxObject *) NULL); - bool OnClose(bool deleteWindow = TRUE); + bool OnClose(bool deleteWindow = true); void OnChangeFilename(); //// Operations @@ -199,6 +195,14 @@ public: /// 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: @@ -240,13 +244,13 @@ 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 + // 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); + bool DoFind(const wxString& textToFind, bool matchCase, bool wholeWord, bool wrap = true); ctConfigItem* FindNextItem(ctConfigToolDoc* doc, ctConfigItem* item,