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