29 #include <vdk/vdkcustom.h> 36 typedef VDKReadWriteValueProp<VDKCustomList,VDKPoint>
37 CustomListSelProperty;
39 class SelectionProp:
public CustomListSelProperty
49 ):CustomListSelProperty(name,object,defValue,write,read)
52 int Row()
const {
return Value().X();}
53 int Col()
const {
return Value().Y();}
108 void _update_pix(
int row,
const char* s,
char** pixdata = NULL,
int col = 0);
109 void _update_size(
int row,
int *W,
int *H);
110 void SetStyle(
int row);
111 void ConnectSignals();
113 static void ColumnClick(GtkWidget* w,
118 static int RowSelection(GtkWidget *wid,
123 static int RowUnselection(GtkWidget *wid,
126 GdkEventButton *event,
163 char **titles = NULL,
164 GtkSelectionMode mode = GTK_SELECTION_SINGLE);
176 void AddRow(
char **texts,
char** pixdata = NULL,
int col = 0);
183 void UpdateRow(
int row,
char** s,
184 char** pixdata = NULL,
int col = 0);
188 void UpdateRow(
int row,
Tuple& t,
189 char** pixdata = NULL,
int col = 0);
197 void UpdateCell(
int row,
int col,
198 const char* s,
char** pixdata = NULL);
203 void RemoveRow(
int row);
217 void SelectRow(
int row,
int col);
228 void UnselectRow(
int row,
int col);
235 virtual void Clear();
242 #ifdef USE_SIGCPLUSPLUS 250 VDKSignal2<void, int, int> OnRowSelect;
257 VDKSignal2<void, int, int> OnRowUnselect;
264 VDKSignal2<void, int, int> OnRowMove;
271 static void _handle_row_move(GtkWidget* wid,
int,
int,
void UnselectRow(VDKPoint p)
Definition: vdkclist.h:233
SelectionProp Unselected
Definition: vdkclist.h:141
This class wraps gtkclist widget.
Definition: vdkclist.h:98
void SelectRow(VDKPoint p)
Definition: vdkclist.h:222
Definition: vdkcustom.h:43
Provides a simple point object.
Definition: vdkutils.h:94
SelectionProp Selected
Definition: vdkclist.h:136
This is a base class for derived VDKCustomList and VDKCustomTree Provides common functionalities for ...
Definition: vdkcustom.h:95
TupleList Tuples
Definition: vdkclist.h:152
VDKPoint Selection()
Definition: vdkclist.h:207
VDKPoint Unselection()
Definition: vdkclist.h:211