Databasehandlingdialogclasses  0.5.3
hk_kdeformdatasourcedialog.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_kdeclasses library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file LGPL included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 #ifndef HK_KDEFORMDATASOURCEDIALOG_H
12 #define HK_KDEFORMDATASOURCEDIALOG_H
13 #include "hk_kdeformdatasourcedialogbase.h"
14 class hk_presentation;
15 class hk_datasource;
18 {
19  Q_OBJECT
20 
21  public:
22  hk_kdeformdatasourcedialog( hk_presentation* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
24  void set_datasource(hk_datasource*);
25  hk_datasource* datasource(void);
26  enum enum_displaytype{d_form,d_report,d_query};
27  void set_displaytype(enum_displaytype);
28  enum_displaytype displaytype(void) const;
29  enum enum_edittype{e_all,e_modify,e_add};
30  void set_edittype(enum_edittype);
31  enum_edittype edittype(void) const ;
32  enum enum_clickedbutton {cb_add,cb_alter,cb_delete,cb_cancel};
33  enum_clickedbutton clicked_button(void) const;
34  void set_allow_delete_datasource(bool);
35  bool allow_delete_datasource(void) const;
36 
37  protected slots:
38  virtual void add_dependingfields();
39  virtual void delete_dependingfields();
40  virtual void datasource_selected();
41  virtual void set_datasourcelist();
42  virtual void dependingon_selected();
43  virtual void check_buttons();
44  virtual void delete_datasource();
45  virtual void new_datasource(void);
46  virtual void sql_changed(void);
47 
48  private:
49  void alter_datasource(void);
50  void set_datasourceinfos(bool existingdatasource);
51  void set_formdatasources();
52  void init(void);
54 };
55 #endif // HK_KDEFORMDATASOURCEDIALOG_H
Definition: hk_kdeformdatasourcedialog.h:17
Definition: hk_kdeformdatasourcedialog.cpp:33
Definition: hk_kdeformdatasourcedialogbase.h:32