#include <StudentTest.h>
Public Member Functions | |
StationResults * | firstCurve () const |
void | init (QList< WinResults * > &tests) |
QString | makeUp () const |
StationResults * | secondCurve () const |
double | significance () const |
StudentTest (QWidget *parent=0, Qt::WFlags fl=0) |
MonoStation::StudentTest::StudentTest | ( | QWidget * | parent = 0 , |
Qt::WFlags | fl = 0 |
||
) |
StationResults * MonoStation::StudentTest::firstCurve | ( | ) | const |
References MonoStation::AbstractStation::results(), MonoStation::StudentTestCurveModel::station(), MonoStation::StudentTestCurveModel::stationResults(), and TRACE.
Referenced by MonoStation::WinResults::studentTest().
{ TRACE; StudentTestCurveModel * model=static_cast<StudentTestCurveModel *>(firstCurveList->model()); QModelIndex index=firstCurveList->currentIndex(); if(index.isValid()) { AbstractStation * s=model->station(index); if(s) { return s->results(0); } else { return model->stationResults(index); } } return 0; }
void MonoStation::StudentTest::init | ( | QList< WinResults * > & | tests | ) |
References MonoStation::StudentTestCurveModel::setWindowList(), and TRACE.
Referenced by MonoStation::WinResults::studentTest().
{ TRACE; StudentTestCurveModel * model=new StudentTestCurveModel(this); model->setWindowList(tests); firstCurveList->setModel(model); firstCurveList->setSelectionBehavior(QAbstractItemView::SelectRows); firstCurveList->setSelectionMode(QAbstractItemView::SingleSelection); firstCurveList->header()->hide(); firstCurveList->expandAll(); secondCurveList->setModel(model); secondCurveList->setSelectionBehavior(QAbstractItemView::SelectRows); secondCurveList->setSelectionMode(QAbstractItemView::SingleSelection); secondCurveList->header()->hide(); secondCurveList->expandAll(); }
QString MonoStation::StudentTest::makeUp | ( | ) | const [inline] |
Referenced by MonoStation::WinResults::studentTest().
{return makeUpFile->text();}
StationResults * MonoStation::StudentTest::secondCurve | ( | ) | const |
References MonoStation::AbstractStation::results(), MonoStation::StudentTestCurveModel::station(), MonoStation::StudentTestCurveModel::stationResults(), and TRACE.
Referenced by MonoStation::WinResults::studentTest().
{ TRACE; StudentTestCurveModel * model=static_cast<StudentTestCurveModel *>(firstCurveList->model()); QModelIndex index=secondCurveList->currentIndex(); if(index.isValid()) { AbstractStation * s=model->station(index); if(s) { return s->results(0); } else { return model->stationResults(index); } } return 0; }
double MonoStation::StudentTest::significance | ( | ) | const [inline] |
Referenced by MonoStation::WinResults::studentTest().
{return significanceEdit->value();}