Databasehandlingdialogclasses  0.5.3
hk_kderelationdialog.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_KDERELATIONDIALOG_H
12 #define HK_KDERELATIONDIALOG_H
13 #include "hk_kderelationdialogbase.h"
14 #include <hk_column.h>
15 #include <list>
17 class hk_kdedbdesigner;
18 class hk_kdedbrelation;
19 
20 
22 {
23  Q_OBJECT
24 
25 public:
26  hk_kderelationdialog( hk_kdedatasourceframe* master,hk_kdedatasourceframe* slave, hk_kdedbdesigner* parent,hk_kdedbrelation* r=NULL , const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
28  int masterindex(const QString&);
29  int slaveindex(const QString&);
30  bool set_relation(void);
31  void set_referentialintegrity(void);
32 public slots:
33  virtual void ok_button_clicked();
34  virtual void slot_data_changed(int,int);
35  void add_row(void);
36 
37 protected:
38 void keyPressEvent(QKeyEvent * );
39 bool eventFilter(QObject* object,QEvent* event);
40 
41 
42 
43 private:
44  void set_stringlist(QStringList* strlist,list<hk_string>*);
45  void set_existing_fields(void);
46  void set_existing_refintegrityfields(void);
47  int textposition(QStringList* ,const hk_string& );
48 void delete_rows(void);
49 hk_kdedatasourceframe* p_masterdsframe;
50 hk_kdedatasourceframe* p_slavedsframe;
51 QStringList p_mastercollist;
52 QStringList p_slavecollist;
53 hk_kdedbdesigner* p_designer;
54 hk_kdedbrelation* p_relation;
55 };
56 
57 #endif // HK_KDERELATIONDIALOG_H
Definition: hk_kdedbdesigner.h:33
Definition: hk_kdedbdesigner.h:133
Definition: hk_kderelationdialogbase.h:30
Definition: hk_kdedbdesigner.h:170
Definition: hk_kderelationdialog.h:21