AURobotServers  4
Signals | Public Member Functions | Public Attributes | Protected Member Functions | Private Slots | Private Attributes | List of all members
MainWindow Class Reference

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Inheritance graph

Signals

void imgUpdated (int imgNum)
 
void imgUpdated (int imgNum)
 
void messageEvent (QString message)
 
void messageEvent (QString message)
 
void varUpdated (UVariable *var)
 
void varUpdated (UVariable *var)
 

Public Member Functions

virtual void consoleReply (const char *s)
 
virtual void consoleReply (const char *s)
 Reimplementation of function "vitual void consoleReply(const char *s)". More...
 
DriveSpaceInfo getSpaceInfo (QString sDirPath)
 
DriveSpaceInfo getSpaceInfo (QString sDirPath)
 Get drive space information. More...
 
virtual void imgUpdatedEvent (int updatdImgNr)
 
virtual void imgUpdatedEvent (int updatdImgNr)
 Reimplementation of function "vitual void imgUpdatedEvent(int updatdImgNr)". More...
 
 MainWindow (QWidget *parent=0)
 
 MainWindow (QWidget *parent=0)
 
virtual void postedCommand (const char *s)
 
virtual void postedCommand (const char *s)
 Reimplementation of function "vitual void postedCommand(const char * s)". More...
 
virtual void varUpdatedEvent (UVariable *var)
 
virtual void varUpdatedEvent (UVariable *var)
 Reimplementation of function "vitual void varUpdatedEvent(UVariable *var)". More...
 
 ~MainWindow ()
 
 ~MainWindow ()
 Class destructor. More...
 

Public Attributes

statusAgcoagcoStat
 
termEmulatorappTerm
 
QToolButton * butt1
 
QToolButton * butt4
 
camPiServSetWidgetcamPiServSetTab
 
camServSetWidgetcamServSetTab
 
clientSetWidgetclientSetTab
 
UServerStaticcmdexe
 
QTimer * connToRhdTimer
 
QLabel * driveInfo1
 
QLabel * driveInfo2
 
QLabel * driveInfo3
 
QToolButton * exitButt
 
guiSetWidgetguiSetTab
 
QStackedWidget * imageStack1
 
QStackedWidget * imageStack2
 
QStackedWidget * imageStack3
 
QLabel * imgLabel1
 
QLabel * imgLabel2
 
QLabel * imgLabel3
 
QLabel * ImgLabelStack1 [100]
 
QLabel * ImgLabelStack2 [100]
 
QLabel * ImgLabelStack3 [100]
 
lmsServSetWidgetlmsServSetTab
 
QTimer * logTimeout
 
radarServSetWidgetradarServSetTab
 
rhdServSetWidgetrhdServSetTab
 
QStackedWidget * statusStack
 
QTimer * SyncRhdTimer
 
QTabWidget * tabDisp
 
QTimer * watchdogTimer
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 
void paintEvent (QPaintEvent *event)
 Paint event for graphics on interface. More...
 
void resizeEvent (QResizeEvent *event)
 
void resizeEvent (QResizeEvent *event)
 Update all widget sizes on a resizeEvent. More...
 

Private Slots

void butt1ClickS ()
 
void butt1ClickS ()
 Button 1 clicked slot. More...
 
void cam1ButPresS ()
 
void cam1ButPresS ()
 
void cam1ButRelS ()
 
void cam1ButRelS ()
 
void cam2ButPresS ()
 
void cam2ButPresS ()
 
void cam2ButRelS ()
 
void cam2ButRelS ()
 
void cam3ButPresS ()
 
void cam3ButPresS ()
 
void cam3ButRelS ()
 
void cam3ButRelS ()
 
void cam4ButPresS ()
 
void cam4ButPresS ()
 
void cam4ButRelS ()
 
void cam4ButRelS ()
 
void camPi1ButPresS ()
 
void camPi1ButRelS ()
 
void camPiServButPresS ()
 
void camPiServButRelS ()
 
void camServButPresS ()
 
void camServButPresS ()
 
void camServButRelS ()
 
void camServButRelS ()
 
void changeView1 (int value)
 
void changeView1 (int value)
 
void changeView2 (int value)
 
void changeView2 (int value)
 
void changeView3 (int value)
 
void changeView3 (int value)
 
void connToRhdSlot ()
 
void connToRhdSlot ()
 RHD connection routine. More...
 
void exitApp ()
 
void exitApp ()
 Close GUI and client. More...
 
void laser1ButPresS ()
 
void laser1ButPresS ()
 
void laser1ButRelS ()
 
void laser1ButRelS ()
 
void laserServButPresS ()
 
void laserServButPresS ()
 
void laserServButRelS ()
 
void laserServButRelS ()
 
void logTimeoutSlot ()
 
void logTimeoutSlot ()
 
void queueMsg (QString Buffer)
 
void queueMsg (QString Buffer)
 Post a message/command to the server queue. More...
 
void radar1ButPresS ()
 
void radar1ButRelS ()
 
void radarServButPresS ()
 
void radarServButRelS ()
 
void rhd1ButPresS ()
 
void rhd1ButPresS ()
 
void rhd1ButRelS ()
 
void rhd1ButRelS ()
 
void rhd2ButPresS ()
 
void rhd2ButPresS ()
 
void rhd2ButRelS ()
 
void rhd2ButRelS ()
 
void rhdServButPresS ()
 
void rhdServButPresS ()
 
void rhdServButRelS ()
 
void rhdServButRelS ()
 
void SyncRhdSlot ()
 
void SyncRhdSlot ()
 
void updateImg (int value)
 
void updateImg (int value)
 
void updateQtVariable (UVariable *var)
 
void updateQtVariable (UVariable *var)
 
void watchdogTimerS ()
 
void watchdogTimerS ()
 Watchdog timer slot. More...
 

Private Attributes

QImage * imgNA
 
int rhdLogging
 

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0)

Connect button signals to their corresponding slots

Connect mobotware events to Qt slots

References RhdVarStruct::address, agcoStat, appTerm, butt1, butt1ClickS(), ButtonWidth, cam1, cam1ButPresS(), cam1ButRelS(), cam2, cam2ButPresS(), cam2ButRelS(), cam3, cam3ButPresS(), cam3ButRelS(), cam4, cam4ButPresS(), cam4ButRelS(), camPi1, camPi1ButPresS(), camPi1ButRelS(), camPiServButPresS(), camPiServButRelS(), camPiServSetTab, camPiSrv, camServButPresS(), camServButRelS(), camServSetTab, camSrv, changeView1(), changeView2(), changeView3(), clientSetTab, cmdexe, serverState::connect, serverState::connected, serverState::connecting, serverState::connectionStep, connToRhdSlot(), connToRhdTimer, guiState::desiredView1, guiState::desiredView2, guiState::desiredView3, device::devTag, driveInfo1, driveInfo2, driveInfo3, exitApp(), exitButt, DriveSpaceInfo::freeSpaceGB, DriveSpaceInfo::freeSpacePC, guiData, guiSetTab, serverState::host, imageStack1, imageStack2, imageStack3, imgLabel1, imgLabel2, imgLabel3, guiState::imgListUpdated1, guiState::imgListUpdated2, guiState::imgListUpdated3, imgUpdated(), DriveSpaceInfo::infoValid, laser1, laser1ButPresS(), laser1ButRelS(), laserServButPresS(), laserServButRelS(), lmsServSetTab, lmsSrv, device::logCloseComm, logDrive, device::logOpenComm, logTimeout, logTimeoutSlot(), messageEvent(), device::name, RhdVarStruct::name, serverState::name_space, device::opened, DriveInfo::path, serverState::permission, serverState::port, device::present, queueMsg(), radar1, radar1ButPresS(), radar1ButRelS(), radarServButPresS(), radarServButRelS(), radarServSetTab, radSrv, rhd1, statusAgco::rhd1But, rhd1ButPresS(), rhd1ButRelS(), rhd2, statusAgco::rhd2But, rhd2ButPresS(), rhd2ButRelS(), rhdLogging, rhdServButPresS(), rhdServButRelS(), rhdServSetTab, rhdSrv, RhdVar, ScreenHeight, ScreenWidth, device::shouldLog, serverState::silent, RhdVarStruct::size, DriveInfo::spaceInfo, statusStack, RhdVarStruct::sync, serverState::syncPeriod, SyncRhdSlot(), SyncRhdTimer, tabDisp, RhdVarStruct::table, DriveSpaceInfo::takenSpaceGB, DriveSpaceInfo::takenSpacePC, DriveSpaceInfo::totalSpaceGB, DriveSpaceInfo::totalSpacePC, updateImg(), updateQtVariable(), RhdVarStruct::val, varUpdated(), guiState::view1, guiState::view2, guiState::view3, guiState::viewUpdated1, guiState::viewUpdated2, guiState::viewUpdated3, watchdogTimer, and watchdogTimerS().

MainWindow::~MainWindow ( )

Class destructor.

MainWindow::MainWindow ( QWidget *  parent = 0)
MainWindow::~MainWindow ( )

Member Function Documentation

void MainWindow::butt1ClickS ( )
privateslot
void MainWindow::butt1ClickS ( )
privateslot
void MainWindow::cam1ButPresS ( )
privateslot
void MainWindow::cam1ButPresS ( )
privateslot

References cam1, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::cam1ButRelS ( )
privateslot
void MainWindow::cam1ButRelS ( )
privateslot

References cam1, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::cam2ButPresS ( )
privateslot
void MainWindow::cam2ButPresS ( )
privateslot

References cam2, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::cam2ButRelS ( )
privateslot
void MainWindow::cam2ButRelS ( )
privateslot

References cam2, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::cam3ButPresS ( )
privateslot
void MainWindow::cam3ButPresS ( )
privateslot

References cam3, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::cam3ButRelS ( )
privateslot
void MainWindow::cam3ButRelS ( )
privateslot

References cam3, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::cam4ButPresS ( )
privateslot
void MainWindow::cam4ButPresS ( )
privateslot

References cam4, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::cam4ButRelS ( )
privateslot
void MainWindow::cam4ButRelS ( )
privateslot

References cam4, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::camPi1ButPresS ( )
privateslot

References camPi1, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::camPi1ButRelS ( )
privateslot

References camPi1, device::devTag, and queueMsg().

Referenced by MainWindow().

void MainWindow::camPiServButPresS ( )
privateslot
void MainWindow::camPiServButRelS ( )
privateslot

References queueMsg().

Referenced by MainWindow().

void MainWindow::camServButPresS ( )
privateslot
void MainWindow::camServButPresS ( )
privateslot
void MainWindow::camServButRelS ( )
privateslot
void MainWindow::camServButRelS ( )
privateslot

References queueMsg().

Referenced by MainWindow().

void MainWindow::changeView1 ( int  value)
privateslot
void MainWindow::changeView1 ( int  value)
privateslot
void MainWindow::changeView2 ( int  value)
privateslot
void MainWindow::changeView2 ( int  value)
privateslot
void MainWindow::changeView3 ( int  value)
privateslot
void MainWindow::changeView3 ( int  value)
privateslot
void MainWindow::connToRhdSlot ( )
privateslot
void MainWindow::connToRhdSlot ( )
privateslot
virtual void MainWindow::consoleReply ( const char *  s)
virtual

Reimplemented from UQevent.

void MainWindow::consoleReply ( const char *  s)
virtual

Reimplementation of function "vitual void consoleReply(const char *s)".

Reimplemented from UQevent.

References messageEvent().

void MainWindow::exitApp ( )
privateslot
void MainWindow::exitApp ( )
privateslot

Close GUI and client.

References appTerm, termEmulator::disp, and termEmulator::postTermMessage().

Referenced by MainWindow().

DriveSpaceInfo MainWindow::getSpaceInfo ( QString  sDirPath)
DriveSpaceInfo MainWindow::getSpaceInfo ( QString  sDirPath)
void MainWindow::imgUpdated ( int  imgNum)
signal
void MainWindow::imgUpdated ( int  imgNum)
signal

Referenced by imgUpdatedEvent(), and MainWindow().

virtual void MainWindow::imgUpdatedEvent ( int  )
virtual

Constructor Destructor

Reimplemented from UQevent.

void MainWindow::imgUpdatedEvent ( int  updatdImgNr)
virtual

Reimplementation of function "vitual void imgUpdatedEvent(int updatdImgNr)".

Reimplemented from UQevent.

References imgUpdated().

void MainWindow::laser1ButPresS ( )
privateslot
void MainWindow::laser1ButPresS ( )
privateslot

References device::devTag, laser1, and queueMsg().

Referenced by MainWindow().

void MainWindow::laser1ButRelS ( )
privateslot
void MainWindow::laser1ButRelS ( )
privateslot

References device::devTag, laser1, and queueMsg().

Referenced by MainWindow().

void MainWindow::laserServButPresS ( )
privateslot
void MainWindow::laserServButPresS ( )
privateslot
void MainWindow::laserServButRelS ( )
privateslot
void MainWindow::laserServButRelS ( )
privateslot

References queueMsg().

Referenced by MainWindow().

void MainWindow::logTimeoutSlot ( )
privateslot
void MainWindow::logTimeoutSlot ( )
privateslot
void MainWindow::messageEvent ( QString  message)
signal
void MainWindow::messageEvent ( QString  message)
signal
void MainWindow::paintEvent ( QPaintEvent *  event)
protected
void MainWindow::paintEvent ( QPaintEvent *  event)
protected

Paint event for graphics on interface.

References ScreenHeight, and ScreenWidth.

virtual void MainWindow::postedCommand ( const char *  s)
virtual

Reimplemented from UQevent.

void MainWindow::postedCommand ( const char *  s)
virtual

Reimplementation of function "vitual void postedCommand(const char * s)".

Reimplemented from UQevent.

References messageEvent().

void MainWindow::queueMsg ( QString  Buffer)
privateslot
void MainWindow::queueMsg ( QString  Buffer)
privateslot
void MainWindow::radar1ButPresS ( )
privateslot

References device::devTag, queueMsg(), and radar1.

Referenced by MainWindow().

void MainWindow::radar1ButRelS ( )
privateslot

References device::devTag, queueMsg(), and radar1.

Referenced by MainWindow().

void MainWindow::radarServButPresS ( )
privateslot
void MainWindow::radarServButRelS ( )
privateslot

References queueMsg().

Referenced by MainWindow().

void MainWindow::resizeEvent ( QResizeEvent *  event)
protected
void MainWindow::resizeEvent ( QResizeEvent *  event)
protected
void MainWindow::rhd1ButPresS ( )
privateslot
void MainWindow::rhd1ButPresS ( )
privateslot

Referenced by MainWindow().

void MainWindow::rhd1ButRelS ( )
privateslot
void MainWindow::rhd1ButRelS ( )
privateslot

References agcoStat, and statusAgco::rhd1But.

Referenced by MainWindow().

void MainWindow::rhd2ButPresS ( )
privateslot
void MainWindow::rhd2ButPresS ( )
privateslot

Referenced by MainWindow().

void MainWindow::rhd2ButRelS ( )
privateslot
void MainWindow::rhd2ButRelS ( )
privateslot

References agcoStat, and statusAgco::rhd2But.

Referenced by MainWindow().

void MainWindow::rhdServButPresS ( )
privateslot
void MainWindow::rhdServButPresS ( )
privateslot
void MainWindow::rhdServButRelS ( )
privateslot
void MainWindow::rhdServButRelS ( )
privateslot
void MainWindow::SyncRhdSlot ( )
privateslot
void MainWindow::SyncRhdSlot ( )
privateslot

Referenced by MainWindow().

void MainWindow::updateImg ( int  value)
privateslot
void MainWindow::updateImg ( int  value)
privateslot
void MainWindow::updateQtVariable ( UVariable var)
privateslot
void MainWindow::updateQtVariable ( UVariable var)
privateslot
void MainWindow::varUpdated ( UVariable var)
signal
void MainWindow::varUpdated ( UVariable var)
signal

Referenced by MainWindow(), and varUpdatedEvent().

virtual void MainWindow::varUpdatedEvent ( UVariable var)
virtual

Reimplemented from UQevent.

void MainWindow::varUpdatedEvent ( UVariable var)
virtual

Reimplementation of function "vitual void varUpdatedEvent(UVariable *var)".

Reimplemented from UQevent.

References UVariable::name, and varUpdated().

void MainWindow::watchdogTimerS ( )
privateslot
void MainWindow::watchdogTimerS ( )
privateslot

Member Data Documentation

statusAgco * MainWindow::agcoStat
termEmulator * MainWindow::appTerm
QToolButton * MainWindow::butt1
QToolButton * MainWindow::butt4
camPiServSetWidget* MainWindow::camPiServSetTab

Referenced by MainWindow(), and updateQtVariable().

camServSetWidget * MainWindow::camServSetTab

Referenced by MainWindow(), and updateQtVariable().

clientSetWidget * MainWindow::clientSetTab

Referenced by MainWindow().

UServerStatic * MainWindow::cmdexe
QTimer * MainWindow::connToRhdTimer
QLabel * MainWindow::driveInfo1
QLabel * MainWindow::driveInfo2
QLabel * MainWindow::driveInfo3
QToolButton * MainWindow::exitButt

Referenced by MainWindow(), and resizeEvent().

guiSetWidget * MainWindow::guiSetTab

Referenced by MainWindow(), and updateQtVariable().

QStackedWidget * MainWindow::imageStack1
QStackedWidget * MainWindow::imageStack2
QStackedWidget * MainWindow::imageStack3
QLabel * MainWindow::imgLabel1

Referenced by changeView1(), MainWindow(), and updateImg().

QLabel * MainWindow::imgLabel2

Referenced by changeView2(), MainWindow(), and updateImg().

QLabel * MainWindow::imgLabel3

Referenced by changeView3(), MainWindow(), and updateImg().

QLabel * MainWindow::ImgLabelStack1
QLabel * MainWindow::ImgLabelStack2
QLabel * MainWindow::ImgLabelStack3
QImage * MainWindow::imgNA
private
lmsServSetWidget * MainWindow::lmsServSetTab

Referenced by MainWindow(), and updateQtVariable().

QTimer * MainWindow::logTimeout

Referenced by butt1ClickS(), and MainWindow().

radarServSetWidget* MainWindow::radarServSetTab

Referenced by MainWindow(), and updateQtVariable().

int MainWindow::rhdLogging
private

Referenced by MainWindow(), and watchdogTimerS().

rhdServSetWidget * MainWindow::rhdServSetTab

Referenced by MainWindow().

QStackedWidget * MainWindow::statusStack

Referenced by MainWindow().

QTimer * MainWindow::SyncRhdTimer
QTabWidget * MainWindow::tabDisp

Referenced by MainWindow(), and resizeEvent().

QTimer * MainWindow::watchdogTimer

Referenced by MainWindow().


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