AnovaDialog.h
Go to the documentation of this file.
/***************************************************************************
File : AnovaDialog.h
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2010 by Ion Vasilief
Email (use @ for *) : ion_vasilief*yahoo.fr
Description : ANOVA dialog
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
* Boston, MA 02110-1301 USA *
* *
***************************************************************************/
#ifndef AnovaDialog_H
#define AnovaDialog_H
#include <QDialog>
#include <StatisticTest.h>
class QCheckBox;
class QComboBox;
class QGroupBox;
class QPushButton;
class QListWidget;
class QLineEdit;
class QSpinBox;
class QTreeWidget;
class CollapsiveGroupBox;
class DoubleSpinBox;
class Table;
class Note;
class AnovaDialog : public QDialog
{
Q_OBJECT
public:
AnovaDialog(QWidget* parent, Table *t, const StatisticTest::TestType& type = StatisticTest::AnovaTest, bool twoWay = false);
private slots:
void accept();
void addData();
void removeData();
void showCurrentFolder(bool);
void updateLevelBoxes();
void enableDescriptiveStatistics();
private:
void closeEvent(QCloseEvent*);
void acceptNormalityTest();
#ifdef HAVE_TAMUANOVA
void acceptAnova();
#endif
void outputResults(StatisticTest* stats, const QString& s);
StatisticTest::TestType d_test_type;
bool d_two_way;
QListWidget* availableSamples;
QTreeWidget *selectedSamples;
QCheckBox *currentFolderBox;
QCheckBox *showInteractionsBox;
QCheckBox *showStatisticsBox;
QPushButton* btnAdd;
QPushButton* btnRemove;
QPushButton* buttonOk;
QComboBox* boxModel;
QSpinBox *aLevelsBox;
QSpinBox *bLevelsBox;
DoubleSpinBox* boxSignificance;
CollapsiveGroupBox *outputSettingsBox;
QCheckBox *boxResultsTable;
QLineEdit *tableNameLineEdit;
QCheckBox *boxResultsLog;
QCheckBox *boxNoteWindow;
QLineEdit *noteNameLineEdit;
Table *d_table;
Note *d_note;
};
#endif
AnovaDialog
Filter options dialog.
Definition: AnovaDialog.h:49
CollapsiveGroupBox
A collapsive QGroupBox.
Definition: CollapsiveGroupBox.h:39
AnovaDialog::boxResultsLog
QCheckBox * boxResultsLog
Definition: AnovaDialog.h:94
AnovaDialog::btnRemove
QPushButton * btnRemove
Definition: AnovaDialog.h:82
AnovaDialog::closeEvent
void closeEvent(QCloseEvent *)
Definition: AnovaDialog.cpp:464
AnovaDialog::btnAdd
QPushButton * btnAdd
Definition: AnovaDialog.h:81
Note
Notes window class.
Definition: Note.h:43
StatisticTest::AnovaTest
Definition: StatisticTest.h:43
AnovaDialog::boxNoteWindow
QCheckBox * boxNoteWindow
Definition: AnovaDialog.h:95
AnovaDialog::updateLevelBoxes
void updateLevelBoxes()
Definition: AnovaDialog.cpp:276
StatisticTest::TestType
TestType
Definition: StatisticTest.h:43
AnovaDialog::bLevelsBox
QSpinBox * bLevelsBox
Definition: AnovaDialog.h:88
AnovaDialog::currentFolderBox
QCheckBox * currentFolderBox
Definition: AnovaDialog.h:77
AnovaDialog::boxSignificance
DoubleSpinBox * boxSignificance
Definition: AnovaDialog.h:89
AnovaDialog::buttonOk
QPushButton * buttonOk
Definition: AnovaDialog.h:83
AnovaDialog::removeData
void removeData()
Definition: AnovaDialog.cpp:332
AnovaDialog::showInteractionsBox
QCheckBox * showInteractionsBox
Definition: AnovaDialog.h:78
AnovaDialog::accept
void accept()
Definition: AnovaDialog.cpp:345
AnovaDialog::d_table
Table * d_table
Definition: AnovaDialog.h:98
AnovaDialog::enableDescriptiveStatistics
void enableDescriptiveStatistics()
Definition: AnovaDialog.cpp:248
AnovaDialog::tableNameLineEdit
QLineEdit * tableNameLineEdit
Definition: AnovaDialog.h:93
DoubleSpinBox
A QDoubleSpinBox allowing to customize numbers display with respect to locale settings.
Definition: DoubleSpinBox.h:39
AnovaDialog::boxResultsTable
QCheckBox * boxResultsTable
Definition: AnovaDialog.h:92
AnovaDialog::d_test_type
StatisticTest::TestType d_test_type
Definition: AnovaDialog.h:71
AnovaDialog::d_two_way
bool d_two_way
Definition: AnovaDialog.h:72
AnovaDialog::outputSettingsBox
CollapsiveGroupBox * outputSettingsBox
Definition: AnovaDialog.h:91
AnovaDialog::AnovaDialog
AnovaDialog(QWidget *parent, Table *t, const StatisticTest::TestType &type=StatisticTest::AnovaTest, bool twoWay=false)
Definition: AnovaDialog.cpp:50
AnovaDialog::aLevelsBox
QSpinBox * aLevelsBox
Definition: AnovaDialog.h:87
AnovaDialog::d_note
Note * d_note
Definition: AnovaDialog.h:99
AnovaDialog::selectedSamples
QTreeWidget * selectedSamples
Definition: AnovaDialog.h:75
AnovaDialog::showCurrentFolder
void showCurrentFolder(bool)
Definition: AnovaDialog.cpp:256
AnovaDialog::showStatisticsBox
QCheckBox * showStatisticsBox
Definition: AnovaDialog.h:79
AnovaDialog::outputResults
void outputResults(StatisticTest *stats, const QString &s)
Definition: AnovaDialog.cpp:411
AnovaDialog::noteNameLineEdit
QLineEdit * noteNameLineEdit
Definition: AnovaDialog.h:96
AnovaDialog::boxModel
QComboBox * boxModel
Definition: AnovaDialog.h:85
AnovaDialog::availableSamples
QListWidget * availableSamples
Definition: AnovaDialog.h:74
AnovaDialog::addData
void addData()
Definition: AnovaDialog.cpp:302
Table
MDI window providing a spreadsheet table with column logic.
Definition: Table.h:57
AnovaDialog::acceptNormalityTest
void acceptNormalityTest()
Definition: AnovaDialog.cpp:356
StatisticTest
Abstract base class for statistic tests.
Definition: StatisticTest.h:37
StatisticTest.h