The main class of the GUI application.
More...
#include <sepia.h>
|
| enum | State |
| | The State enum.
|
| |
The main class of the GUI application.
◆ setStatus
Set a new device status.
- Parameters
-
| state | the requested new state |
◆ showProgress
| void SEPIA::showProgress |
( |
int |
percent | ) |
|
|
slot |
Show progress via the status bar of the main window.
- Parameters
-
| percent | amount of progress to show on a scale 1..100. |
◆ showStatus
| void SEPIA::showStatus |
( |
const QString & |
msg, |
|
|
int |
timeout = 5000 |
|
) |
| |
|
slot |
Show a message via the status bar of the main window.
- Parameters
-
| msg | status message to display. |
| timeout | the time in ms during which the message will be displayed. |
◆ status()
Get current device status.
- Returns
- returns the status of the device
◆ updateMonitorItem
| void SEPIA::updateMonitorItem |
( |
const QString & |
name, |
|
|
DWORD |
addr, |
|
|
float |
value, |
|
|
char |
unit, |
|
|
int |
gain |
|
) |
| |
|
slot |
Update the GUI with new data from the M&C unit (CANbus).
- Parameters
-
| name | the short name of the data item to be updated. |
| addr | the CANbus address of the data item to be updated. |
| value | the new value to be shown. |
| unit | the unit of the new value. |
| gain | the gain factor of the new value. |
◆ updateProperty
| void SEPIA::updateProperty |
( |
int |
key, |
|
|
const QVariant & |
value, |
|
|
int |
sub = 0 |
|
) |
| |
|
slot |
Update a property.
This slot will be called as a result of a signal sent from the SCPI parser.
- Parameters
-
| key | is one of the tokens defined by the parser (file y.tab.h) |
| value | is a QVariant holding the new commanded value |
| sub | is another token, to specify property in more detail |
The documentation for this class was generated from the following files: