Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

hk_kderelationdialog.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2004 Horst Knorr <hk_classes@knoda.org>
00003 // This file is part of the hk_kdeclasses library.
00004 // This file may be distributed and/or modified under the terms of the
00005 // GNU Library Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file LGPL included in the
00007 // packaging of this file.
00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00010 // ****************************************************************************
00011 #ifndef HK_KDERELATIONDIALOG_H
00012 #define HK_KDERELATIONDIALOG_H
00013 #include "hk_kderelationdialogbase.h"
00014 #include <hk_column.h>
00015 #include <list>
00016 class hk_kdedatasourceframe;
00017 
00018 
00019 
00020 class hk_kderelationdialog : public hk_kderelationdialogbase
00021 {
00022     Q_OBJECT
00023 
00024 public:
00025     hk_kderelationdialog( hk_kdedatasourceframe* master,hk_kdedatasourceframe* slave, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00026     ~hk_kderelationdialog();
00027     int masterindex(const QString&);
00028     int slaveindex(const QString&);
00029 
00030 public slots:
00031     virtual void ok_button_clicked();
00032     virtual void slot_data_changed(int,int);
00033   void add_row(void);
00034 
00035 protected:
00036 void keyPressEvent(QKeyEvent * );
00037 bool eventFilter(QObject* object,QEvent* event);
00038   
00039   
00040   
00041 private:
00042   void set_stringlist(QStringList* strlist,list<hk_column*>*);
00043   void set_existing_fields(void);
00044   int    textposition(QStringList* ,const hk_string&  );
00045 void delete_rows(void);
00046 hk_kdedatasourceframe* p_masterdsframe;
00047 hk_kdedatasourceframe* p_slavedsframe;
00048 QStringList             p_mastercollist;
00049 QStringList             p_slavecollist;
00050 };
00051 
00052 #endif // HK_KDERELATIONDIALOG_H

Generated on Tue Mar 22 23:28:15 2005 for Databasehandlingdialogclasses by  doxygen 1.4.1