|
| VDKCustomList (VDKForm *owner, int columns=1, char **titles=NULL, GtkSelectionMode mode=GTK_SELECTION_SINGLE) |
|
virtual | ~VDKCustomList () |
|
void | AddRow (char **texts, char **pixdata=NULL, int col=0) |
|
void | UpdateRow (int row, char **s, char **pixdata=NULL, int col=0) |
|
void | UpdateRow (int row, Tuple &t, char **pixdata=NULL, int col=0) |
|
void | UpdateCell (int row, int col, const char *s, char **pixdata=NULL) |
|
void | RemoveRow (int row) |
|
VDKPoint | Selection () |
|
VDKPoint | Unselection () |
|
void | SelectRow (int row, int col) |
|
void | SelectRow (VDKPoint p) |
|
void | UnselectRow (int row, int col) |
|
void | UnselectRow (VDKPoint p) |
|
virtual void | Clear () |
|
VDKIntArray & | Selections () |
|
int | ColumnClicked () |
|
GtkSelectionMode | SelectionMode () |
|
GtkWidget * | CustomWidget () |
|
void | ActiveTitle (int col, bool flag=true) |
|
void | ActiveTitles (bool flag=true) |
|
void | EnableTitles (bool flag=true) |
|
void | Freeze () |
|
void | Thaw () |
|
int | Size () |
|
void | ColumnSize (int col, int size) |
|
void | AutoResizeColumn (int col, bool flag) |
|
virtual void | SetForeground (VDKRgb, GtkStateType) |
|
virtual void | SetFont (VDKFont *) |
|
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) |
|
|
SelectionProp | Selected |
|
SelectionProp | Unselected |
|
TupleList | Tuples |
|
VDKReadWriteValueProp< VDKCustom, GtkPolicyType > | VPolicy |
|
VDKReadWriteValueProp< VDKCustom, GtkPolicyType > | HPolicy |
|
VDKReadWriteValueProp< VDKCustom, GtkShadowType > | BorderShadow |
|
VDKReadWriteValueProp< VDKCustom, int > | RowHeight |
|
VDKReadWriteValueProp< VDKCustom, bool > | AutoResize |
|
VDKReadWriteValueProp< VDKCustom, VDKRgb > | SelectedForeground |
|
VDKReadWriteValueProp< VDKCustom, VDKRgb > | UnselectedBackground |
|
VDKReadWriteValueProp< VDKCustom, VDKRgb > | UnselectedForeground |
|
VDKObjectArray | Titles |
|
VDKReadOnlyValueProp< VDKCustom, int > | SelectedTitle |
|
VDKReadWriteValueProp< VDKObject, VDKRgb > | NormalBackground |
|
VDKReadWriteValueProp< VDKObject, VDKFont * > | Font |
|
SizeObjectProp | Usize |
|
VDKReadWriteValueProp< VDKObject, bool > | Enabled |
|
VDKReadWriteValueProp< VDKObject, VDKCursorType > | Cursor |
|
VDKReadWriteValueProp< VDKObject, bool > | Visible |
|
This class wraps gtkclist widget.
- Signals
- select_row signal, emitted on selecting a list cell (or double clicking on extended selection mode). Selected property contains selected cell coordinates. Selected is set to VDKPoint(-1,-1) if no cell is selected.
- unselect_row_signal, emitted on unselecting a cell. Unselected property contains unselected cell coordinates.
- click_column_signal, emitted on clicking over a column titile, ColumnClicked() returns wich column was clicked.
- Tip
- Use Selected property property like this:
int col = p.y;
int row = list->Selected.Row();
int col = list->Selected.Col();
Provides a simple point object.
Definition: vdkutils.h:94
int x
Definition: vdkutils.h:99
- Programming hints
- Data contained into a VDKCustomList are organized as a list of tuples, a VDKTuple is a derived clas of an VDKArray<VDKString> that add equality and less-than operators (See vdkclist.h for further informations). You can access to data using [] operator on Tuples property like this:
VDKTuple tuple = list->Tuples[j];
Implements famous cont referenced string objects.
Definition: vdkstring.h:46
Recall that Tuples is a read-only property, directly modifying a tuple does not reflect into the list widget, use VDKCustomList::UpdateRow() method at this end.
- Examples
- Into ./testvdk/testvdk.cc and .h