BooleanAttribute Class Reference

BooleanAttribute. A simple on/off keyval is represented by a checkbox. More...

#include <BooleanAttribute.h>

Inheritance diagram for BooleanAttribute:
Inheritance graph
[legend]
Collaboration diagram for BooleanAttribute:
Collaboration graph
[legend]

Public Member Functions

 BooleanAttribute (const std::string &classname, const std::string &key)
GtkWidgetgetWidget () const
void apply (void)
void update (void)

Static Private Member Functions

static gboolean toggled (GtkWidget *widget, BooleanAttribute *self)

Private Attributes

std::string m_classname
std::string m_key
GtkCheckButton * m_check

Detailed Description

BooleanAttribute. A simple on/off keyval is represented by a checkbox.

Definition at line 7 of file BooleanAttribute.h.


Constructor & Destructor Documentation

BooleanAttribute::BooleanAttribute ( const std::string classname,
const std::string key 
) [inline]

Definition at line 25 of file BooleanAttribute.h.

References check, m_check, toggled(), and update().


Member Function Documentation

void BooleanAttribute::apply ( void   )  [inline]

Definition at line 49 of file BooleanAttribute.h.

References EntityAttribute::entitySetValue(), m_check, m_classname, m_key, and string.

GtkWidget* BooleanAttribute::getWidget (  )  const [inline, virtual]

Implements EntityAttribute.

Definition at line 43 of file BooleanAttribute.h.

References m_check.

static gboolean BooleanAttribute::toggled ( GtkWidget widget,
BooleanAttribute self 
) [inline, static, private]

Definition at line 18 of file BooleanAttribute.h.

Referenced by BooleanAttribute().

void BooleanAttribute::update ( void   )  [inline, virtual]

Field Documentation

GtkCheckButton* BooleanAttribute::m_check [private]

Definition at line 13 of file BooleanAttribute.h.

Referenced by apply(), BooleanAttribute(), getWidget(), and update().

Definition at line 9 of file BooleanAttribute.h.

Referenced by apply().

Definition at line 11 of file BooleanAttribute.h.

Referenced by apply(), and update().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2