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

hk_kdeindexeditwindow.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 General Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file COPYING 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 
00012 #ifndef HK_KDEINDEXEDITDIALOG_H
00013 #define HK_KDEINDEXEDITDIALOG_H
00014 
00015 #include <qvariant.h>
00016 #include <qwidget.h>
00017 #include <hk_datasource.h>
00018 #include <hk_dsvisible.h>
00019 class QVBoxLayout;
00020 class QHBoxLayout;
00021 class QGridLayout;
00022 class QButtonGroup;
00023 class QCheckBox;
00024 class QLabel;
00025 class QLineEdit;
00026 class QListBox;
00027 class QListBoxItem;
00028 class QPushButton;
00029 class QToolButton;
00039 class hk_kdeindexeditdialog : public QWidget, public hk_dsvisible
00040 {
00041     Q_OBJECT
00042 
00043         public:
00044         hk_kdeindexeditdialog( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00045         ~hk_kdeindexeditdialog();
00046 
00047     public slots:
00048         virtual void addbutton_clicked();
00049         virtual void deletebutton_clicked();
00050         virtual void exitbutton_clicked();
00051         virtual void okbutton_clicked();
00052         virtual void set_indexvalues(const hk_string& name,bool unique,list<hk_string>& fields,bool newindex=false);
00053         virtual void check_enablebuttons(void);
00054         virtual void listentries_changed();
00055     protected:
00056         virtual void before_source_vanishes(void);
00057         QHBoxLayout* hk_kdeindexeditdialogLayout;
00058         QVBoxLayout* Layout4;
00059         QVBoxLayout* Layout7;
00060         QVBoxLayout* Layout2;
00061         QVBoxLayout* Layout5;
00062         QVBoxLayout* Layout13;
00063         QVBoxLayout* Layout11;
00064         QHBoxLayout* Layout12;
00065         QVBoxLayout* ButtonGroup7Layout;
00066         bool p_changed;
00067         bool in_list(const hk_string& f,list<hk_string>& l);
00068         QLabel* TextLabel1_2;
00069         QListBox* dsfieldlist;
00070         QToolButton* addbutton;
00071         QToolButton* deletebutton;
00072         QLabel* TextLabel2_2;
00073         QListBox* indexfieldlist;
00074         QLabel* TextLabel1;
00075         QLineEdit* indexnamefield;
00076         QLabel* TextLabel2;
00077         QCheckBox* uniquefield;
00078         QButtonGroup* ButtonGroup7;
00079         QPushButton* storebutton;
00080         QPushButton* exitbutton;
00081 
00082 };
00083 #endif                                            // HK_KDEINDEXEDITDIALOG_H

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