vdk 2.4.0
|
This class wraps gtkclist widget. More...
#include <vdkclist.h>
Public Member Functions | |
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) |
Public Attributes | |
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 |
Additional Inherited Members | |
![]() | |
virtual void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
![]() | |
VDKObjectSignal | s_clicked |
GtkWidget * | widget |
GtkWidget * | sigwid |
VDKObject * | parent |
This class wraps gtkclist widget.
VDKCustomList::VDKCustomList | ( | VDKForm * | owner, |
int | columns = 1 , |
||
char ** | titles = NULL , |
||
GtkSelectionMode | mode = GTK_SELECTION_SINGLE |
||
) |
Constructor.
columns | columns number |
titles | array of titles strings |
mode | selection mode |
|
virtual |
Destructor
void VDKCustomList::AddRow | ( | char ** | texts, |
char ** | pixdata = NULL , |
||
int | col = 0 |
||
) |
Add a row to list.
texts | strings array to fill row cells |
pixdata | a cell can have a pixmap |
wich | column has the pixmap (if any) |
|
virtual |
Clear widget
Reimplemented from VDKCustom.
void VDKCustomList::RemoveRow | ( | int | row | ) |
Removes a row
row,whic | row should be removed |
|
inline |
Returns selected cell coordinates
VDKIntArray & VDKCustomList::Selections | ( | ) |
Returns an array filled with all selected row number. Valid only in multiple or extended selection mode, in other cases array will have size == 0
void VDKCustomList::SelectRow | ( | int | row, |
int | col | ||
) |
Selects a row
row,cell | coordinate |
col |
|
inline |
Selects a row
p,cell | coordinates |
|
inline |
Returns unselected cell coordinates
void VDKCustomList::UnselectRow | ( | int | row, |
int | col | ||
) |
Unselects a row
row,cell | coordinate |
col |
|
inline |
Selects a row
p,cell | coordinates |
void VDKCustomList::UpdateCell | ( | int | row, |
int | col, | ||
const char * | s, | ||
char ** | pixdata = NULL |
||
) |
Updates a cell
row | cell coordinates |
col | |
pixdata | a cell can have a pixmap |
wich | column has the pixmap (if any) |
void VDKCustomList::UpdateRow | ( | int | row, |
char ** | s, | ||
char ** | pixdata = NULL , |
||
int | col = 0 |
||
) |
Updates a row
row | wich row should be updated |
pixdata | a cell can have a pixmap |
wich | column has the pixmap (if any) |
void VDKCustomList::UpdateRow | ( | int | row, |
Tuple & | t, | ||
char ** | pixdata = NULL , |
||
int | col = 0 |
||
) |
Same as above
SelectionProp VDKCustomList::Selected |
Use this to know wich cell is selected or Selected.Row() or Selected.Col() <read-only>
TupleList VDKCustomList::Tuples |
A tuple is a VDKArray<VDKString>. use this property to access data on row/cell basis like this:
SelectionProp VDKCustomList::Unselected |
Use this to know wich cell is unselected or Unselected.Row() or Unselected.Col() <read-only>