# class hk_kdeform

KDE high level widget to display and design forms. More...

Definition | `#include <hk_kdeclasses/hk_kdeclasses/hk_kdeform.h>`
Inherits | KParts::MainWindow (unknown) [public ], hk_class [public ]
List of all Methods

Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- hk_kdeform ( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 )
- virtual ~hk_kdeform ()
- hk_presentation::enum_mode mode (void)
- void set_mode (hk_presentation::enum_mode s)
- void set_viewmode (void)
- void set_designmode (void)
- hk_dsgrid* new_grid (void)
- hk_dslineedit* new_lineedit (void)
- hk_dsboolean* new_bool (void)
- hk_button* new_button (void)
- hk_dsrowselector* new_rowselector (void)
- hk_dsmemo* new_memo (void)
- void set_formsize (unsigned int width, unsigned int height)
- void set_database (hk_database* db)
- hk_database* database (void)
- list<hk_datasource*>* datasources (void)
- long new_datasource (const hk_string& name,bool query=false)
- hk_datasource* get_datasource (long nr)
- hk_kdesimpleform* simpleform (void)
- bool set_presentationdatasource (long n,bool r=true)
- long presentationdatasource (void)
- void loaddata (const hk_string& definition)
- void savedata (ofstream& s)
- void load_form (const hk_string& n)
- void set_autoclose (bool c)
- void set_nodesignmode (bool n)
- hk_kdeproperty* propertyeditor (void)

#### Protected Methods

- virtual void closeEvent ( QCloseEvent* e)
- virtual void mousePressEvent (QMouseEvent*)

#### Protected Slots

- void formbutton_clicked (void)
- void close_form (void)
- void designbutton_clicked (void)
- void fieldbutton_clicked (void)
- void field_created (void)
- void save_form (void)
- void saveas_form (void)
- void bulkfont_clicked (void)
- void bulkforegroundcolour_clicked (void)
- void bulkbackgroundcolour_clicked (void)
- void grid_partinfocus (hk_kdegridpart*)
- void grid_partoutfocus (hk_kdegridpart*)

## Detailed Description

this is a high level widget to display and design forms. It hereby uses hk_kdesimpleform. To use it set the database with set_database. If you want to show or edit an existing form load it with load_form.

hk_kdeform ( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 )

### hk_kdeform

~hk_kdeform ()

### ~hk_kdeform

[virtual]

hk_presentation::enum_mode mode (void)

### mode

void set_mode (hk_presentation::enum_mode s)

### set_mode

See hk_kdesimpleform for details

void set_viewmode (void)

### set_viewmode

void set_designmode (void)

### set_designmode

hk_dsgrid* new_grid (void)

### new_grid

See hk_kdesimpleform for details

hk_dslineedit* new_lineedit (void)

### new_lineedit

See hk_kdesimpleform for details

hk_dsboolean* new_bool (void)

### new_bool

See hk_kdesimpleform for details

hk_button* new_button (void)

### new_button

See hk_kdesimpleform for details

hk_dsrowselector* new_rowselector (void)

### new_rowselector

See hk_kdesimpleform for details

hk_dsmemo* new_memo (void)

### new_memo

See hk_kdesimpleform for details

void set_formsize (unsigned int width, unsigned int height)

### set_formsize

See hk_kdesimpleform for details

void set_database (hk_database* db)

### set_database

See hk_kdesimpleform for details

hk_database* database (void)

### database

list<hk_datasource*>* datasources (void)

### datasources

long new_datasource (const hk_string& name,bool query=false)

### new_datasource

hk_datasource* get_datasource (long nr)

### get_datasource

hk_kdesimpleform* simpleform (void)

### simpleform

returns a pointer to the internally used hk_kdesimpleform. Don't delete the object!

bool set_presentationdatasource (long n,bool r=true)

### set_presentationdatasource

if r=true the simpleform will also be set. Usually you have to leave it to "true"

long presentationdatasource (void)

### presentationdatasource

void loaddata (const hk_string& definition)

### loaddata

Reimplemented from hk_class.

void savedata (ofstream& s)

### savedata

Reimplemented from hk_class.

void load_form (const hk_string& n)

### load_form

void set_autoclose (bool c)

### set_autoclose

when the datasource vanishes (i.e. will be destroyed) and autoclose is true, the hk_kdetable will be closed otherwise it still is on your screen.

void set_nodesignmode (bool n)

### set_nodesignmode

if the designwindow should not be shown set this true. Default is false.

hk_kdeproperty* propertyeditor (void)

### propertyeditor

void closeEvent ( QCloseEvent* e)

### closeEvent

[protected virtual]

void mousePressEvent (QMouseEvent*)

### mousePressEvent

[protected virtual]

void formbutton_clicked (void)

### formbutton_clicked

[protected slots slot]

void close_form (void)

### close_form

[protected slots slot]

void designbutton_clicked (void)

### designbutton_clicked

[protected slots slot]

void fieldbutton_clicked (void)

### fieldbutton_clicked

[protected slots slot]

void field_created (void)

### field_created

[protected slots slot]

void save_form (void)

### save_form

[protected slots slot]

void saveas_form (void)

### saveas_form

[protected slots slot]

void bulkfont_clicked (void)

### bulkfont_clicked

[protected slots slot]

void bulkforegroundcolour_clicked (void)

### bulkforegroundcolour_clicked

[protected slots slot]

void bulkbackgroundcolour_clicked (void)

### bulkbackgroundcolour_clicked

[protected slots slot]

void grid_partinfocus (hk_kdegridpart*)

### grid_partinfocus

[protected slots slot]

void grid_partoutfocus (hk_kdegridpart*)

### grid_partoutfocus

[protected slots slot]

- Version: $Revision: 1.26 $
- Author: Horst Knorr (hk_classes@knoda.org)
- Generated: horst on horstnotebook on Tue Mar 30 19:06:43 2004, using kdoc 2.0a54.