00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef HK_KDEREPORTCONDITIONDIALOG_H
00013 #define HK_KDEREPORTCONDITIONDIALOG_H
00014 #include "hk_kdereportconditiondialogbase.h"
00015 #include <hk_string.h>
00016 class hk_form;
00017 class hk_button;
00018
00019 class hk_kdereportconditiondialog : public hk_kdereportconditiondialogbase
00020 {
00021 Q_OBJECT
00022
00023 public:
00024 hk_kdereportconditiondialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00025 ~hk_kdereportconditiondialog();
00026 enum enum_type{form,report};
00027 void set_values(hk_button* button, hk_form* form,const hk_string& r, enum_type t=report);
00028 public slots:
00029 void add_clicked();
00030 void delete_clicked();
00031 void formdatasource_changed();
00032 void check_buttons(void);
00033 virtual void formfield_change();
00034 virtual void reportfield_changed();
00035 protected slots:
00036 virtual void accept(void);
00037
00038 private:
00039 void set_reportvalues(void);
00040 void set_formvalues(void);
00041 void set_formdatasources(void);
00042 void set_formfields(void);
00043 void set_buttonvalues(void);
00044 hk_form* p_form;
00045 hk_button* p_button;
00046 hk_string p_report;
00047 };
00048 #endif // HK_KDEREPORTCONDITIONDIALOG_H