BooleanAttribute. A simple on/off keyval is represented by a checkbox. More...
#include <BooleanAttribute.h>
Public Member Functions | |
BooleanAttribute (const std::string &classname, const std::string &key) | |
GtkWidget * | getWidget () 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 |
BooleanAttribute. A simple on/off keyval is represented by a checkbox.
Definition at line 7 of file BooleanAttribute.h.
BooleanAttribute::BooleanAttribute | ( | const std::string & | classname, | |
const std::string & | key | |||
) | [inline] |
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] |
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] |
Implements EntityAttribute.
Definition at line 57 of file BooleanAttribute.h.
References EntityAttribute::entityGetValueForKey(), m_check, m_key, string, and toggle_button_set_active_no_signal().
Referenced by BooleanAttribute().
GtkCheckButton* BooleanAttribute::m_check [private] |
Definition at line 13 of file BooleanAttribute.h.
Referenced by apply(), BooleanAttribute(), getWidget(), and update().
std::string BooleanAttribute::m_classname [private] |
Definition at line 9 of file BooleanAttribute.h.
Referenced by apply().
std::string BooleanAttribute::m_key [private] |
Definition at line 11 of file BooleanAttribute.h.