Databasehandlingdialogclasses  0.5.3
hk_kdesubformdialog.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_KDESUBFORMDIALOG_H
12 #define HK_KDESUBFORMDIALOG_H
13 #include "hk_kderelationdialogbase.h"
14 #include <hk_column.h>
15 #include <list>
17 class hk_subform;
18 class hk_form;
19 
20 
22 {
23  Q_OBJECT
24 
25 public:
26  hk_kdesubformdialog( hk_subform*, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
28  int masterindex(const QString&);
29  int slaveindex(const QString&);
30 
31 public slots:
32  virtual void ok_button_clicked();
33  virtual void slot_data_changed(int,int);
34  void add_row(void);
35 
36 protected:
37 void keyPressEvent(QKeyEvent * );
38 bool eventFilter(QObject* object,QEvent* event);
39 
40 
41 
42 private:
43  void set_stringlist(QStringList* strlist,list<hk_column*>*);
44  void set_existing_fields(void);
45  int textposition(QStringList* ,const hk_string& );
46 void delete_rows(void);
47 hk_datasource* p_masterds;
48 hk_datasource* p_slaveds;
49 hk_subform* p_subform;
50 hk_form* p_form;
51 QStringList p_mastercollist;
52 QStringList p_slavecollist;
53 };
54 
55 #endif // hk_kdesubformdialog_H
Definition: hk_kdedbdesigner.h:133
Definition: hk_kderelationdialogbase.h:30
Definition: hk_kdesubformdialog.h:21