// ****************************************************************************
// copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>  
// This file is part of the hk_kdeclasses library.
// This file may be distributed and/or modified under the terms of the
// GNU Library Public License version 2 as published by the Free Software
// Foundation and appearing in the file LGPL included in the
// packaging of this file.
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// ****************************************************************************

#ifndef hk_kdeqbePART
#define hk_kdeqbePART
#include <kparts/genericfactory.h>
#include <kparts/part.h>
#include "../hk_kdeclasses/hk_kdeqbe.h"

class hk_drivermanager;
class hk_kdeqbepartprivate;

class hk_kdeqbepart : public KParts::ReadWritePart
{
    Q_OBJECT
        public:
        hk_kdeqbepart(QWidget* parentWidget, const char* widgetname,QObject* parent, const char* name, const QStringList &args);
        virtual ~hk_kdeqbepart();
        static KAboutData* createAboutData();
        virtual void setReadWrite(bool rw);
        hk_kdeqbe* dbdesigner(void);
    protected:
        virtual bool openFile();
        virtual bool saveFile();

    protected slots:
//        virtual void show_dbdesignercolumndialog(void);
   	virtual void add_action(void);
   	virtual void qbetypeselect_action(int);
   	virtual void distinct_action(void);
	virtual void qbetypechange_action(void);
    private:
      hk_kdeqbepartprivate* p_private;

};


#endif
