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

hk_kdeform Class Reference

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

#include <hk_kdeform.h>

Inheritance diagram for hk_kdeform:

hk_class List of all members.

Signals

void signal_closed (QWidget *)

Public Member Functions

 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_dsgridnew_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)
hk_subformnew_subform (void)
void set_formsize (unsigned int width, unsigned int height)
void set_database (hk_database *db)
hk_databasedatabase (void)
list< hk_datasource * > * datasources (void)
long new_datasource (const hk_string &name, datasourcetype dt=dt_table)
hk_datasourceget_datasource (long nr)
hk_kdesimpleformsimpleform (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)
void save_form_when_changed (void)
hk_kdeproperty * propertyeditor (void)

Protected Slots

void part_removed (void)
void grid_partinfocus (hk_kdegridpart *)
void grid_partoutfocus (hk_kdegridpart *)
void close_form (void)

Protected Member Functions

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

Protected Attributes

KAction * p_closeaction

Friends

class hk_kdesimpleform

Detailed Description

KDE high level widget to display and design forms.

Author:
Horst Knorr (hk_classes@knoda.org)
Version:
Revision
1.34
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.


Constructor & Destructor Documentation

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

virtual hk_kdeform::~hk_kdeform  )  [virtual]
 


Member Function Documentation

void hk_kdeform::close_form void   )  [protected, slot]
 

virtual void hk_kdeform::closeEvent QCloseEvent *  e  )  [protected, virtual]
 

hk_database* hk_kdeform::database void   ) 
 

list<hk_datasource*>* hk_kdeform::datasources void   ) 
 

hk_datasource* hk_kdeform::get_datasource long  nr  ) 
 

void hk_kdeform::grid_partinfocus hk_kdegridpart *   )  [protected, slot]
 

void hk_kdeform::grid_partoutfocus hk_kdegridpart *   )  [protected, slot]
 

void hk_kdeform::load_form const hk_string n  ) 
 

void hk_kdeform::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_class.

hk_presentation::enum_mode hk_kdeform::mode void   ) 
 

virtual void hk_kdeform::mousePressEvent QMouseEvent *   )  [protected, virtual]
 

hk_dsboolean* hk_kdeform::new_bool void   ) 
 

See hk_kdesimpleform for details

hk_button* hk_kdeform::new_button void   ) 
 

See hk_kdesimpleform for details

long hk_kdeform::new_datasource const hk_string name,
datasourcetype  dt = dt_table
 

hk_dsgrid* hk_kdeform::new_grid void   ) 
 

See hk_kdesimpleform for details

hk_dslineedit* hk_kdeform::new_lineedit void   ) 
 

See hk_kdesimpleform for details

hk_dsmemo* hk_kdeform::new_memo void   ) 
 

See hk_kdesimpleform for details

hk_dsrowselector* hk_kdeform::new_rowselector void   ) 
 

See hk_kdesimpleform for details

hk_subform* hk_kdeform::new_subform void   ) 
 

void hk_kdeform::part_removed void   )  [protected, slot]
 

long hk_kdeform::presentationdatasource void   ) 
 

hk_kdeproperty* hk_kdeform::propertyeditor void   ) 
 

void hk_kdeform::save_form_when_changed void   ) 
 

void hk_kdeform::savedata ofstream &  s  ) 
 

void hk_kdeform::set_autoclose bool  c  ) 
 

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

void hk_kdeform::set_database hk_database db  ) 
 

See hk_kdesimpleform for details

void hk_kdeform::set_designmode void   ) 
 

void hk_kdeform::set_formsize unsigned int  width,
unsigned int  height
 

See hk_kdesimpleform for details

void hk_kdeform::set_mode hk_presentation::enum_mode  s  ) 
 

See hk_kdesimpleform for details

void hk_kdeform::set_nodesignmode bool  n  ) 
 

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

bool hk_kdeform::set_presentationdatasource long  n,
bool  r = true
 

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

void hk_kdeform::set_viewmode void   ) 
 

void hk_kdeform::signal_closed QWidget *   )  [signal]
 

hk_kdesimpleform* hk_kdeform::simpleform void   ) 
 

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


Friends And Related Function Documentation

friend class hk_kdesimpleform [friend]
 


Member Data Documentation

KAction* hk_kdeform::p_closeaction [protected]
 


The documentation for this class was generated from the following file:
Generated on Thu Mar 9 18:40:42 2006 for hk_classes by  doxygen 1.4.1