Databasehandlingdialogclasses  0.5.3
hk_kdeindexeditwindow.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 General 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 
12 #ifndef HK_KDEINDEXEDITDIALOG_H
13 #define HK_KDEINDEXEDITDIALOG_H
14 
15 #include <qvariant.h>
16 #include <qwidget.h>
17 #include <hk_datasource.h>
18 #include <hk_dsvisible.h>
19 class QVBoxLayout;
20 class QHBoxLayout;
21 class QGridLayout;
22 class QButtonGroup;
23 class QCheckBox;
24 class QLabel;
25 class QLineEdit;
26 class QListBox;
27 class QListBoxItem;
28 class QPushButton;
29 class QToolButton;
39 class hk_kdeindexeditdialog : public QWidget, public hk_dsvisible
40 {
41  Q_OBJECT
42 
43  public:
44  hk_kdeindexeditdialog( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
46 
47  public slots:
48  virtual void addbutton_clicked();
49  virtual void deletebutton_clicked();
50  virtual void exitbutton_clicked();
51  virtual void okbutton_clicked();
52  virtual void set_indexvalues(const hk_string& name,bool unique,list<hk_string>& fields,bool newindex=false);
53  virtual void check_enablebuttons(void);
54  virtual void listentries_changed();
55  protected:
56  virtual void before_source_vanishes(void);
57  QHBoxLayout* hk_kdeindexeditdialogLayout;
58  QVBoxLayout* Layout4;
59  QVBoxLayout* Layout7;
60  QVBoxLayout* Layout2;
61  QVBoxLayout* Layout5;
62  QVBoxLayout* Layout13;
63  QVBoxLayout* Layout11;
64  QHBoxLayout* Layout12;
65  QVBoxLayout* ButtonGroup7Layout;
66  bool p_changed;
67  bool in_list(const hk_string& f,list<hk_string>& l);
68  QLabel* TextLabel1_2;
69  QListBox* dsfieldlist;
70  QToolButton* addbutton;
71  QToolButton* deletebutton;
72  QLabel* TextLabel2_2;
73  QListBox* indexfieldlist;
74  QLabel* TextLabel1;
75  QLineEdit* indexnamefield;
76  QLabel* TextLabel2;
77  QCheckBox* uniquefield;
78  QButtonGroup* ButtonGroup7;
79  QPushButton* storebutton;
80  QPushButton* exitbutton;
81 
82 };
83 #endif // HK_KDEINDEXEDITDIALOG_H
Definition: hk_kderowselector.cpp:132
Definition: hk_kderowselector.cpp:97
KDE widget to create and alter indices of a table.
Definition: hk_kdeindexeditwindow.h:39
Definition: hk_kderowselector.cpp:114