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

hk_dsvisible Class Reference

base class for visible widgets without column data connection More...

#include <hk_dsvisible.h>

Inheritance diagram for hk_dsvisible:

hk_visible hk_class hk_dsdatavisible hk_dsgrid hk_importcsv hk_kdesimplegrid hk_kdetabledesign hk_subform hk_dsgridcolumn hk_reportdata hk_reportsection hk_kdegrid hk_kdecsvimportdialog List of all members.

Public Member Functions

 hk_dsvisible (hk_presentation *presentation=NULL)
virtual ~hk_dsvisible (void)
virtual void set_datasource (hk_datasource *d)
virtual bool set_presentationdatasource (long n, bool registerchange=true)
long presentationdatasource (void)
hk_datasourcedatasource (void)
virtual void savedata (ostream &s, bool savedatasource, bool saveall)
virtual void savedata (ostream &s)
virtual void loaddata (const hk_string &definition)
void set_readonly (bool readonly)
bool is_readonly (void) const
void set_before_row_change_action (const hk_string &, bool registerchange=true, bool force_setting=true)
hk_string before_row_change_action (void)
void set_after_row_change_action (const hk_string &, bool registerchange=true, bool force_setting=true)
hk_string after_row_change_action (void)
void set_before_update_action (const hk_string &, bool registerchange=true, bool force_setting=true)
hk_string before_update_action (void)
void set_after_update_action (const hk_string &, bool registerchange=true, bool force_setting=true)
hk_string after_update_action (void)
void set_before_delete_action (const hk_string &, bool registerchange=true, bool force_setting=true)
hk_string before_delete_action (void)
void set_after_delete_action (const hk_string &, bool registerchange=true, bool force_setting=true)
hk_string after_delete_action (void)
void set_before_insert_action (const hk_string &, bool registerchange=true, bool force_setting=true)
hk_string before_insert_action (void)
void set_after_insert_action (const hk_string &, bool registerchange=true, bool force_setting=true)
hk_string after_insert_action (void)
virtual void action_before_store_changed_data (void)
virtual void action_after_store_changed_data (void)
virtual void action_before_row_change (void)
virtual void action_after_row_change (void)
virtual void action_before_delete (void)
virtual void action_after_delete (void)
virtual void action_before_insert (void)
virtual void action_after_insert (void)

Protected Member Functions

void row_change (void)
void batch_next (void)
void batch_previous (void)
void insert_mode (void)
virtual void widget_specific_insert_mode (void)
virtual bool widget_specific_row_change (void)
virtual void widget_specific_batch_next (void)
virtual void widget_specific_batch_previous (void)
virtual void widget_specific_enable_disable (void)
virtual void widget_specific_enable (void)
virtual void widget_specific_disable (void)
virtual void widget_specific_row_added (void)
virtual void widget_specific_row_deleted (void)
virtual void before_row_change (void)
virtual void before_store_changed_data (void)
virtual void after_store_changed_data (void)
virtual void before_insert_row (void)
virtual void before_datasource_enables (void)
virtual bool datasource_disable (void)
virtual bool datasource_enable (void)
virtual void datasource_delete (void)
virtual void row_added (void)
virtual void row_deleted (void)
virtual bool columns_new_created (void)
virtual void list_changes (listtype type)
virtual bool before_columns_deleted (void)
virtual bool table_structure_changes (void)
virtual void before_source_vanishes (void)
virtual void widget_specific_presentationdatasource (long)
virtual bool presentationmode_changed (void)

Protected Attributes

hk_datasourcep_datasource
hk_datetime p_date
hk_string debug_p_columnname

Friends

class hk_datasource

Detailed Description

base class for visible widgets without column data connection

Version:
Revision
1.37
Author:
Horst Knorr (hk_classes@knoda.org)
This is the base class for visible widgets which do not need access to the data, but do have to know whether or not a datasource is enabled and which row is the actual one.


Constructor & Destructor Documentation

hk_dsvisible::hk_dsvisible hk_presentation presentation = NULL  ) 
 

virtual hk_dsvisible::~hk_dsvisible void   )  [virtual]
 


Member Function Documentation

virtual void hk_dsvisible::action_after_delete void   )  [virtual]
 

Reimplemented in hk_dsgridcolumn.

virtual void hk_dsvisible::action_after_insert void   )  [virtual]
 

Reimplemented in hk_dsgridcolumn.

virtual void hk_dsvisible::action_after_row_change void   )  [virtual]
 

Reimplemented in hk_dsgridcolumn.

virtual void hk_dsvisible::action_after_store_changed_data void   )  [virtual]
 

Reimplemented in hk_dsgridcolumn.

virtual void hk_dsvisible::action_before_delete void   )  [virtual]
 

Reimplemented in hk_dsgridcolumn.

virtual void hk_dsvisible::action_before_insert void   )  [virtual]
 

Reimplemented in hk_dsgridcolumn.

virtual void hk_dsvisible::action_before_row_change void   )  [virtual]
 

Reimplemented in hk_dsgridcolumn.

virtual void hk_dsvisible::action_before_store_changed_data void   )  [virtual]
 

Reimplemented in hk_dsgridcolumn.

hk_string hk_dsvisible::after_delete_action void   ) 
 

hk_string hk_dsvisible::after_insert_action void   ) 
 

hk_string hk_dsvisible::after_row_change_action void   ) 
 

virtual void hk_dsvisible::after_store_changed_data void   )  [protected, virtual]
 

hk_string hk_dsvisible::after_update_action void   ) 
 

void hk_dsvisible::batch_next void   )  [protected]
 

void hk_dsvisible::batch_previous void   )  [protected]
 

virtual bool hk_dsvisible::before_columns_deleted void   )  [inline, protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called before the columns will be deleted. usually column pointers will be set to NULL in this function. i.e.when enabling,disabling or when a depending datasource has to requery its rows.

Reimplemented in hk_dsdatavisible, and hk_importcsv.

virtual void hk_dsvisible::before_datasource_enables void   )  [inline, protected, virtual]
 

Reimplemented in hk_reportsection, and hk_subform.

hk_string hk_dsvisible::before_delete_action void   ) 
 

hk_string hk_dsvisible::before_insert_action void   ) 
 

virtual void hk_dsvisible::before_insert_row void   )  [inline, protected, virtual]
 

Reimplemented in hk_dsdatavisible.

virtual void hk_dsvisible::before_row_change void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: called from hk_datasource before it tries to change the row or disable widget can i.e. store changed data there

Reimplemented in hk_kdegrid.

hk_string hk_dsvisible::before_row_change_action void   ) 
 

virtual void hk_dsvisible::before_source_vanishes void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called before the database will be closed.(i.e when a new database will be created and the old one will be destroyed by hk_connection

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

Reimplemented in hk_dsgrid.

hk_string hk_dsvisible::before_update_action void   ) 
 

virtual bool hk_dsvisible::columns_new_created void   )  [inline, protected, virtual]
 

Reimplemented in hk_dsgrid.

hk_datasource* hk_dsvisible::datasource void   ) 
 

Reimplemented in hk_dsdatavisible, and hk_kdetabledesign.

virtual void hk_dsvisible::datasource_delete void   )  [protected, virtual]
 

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

Reimplemented in hk_dsdatavisible.

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

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

Reimplemented in hk_dsdatavisible, hk_dsgrid, and hk_kdesimplegrid.

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

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

Reimplemented in hk_dsdatavisible, hk_dsgrid, and hk_kdesimplegrid.

void hk_dsvisible::insert_mode void   )  [protected]
 

bool hk_dsvisible::is_readonly void   )  const
 

virtual void hk_dsvisible::list_changes listtype  type  )  [protected, virtual]
 

Reimplemented in hk_kdetabledesign.

virtual void hk_dsvisible::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_visible.

Reimplemented in hk_dsdatavisible, hk_dsgrid, hk_dsgridcolumn, and hk_subform.

long hk_dsvisible::presentationdatasource void   ) 
 

virtual bool hk_dsvisible::presentationmode_changed void   )  [protected, virtual]
 

Reimplemented from hk_visible.

Reimplemented in hk_dsdatavisible, hk_dsgridcolumn, hk_reportsection, hk_reportdata, hk_subform, and hk_kdegrid.

virtual void hk_dsvisible::row_added void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called when the datasources creates new columns i.e.when enabling,disabling or when a depending datasource has to requery its rows.

void hk_dsvisible::row_change void   )  [protected]
 

virtual void hk_dsvisible::row_deleted void   )  [protected, virtual]
 

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

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

Reimplemented from hk_visible.

Reimplemented in hk_dsdatavisible, hk_dsgrid, hk_dsgridcolumn, and hk_subform.

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

Reimplemented in hk_subform.

void hk_dsvisible::set_after_delete_action const hk_string ,
bool  registerchange = true,
bool  force_setting = true
 

sets the script for the after_delete action The after_delete action after the current row was deleted

void hk_dsvisible::set_after_insert_action const hk_string ,
bool  registerchange = true,
bool  force_setting = true
 

sets the script for the after_insert action The after_insert action after a new row was inserted

void hk_dsvisible::set_after_row_change_action const hk_string ,
bool  registerchange = true,
bool  force_setting = true
 

sets the script for the after_row_change action The after_row_change action after the current row changes

void hk_dsvisible::set_after_update_action const hk_string ,
bool  registerchange = true,
bool  force_setting = true
 

sets the script for the after_update action The after_update action after data changes will be stored

void hk_dsvisible::set_before_delete_action const hk_string ,
bool  registerchange = true,
bool  force_setting = true
 

sets the script for the before_delete action The before_delete action before the current row will be deleted

void hk_dsvisible::set_before_insert_action const hk_string ,
bool  registerchange = true,
bool  force_setting = true
 

sets the script for the before_insert action The before_insert action before a new row will be inserted

void hk_dsvisible::set_before_row_change_action const hk_string ,
bool  registerchange = true,
bool  force_setting = true
 

sets the script for the before_row_change action The before_row_change action before the current row changes

void hk_dsvisible::set_before_update_action const hk_string ,
bool  registerchange = true,
bool  force_setting = true
 

sets the script for the before_update action The before_update action before data changes will be stored

virtual void hk_dsvisible::set_datasource hk_datasource d  )  [virtual]
 

Reimplemented in hk_dsdatavisible, hk_dsgrid, hk_dsgridcolumn, hk_reportsection, hk_kdegrid, hk_kdetabledesign, and hk_kdecsvimportdialog.

virtual bool hk_dsvisible::set_presentationdatasource long  n,
bool  registerchange = true
[virtual]
 

Reimplemented in hk_reportsection.

void hk_dsvisible::set_readonly bool  readonly  ) 
 

virtual bool hk_dsvisible::table_structure_changes void   )  [inline, protected, virtual]
 

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

Reimplemented in hk_dsgrid.

virtual void hk_dsvisible::widget_specific_batch_next void   )  [inline, protected, virtual]
 

virtual void hk_dsvisible::widget_specific_batch_previous void   )  [inline, protected, virtual]
 

virtual void hk_dsvisible::widget_specific_disable void   )  [inline, protected, virtual]
 

virtual void hk_dsvisible::widget_specific_enable void   )  [inline, protected, virtual]
 

virtual void hk_dsvisible::widget_specific_enable_disable void   )  [inline, protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: defines whether the widget should be enabled or disabled. Has to be rewritten for a new widget

Reimplemented in hk_kdegrid, and hk_kdesimplegrid.

virtual void hk_dsvisible::widget_specific_insert_mode void   )  [inline, protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called when the datasource will be set to insert_mode. Has to be rewritten for a new widget

See also:
before_row_change.

Reimplemented in hk_kdesimplegrid.

virtual void hk_dsvisible::widget_specific_presentationdatasource long   )  [inline, protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called before the presentationdatasource will be set

Reimplemented in hk_kdegrid.

virtual void hk_dsvisible::widget_specific_row_added void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimplegrid.

virtual bool hk_dsvisible::widget_specific_row_change void   )  [inline, protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called when the datasource has changed the row. Has to be rewritten for a new widget

See also:
before_row_change.

Reimplemented in hk_kdesimplegrid.

virtual void hk_dsvisible::widget_specific_row_deleted void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimplegrid.


Friends And Related Function Documentation

friend class hk_datasource [friend]
 


Member Data Documentation

hk_string hk_dsvisible::debug_p_columnname [protected]
 

hk_datasource* hk_dsvisible::p_datasource [protected]
 

hk_datetime hk_dsvisible::p_date [protected]
 


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