27 #ifndef _vdkcomboentry_h_
28 #define _vdkcomboentry_h_
34 #include <vdk/vdkobj.h>
35 #include <vdk/value_sem_list.h>
54 static int FocusOutEvent(GtkWidget *, GdkEventFocus*, gpointer wid);
55 static int FocusInEvent(GtkWidget *, GdkEventFocus*, gpointer wid);
71 VDKReadWriteValueProp<VDKComboEntry,bool>
Editable;
72 void SetEditable(
bool flag)
73 { gtk_entry_set_editable(GTK_ENTRY(GTK_BIN (
widget)->child),flag); }
78 VDKReadWriteValueProp<VDKComboEntry,int>
Selected;
80 {
return gtk_combo_box_get_active (GTK_COMBO_BOX(
widget)); }
81 void SetSelected(
int index)
82 { gtk_combo_box_set_active (GTK_COMBO_BOX(
widget),index); }
87 VDKReadWriteValueProp<VDKComboEntry,char*>
Text;
88 void SetText(
char* text);
96 VDKReadWriteValueProp<VDKComboEntry,StringList*>
Selections;
103 VDKReadWriteValueProp<VDKComboEntry,GtkListStore*>
StoreModel;
104 void SetStoreModel(GtkListStore* store_model);
134 VDKReadWriteValueProp<VDKComboEntry,bool>
Sorted;
135 void SetSorted(
bool flag);
VDKReadWriteValueProp< VDKComboEntry, GtkSortType > SortingOrder
Definition: vdkcomboentry.h:140
VDKReadWriteValueProp< VDKComboEntry, GtkListStore * > StoreModel
Definition: vdkcomboentry.h:103
VDKReadWriteValueProp< VDKComboEntry, int > Selected
Definition: vdkcomboentry.h:78
virtual void SetForeground(VDKRgb rgb, GtkStateType state)
Definition: vdkcomboentry.cc:190
Provides a simplified wrapper for gtkcombo_entry.
Definition: vdkcomboentry.h:51
VDKComboEntry(VDKForm *owner, char **selections=NULL)
Definition: vdkcomboentry.cc:53
Provides a simple RGB color structure.
Definition: vdkutils.h:37
VDKReadWriteValueProp< VDKComboEntry, StringList * > Selections
Definition: vdkcomboentry.h:96
VDKReadWriteValueProp< VDKComboEntry, bool > Editable
Definition: vdkcomboentry.h:71
VDKReadWriteValueProp< VDKComboEntry, char * > Text
Definition: vdkcomboentry.h:87
GtkWidget * widget
Definition: vdkobj.h:241
virtual void SetFont(VDKFont *font)
Definition: vdkcomboentry.cc:197
virtual void SetBackground(VDKRgb rgb, GtkStateType state)
Definition: vdkcomboentry.cc:183
Provides a raw font.
Definition: vdkfont.h:37
provides a VDKValueList iterator
Definition: value_sem_list.h:55
VDKReadWriteValueProp< VDKComboEntry, bool > Sorted
Definition: vdkcomboentry.h:134