26 #include <QtPdCom1/Transmission.h> 28 #include <pdcom5/Variable.h> 29 #include <pdcom5/Subscription.h> 52 void setLevelVariable(
54 const PdCom::Selector &selector = {},
55 const QtPdCom::Transmission & = QtPdCom::event_mode,
65 void setLevelVariable(
66 PdCom::Process *process,
68 const PdCom::Selector &selector = {},
69 const QtPdCom::Transmission & = QtPdCom::event_mode,
79 void setVolumeVariable(
81 const PdCom::Selector &selector = {},
82 const QtPdCom::Transmission & = QtPdCom::event_mode,
92 void setVolumeVariable(
93 PdCom::Process *process,
95 const PdCom::Selector &selector = {},
96 const QtPdCom::Transmission & = QtPdCom::event_mode,
104 void clearLevelVariable();
105 void clearVolumeVariable();
107 QColor getColor()
const;
108 void setColor(QColor);
124 Q_PROPERTY(
Style style
125 READ getStyle WRITE setStyle RESET resetStyle)
126 Q_PROPERTY(
int labelWidth
127 READ getLabelWidth WRITE setLabelWidth RESET resetLabelWidth)
129 READ getLabelPosition WRITE setLabelPosition
130 RESET resetLabelPosition)
131 Q_PROPERTY(
int capHeight
132 READ getCapHeight WRITE setCapHeight RESET resetCapHeight)
133 Q_PROPERTY(
double maxLevel
134 READ getMaxLevel WRITE setMaxLevel RESET resetMaxLevel)
135 Q_PROPERTY(
double maxVolume
136 READ getMaxVolume WRITE setMaxVolume RESET resetMaxVolume)
137 Q_PROPERTY(
int levelDecimals READ getLevelDecimals WRITE setLevelDecimals
138 RESET resetLevelDecimals)
139 Q_PROPERTY(
int volumeDecimals READ getVolumeDecimals
140 WRITE setVolumeDecimals RESET resetVolumeDecimals)
141 Q_PROPERTY(QColor backgroundColor READ getBackgroundColor
142 WRITE setBackgroundColor RESET resetBackgroundColor)
143 Q_PROPERTY(QString levelSuffix READ getLevelSuffix
144 WRITE setLevelSuffix RESET resetLevelSuffix)
145 Q_PROPERTY(QString volumeSuffix READ getVolumeSuffix
146 WRITE setVolumeSuffix RESET resetVolumeSuffix)
152 QSize sizeHint()
const;
159 Style getStyle()
const;
160 void setStyle(Style);
163 int getLabelWidth()
const;
164 void setLabelWidth(
int);
165 void resetLabelWidth();
171 LabelPosition getLabelPosition()
const;
172 void setLabelPosition(LabelPosition);
173 void resetLabelPosition();
175 int getCapHeight()
const;
176 void setCapHeight(
int);
177 void resetCapHeight();
179 double getMaxLevel()
const;
180 void setMaxLevel(
double);
181 void resetMaxLevel();
183 double getMaxVolume()
const;
184 void setMaxVolume(
double);
185 void resetMaxVolume();
187 int getLevelDecimals()
const;
188 void setLevelDecimals(
int);
189 void resetLevelDecimals();
191 int getVolumeDecimals()
const;
192 void setVolumeDecimals(
int);
193 void resetVolumeDecimals();
195 QColor getBackgroundColor()
const;
196 void setBackgroundColor(QColor);
197 void resetBackgroundColor();
199 QString getLevelSuffix()
const;
200 void setLevelSuffix(
const QString &);
201 void resetLevelSuffix();
203 QString getVolumeSuffix()
const;
204 void setVolumeSuffix(
const QString &);
205 void resetVolumeSuffix();
215 PD_PRIVATE void resizeEvent(QResizeEvent *)
override;
216 PD_PRIVATE void paintEvent(QPaintEvent *)
override;
Style
Definition: Tank.h:154
#define PD_PRIVATE
Definition: Export.h:28
LabelPosition
Definition: Tank.h:167
std::unique_ptr< Impl > impl
Definition: Tank.h:212
#define PD_PUBLIC
Definition: Export.h:33
std::unique_ptr< Impl > impl
Definition: Tank.h:112