Databasehandlingdialogclasses  0.5.3
Public Types | Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
hk_kdeinterpreterdialog Class Reference

KDE high level widget to define queries and see the result. More...

#include <hk_kdeinterpreterdialog.h>

Inheritance diagram for hk_kdeinterpreterdialog:
Inheritance graph
[legend]
Collaboration diagram for hk_kdeinterpreterdialog:
Collaboration graph
[legend]

Public Types

enum  DialogCode { Rejected, Accepted }
 

Public Slots

void print (void)
 
void undo (void)
 
virtual void help_clicked ()
 

Public Member Functions

 hk_kdeinterpreterdialog (QWidget *w=0, const char *n=0, WFlags f=0)
 
void set_autoclose (bool c)
 
int exec (int rownumber, const hk_string &warningmessage)
 
int result (void)
 
hk_string code ()
 
void set_code (const hk_string &, bool has_changed=true)
 
void hide ()
 
bool has_changed (void)
 
void set_caption (hk_visible *, const hk_string &action)
 

Protected Slots

virtual void done (int)
 
virtual void accept ()
 
virtual void reject ()
 
virtual void select_all ()
 
virtual void clear_selection ()
 
virtual void toggle_insert ()
 
void slot_has_changed (void)
 
void slot_undo_changed (void)
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
 
void keyPressEvent (QKeyEvent *e)
 
void setResult (int r)
 

Detailed Description

KDE high level widget to define queries and see the result.

Version
Revision
1.10
Author
Horst Knorr (hk_cl.nosp@m.asse.nosp@m.s@kno.nosp@m.da.o.nosp@m.rg)

hk_kdeinterpreterdialog is a high level widget to define queries and see the result. In this mode of development it has a field to enter the SQL query and a grid which shows the resulting data if there is any. hk_kdeinterpreterdialog also handles actionqueries correctly.

Member Function Documentation

◆ reject

void hk_kdeinterpreterdialog::reject ( void  )
protectedvirtualslot

Hides the modal dialog and sets the result code to Rejected.

See also
accept() done()

Referenced by set_autoclose().

◆ set_autoclose()

void hk_kdeinterpreterdialog::set_autoclose ( bool  c)
inline

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

References reject().


The documentation for this class was generated from the following files: