# class hk_form

base class of a form. More...

Definition | `#include <hk_classes/hk_classes/hk_form.h>`
Inherits | hk_presentation [public ]
Inherited by | hk_kdesimpleform
List of all Methods

Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- hk_form (void)
- virtual ~hk_form (void)
- hk_dsgrid* new_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)
- 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_visible* get_visible (long nr)
- hk_visible* get_visible (const hk_string& identifier)
- virtual void bulk_operation (enum_bulkoperation bulkoperation)
- virtual bool set_mode (enum_mode s)

#### Protected Methods

- virtual hk_dsgrid* widget_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 void widget_specific_fieldresize (hk_visible* v)
- virtual void widget_specific_after_loadform (void)
- list<hk_visible*>* visibles (void)
- void remove_visible (hk_visible* v)
- hk_visible* new_object (const hk_string& name)
- void raise_widget (hk_visible*)
- void lower_widget (hk_visible*)
- virtual void sizetype_changed (void)

## Detailed Description

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

hk_form (void)

### hk_form

~hk_form (void)

### ~hk_form

[virtual]

hk_dsgrid* new_grid (void)

### new_grid

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_dslineedit* new_lineedit (void)

### new_lineedit

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_dsboolean* new_bool (void)

### new_bool

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_dscombobox* new_combobox (void)

### new_combobox

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_button* new_button (void)

### new_button

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_dsrowselector* new_rowselector (void)

### new_rowselector

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_dsmemo* new_memo (void)

### new_memo

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_label* new_label (void)

### new_label

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

bool save_form (const hk_string& name="",bool ask=true)

### save_form

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

void load_form (const hk_string& name="")

### load_form

load the form from a file

Parameters:

name | the name of the file

void savedata (ostream& s)

### savedata

[virtual]

Reimplemented from hk_presentation.

void loaddata (const hk_string& definition)

### loaddata

[virtual]

Reimplemented from hk_presentation.

void set_designsize (unsigned int width, unsigned int height,bool registerchange=true)

### set_designsize

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

hk_visible* get_visible (long nr)

### get_visible

hk_visible* get_visible (const hk_string& identifier)

### get_visible

void bulk_operation (enum_bulkoperation bulkoperation)

### bulk_operation

[virtual]

Reimplemented from hk_presentation.

bool set_mode (enum_mode s)

### set_mode

[virtual]

Reimplemented from hk_presentation.

hk_dsgrid* widget_specific_new_grid (void)

### widget_specific_new_grid

[protected virtual]

hk_dsrowselector* widget_specific_new_rowselector (void)

### widget_specific_new_rowselector

[protected virtual]

hk_dslineedit* widget_specific_new_lineedit (void)

### widget_specific_new_lineedit

[protected virtual]

hk_dsboolean* widget_specific_new_bool (void)

### widget_specific_new_bool

[protected virtual]

hk_button* widget_specific_new_button (void)

### widget_specific_new_button

[protected virtual]

hk_dscombobox* widget_specific_new_combobox (void)

### widget_specific_new_combobox

[protected virtual]

hk_dsmemo* widget_specific_new_memo (void)

### widget_specific_new_memo

[protected virtual]

hk_label* widget_specific_new_label (void)

### widget_specific_new_label

[protected virtual]

void widget_specific_fieldresize (hk_visible* v)

### widget_specific_fieldresize

[protected virtual]

Reimplemented from hk_presentation.

void widget_specific_after_loadform (void)

### widget_specific_after_loadform

[protected virtual]

list<hk_visible*>* visibles (void)

### visibles

[protected]

void remove_visible (hk_visible* v)

### remove_visible

[protected]

hk_visible* new_object (const hk_string& name)

### new_object

[protected]

void raise_widget (hk_visible*)

### raise_widget

[protected]

Reimplemented from hk_presentation.

void lower_widget (hk_visible*)

### lower_widget

[protected]

Reimplemented from hk_presentation.

void sizetype_changed (void)

### sizetype_changed

[protected virtual]

Reimplemented from hk_presentation.

Generated by: horst on horstnotebook on Tue Mar 30 19:06:43 2004, using kdoc 2.0a54.