QtiPlot  0.9.8.2
AnovaDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : AnovaDialog.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2010 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : ANOVA 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 AnovaDialog_H
30 #define AnovaDialog_H
31 
32 #include <QDialog>
33 #include <StatisticTest.h>
34 
35 class QCheckBox;
36 class QComboBox;
37 class QGroupBox;
38 class QPushButton;
39 class QListWidget;
40 class QLineEdit;
41 class QSpinBox;
42 class QTreeWidget;
43 class CollapsiveGroupBox;
44 class DoubleSpinBox;
45 class Table;
46 class Note;
47 
49 class AnovaDialog : public QDialog
50 {
51  Q_OBJECT
52 
53 public:
54  AnovaDialog(QWidget* parent, Table *t, const StatisticTest::TestType& type = StatisticTest::AnovaTest, bool twoWay = false);
55 
56 private slots:
57  void accept();
58  void addData();
59  void removeData();
60  void showCurrentFolder(bool);
61  void updateLevelBoxes();
63 
64 private:
65  void closeEvent(QCloseEvent*);
66  void acceptNormalityTest();
67 #ifdef HAVE_TAMUANOVA
68  void acceptAnova();
69 #endif
70  void outputResults(StatisticTest* stats, const QString& s);
72  bool d_two_way;
73 
74  QListWidget* availableSamples;
75  QTreeWidget *selectedSamples;
76 
77  QCheckBox *currentFolderBox;
78  QCheckBox *showInteractionsBox;
79  QCheckBox *showStatisticsBox;
80 
81  QPushButton* btnAdd;
82  QPushButton* btnRemove;
83  QPushButton* buttonOk;
84 
85  QComboBox* boxModel;
86 
87  QSpinBox *aLevelsBox;
88  QSpinBox *bLevelsBox;
90 
92  QCheckBox *boxResultsTable;
93  QLineEdit *tableNameLineEdit;
94  QCheckBox *boxResultsLog;
95  QCheckBox *boxNoteWindow;
96  QLineEdit *noteNameLineEdit;
97 
100 };
101 
102 #endif
Filter options dialog.
Definition: AnovaDialog.h:49
A collapsive QGroupBox.
Definition: CollapsiveGroupBox.h:39
QCheckBox * boxResultsLog
Definition: AnovaDialog.h:94
QPushButton * btnRemove
Definition: AnovaDialog.h:82
void closeEvent(QCloseEvent *)
Definition: AnovaDialog.cpp:464
QPushButton * btnAdd
Definition: AnovaDialog.h:81
Notes window class.
Definition: Note.h:43
Definition: StatisticTest.h:43
QCheckBox * boxNoteWindow
Definition: AnovaDialog.h:95
void updateLevelBoxes()
Definition: AnovaDialog.cpp:276
TestType
Definition: StatisticTest.h:43
QSpinBox * bLevelsBox
Definition: AnovaDialog.h:88
QCheckBox * currentFolderBox
Definition: AnovaDialog.h:77
DoubleSpinBox * boxSignificance
Definition: AnovaDialog.h:89
QPushButton * buttonOk
Definition: AnovaDialog.h:83
void removeData()
Definition: AnovaDialog.cpp:332
QCheckBox * showInteractionsBox
Definition: AnovaDialog.h:78
void accept()
Definition: AnovaDialog.cpp:345
Table * d_table
Definition: AnovaDialog.h:98
void enableDescriptiveStatistics()
Definition: AnovaDialog.cpp:248
QLineEdit * tableNameLineEdit
Definition: AnovaDialog.h:93
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
QCheckBox * boxResultsTable
Definition: AnovaDialog.h:92
StatisticTest::TestType d_test_type
Definition: AnovaDialog.h:71
bool d_two_way
Definition: AnovaDialog.h:72
CollapsiveGroupBox * outputSettingsBox
Definition: AnovaDialog.h:91
AnovaDialog(QWidget *parent, Table *t, const StatisticTest::TestType &type=StatisticTest::AnovaTest, bool twoWay=false)
Definition: AnovaDialog.cpp:50
QSpinBox * aLevelsBox
Definition: AnovaDialog.h:87
Note * d_note
Definition: AnovaDialog.h:99
QTreeWidget * selectedSamples
Definition: AnovaDialog.h:75
void showCurrentFolder(bool)
Definition: AnovaDialog.cpp:256
QCheckBox * showStatisticsBox
Definition: AnovaDialog.h:79
void outputResults(StatisticTest *stats, const QString &s)
Definition: AnovaDialog.cpp:411
QLineEdit * noteNameLineEdit
Definition: AnovaDialog.h:96
QComboBox * boxModel
Definition: AnovaDialog.h:85
QListWidget * availableSamples
Definition: AnovaDialog.h:74
void addData()
Definition: AnovaDialog.cpp:302
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
void acceptNormalityTest()
Definition: AnovaDialog.cpp:356
Abstract base class for statistic tests.
Definition: StatisticTest.h:37