00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef HK_KDETABLE_H
00013 #define HK_KDETABLE_H
00014
00015 #include <kparts/dockmainwindow.h>
00016 #include <kparts/partmanager.h>
00017 #include <qvariant.h>
00018 #include <qwidget.h>
00019
00020 #include <hk_dstable.h>
00021 #include "hk_kdetablepartwidget.h"
00022
00023 class hk_kdegrid;
00024 class hk_kdegridpart;
00025 class QVBoxLayout;
00026 class QHBoxLayout;
00027 class QGridLayout;
00028 class QButtonGroup;
00029 class QTable;
00030 class hk_kdetoolbar;
00031
00043 class hk_kdetable : public KParts::DockMainWindow ,public hk_dstable
00044 {
00045 Q_OBJECT
00046
00047 public:
00048 hk_kdetable(QWidget* w=0,const char* n=0,WFlags f=0);
00049 virtual ~hk_kdetable();
00050 virtual bool set_mode(enum_mode s);
00051
00055 bool in_designmode(void);
00056 virtual void set_datasource(hk_datasource*);
00057
00058 void set_autoclose(bool c);
00063 signals:
00064 void signal_closed(QWidget*);
00065
00066 protected slots:
00067 void part_removed(void);
00068 void close_table(void);
00069
00070 protected:
00071 void closeEvent ( QCloseEvent* e);
00072
00073 private:
00074 KAction* p_closeaction;
00075 void set_caption(void);
00076
00077 KParts::ReadWritePart* p_part;
00078 KParts::PartManager* p_partmanager;
00079 hk_kdetablepartwidget* p_table;
00080
00081
00082 };
00083 #endif // HK_KDETABLE_H