Databasehandlingdialogclasses  0.5.3
hk_kdecsvimportdialog.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_KDECSVIMPORTDIALOG_H
13 #define HK_KDECSVIMPORTDIALOG_H
14 
15 #include <qvariant.h>
16 #include <hk_kdecsvimportdialogbase.h>
17 #include <hk_dsvisible.h>
18 #include <hk_datasource.h>
19 #include <hk_importcsv.h>
20 class QVBoxLayout;
21 class QHBoxLayout;
22 class QGridLayout;
23 class QCheckBox;
24 class QComboBox;
25 class QLabel;
26 class QLineEdit;
27 class QPushButton;
28 class QToolButton;
29 class QProgressDialog;
30 
38 class hk_kdecsvimportdialog : public hk_kdecsvimportdialogbase ,public hk_importcsv
39 {
40  Q_OBJECT
41 
42  public:
43  hk_kdecsvimportdialog( QWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
45  virtual void set_datasource(hk_datasource* d);
46 
47  public slots:
48  virtual void help_clicked();
49  virtual void morebutton_clicked();
50 
51 
52  protected slots:
53  virtual void filebutton_clicked();
54  virtual void buttons_enabled();
55  virtual void ok_clicked(void);
56  void printing_cancelled(void);
57 
58  protected:
59  virtual bool widget_specific_after_new_row(void);
60  void set_tablepreview(void);
61 virtual void keyPressEvent ( QKeyEvent * e );
62  static bool set_progress(long int,long int,const hk_string&);
63  private:
64 // hk_importcsv* p_import;
65  void before_execute(void);
66  void after_execute(void);
67  QString p_file;
68  QString p_tab;
69  static bool p_cancelimport;
70 static QProgressDialog* p_progressdialog;
71 
72 };
73 #endif // HK_KDECSVIMPORTDIALOG_H
KDE Widget frontend to import CSV data.
Definition: hk_kdecsvimportdialog.h:38
Definition: hk_kdecsvimportdialogbase.h:29