Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

hk_dsgrid Class Reference

base class for widgets which show multi column data in a grid. More...

#include <hk_dsgrid.h>

Inheritance diagram for hk_dsgrid:

hk_dsvisible hk_visible hk_class hk_kdegrid List of all members.

Public Member Functions

 hk_dsgrid (hk_form *form=NULL)
virtual ~hk_dsgrid (void)
hk_dsgridcolumngridcolumn (unsigned int c)
unsigned int columnscount (void)
void set_gridcolumnwidth (unsigned int col, int newwidth)
void change_columnposition (unsigned int from, unsigned int to)
void set_gridcolumns (vector< hk_dsgridcolumn > &c, bool registerchange=true)
void set_gridcolumns (list< hk_string > &sl)
void clear_gridcolumn (void)
void set_hold_rowdefinition (bool h=true)
void set_enablingbehaviour (bool add_col, bool del_col)
virtual void savedata (ostream &s, bool saveall)
virtual void savedata (ostream &s)
virtual void loaddata (const hk_string &definition)
virtual void set_datasource (hk_datasource *)
list< hk_string > * visible_columns (void)
list< hk_string > * nonvisible_columns (void)
bool save_table (const hk_string &s="", bool ask=true)
bool load_table (void)
bool save_view (const hk_string &s="", bool ask=true)
bool load_view (void)
void set_rowheight (int, bool registerchange=true)
int rowheight (void)

Protected Member Functions

bool datasource_enable (void)
bool datasource_disable (void)
bool columns_new_created (void)
virtual void before_store_changed_data (void)
virtual bool table_structure_changes (void)
virtual void widget_specific_columns_created (void)
virtual void widget_specific_rowheight_changes (void)

Friends

class hk_dsgridcolumn

Detailed Description

base class for widgets which show multi column data in a grid.

Version:
Revision
1.31
Author:
Horst Knorr (hk_classes@knoda.org)
base class for widgets which show multi column and multi row data in a grid.


Constructor & Destructor Documentation

hk_dsgrid::hk_dsgrid hk_form form = NULL  ) 
 

virtual hk_dsgrid::~hk_dsgrid void   )  [virtual]
 


Member Function Documentation

virtual void hk_dsgrid::before_store_changed_data void   )  [protected, virtual]
 

Reimplemented from hk_dsvisible.

void hk_dsgrid::change_columnposition unsigned int  from,
unsigned int  to
 

it's possible to change the order of the columns

Parameters:
from position where the column was originally
to target position

void hk_dsgrid::clear_gridcolumn void   ) 
 

bool hk_dsgrid::columns_new_created void   )  [protected, virtual]
 

Reimplemented from hk_dsvisible.

unsigned int hk_dsgrid::columnscount void   ) 
 

returns the number of columns shown in the grid.

bool hk_dsgrid::datasource_disable void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called when the datasources is disabling

Reimplemented from hk_dsvisible.

bool hk_dsgrid::datasource_enable void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called when the datasources is enabling

Reimplemented from hk_dsvisible.

hk_dsgridcolumn* hk_dsgrid::gridcolumn unsigned int  c  ) 
 

returns a specific gridcolumn

Parameters:
c number of the column.

bool hk_dsgrid::load_table void   ) 
 

bool hk_dsgrid::load_view void   ) 
 

virtual void hk_dsgrid::loaddata const hk_string definition  )  [virtual]
 

loads the object's values out of the definition string. Especially used to load queries, forms and reports

Reimplemented from hk_dsvisible.

list<hk_string>* hk_dsgrid::nonvisible_columns void   ) 
 

int hk_dsgrid::rowheight void   ) 
 

bool hk_dsgrid::save_table const hk_string s = "",
bool  ask = true
 

bool hk_dsgrid::save_view const hk_string s = "",
bool  ask = true
 

virtual void hk_dsgrid::savedata ostream &  s  )  [virtual]
 

stores the object's values to stream s. Especially used to store queries, forms and reports

Reimplemented from hk_dsvisible.

virtual void hk_dsgrid::savedata ostream &  s,
bool  saveall
[virtual]
 

virtual void hk_dsgrid::set_datasource hk_datasource  )  [virtual]
 

Reimplemented from hk_dsvisible.

Reimplemented in hk_kdegrid.

void hk_dsgrid::set_enablingbehaviour bool  add_col,
bool  del_col
 

if set_hold_rowdefinition is true, this function defines what exactly to do during enabling

Parameters:
add_col if true, columns of the datasource will be added to the grid if no equivalent gridcolumn exists. Default is false.
del_col if true, gridcolumns will be removed if no equivalent columns in the datasource exist. Default is false.

void hk_dsgrid::set_gridcolumns list< hk_string > &  sl  ) 
 

you can manually set the gridcolumn definition.The new defintion of the gridcolumns, all columns get default values.

Parameters:
sl the strings contain the names of the columns.

void hk_dsgrid::set_gridcolumns vector< hk_dsgridcolumn > &  c,
bool  registerchange = true
 

you can manually set the gridcolumn definition.

Parameters:
c the new defintion of the gridcolumns, all values in these definitions will be used

void hk_dsgrid::set_gridcolumnwidth unsigned int  col,
int  newwidth
 

sets the new width of a specific column.

Parameters:
col number of the column
newsize the new width of the column

void hk_dsgrid::set_hold_rowdefinition bool  h = true  ) 
 

If true and you change the row definitions (i.e. column size) after disabling and reenabling your definitions still exist, if false the rows will be newly built. Default is true.

See also:
set_enablingbehaviour

void hk_dsgrid::set_rowheight int  ,
bool  registerchange = true
 

virtual bool hk_dsgrid::table_structure_changes void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called after the columnstructure of a table was successfully altered.

Reimplemented from hk_dsvisible.

list<hk_string>* hk_dsgrid::visible_columns void   ) 
 

virtual void hk_dsgrid::widget_specific_columns_created void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdegrid.

virtual void hk_dsgrid::widget_specific_rowheight_changes void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdegrid.


Friends And Related Function Documentation

friend class hk_dsgridcolumn [friend]
 


The documentation for this class was generated from the following file:
Generated on Thu Mar 9 18:40:41 2006 for hk_classes by  doxygen 1.4.1