00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef CORRELATIONMETERWIDGET_H
00024 #define CORRELATIONMETERWIDGET_H
00025
00026 #include "MeterWidget.h"
00027
00028 class Command;
00029 class QLinearGradient;
00030 class QColor;
00031
00032
00033 class CorrelationMeterWidget : public MeterWidget
00034 {
00035
00036 public:
00037 CorrelationMeterWidget(QWidget* parent);
00038 };
00039
00040 class CorrelationMeterView : public MeterView
00041 {
00042 Q_OBJECT
00043
00044 Q_CLASSINFO("set_mode", tr("Toggle display range"))
00045
00046 public:
00047 CorrelationMeterView(CorrelationMeterWidget* widget);
00048
00049 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
00050
00051 private:
00052 float coeff;
00053 float direction;
00054 QLinearGradient gradPhase;
00055 int range;
00056
00057 void save_configuration();
00058 void load_configuration();
00059
00060 private slots:
00061 void update_data();
00062 void set_sheet(Sheet* sheet);
00063
00064 public slots:
00065 Command* set_mode();
00066
00067 };
00068
00069 #endif
00070