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