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);
184 char** pixdata = NULL,
int col = 0);
189 char** pixdata = NULL,
int col = 0);
198 const char* s,
char** pixdata = NULL);
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 AddRow(char **texts, char **pixdata=NULL, int col=0)
Definition: vdkclist.cc:223
void UpdateCell(int row, int col, const char *s, char **pixdata=NULL)
Definition: vdkclist.cc:294
void UnselectRow(VDKPoint p)
Definition: vdkclist.h:233
void UpdateRow(int row, char **s, char **pixdata=NULL, int col=0)
Definition: vdkclist.cc:261
void UnselectRow(int row, int col)
Definition: vdkclist.cc:352
virtual ~VDKCustomList()
Definition: vdkclist.cc:185
SelectionProp Unselected
Definition: vdkclist.h:141
This class wraps gtkclist widget.
Definition: vdkclist.h:98
void SelectRow(VDKPoint p)
Definition: vdkclist.h:222
VDKCustomList(VDKForm *owner, int columns=1, char **titles=NULL, GtkSelectionMode mode=GTK_SELECTION_SINGLE)
Definition: vdkclist.cc:96
Definition: vdkcustom.h:43
Provides a simple point object.
Definition: vdkutils.h:94
void SelectRow(int row, int col)
Definition: vdkclist.cc:337
virtual void Clear()
Definition: vdkclist.cc:386
void RemoveRow(int row)
Definition: vdkclist.cc:307
SelectionProp Selected
Definition: vdkclist.h:136
This is a base class for derived VDKCustomList and VDKCustomTree Provides common functionalities for ...
Definition: vdkcustom.h:95
VDKIntArray & Selections()
Definition: vdkclist.cc:359
TupleList Tuples
Definition: vdkclist.h:152
VDKPoint Selection()
Definition: vdkclist.h:207
VDKPoint Unselection()
Definition: vdkclist.h:211