35 #include <QtDesigner/QDesignerExportWidget>
38 #include <QStringList>
43 Q_PROPERTY(QColor colorOfText READ colorOfText WRITE setColorOfText);
44 Q_PROPERTY(QColor colorLow READ colorLow WRITE setColorLow);
45 Q_PROPERTY(QColor colorHigh READ colorHigh WRITE setColorHigh);
46 Q_PROPERTY(
double Value READ value WRITE setValue);
47 Q_PROPERTY(
double minValue READ minValue WRITE setMinValue);
48 Q_PROPERTY(
double maxValue READ maxValue WRITE setMaxValue);
49 Q_PROPERTY(
int dimValue READ valueDim WRITE setValueDim);
50 Q_PROPERTY(QString lable READ lable WRITE setLable);
52 QColor colorOfText()
const
56 QColor colorLow()
const
60 QColor colorHigh()
const
68 double minValue()
const
72 double maxValue()
const
88 QVUBar(QObject* pParent = NULL, QString strLabel =
"",
double min=0,
double max = 100);
93 void valueChanged(
double);
97 void setColorOfText(QColor);
98 void setColorHigh(QColor);
99 void setColorLow(QColor);
100 void setValueDim(
int);
101 void setValue(
double);
102 void setMinValue(
double);
103 void setMaxValue(
double);
104 void setMinMaxValues(
double,
double);
105 void setLable(QString);
110 void paintEvent(QPaintEvent *);
132 Q_PROPERTY(QColor colorBg READ colorBg WRITE setColorBg);
134 QColor colorBg()
const
143 QVUMeter(QStringList strBarLables, QWidget *parent = 0) ;
152 void SetBars(QStringList strBarLables,
double min=0,
double max=100);
160 void SetBarCount(
int nCount,
double min=0.0,
double max=100.0);
162 QSize minimumSizeHint()
const;
163 QSize sizeHint()
const;
166 void SetMinMaxValues(
double,
double);
170 void valueLChanged(
double);
171 void valueRChanged(
double);
175 void setColorBg(QColor);
176 QVUBar* GetBar(
int nIndex)
const;
177 int GetBarCount()
const;
181 void paintEvent(QPaintEvent *);
191 int m_nTotalWindowWidth;
193 QList<QVUBar*> m_Bars;
void SetBars(QStringList strBarLables, double min=0, double max=100)
void SetBarCount(int nCount, double min=0.0, double max=100.0)