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

hk_form Class Reference

base class for forms More...

#include <hk_form.h>

Inheritance diagram for hk_form:

hk_presentation hk_kdesimpleform List of all members.

Public Member Functions

 hk_form (void)
virtual ~hk_form (void)
hk_dsgridnew_grid (void)
hk_dslineedit * new_lineedit (void)
hk_dsboolean * new_bool (void)
hk_dscombobox * new_combobox (void)
hk_button * new_button (void)
hk_dsrowselector * new_rowselector (void)
hk_dsmemo * new_memo (void)
hk_label * new_label (void)
hk_subformnew_subform (void)
hk_dsdate * new_date (void)
hk_dsimage * new_image (void)
hk_tabvisible * new_tabvisible (void)
bool save_form (const hk_string &name="", bool ask=true)
void load_form (const hk_string &name="")
virtual void savedata (ostream &s)
virtual void loaddata (const hk_string &definition)
virtual void set_designsize (unsigned int width, unsigned int height, bool registerchange=true)
hk_visibleget_visible (long nr)
hk_visibleget_visible (const hk_string &identifier)
virtual void bulk_operation (enum_bulkoperation bulkoperation)
virtual bool set_mode (enum_mode s)
hk_formmasterform (void) const
void clear_visiblelist (void)
void set_taborder (list< int > t, bool registerchange=true, bool forcesetting=true)
list< int > taborder () const
hk_visibletaborder_previous (hk_visible *)
hk_visibletaborder_next (hk_visible *)
hk_visiblefirst_tabobject ()
hk_visiblelast_tabobject ()
virtual void goto_taborder_next ()
virtual void goto_taborder_previous ()
virtual void goto_taborder_first ()
virtual void goto_taborder_last ()
virtual void set_focus (hk_visible *)
list< hk_visible * > * visibles (void)
bool is_subform () const
virtual bool is_subpresentation (void)
virtual bool show_asdialog (hk_form *parentform=NULL)
virtual int screen_width ()
virtual int screen_height ()
bool while_load_form (void) const
virtual bool while_loading (void)

Protected Member Functions

void set_masterform (hk_form *)
virtual hk_dsgridwidget_specific_new_grid (void)
virtual hk_dsrowselector * widget_specific_new_rowselector (void)
virtual hk_dslineedit * widget_specific_new_lineedit (void)
virtual hk_dsboolean * widget_specific_new_bool (void)
virtual hk_button * widget_specific_new_button (void)
virtual hk_dscombobox * widget_specific_new_combobox (void)
virtual hk_dsmemo * widget_specific_new_memo (void)
virtual hk_label * widget_specific_new_label (void)
virtual hk_subformwidget_specific_new_subform (void)
virtual hk_dsdate * widget_specific_new_date (void)
virtual hk_dsimage * widget_specific_new_image (void)
virtual hk_tabvisible * widget_specific_new_tabvisible (void)
virtual void widget_specific_fieldresize (hk_visible *v)
virtual void widget_specific_after_loadform (void)
void remove_visible (hk_visible *v)
hk_visiblenew_object (const hk_string &name)
void raise_widget (hk_visible *)
void lower_widget (hk_visible *)
virtual void sizetype_changed (void)
void set_subformobject (hk_subform *)
hk_subformsubformobject () const

Friends

class hk_dsvisible
class hk_visible
class hk_subform

Detailed Description

base class for forms

base class of a form.To use it set a database with set_database() first. To create a form it has to be in mode "design".


Constructor & Destructor Documentation

hk_form::hk_form void   ) 
 

virtual hk_form::~hk_form void   )  [virtual]
 


Member Function Documentation

virtual void hk_form::bulk_operation enum_bulkoperation  bulkoperation  )  [virtual]
 

Reimplemented from hk_presentation.

void hk_form::clear_visiblelist void   ) 
 

resets the internal visible objects list and deletes all visible objects

hk_visible* hk_form::first_tabobject  ) 
 

hk_visible* hk_form::get_visible const hk_string identifier  ) 
 

hk_visible* hk_form::get_visible long  nr  ) 
 

virtual void hk_form::goto_taborder_first  )  [inline, virtual]
 

will move the the focus to the first widget (see set_taborder )

Reimplemented in hk_kdesimpleform.

virtual void hk_form::goto_taborder_last  )  [inline, virtual]
 

will move the the focus to the last widget (see set_taborder )

Reimplemented in hk_kdesimpleform.

virtual void hk_form::goto_taborder_next  )  [inline, virtual]
 

will move the the focus to the next widget (see set_taborder )

Reimplemented in hk_kdesimpleform.

virtual void hk_form::goto_taborder_previous  )  [inline, virtual]
 

will move the the focus to the previous widget (see set_taborder )

Reimplemented in hk_kdesimpleform.

bool hk_form::is_subform  )  const
 

virtual bool hk_form::is_subpresentation void   )  [virtual]
 

Reimplemented from hk_presentation.

hk_visible* hk_form::last_tabobject  ) 
 

void hk_form::load_form const hk_string name = ""  ) 
 

load the form from a file

Parameters:
name the name of the file

Reimplemented in hk_kdesimpleform.

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

Reimplemented from hk_presentation.

void hk_form::lower_widget hk_visible  )  [protected, virtual]
 

Reimplemented from hk_presentation.

hk_form* hk_form::masterform void   )  const
 

if this is a subform it will return master form it belongs to

hk_dsboolean* hk_form::new_bool void   ) 
 

the form has to be in design mode to use this function! The function will create a new bool field in the upper left corner.

Returns:
the new created object if successful else NULL

hk_button* hk_form::new_button void   ) 
 

the form has to be in design mode to use this function! The function will create a new button in the upper left corner.

Returns:
the new created object if successful else NULL

hk_dscombobox* hk_form::new_combobox void   ) 
 

the form has to be in design mode to use this function! The function will create a new combobox in the upper left corner.

Returns:
the new created object if successful else NULL

hk_dsdate* hk_form::new_date void   ) 
 

hk_dsgrid* hk_form::new_grid void   ) 
 

the form has to be in design mode to use this function! The function will create a new grid in the upper left corner.

Returns:
the new created object if successful else NULL

hk_dsimage* hk_form::new_image void   ) 
 

hk_label* hk_form::new_label void   ) 
 

the form has to be in design mode to use this function! The function will create a new textlabel in the upper left corner.

Returns:
the new created object if successful else NULL

hk_dslineedit* hk_form::new_lineedit void   ) 
 

the form has to be in design mode to use this function! The function will create a new lineeidt field in the upper left corner.

Returns:
the new created object if successful else NULL

hk_dsmemo* hk_form::new_memo void   ) 
 

the form has to be in design mode to use this function! The function will create a new memofield in the upper left corner.

Returns:
the new created object if successful else NULL

hk_visible* hk_form::new_object const hk_string name  )  [protected]
 

hk_dsrowselector* hk_form::new_rowselector void   ) 
 

the form has to be in design mode to use this function! The function will create a new row selector in the upper left corner.

Returns:
the new created object if successful else NULL

hk_subform* hk_form::new_subform void   ) 
 

hk_tabvisible* hk_form::new_tabvisible void   ) 
 

void hk_form::raise_widget hk_visible  )  [protected, virtual]
 

Reimplemented from hk_presentation.

void hk_form::remove_visible hk_visible v  )  [protected]
 

bool hk_form::save_form const hk_string name = "",
bool  ask = true
 

save the form to a file

Parameters:
name the name of the file
ask if true and the form already exists you will be asked before the old form will be overwritten
Returns:
true if successful else false

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

Reimplemented from hk_presentation.

virtual int hk_form::screen_height  )  [virtual]
 

Reimplemented in hk_kdesimpleform.

virtual int hk_form::screen_width  )  [virtual]
 

Reimplemented in hk_kdesimpleform.

virtual void hk_form::set_designsize unsigned int  width,
unsigned int  height,
bool  registerchange = true
[virtual]
 

sets the real size of the form. If you designed a form in i.e. 800x600 resolution and want to watch it with 1024x768 resolution, set this to 1024x768. Dynamic sized visible objects will be resized. All objects will be positioned new.

Reimplemented from hk_presentation.

virtual void hk_form::set_focus hk_visible  )  [inline, virtual]
 

will set the focus to the visible object

Reimplemented in hk_kdesimpleform.

void hk_form::set_masterform hk_form  )  [protected]
 

virtual bool hk_form::set_mode enum_mode  s  )  [virtual]
 

Reimplemented from hk_presentation.

Reimplemented in hk_kdesimpleform.

void hk_form::set_subformobject hk_subform  )  [protected]
 

void hk_form::set_taborder list< int >  t,
bool  registerchange = true,
bool  forcesetting = true
 

sets the tab order (the focus order) of the widgets.

Parameters:
t list of the presentation numbers of the widgets, which should get the focus

virtual bool hk_form::show_asdialog hk_form parentform = NULL  )  [inline, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual void hk_form::sizetype_changed void   )  [protected, virtual]
 

Reimplemented from hk_presentation.

hk_subform* hk_form::subformobject  )  const [protected]
 

list<int> hk_form::taborder  )  const
 

hk_visible* hk_form::taborder_next hk_visible  ) 
 

hk_visible* hk_form::taborder_previous hk_visible  ) 
 

list<hk_visible*>* hk_form::visibles void   ) 
 

bool hk_form::while_load_form void   )  const
 

virtual bool hk_form::while_loading void   )  [virtual]
 

Reimplemented from hk_presentation.

virtual void hk_form::widget_specific_after_loadform void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual void hk_form::widget_specific_fieldresize hk_visible v  )  [protected, virtual]
 

Reimplemented from hk_presentation.

Reimplemented in hk_kdesimpleform.

virtual hk_dsboolean* hk_form::widget_specific_new_bool void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_button* hk_form::widget_specific_new_button void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_dscombobox* hk_form::widget_specific_new_combobox void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_dsdate* hk_form::widget_specific_new_date void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_dsgrid* hk_form::widget_specific_new_grid void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_dsimage* hk_form::widget_specific_new_image void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_label* hk_form::widget_specific_new_label void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_dslineedit* hk_form::widget_specific_new_lineedit void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_dsmemo* hk_form::widget_specific_new_memo void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_dsrowselector* hk_form::widget_specific_new_rowselector void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_subform* hk_form::widget_specific_new_subform void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.

virtual hk_tabvisible* hk_form::widget_specific_new_tabvisible void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform.


Friends And Related Function Documentation

friend class hk_dsvisible [friend]
 

Reimplemented from hk_presentation.

friend class hk_subform [friend]
 

friend class hk_visible [friend]
 

Reimplemented from hk_presentation.


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