Databasehandlingdialogclasses  0.5.3
hk_kdecsvexportdialog.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_KDECSVexportDIALOG_H
13 #define HK_KDECSVexportDIALOG_H
14 #include "hk_kdecsvexportdialogbase.h"
15 #include <qvariant.h>
16 #include <qdialog.h>
17 #include <hk_dsvisible.h>
18 #include <hk_datasource.h>
19 #include <hk_reportutils.h>
20 //#include <hk_string>
21 class QVBoxLayout;
22 class QHBoxLayout;
23 class QGridLayout;
24 class QCheckBox;
25 class QComboBox;
26 class QLabel;
27 class QLineEdit;
28 class QPushButton;
29 class QToolButton;
30 class QProgressDialog;
37 class hk_kdecsvexportdialog : public hk_kdecsvexportdialogbase ,public hk_reportcsv
38 {
39  Q_OBJECT
40 
41  public:
42  hk_kdecsvexportdialog(const QString& table, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
44 
45 
46  void set_usetablelist(void);
47  void set_usequerylist(void);
48  void set_useviewlist(void);
49  void set_database(hk_database* d);
50  public slots:
51  virtual void help_clicked();
52  virtual void listtype_changed();
53  virtual void morebutton_clicked();
54 
55  protected slots:
56  virtual void filebutton_clicked();
57  virtual void buttons_enabled();
58  virtual void ok_clicked(void);
59  void printing_cancelled(void);
60 
61  protected:
62 virtual void keyPressEvent ( QKeyEvent * e );
63  static bool set_progress(long int,long int,const hk_string&);
64  private:
65 // hk_exportcsv* p_export;
66  static bool p_cancelimport;
67 static QProgressDialog* p_progressdialog;
68  void set_datasourcelist(void);
69  QString p_file;
70  QString p_tablename;
71  QString p_tab;
72  datasourcetype p_datasourcetype;
73 
74 };
75 #endif // HK_KDECSVexportDIALOG_H
KDE frontend dialog to export data in CSV format.
Definition: hk_kdecsvexportdialog.h:37
Definition: hk_kdecsvexportdialogbase.h:28