Databasehandlingdialogclasses  0.5.3
hk_kdetable.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 
12 #ifndef HK_KDETABLE_H
13 #define HK_KDETABLE_H
14 
15 #include <kparts/dockmainwindow.h>
16 #include <kparts/partmanager.h>
17 #include <qvariant.h>
18 #include <qwidget.h>
19 //#include <qwidgetstack.h>
20 #include <hk_dstable.h>
21 #include "hk_kdetablepartwidget.h"
22 
23 class hk_kdegrid;
24 class hk_kdegridpart;
25 class QVBoxLayout;
26 class QHBoxLayout;
27 class QGridLayout;
28 class QButtonGroup;
29 class QTable;
30 class hk_kdetoolbar;
31 
43 class hk_kdetable : public KParts::DockMainWindow ,public hk_dstable
44 {
45  Q_OBJECT
46 
47  public:
48  hk_kdetable(QWidget* w=0,const char* n=0,WFlags f=0);
49  virtual ~hk_kdetable();
50  virtual bool set_mode(enum_mode s);
51 
55  bool in_designmode(void);
56  virtual void set_datasource(hk_datasource*);
57 
58  void set_autoclose(bool c);
63  signals:
64  void signal_closed(QWidget*);
65 
66  protected slots:
67  void part_removed(void);
68  void close_table(void);
69 
70  protected:
71  void closeEvent ( QCloseEvent* e);
72 
73  private:
74  KAction* p_closeaction;
75  void set_caption(void);
76 
77  KParts::ReadWritePart* p_part;
78  KParts::PartManager* p_partmanager;
79  hk_kdetablepartwidget* p_table;
80 
81 
82 };
83 #endif // HK_KDETABLE_H
void signal_closed(QWidget *)
bool in_designmode(void)
Definition: hk_kdetable.cpp:171
KDE high level widget to display and alter tables.
Definition: hk_kdetablepartwidget.h:45
Definition: hk_kdetoolbar.h:26
KDE high level widget to display and alter tables.
Definition: hk_kdetable.h:43
shows data in a grid without columnheaders.
Definition: hk_kdegrid.h:45