11 #ifndef HK_DSGRIDCOLUMN_H
12 #define HK_DSGRIDCOLUMN_H
13 #include "hk_dsdatavisible.h"
18 const int default_cellwidth=100;
19 const int default_cellheight=20;
33 enum enum_columntype{columnedit,columnbool,columncombo};
39 void set_displayname(hk_string,
bool registerchange=
true);
40 hk_string displayname(
void);
45 void set_columntype(enum_columntype,
bool registerchange=
true);
46 enum_columntype columntype(
void);
50 void set_columnwidth(
int ,
bool registerchange=
true);
51 int columnwidth(
void);
52 virtual void savedata(ostream& s);
53 virtual void loaddata(xmlNodePtr definition);
61 void set_listdatasource(
const hk_string& datasourcename,datasourcetype dt=dt_table,
bool registerchange=
true);
63 hk_string listdatasourcename(
void);
64 datasourcetype listdatasourcetype()
const;
68 void set_viewcolumnname(
const hk_string& viewcolumn,
bool registerchange=
true);
69 hk_string viewcolumnname(
void);
73 void set_listcolumnname(
const hk_string& listcolumn,
bool registerchange=
true);
74 hk_string listcolumnname(
void);
79 virtual bool set_listpresentationdatasource(
long n,
bool registerchange=
true);
80 long listpresentationdatasource(
void);
81 hk_string value_at(
unsigned long);
86 unsigned int find(
unsigned int from,
unsigned int to,
const hk_string& searchtext,
bool wholephrase=
false,
bool casesensitive=
false,
bool backwards=
false);
87 bool is_findstring(
unsigned int pos,
const hk_string& searchtext,
bool wholephrase=
false,
bool casesensitive=
false);
90 virtual bool action_on_click(
void);
91 virtual bool action_on_doubleclick(
void);
92 virtual bool action_on_close(
void);
93 virtual bool action_on_open(
void);
94 virtual void action_before_store_changed_data(
void);
95 virtual void action_after_store_changed_data(
void);
96 virtual void action_before_row_change(
void);
97 virtual void action_after_row_change(
void);
98 virtual void action_before_delete(
void);
99 virtual void action_after_delete(
void);
100 virtual void action_before_insert(
void);
101 virtual void action_after_insert(
void);
102 virtual bool action_on_getfocus(
void);
103 virtual bool action_on_loosefocus(
void);
104 virtual bool action_on_key(
void);
106 hk_string on_select_action(
void);
107 void set_on_select_action(
const hk_string&,
bool registerchange=
true,
bool force_setting=
true);
110 virtual bool presentationmode_changed(
void);
115 void set_combovalues(
void);
116 hk_string p_displayname;
117 hk_string p_comboviewcolumnname;
118 hk_string p_combolistcolumnname;
119 long p_combopresentationdatasource;
120 hk_string p_combolistdatasourcename;
121 datasourcetype p_combolistdatasourcetype;
123 enum_columntype p_columntype;
base class for widgets which show multi column data in a grid.
Definition: hk_dsgrid.h:26
structure of a column in a grid
Definition: hk_dsgridcolumn.h:29
virtual void loaddata(xmlNodePtr definition)
Definition: hk_dsgrid.cpp:222
represents a resultquery or a table of a database.
Definition: hk_datasource.h:45
Definition: hk_dsgridcolumn.cpp:19
base class for visible widgets with data connection
Definition: hk_dsdatavisible.h:32
base class for combobox fields
Definition: hk_dscombobox.h:32
represents one column of a datasource.
Definition: hk_column.h:34
Definition: hk_dsgridcolumn.cpp:24