Changeset View
Changeset View
Standalone View
Standalone View
gui/SensorDisplayLib/SensorDisplay.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
---|---|---|---|---|---|
62 | /** | 62 | /** | ||
63 | Constructor. | 63 | Constructor. | ||
64 | */ | 64 | */ | ||
65 | SensorDisplay( QWidget *parent, const QString &title, SharedSettings *workSheetSettings ); | 65 | SensorDisplay( QWidget *parent, const QString &title, SharedSettings *workSheetSettings ); | ||
66 | 66 | | |||
67 | /** | 67 | /** | ||
68 | Destructor. | 68 | Destructor. | ||
69 | */ | 69 | */ | ||
70 | ~SensorDisplay() Q_DECL_OVERRIDE; | 70 | ~SensorDisplay() override; | ||
71 | 71 | | |||
72 | /** | 72 | /** | ||
73 | Sets the title of the display. If you override, please call this | 73 | Sets the title of the display. If you override, please call this | ||
74 | */ | 74 | */ | ||
75 | virtual void setTitle( const QString &title ); | 75 | virtual void setTitle( const QString &title ); | ||
76 | 76 | | |||
77 | /** | 77 | /** | ||
78 | Returns the title of the display. | 78 | Returns the title of the display. | ||
▲ Show 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | 171 | /** | |||
174 | @param sensorId The unique id of the sensor. | 174 | @param sensorId The unique id of the sensor. | ||
175 | @param mode The mode: true = error, false = everthing ok | 175 | @param mode The mode: true = error, false = everthing ok | ||
176 | */ | 176 | */ | ||
177 | virtual void sensorError( int sensorId, bool mode ); | 177 | virtual void sensorError( int sensorId, bool mode ); | ||
178 | 178 | | |||
179 | /** | 179 | /** | ||
180 | Normaly you shouldn't reimplement this methode | 180 | Normaly you shouldn't reimplement this methode | ||
181 | */ | 181 | */ | ||
182 | void sensorLost( int reqId ) Q_DECL_OVERRIDE; | 182 | void sensorLost( int reqId ) override; | ||
183 | 183 | | |||
184 | /** | 184 | /** | ||
185 | * Sets the object where the delete events will be sent to. | 185 | * Sets the object where the delete events will be sent to. | ||
186 | */ | 186 | */ | ||
187 | void setDeleteNotifier( QObject *object ); | 187 | void setDeleteNotifier( QObject *object ); | ||
188 | 188 | | |||
189 | public Q_SLOTS: | 189 | public Q_SLOTS: | ||
190 | 190 | | |||
Show All 25 Lines | |||||
216 | void showContextMenu(const QPoint &); | 216 | void showContextMenu(const QPoint &); | ||
217 | 217 | | |||
218 | Q_SIGNALS: | 218 | Q_SIGNALS: | ||
219 | void showPopupMenu( KSGRD::SensorDisplay *display ); | 219 | void showPopupMenu( KSGRD::SensorDisplay *display ); | ||
220 | void titleChanged(const QString&); | 220 | void titleChanged(const QString&); | ||
221 | void translatedTitleChanged(const QString&); | 221 | void translatedTitleChanged(const QString&); | ||
222 | 222 | | |||
223 | protected: | 223 | protected: | ||
224 | bool eventFilter( QObject*, QEvent* ) Q_DECL_OVERRIDE; | 224 | bool eventFilter( QObject*, QEvent* ) override; | ||
225 | void changeEvent( QEvent * event ) Q_DECL_OVERRIDE; | 225 | void changeEvent( QEvent * event ) override; | ||
226 | 226 | | |||
227 | void registerSensor( SensorProperties *sp ); | 227 | void registerSensor( SensorProperties *sp ); | ||
228 | void unregisterSensor( uint pos ); | 228 | void unregisterSensor( uint pos ); | ||
229 | 229 | | |||
230 | QColor restoreColor( QDomElement &element, const QString &attr, | 230 | QColor restoreColor( QDomElement &element, const QString &attr, | ||
231 | const QColor& fallback ); | 231 | const QColor& fallback ); | ||
232 | void saveColor( QDomElement &element, const QString &attr, | 232 | void saveColor( QDomElement &element, const QString &attr, | ||
233 | const QColor &color ); | 233 | const QColor &color ); | ||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |