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 : 2008-09-23 00021 ** Authors: 00022 ** Marc Wathelet 00023 ** Marc Wathelet (LGIT, Grenoble, France) 00024 ** 00025 ***************************************************************************/ 00026 00027 #ifndef SUMMARYMAPOPTIONS_H 00028 #define SUMMARYMAPOPTIONS_H 00029 00030 #include <SciFigs.h> 00031 #include "ui_SummaryMapOptions.h" 00032 #include "MonoStationDLLExport.h" 00033 #include "AbstractSummary.h" 00034 00035 namespace MonoStation { 00036 00037 class MONOSTATION_EXPORT SummaryMapOptions : public QWidget, private Ui::SummaryMapOptions 00038 { 00039 Q_OBJECT 00040 public: 00041 SummaryMapOptions(QWidget * parent=0); 00042 ~SummaryMapOptions(); 00043 00044 void setCategories(const Legend& c) {_categories=c;} 00045 void setLabels(StationLine::Label l); 00046 void setPeakSelection(StationLine::PeakSelection v); 00047 void setPeakValue(StationResults::PeakValue v); 00048 void setPeakValueDecimals(int d); 00049 void setPeakIndex(int index); 00050 void setShowBubbles(bool b); 00051 00052 const Legend& categories() const {return _categories;} 00053 StationLine::Label labels() const; 00054 StationLine::PeakSelection peakSelection() const; 00055 StationResults::PeakValue peakValue() const; 00056 int peakValueDecimals() const; 00057 int peakIndex() const; 00058 bool showBubbles() const; 00059 signals: 00060 void touched(); 00061 private slots: 00062 void on_peakNumber_toggled(bool checked); 00063 void on_categoryLegend_clicked(); 00064 void on_labelPeakValue_toggled(bool checked); 00065 void commit(); 00066 private: 00067 Legend _categories; 00068 LegendProperties * _legendProperties; 00069 }; 00070 00071 } // namespace MonoStation 00072 00073 #endif // SUMMARYMAPOPTIONS_H