SciDAVis  1.D4
ExportDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : ExportDialog.h
3  Project : SciDAVis
4  --------------------------------------------------------------------
5  Copyright : (C) 2006 by Ion Vasilief, Tilman Benkert
6  Email (use @ for *) : ion_vasilief*yahoo.fr, thzs*gmx.net
7  Description : Export ASCII dialog
8 
9  ***************************************************************************/
10 
11 /***************************************************************************
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * *
18  * This program is distributed in the hope that it will be useful, *
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21  * GNU General Public License for more details. *
22  * *
23  * You should have received a copy of the GNU General Public License *
24  * along with this program; if not, write to the Free Software *
25  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26  * Boston, MA 02110-1301 USA *
27  * *
28  ***************************************************************************/
29 #ifndef EXPORTDIALOG_H
30 #define EXPORTDIALOG_H
31 
32 #include <QDialog>
33 class QPushButton;
34 class QCheckBox;
35 class QComboBox;
36 
38 class ExportDialog : public QDialog
39 {
40  Q_OBJECT
41 
42 public:
43 
45 
49  ExportDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
51  ~ExportDialog();
52 
53 private:
54  QPushButton* buttonOk;
55  QPushButton* buttonCancel;
56  QPushButton* buttonHelp;
57  QCheckBox* boxNames;
58  QCheckBox* boxSelection;
59  QCheckBox* boxAllTables;
60  QComboBox* boxSeparator;
61  QComboBox* boxTable;
62 
63 public slots:
65  void setColumnSeparator(const QString& sep);
67  void setTableNames(const QStringList& names);
69  void setActiveTableName(const QString& name);
70 
71 private slots:
73 
77  void enableTableName(bool ok);
78 
79 protected slots:
81  void accept();
83  void help();
84 
85 signals:
87 
93  void exportTable(const QString& tableName, const QString& separator, bool exportColumnNames, bool exportSelection);
95 
100  void exportAllTables(const QString& separator, bool exportColumnNames, bool exportSelection);
101 
102 };
103 
104 #endif // ExportDialog_H