Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef WINRESULTS_H
00029 #define WINRESULTS_H
00030
00031 #include <SciFigs.h>
00032
00033 #include "MonoStationDLLExport.h"
00034
00035 namespace MonoStation {
00036
00037 class AbstractStation;
00038 class StationResults;
00039 class PeakEditor;
00040
00041 class MONOSTATION_EXPORT WinResults : public GraphicSheetMenu
00042 {
00043 Q_OBJECT
00044 public:
00045 WinResults(QWidget *parent=0);
00046
00047 virtual void addActions();
00048 virtual void setStations(QList<AbstractStation *> stations);
00049 virtual void setWindowTitle(QString subPoolName)=0;
00050 virtual void setLimits(double maxAmplitude);
00051 void restoreMakeUp(QString fileName);
00052 void setLayout(int nPlotsPerLine, double pageHeight);
00053 QMenu * menuTools;
00054
00055 int stationCount() const {return _stations.count();}
00056 AbstractStation * station(int index) const {return _stations.at(index);}
00057 int indexOf(AbstractStation * c) {return _stations.indexOf(c);}
00058 AbstractStation * station(const QString& name) const;
00059 protected slots:
00060 void saveResults();
00061 virtual void loadResults() {}
00062 void options();
00063 void editPeaks();
00064 void setPeaks();
00065 void studentTest();
00066 void setCategories();
00067 void categoriesToGroups();
00068 void groupsToCategories();
00069 signals:
00070 void categoryChanged();
00071 void peakChanged();
00072 protected:
00073 virtual void closeEvent (QCloseEvent * e);
00074 bool selectAll(QString title);
00075 void loadResults(QStringList fileNames);
00076
00077 QString _yAxisTitle;
00078 QList<AbstractStation *> _stations;
00079 };
00080
00081 }
00082
00083 #endif // WINRESULTS_H