X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71ada1a5fbecf774be6cb7ab7421a8f784d6c84c..08b97268061292f7c3794dae243a6490b23a42f1:/utils/configtool/src/configitem.h diff --git a/utils/configtool/src/configitem.h b/utils/configtool/src/configitem.h index c7989a70e5..89f51efe05 100644 --- a/utils/configtool/src/configitem.h +++ b/utils/configtool/src/configitem.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: configitem.h -// Purpose: wxWindows Configuration Tool config item class +// Purpose: wxWidgets Configuration Tool config item class // Author: Julian Smart // Modified by: // Created: 2003-06-03 @@ -12,10 +12,6 @@ #ifndef _CT_CONFIGITEM_H_ #define _CT_CONFIGITEM_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "configitem.cpp" -#endif - #include "wx/wx.h" #include "wx/treectrl.h" @@ -37,7 +33,7 @@ enum ctConfigType ctTypeInteger, // An option with an integer value ctTypeBoolCheck, // An on/off option ctTypeBoolRadio // An on/off mutually exclusive option -}; +}; /*! * ctConfigItem represents a configuration setting. @@ -56,7 +52,7 @@ public: ~ctConfigItem(); /// Copy constructor. - ctConfigItem(const ctConfigItem& item) + ctConfigItem(const ctConfigItem& item) : wxObject() { (*this) = item; } @@ -179,19 +175,19 @@ public: bool IsModified() const { return m_modified; } /// Mark this as modified. - void Modify(bool modified = TRUE) { m_modified = modified; } + void Modify(bool modified = true) { m_modified = modified; } /// Is this item enabled? (checked/unchecked) bool IsEnabled() const { return m_enabled; } /// Enable or disable (check/uncheck) - void Enable(bool enable = TRUE) { m_enabled = enable; } + void Enable(bool enable = true) { m_enabled = enable; } /// Is this item active? (sensitive to user input) bool IsActive() const { return m_active; } /// Make this (in)active - void SetActive(bool active = TRUE) { m_active = active; } + void SetActive(bool active = true) { m_active = active; } /// Set the type void SetType(ctConfigType type) { m_type = type; }