MonoStation/WinResults.h
Go to the documentation of this file.
00001 /***************************************************************************
00002 **
00003 **  This file is part of MonoStation.
00004 **
00005 **  This file may be distributed and/or modified under the terms of the
00006 **  GNU General Public License version 2 or 3 as published by the Free
00007 **  Software Foundation and appearing in the file LICENSE.GPL included
00008 **  in the packaging of this file.
00009 **
00010 **  This file is distributed in the hope that it will be useful, but WITHOUT
00011 **  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 **  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
00013 **  more details.
00014 **
00015 **  You should have received a copy of the GNU General Public License
00016 **  along with this program. If not, see <http://www.gnu.org/licenses/>.
00017 **
00018 **  See http://www.geopsy.org for more information.
00019 **
00020 **  Created : 2003-12-08
00021 **  Authors:
00022 **    Marc Wathelet
00023 **    Marc Wathelet (ULg, Liège, Belgium)
00024 **    Marc Wathelet (LGIT, Grenoble, France)
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 } // namespace MonoStation
00082 
00083 #endif // WINRESULTS_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines