X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7463f75f9c170c29b4965d27dccf535ac32cfde..3a39df31ff47004a46cfb06f3fb2d3e317f96d2b:/utils/configtool/src/configitem.h?ds=sidebyside diff --git a/utils/configtool/src/configitem.h b/utils/configtool/src/configitem.h index 8ebba6932b..fd89a029cc 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,7 +12,7 @@ #ifndef _CT_CONFIGITEM_H_ #define _CT_CONFIGITEM_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "configitem.cpp" #endif @@ -37,7 +37,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 +56,7 @@ public: ~ctConfigItem(); /// Copy constructor. - ctConfigItem(const ctConfigItem& item) + ctConfigItem(const ctConfigItem& item) : wxObject() { (*this) = item; } @@ -179,19 +179,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; }