Databasehandlingdialogclasses  0.5.3
hk_kdeqbe.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_classes 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 COPYING 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_KDEQBE
12 #define HK_KDEQBE
13 #include <kparts/mainwindow.h>
14 #include <hk_qbe.h>
15 
16 class hk_kdeqbeprivate;
17 
18 class hk_kdeqbe:public KParts::MainWindow ,public hk_qbe
19 {
20 Q_OBJECT
21 public:
22  hk_kdeqbe(QWidget* w=0,const char* n=0,WFlags f=0);
23  ~hk_kdeqbe();
24  virtual void set_datasource(hk_datasource*);
25  void set_database(hk_database*);
26  virtual void loaddata(xmlNodePtr definition);
27 
28 public slots:
29 void add_datasource(void);
30 void value_changed(int row, int col);
31 void datasourcedefiniton_changed(void);
32 void set_columnvalues(void);
33 void slot_has_changed(void);
34 void add_column(int pos, int table, const hk_string& columnname);
35 void add_column(int table, const hk_string& columnname);
36 void distinct_changed(void);
37 signals:
38 void signal_qbe_has_changed(void);
39 void signal_qbetype_has_changed(void);
40 void signal_distinct_has_changed(void);
41 protected:
42 virtual void set_has_changed(void);
43 virtual void widget_specific_querytype_has_changed(enum_querytype oldtype,enum_querytype newtype);
44 
45 private:
46 hk_kdeqbeprivate* p_private;
47 void set_tablenames(void);
48 void set_tablenamelist(void);
49 void set_columnnames(int col);
50 void init_column(int col);
51 void init_tablenames(int col);
52 };
53 
54 
55 
56 
57 
58 
59 #endif //HK_KDEQBE
Definition: hk_kdeqbe.h:18
Definition: hk_kdeqbe.cpp:199