hk_dsvisible Class Reference

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

#include <hk_dsvisible.h>

Inheritance diagram for hk_dsvisible:

Inheritance graph
[legend]
Collaboration diagram for hk_dsvisible:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 hk_dsvisible (hk_presentation *presentation=NULL)
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 (xmlNodePtr 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 hk_string tag_value (int tagnumber, bool &ok)
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.39
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.


Member Function Documentation

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_button, hk_dscombobox, hk_dsdatavisible, hk_dsgrid, hk_dsgridcolumn, and hk_subform.

void hk_dsvisible::loaddata ( xmlNodePtr  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_button, hk_dscombobox, hk_dsdatavisible, hk_dsgrid, hk_dsgridcolumn, and hk_subform.

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_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_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

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_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_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_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

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.

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_dscombobox.

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

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

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

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

Reimplemented in hk_dscombobox, hk_dsdatavisible, and hk_dsgrid.

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

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

Reimplemented in hk_dscombobox, hk_dsdatavisible, and hk_dsgrid.

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.

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.

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 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.

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::widget_specific_presentationdatasource ( long   )  [inline, protected, virtual]

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


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 02:48:28 2006 for Databaseconnectionclasses by  doxygen 1.5.0