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 LEGENDPROPERTIES_H
00029 #define LEGENDPROPERTIES_H
00030
00031 #include <QGpGuiTools.h>
00032 #include "ui_LegendProperties.h"
00033 #include "SciFigsDLLExport.h"
00034 #include "Legend.h"
00035
00036 namespace SciFigs {
00037
00038 class SCIFIGS_EXPORT LegendProperties : public PropertyWidget, private Ui::LegendProperties
00039 {
00040 Q_OBJECT
00041 public:
00042 LegendProperties(QWidget * parent=0);
00043
00044 enum Properties {Legend};
00045
00046 const SciFigs::Legend& legend() {return _legend;}
00047 void setLegend(const SciFigs::Legend& legend);
00048
00049 void setPropertySections(LegendTable::PropertySections s=LegendTable::All);
00050
00051 void setReadOnlyText(bool ro);
00052 private slots:
00053 void on_loadPalette_clicked();
00054 void on_savePalette_clicked();
00055 void on_interpoleColors_clicked();
00056 void on_grayColors_clicked();
00057 void on_colorColors_clicked();
00058 void on_penNumber_valueChanged(int);
00059 void on_oneColor_toggled(bool);
00060 private:
00061 virtual int determineCustomWidgetType(int pid, QWidget * w, QWidget * label);
00062 virtual QVariant customWidgetValue(PropertyValue & );
00063 virtual bool connectCustomWidget(PropertyValue & );
00064 virtual bool setCustomWidget(PropertyValue & p);
00065
00066 SciFigs::Legend _legend;
00067 };
00068
00069 }
00070
00071 #endif // LEGENDPROPERTIES_H