X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61775320c5f2e71df6b9dfe525c40dce23fbcfe7..5938a184a568873b48c1e59bf5c4ed5a9528d7f4:/utils/configtool/src/configtooldoc.h diff --git a/utils/configtool/src/configtooldoc.h b/utils/configtool/src/configtooldoc.h index f5b036e108..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_ -#ifdef __GNUG__ -#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;