X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71ada1a5fbecf774be6cb7ab7421a8f784d6c84c..b271d60d6a009930d80092a8cb534a5df19fc99b:/utils/configtool/src/configtooldoc.h diff --git a/utils/configtool/src/configtooldoc.h b/utils/configtool/src/configtooldoc.h index b1abcab4a7..277dba3151 100644 --- a/utils/configtool/src/configtooldoc.h +++ b/utils/configtool/src/configtooldoc.h @@ -12,10 +12,6 @@ #ifndef _CT_CONFIGTOOLDOC_H_ #define _CT_CONFIGTOOLDOC_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "configtooldoc.cpp" -#endif - #include "wx/docview.h" #include "wx/cmdproc.h" @@ -39,9 +35,9 @@ public: virtual bool OnCreate(const wxString& path, long flags); virtual bool OnOpenDocument(const wxString& filename); virtual bool OnSaveDocument(const wxString& filename); - virtual bool OnNewDocument() { return TRUE; } + virtual bool OnNewDocument() { return true; } virtual bool OnCloseDocument() ; - virtual bool Save(); // Overridden only to correct bug in wxWindows, docview.cpp + virtual bool Save(); // Overridden only to correct bug in wxWidgets, docview.cpp //// Accessors @@ -92,10 +88,10 @@ public: /// Generate the text of a setup.h wxString GenerateSetup(); - + /// Helper function void GenerateSetup(ctConfigItem* item, wxString& str); - + /// Generate a configure command wxString GenerateConfigureCommand(); @@ -104,10 +100,10 @@ public: /// Finds the next item in the tree ctConfigItem* FindNextItem(ctConfigItem* item, bool wrap); - + /// Finds the next sibling in the tree ctConfigItem* FindNextSibling(ctConfigItem* item); - + protected: ctConfigItem* m_topItem; ctConfigItem* m_clipboardItem; @@ -127,7 +123,7 @@ public: ~ctConfiguration(); /// Copy constructor. - ctConfiguration(const ctConfiguration& configuration) + ctConfiguration(const ctConfiguration& configuration) : wxObject() { (*this) = configuration; } @@ -260,16 +256,16 @@ public: ctConfigCommand(const wxString& name, int cmdId, ctConfigItem* activeState, ctConfigItem* savedState, ctConfigItem* parent = NULL, ctConfigItem* insertBefore = NULL, - bool ignoreFirstTime = FALSE); + bool ignoreFirstTime = false); ctConfigCommand(const wxString& name, int cmdId, ctConfigItem* activeState, ctProperties* properties, - bool ignoreFirstTime = FALSE); + bool ignoreFirstTime = false); ~ctConfigCommand(); bool Do(); bool Undo(); bool DoAndUndo(bool doCmd); // Combine Do and Undo into one - + protected: ctConfigItem* m_activeState; ctConfigItem* m_savedState;