Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

hk_kdeformdatasourcedialog.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2004 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 #ifndef HK_KDEFORMDATASOURCEDIALOG_H
00012 #define HK_KDEFORMDATASOURCEDIALOG_H
00013 #include "hk_kdeformdatasourcedialogbase.h"
00014 class hk_presentation;
00015 class hk_datasource;
00016 class hk_kdeformdatasourcedialogprivate;
00017 class hk_kdeformdatasourcedialog : public hk_kdeformdatasourcebasedialog
00018 {
00019     Q_OBJECT
00020 
00021         public:
00022         hk_kdeformdatasourcedialog( hk_presentation* form, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00023         ~hk_kdeformdatasourcedialog();
00024         void set_datasource(hk_datasource*);
00025         hk_datasource* datasource(void);
00026         enum enum_displaytype{d_form,d_report,d_query};
00027         void set_displaytype(enum_displaytype);
00028         enum_displaytype displaytype(void) const;
00029         enum enum_edittype{e_all,e_modify,e_add};
00030         void set_edittype(enum_edittype);
00031         enum_edittype edittype(void) const ;
00032         enum enum_clickedbutton {cb_add,cb_alter,cb_delete,cb_cancel};
00033         enum_clickedbutton clicked_button(void) const;
00034         void set_allow_delete_datasource(bool);
00035         bool allow_delete_datasource(void) const;
00036 
00037     protected slots:
00038         virtual void add_dependingfields();
00039         virtual void delete_dependingfields();
00040         virtual void datasource_selected();
00041         virtual void set_datasourcelist();
00042         virtual void dependingon_selected();
00043         virtual void check_buttons();
00044         virtual void delete_datasource();
00045         virtual void new_datasource(void);
00046         virtual void sql_changed(void);
00047 
00048     private:
00049         void alter_datasource(void);
00050         void set_datasourceinfos(bool existingdatasource);
00051         void set_formdatasources();
00052         void init(void);
00053         hk_kdeformdatasourcedialogprivate* p_private;
00054 };
00055 #endif                                            // HK_KDEFORMDATASOURCEDIALOG_H

Generated on Tue Mar 22 23:28:15 2005 for Databasehandlingdialogclasses by  doxygen 1.4.1