BPLightContraption
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
BPLightContraption Class Reference

The main window of the BPLightContraption program. More...

#include <triaclight.h>

Inheritance diagram for BPLightContraption:
Inheritance graph
[legend]
Collaboration diagram for BPLightContraption:
Collaboration graph
[legend]

Public Member Functions

 BPLightContraption (QWidget *parent=0)
 
 ~BPLightContraption ()
 
void ExceptionBox (const MCInterfaceException &e)
 Displays a message box with exception information. More...
 

Private Slots

void OpenPort (void)
 Called when the button to open the port is clicked. More...
 
void ClosePort (void)
 Called when the button to close the port is clicked. More...
 
void ResetPort (void)
 Called when the button to reset the port is clicked. More...
 
void UpdateInfo (void)
 Called when the button to force an update is pressed. More...
 

Private Member Functions

double Display16BitValue (QLCDNumber *display, quint8 low, quint8 high)
 Converts two separate bytes into a 16 bit value and displays it on a QLCDNumber. More...
 
double Convert16BitValue (quint8 low, quint8 high)
 Converts two separate bytes into a 16 bit value. More...
 
void ZeroDisplays (void)
 Resets all the displays to zero. More...
 

Private Attributes

Ui::BPLightContraption * ui
 
QTimer * updatetimer
 Used to refresh the information at certain intervals. More...
 
QSharedPointer< MCInterfacemc
 Microcontrollers used by this program. More...
 
QVector< QSharedPointer
< PUInterfaceGUI > > 
pus
 Power units controlled by this program. More...
 
QStandardItemModel * dimmerData
 Information about all the dimmers. More...
 

Detailed Description

The main window of the BPLightContraption program.

Definition at line 25 of file triaclight.h.

Constructor & Destructor Documentation

BPLightContraption::BPLightContraption ( QWidget *  parent = 0)
explicit

Definition at line 24 of file triaclight.cpp.

Here is the call graph for this function:

BPLightContraption::~BPLightContraption ( )

Definition at line 91 of file triaclight.cpp.

Here is the call graph for this function:

Member Function Documentation

void BPLightContraption::ClosePort ( void  )
privateslot

Called when the button to close the port is clicked.

Definition at line 146 of file triaclight.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

double BPLightContraption::Convert16BitValue ( quint8  low,
quint8  high 
)
private

Converts two separate bytes into a 16 bit value.

Definition at line 169 of file triaclight.cpp.

Here is the caller graph for this function:

double BPLightContraption::Display16BitValue ( QLCDNumber *  display,
quint8  low,
quint8  high 
)
private

Converts two separate bytes into a 16 bit value and displays it on a QLCDNumber.

Definition at line 174 of file triaclight.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BPLightContraption::ExceptionBox ( const MCInterfaceException e)

Displays a message box with exception information.

Definition at line 246 of file triaclight.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BPLightContraption::OpenPort ( void  )
privateslot

Called when the button to open the port is clicked.

Definition at line 105 of file triaclight.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BPLightContraption::ResetPort ( void  )
privateslot

Called when the button to reset the port is clicked.

Definition at line 160 of file triaclight.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BPLightContraption::UpdateInfo ( void  )
privateslot

Called when the button to force an update is pressed.

Definition at line 181 of file triaclight.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BPLightContraption::ZeroDisplays ( void  )
private

Resets all the displays to zero.

Definition at line 129 of file triaclight.cpp.

Here is the caller graph for this function:

Member Data Documentation

QStandardItemModel* BPLightContraption::dimmerData
private

Information about all the dimmers.

Definition at line 62 of file triaclight.h.

QSharedPointer<MCInterface> BPLightContraption::mc
private

Microcontrollers used by this program.

Definition at line 56 of file triaclight.h.

QVector<QSharedPointer<PUInterfaceGUI> > BPLightContraption::pus
private

Power units controlled by this program.

Definition at line 59 of file triaclight.h.

Ui::BPLightContraption* BPLightContraption::ui
private

Definition at line 50 of file triaclight.h.

QTimer* BPLightContraption::updatetimer
private

Used to refresh the information at certain intervals.

Definition at line 53 of file triaclight.h.


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