/////////////////////////////////////////////////////////////////////////////
// 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
#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"
ctTypeInteger, // An option with an integer value
ctTypeBoolCheck, // An on/off option
ctTypeBoolRadio // An on/off mutually exclusive option
-};
+};
/*!
* ctConfigItem represents a configuration setting.
~ctConfigItem();
/// Copy constructor.
- ctConfigItem(const ctConfigItem& item)
+ ctConfigItem(const ctConfigItem& item) : wxObject()
{
(*this) = item;
}
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; }