Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

hk_kdeclasses/hk_kdeclasses/hk_kdetable.h

Go to the documentation of this file.
00001 // ****************************************************************************
00002 // copyright (c) 2000-2005 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 
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 //#include <qwidgetstack.h>
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

Generated on Thu Mar 9 18:40:41 2006 for hk_classes by  doxygen 1.4.1