#include <DirectionAttribute.h>
Public Types | |
typedef MemberCaller < DirectionAttribute,&DirectionAttribute::apply > | ApplyCaller |
typedef MemberCaller < DirectionAttribute,&DirectionAttribute::update > | UpdateCaller |
typedef MemberCaller < DirectionAttribute,&DirectionAttribute::applyRadio > | ApplyRadioCaller |
Public Member Functions | |
DirectionAttribute (const std::string &classname, const std::string &key) | |
GtkWidget * | getWidget () const |
void | apply (void) |
void | update (void) |
void | applyRadio (void) |
Private Attributes | |
std::string | m_classname |
std::string | m_key |
GtkEntry * | m_entry |
NonModalEntry | m_nonModal |
RadioHBox | m_radio |
NonModalRadio | m_nonModalRadio |
GtkHBox * | m_hbox |
Definition at line 6 of file DirectionAttribute.h.
typedef MemberCaller<DirectionAttribute, &DirectionAttribute::apply> DirectionAttribute::ApplyCaller |
Definition at line 44 of file DirectionAttribute.h.
typedef MemberCaller<DirectionAttribute, &DirectionAttribute::applyRadio> DirectionAttribute::ApplyRadioCaller |
Definition at line 83 of file DirectionAttribute.h.
typedef MemberCaller<DirectionAttribute, &DirectionAttribute::update> DirectionAttribute::UpdateCaller |
Definition at line 70 of file DirectionAttribute.h.
DirectionAttribute::DirectionAttribute | ( | const std::string & | classname, | |
const std::string & | key | |||
) | [inline] |
Definition at line 16 of file DirectionAttribute.h.
References NonModalRadio::connect(), NonModalEntry::connect(), m_entry, RadioHBox::m_hbox, m_hbox, m_nonModal, m_nonModalRadio, RadioHBox::m_radio, m_radio, and EntityAttribute::numeric_entry_new().
void DirectionAttribute::apply | ( | void | ) | [inline] |
Definition at line 38 of file DirectionAttribute.h.
References EntityAttribute::angle_normalised(), EntityAttribute::entitySetValue(), entry_get_float(), m_classname, m_entry, and m_key.
Referenced by applyRadio().
void DirectionAttribute::applyRadio | ( | void | ) | [inline] |
Definition at line 72 of file DirectionAttribute.h.
References apply(), EntityAttribute::entitySetValue(), m_classname, m_key, RadioHBox::m_radio, m_radio, and radio_button_get_active().
GtkWidget* DirectionAttribute::getWidget | ( | ) | const [inline, virtual] |
void DirectionAttribute::update | ( | void | ) | [inline, virtual] |
Implements EntityAttribute.
Definition at line 46 of file DirectionAttribute.h.
References EntityAttribute::angle_normalised(), EntityAttribute::entityGetValueForKey(), f, m_entry, m_key, RadioHBox::m_radio, m_radio, radio_button_set_active_no_signal(), and string.
std::string DirectionAttribute::m_classname [private] |
Definition at line 8 of file DirectionAttribute.h.
Referenced by apply(), and applyRadio().
GtkEntry* DirectionAttribute::m_entry [private] |
Definition at line 10 of file DirectionAttribute.h.
Referenced by apply(), DirectionAttribute(), and update().
GtkHBox* DirectionAttribute::m_hbox [private] |
Definition at line 14 of file DirectionAttribute.h.
Referenced by DirectionAttribute(), and getWidget().
std::string DirectionAttribute::m_key [private] |
Definition at line 9 of file DirectionAttribute.h.
Referenced by apply(), applyRadio(), and update().
NonModalEntry DirectionAttribute::m_nonModal [private] |
Definition at line 11 of file DirectionAttribute.h.
Referenced by DirectionAttribute().
Definition at line 13 of file DirectionAttribute.h.
Referenced by DirectionAttribute().
RadioHBox DirectionAttribute::m_radio [private] |
Definition at line 12 of file DirectionAttribute.h.
Referenced by applyRadio(), DirectionAttribute(), and update().