SEPIA
Software documentation for the APEX SEPIA receivers
SEPIA Class Reference

The main class of the GUI application. More...

#include <sepia.h>

Inheritance diagram for SEPIA:
Collaboration diagram for SEPIA:

Public Slots

void setStatus (Device::State state)
 Set a new device status. More...
 
void updateProperty (int key, const QVariant &value, int sub=0)
 Update a property. More...
 
void updateMonitorItem (const QString &name, DWORD addr, float value, char unit, int gain)
 Update the GUI with new data from the M&C unit (CANbus). More...
 
void showProgress (int percent)
 Show progress via the status bar of the main window. More...
 
void showStatus (const QString &msg, int timeout=5000)
 Show a message via the status bar of the main window. More...
 

Public Member Functions

Device::State status ()
 Get current device status. More...
 
- Public Member Functions inherited from Device
QString statusString () const
 statusString More...
 

Additional Inherited Members

- Public Types inherited from Device
enum  State
 The State enum.
 

Detailed Description

The main class of the GUI application.

Member Function Documentation

◆ setStatus

void SEPIA::setStatus ( Device::State  state)
slot

Set a new device status.

Parameters
statethe requested new state

◆ showProgress

void SEPIA::showProgress ( int  percent)
slot

Show progress via the status bar of the main window.

Parameters
percentamount 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
msgstatus message to display.
timeoutthe time in ms during which the message will be displayed.

◆ status()

Device::State SEPIA::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
namethe short name of the data item to be updated.
addrthe CANbus address of the data item to be updated.
valuethe new value to be shown.
unitthe unit of the new value.
gainthe 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
keyis one of the tokens defined by the parser (file y.tab.h)
valueis a QVariant holding the new commanded value
subis another token, to specify property in more detail

The documentation for this class was generated from the following files: