|
| VDKComboEntry (VDKForm *owner, char **selections=NULL) |
|
virtual void | SetBackground (VDKRgb rgb, GtkStateType state) |
|
virtual void | SetForeground (VDKRgb rgb, GtkStateType state) |
|
virtual void | SetFont (VDKFont *font) |
|
VDKRgb | GetBackground (GtkStateType state=GTK_STATE_NORMAL) |
|
VDKRgb | GetForeground (GtkStateType state=GTK_STATE_NORMAL) |
|
| VDKObject (VDKForm *owner=NULL) |
|
| VDKObject (VDKForm *owner, GtkWidget *widget) |
|
virtual | ~VDKObject () |
|
bool | Destroy () |
|
virtual int | isA () |
|
VDKForm * | Owner () |
|
virtual GtkWidget * | Widget () |
|
GtkWidget * | ConnectingWidget () |
|
GtkWidget * | WrappedWidget () |
|
VDKFont * | GetFont () |
|
void | SetVisible (bool visible) |
|
bool | GetVisible () |
|
void | SetCursor (VDKCursorType) |
|
VDKCursorType | GetCursor () |
|
void | SetSize (int w, int h) |
|
void | SetUsize (VDKPoint s) |
|
virtual void | SetTip (char *) |
|
virtual void | Add (VDKObject *obj, int justify=l_justify, int expand=TRUE, int fill=TRUE, int padding=0) |
|
ItemList & | Items () |
|
void | Draw (GdkRectangle *area=NULL) |
|
virtual void | Setup () |
|
void | SignalEmit (int signal) |
|
void | SignalEmit (char *sig) |
|
void | SignalEmitParent (int signal) |
|
void | SignalEmitParent (char *sig) |
|
void | GrabFocus () |
|
VDKObject * | Parent (VDKObject *p=NULL) |
|
int | SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
|
int | SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
|
bool | SignalDisconnect (int connection) |
|
int | EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false) |
|
int | EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false) |
|
bool | EventDisconnect (int connection) |
|
|
VDKReadWriteValueProp< VDKComboEntry, bool > | Editable |
|
VDKReadWriteValueProp< VDKComboEntry, int > | Selected |
|
VDKReadWriteValueProp< VDKComboEntry, char * > | Text |
|
VDKReadWriteValueProp< VDKComboEntry, StringList * > | Selections |
|
VDKReadWriteValueProp< VDKComboEntry, GtkListStore * > | StoreModel |
|
VDKReadWriteValueProp< VDKComboEntry, bool > | Sorted |
|
VDKReadWriteValueProp< VDKComboEntry, GtkSortType > | SortingOrder |
|
VDKReadWriteValueProp< VDKObject, VDKRgb > | NormalBackground |
|
VDKReadWriteValueProp< VDKObject, VDKFont * > | Font |
|
SizeObjectProp | Usize |
|
VDKReadWriteValueProp< VDKObject, bool > | Enabled |
|
VDKReadWriteValueProp< VDKObject, VDKCursorType > | Cursor |
|
VDKReadWriteValueProp< VDKObject, bool > | Visible |
|
Provides a simplified wrapper for gtkcombo_entry.
- Author
- Mario Motta
- Signals
- activate_signal received when the Enter key is pressed in the Entry.
- changed_signal received when text in Entry is changed. This happens when an item has been selected or unselected.
- focus_in_signal received when Entry gets focus.
- focus_out_signal received when Entry loses focus.
Sets underlying GtkListStore model as sortable.
Once the model has been sorted, it can't go back to the default state.
A possible work around to this problem is here:
\code
bool SomeForm::ToggleSorting(VDKObject* sender) { static StringList unsorted = NULL; GtkListStore store = comboboxentry->StoreModel; // store unsorted dropdown list for later use if(!unsorted) unsorted = comboboxentry->Selections; if(chbox->Checked) comboboxentry->Sorted = true; else // since once sorted cannot revert to previous state // we substitute store model with a new unsorted one { comboboxentry->Sorted = false; GtkListStore* store = gtk_list_store_new (1, G_TYPE_STRING); comboboxentry->StoreModel = store; comboboxentry->Selections = unsorted; } comboboxentry->Selected = 0; return true; }