#include <nonmodal.h>
Public Member Functions | |
NonModalEntry (const Callback &apply, const Callback &cancel) | |
void | connect (GtkEntry *entry) |
Static Private Member Functions | |
static gboolean | focus_in (GtkEntry *entry, GdkEventFocus *event, NonModalEntry *self) |
static gboolean | focus_out (GtkEntry *entry, GdkEventFocus *event, NonModalEntry *self) |
static gboolean | changed (GtkEntry *entry, NonModalEntry *self) |
static gboolean | enter (GtkEntry *entry, GdkEventKey *event, NonModalEntry *self) |
static gboolean | escape (GtkEntry *entry, GdkEventKey *event, NonModalEntry *self) |
Private Attributes | |
bool | m_editing |
Callback | m_apply |
Callback | m_cancel |
Definition at line 49 of file nonmodal.h.
NonModalEntry::NonModalEntry | ( | const Callback & | apply, | |
const Callback & | cancel | |||
) | [inline] |
Definition at line 99 of file nonmodal.h.
static gboolean NonModalEntry::changed | ( | GtkEntry * | entry, | |
NonModalEntry * | self | |||
) | [inline, static, private] |
Definition at line 70 of file nonmodal.h.
Referenced by connect().
void NonModalEntry::connect | ( | GtkEntry * | entry | ) | [inline] |
Definition at line 103 of file nonmodal.h.
References changed(), enter(), escape(), focus_in(), and focus_out().
Referenced by AngleAttribute::AngleAttribute(), AnglesAttribute::AnglesAttribute(), DirectionAttribute::DirectionAttribute(), ModelAttribute::ModelAttribute(), ParticleAttribute::ParticleAttribute(), SoundAttribute::SoundAttribute(), StringAttribute::StringAttribute(), and Vector3Attribute::Vector3Attribute().
static gboolean NonModalEntry::enter | ( | GtkEntry * | entry, | |
GdkEventKey * | event, | |||
NonModalEntry * | self | |||
) | [inline, static, private] |
Definition at line 76 of file nonmodal.h.
Referenced by connect().
static gboolean NonModalEntry::escape | ( | GtkEntry * | entry, | |
GdkEventKey * | event, | |||
NonModalEntry * | self | |||
) | [inline, static, private] |
Definition at line 87 of file nonmodal.h.
Referenced by connect().
static gboolean NonModalEntry::focus_in | ( | GtkEntry * | entry, | |
GdkEventFocus * | event, | |||
NonModalEntry * | self | |||
) | [inline, static, private] |
Definition at line 55 of file nonmodal.h.
Referenced by connect().
static gboolean NonModalEntry::focus_out | ( | GtkEntry * | entry, | |
GdkEventFocus * | event, | |||
NonModalEntry * | self | |||
) | [inline, static, private] |
Definition at line 61 of file nonmodal.h.
Referenced by connect().
Callback NonModalEntry::m_apply [private] |
Definition at line 52 of file nonmodal.h.
Callback NonModalEntry::m_cancel [private] |
Definition at line 53 of file nonmodal.h.
bool NonModalEntry::m_editing [private] |
Definition at line 51 of file nonmodal.h.