QtiPlot  0.9.8.2
AnovaDialog.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     File                 : AnovaDialog.h
00003     Project              : QtiPlot
00004     --------------------------------------------------------------------
00005     Copyright            : (C) 2010 by Ion Vasilief
00006     Email (use @ for *)  : ion_vasilief*yahoo.fr
00007     Description          : ANOVA dialog
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *  This program is free software; you can redistribute it and/or modify   *
00014  *  it under the terms of the GNU General Public License as published by   *
00015  *  the Free Software Foundation; either version 2 of the License, or      *
00016  *  (at your option) any later version.                                    *
00017  *                                                                         *
00018  *  This program is distributed in the hope that it will be useful,        *
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
00021  *  GNU General Public License for more details.                           *
00022  *                                                                         *
00023  *   You should have received a copy of the GNU General Public License     *
00024  *   along with this program; if not, write to the Free Software           *
00025  *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
00026  *   Boston, MA  02110-1301  USA                                           *
00027  *                                                                         *
00028  ***************************************************************************/
00029 #ifndef AnovaDialog_H
00030 #define AnovaDialog_H
00031 
00032 #include <QDialog>
00033 #include <StatisticTest.h>
00034 
00035 class QCheckBox;
00036 class QComboBox;
00037 class QGroupBox;
00038 class QPushButton;
00039 class QListWidget;
00040 class QLineEdit;
00041 class QSpinBox;
00042 class QTreeWidget;
00043 class CollapsiveGroupBox;
00044 class DoubleSpinBox;
00045 class Table;
00046 class Note;
00047 
00049 class AnovaDialog : public QDialog
00050 {
00051     Q_OBJECT
00052 
00053 public:
00054     AnovaDialog(QWidget* parent, Table *t, const StatisticTest::TestType& type = StatisticTest::AnovaTest, bool twoWay = false);
00055 
00056 private slots:
00057     void accept();
00058     void addData();
00059     void removeData();
00060     void showCurrentFolder(bool);
00061     void updateLevelBoxes();
00062     void enableDescriptiveStatistics();
00063 
00064 private:
00065     void closeEvent(QCloseEvent*);
00066     void acceptNormalityTest();
00067 #ifdef HAVE_TAMUANOVA
00068     void acceptAnova();
00069 #endif
00070     void outputResults(StatisticTest* stats, const QString& s);
00071     StatisticTest::TestType d_test_type;
00072     bool d_two_way;
00073 
00074     QListWidget* availableSamples;
00075     QTreeWidget *selectedSamples;
00076 
00077     QCheckBox *currentFolderBox;
00078     QCheckBox *showInteractionsBox;
00079     QCheckBox *showStatisticsBox;
00080 
00081     QPushButton* btnAdd;
00082     QPushButton* btnRemove;
00083     QPushButton* buttonOk;
00084 
00085     QComboBox* boxModel;
00086 
00087     QSpinBox *aLevelsBox;
00088     QSpinBox *bLevelsBox;
00089     DoubleSpinBox* boxSignificance;
00090 
00091     CollapsiveGroupBox *outputSettingsBox;
00092     QCheckBox *boxResultsTable;
00093     QLineEdit *tableNameLineEdit;
00094     QCheckBox *boxResultsLog;
00095     QCheckBox *boxNoteWindow;
00096     QLineEdit *noteNameLineEdit;
00097 
00098     Table *d_table;
00099     Note *d_note;
00100 };
00101 
00102 #endif