QtiPlot  0.9.8.2
ExtractDataDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : ExtractDataDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2010 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : Extract data values 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 EXTRACTDATADIALOG_H
30 #define EXTRACTDATADIALOG_H
31 
32 #include <ScriptingEnv.h>
33 #include <Script.h>
34 #include <QDialog>
35 
36 class QLineEdit;
37 class QComboBox;
38 class QTextEdit;
39 class QSpinBox;
40 class QPushButton;
41 class QLabel;
42 class QCompleter;
43 class Table;
44 class ScriptingEnv;
45 class ScriptEdit;
46 
47 
49 class ExtractDataDialog : public QDialog, public scripted
50 {
51  Q_OBJECT
52 
53 public:
54  ExtractDataDialog( ScriptingEnv *env, QWidget* parent = 0, Qt::WFlags fl = 0 );
55  void setTable(Table* w);
56  void setCompleter(QCompleter *);
57 
58 private slots:
59  void apply();
60  void insertFunction();
61  void insertCol();
62  void insertOp();
63  void insertExplain(int index);
64  void clearFormulas();
65 
66 private:
68 
69  QSize sizeHint() const ;
70 
71  QComboBox* functions;
72  QComboBox* boxColumn;
73  QComboBox *boxOperators;
74 
75  QPushButton* btnAddFunction;
76  QPushButton* btnAddCol;
77  QPushButton* btnCancel;
78  QPushButton *btnApply;
79  QPushButton* buttonClearFormulas;
80  QPushButton* btnAddOp;
81 
83  QTextEdit* explain;
84  QSpinBox* start, *end;
85  QLineEdit *destNameBox;
86 };
87 
88 #endif //