AURobotServers
4
|
#include <mainwindow.h>
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 | |
statusAgco * | agcoStat |
termEmulator * | appTerm |
QToolButton * | butt1 |
QToolButton * | butt4 |
camPiServSetWidget * | camPiServSetTab |
camServSetWidget * | camServSetTab |
clientSetWidget * | clientSetTab |
UServerStatic * | cmdexe |
QTimer * | connToRhdTimer |
QLabel * | driveInfo1 |
QLabel * | driveInfo2 |
QLabel * | driveInfo3 |
QToolButton * | exitButt |
guiSetWidget * | guiSetTab |
QStackedWidget * | imageStack1 |
QStackedWidget * | imageStack2 |
QStackedWidget * | imageStack3 |
QLabel * | imgLabel1 |
QLabel * | imgLabel2 |
QLabel * | imgLabel3 |
QLabel * | ImgLabelStack1 [100] |
QLabel * | ImgLabelStack2 [100] |
QLabel * | ImgLabelStack3 [100] |
lmsServSetWidget * | lmsServSetTab |
QTimer * | logTimeout |
radarServSetWidget * | radarServSetTab |
rhdServSetWidget * | rhdServSetTab |
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 Attributes | |
QImage * | imgNA |
int | rhdLogging |
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 | ( | ) |
|
privateslot |
|
privateslot |
Button 1 clicked slot.
Start logging ucamserver images
Stop logging
References RhdVarStruct::address, appTerm, butt1, cam1, cam2, cam3, cam4, camPi1, camPiSrv, camSrv, serverState::connected, device::devTag, serverState::host, laser1, lmsSrv, device::logCloseComm, device::logOpenComm, logTimeout, messageEvent(), device::opened, serverState::port, termEmulator::postTermMessage(), device::present, queueMsg(), radar1, radSrv, rhdSrv, RhdVar, and device::shouldLog.
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References cam1, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References cam1, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References cam2, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References cam2, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References cam3, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References cam3, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References cam4, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References cam4, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
References camPi1, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
References camPi1, device::devTag, and queueMsg().
Referenced by MainWindow().
|
privateslot |
References camPiSrv, serverState::host, serverState::port, and queueMsg().
Referenced by MainWindow().
|
privateslot |
References queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References camSrv, serverState::host, serverState::port, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References guiData, imageStack1, imgLabel1, ScreenHeight, ScreenWidth, and guiState::view1.
Referenced by MainWindow(), and watchdogTimerS().
|
privateslot |
|
privateslot |
References guiData, imageStack2, imgLabel2, ScreenHeight, ScreenWidth, and guiState::view2.
Referenced by MainWindow(), and watchdogTimerS().
|
privateslot |
|
privateslot |
References guiData, imageStack3, imgLabel3, ScreenHeight, ScreenWidth, and guiState::view3.
Referenced by MainWindow(), and watchdogTimerS().
|
privateslot |
|
privateslot |
RHD connection routine.
References RhdVarStruct::address, appTerm, serverState::connect, serverState::connected, serverState::connecting, serverState::connectionStep, connToRhdTimer, getinputref(), getoutputref(), serverState::host, serverState::inputTable, RhdVarStruct::name, serverState::outputTable, serverState::permission, serverState::port, termEmulator::postTermMessage(), rhdSrv, RhdVar, serverState::silent, RhdVarStruct::sync, and SyncRhdTimer.
Referenced by MainWindow().
|
virtual |
Reimplemented from UQevent.
|
virtual |
Reimplementation of function "vitual void consoleReply(const char *s)".
Reimplemented from UQevent.
References messageEvent().
|
privateslot |
|
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 | ) |
Get drive space information.
References DriveSpaceInfo::freeSpaceGB, DriveSpaceInfo::freeSpacePC, DriveSpaceInfo::infoValid, DriveSpaceInfo::takenSpaceGB, DriveSpaceInfo::takenSpacePC, DriveSpaceInfo::totalSpaceGB, and DriveSpaceInfo::totalSpacePC.
Referenced by watchdogTimerS().
|
signal |
|
signal |
Referenced by imgUpdatedEvent(), and MainWindow().
|
virtual |
Constructor Destructor
Reimplemented from UQevent.
|
virtual |
Reimplementation of function "vitual void imgUpdatedEvent(int updatdImgNr)".
Reimplemented from UQevent.
References imgUpdated().
|
privateslot |
|
privateslot |
References device::devTag, laser1, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References device::devTag, laser1, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References serverState::host, lmsSrv, serverState::port, and queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References queueMsg().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
Stop logging
References RhdVarStruct::address, appTerm, butt1, cam1, cam2, cam3, cam4, camPi1, serverState::connected, laser1, device::logCloseComm, messageEvent(), termEmulator::postTermMessage(), queueMsg(), radar1, rhdSrv, and RhdVar.
Referenced by MainWindow().
|
signal |
|
signal |
Referenced by butt1ClickS(), consoleReply(), logTimeoutSlot(), MainWindow(), postedCommand(), and watchdogTimerS().
|
protected |
|
protected |
Paint event for graphics on interface.
References ScreenHeight, and ScreenWidth.
|
virtual |
Reimplemented from UQevent.
|
virtual |
Reimplementation of function "vitual void postedCommand(const char * s)".
Reimplemented from UQevent.
References messageEvent().
|
privateslot |
|
privateslot |
Post a message/command to the server queue.
References cmdexe, and UCmdExe::postCommand().
Referenced by butt1ClickS(), cam1ButPresS(), cam1ButRelS(), cam2ButPresS(), cam2ButRelS(), cam3ButPresS(), cam3ButRelS(), cam4ButPresS(), cam4ButRelS(), camPi1ButPresS(), camPi1ButRelS(), camPiServButPresS(), camPiServButRelS(), camServButPresS(), camServButRelS(), laser1ButPresS(), laser1ButRelS(), laserServButPresS(), laserServButRelS(), logTimeoutSlot(), MainWindow(), radar1ButPresS(), radar1ButRelS(), radarServButPresS(), radarServButRelS(), updateQtVariable(), and watchdogTimerS().
|
privateslot |
References device::devTag, queueMsg(), and radar1.
Referenced by MainWindow().
|
privateslot |
References device::devTag, queueMsg(), and radar1.
Referenced by MainWindow().
|
privateslot |
References serverState::host, serverState::port, queueMsg(), and radSrv.
Referenced by MainWindow().
|
privateslot |
References queueMsg().
Referenced by MainWindow().
|
protected |
|
protected |
Update all widget sizes on a resizeEvent.
References butt1, ButtonWidth, driveInfo1, driveInfo2, driveInfo3, exitButt, DriveSpaceInfo::freeSpacePC, imageStack1, imageStack2, imageStack3, logDrive, ScreenHeight, ScreenWidth, DriveInfo::spaceInfo, and tabDisp.
|
privateslot |
|
privateslot |
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References agcoStat, and statusAgco::rhd1But.
Referenced by MainWindow().
|
privateslot |
|
privateslot |
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References agcoStat, and statusAgco::rhd2But.
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References serverState::connect, serverState::connected, serverState::connectionStep, connToRhdTimer, and rhdSrv.
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References RhdVarStruct::address, appTerm, serverState::connect, serverState::connected, serverState::connectionStep, connToRhdTimer, RhdVarStruct::name, termEmulator::postTermMessage(), rhdSrv, RhdVar, RhdVarStruct::size, RhdVarStruct::sync, SyncRhdTimer, RhdVarStruct::table, and RhdVarStruct::val.
Referenced by MainWindow().
|
privateslot |
|
privateslot |
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References appTerm, cmdexe, guiState::desiredView1, guiState::desiredView2, guiState::desiredView3, UImage::getConvertBuffer(), UImage::getData(), UImagePool::getImage(), UCmdExe::getStaticResource(), guiData, UImage::height(), img, imgLabel1, imgLabel2, imgLabel3, UImage::isRGB(), termEmulator::postTermMessage(), ScreenHeight, ScreenWidth, UImage::toRGB(), guiState::view1, guiState::view2, guiState::view3, guiState::viewUpdated1, guiState::viewUpdated2, guiState::viewUpdated3, and UImage::width().
Referenced by MainWindow().
|
privateslot |
|
privateslot |
References agcoStat, guiSetWidget::availableImages(), cam1, statusAgco::cam1But, statusAgco::cam1PiBut, cam2, statusAgco::cam2But, cam3, statusAgco::cam3But, cam4, statusAgco::cam4But, camPi1, camPiServSetTab, camPiSrv, statusAgco::camServBut, statusAgco::camServPiBut, camServSetTab, camSrv, serverState::connect, serverState::connected, device::devTag, guiData, guiSetTab, radarServSetWidget::hostNameValue, lmsServSetWidget::hostNameValue, camServSetWidget::hostNameValue, camPiServSetWidget::hostNameValue, guiState::imgListUpdated1, guiState::imgListUpdated2, guiState::imgListUpdated3, laser1, statusAgco::lms1But, statusAgco::lmsServBut, lmsServSetTab, lmsSrv, device::logging, UVariable::name, device::open, device::opened, camPiServSetWidget::portValue, radarServSetWidget::portValue, camServSetWidget::portValue, lmsServSetWidget::portValue, device::present, queueMsg(), radar1, statusAgco::radar1But, statusAgco::radarServBut, radarServSetTab, radSrv, and device::shouldLog.
Referenced by MainWindow().
|
signal |
|
signal |
Referenced by MainWindow(), and varUpdatedEvent().
|
virtual |
Reimplementation of function "vitual void varUpdatedEvent(UVariable *var)".
Reimplemented from UQevent.
References UVariable::name, and varUpdated().
|
privateslot |
|
privateslot |
Watchdog timer slot.
References RhdVarStruct::address, agcoStat, appTerm, butt1, ButtonWidth, cam1, cam2, cam3, cam4, camPi1, camPiSrv, changeView1(), changeView2(), changeView3(), serverState::connect, serverState::connected, serverState::connecting, serverState::connectionStep, connToRhdTimer, guiState::desiredView1, guiState::desiredView2, guiState::desiredView3, driveInfo1, driveInfo2, driveInfo3, DriveSpaceInfo::freeSpaceGB, DriveSpaceInfo::freeSpacePC, getSpaceInfo(), guiData, DriveSpaceInfo::infoValid, laser1, logDrive, device::logging, messageEvent(), device::name, RhdVarStruct::name, device::opened, DriveInfo::path, termEmulator::postTermMessage(), queueMsg(), radar1, RecoverImg13, statusAgco::rhd1But, statusAgco::rhd2But, rhdLogging, statusAgco::rhdServBut, rhdSrv, RhdVar, ScreenHeight, ScreenWidth, device::shouldLog, RhdVarStruct::size, DriveInfo::spaceInfo, RhdVarStruct::sync, SyncRhdTimer, RhdVarStruct::table, DriveSpaceInfo::totalSpaceGB, RhdVarStruct::val, guiState::viewUpdated1, guiState::viewUpdated2, and guiState::viewUpdated3.
Referenced by MainWindow().
statusAgco * MainWindow::agcoStat |
Referenced by MainWindow(), rhd1ButRelS(), rhd2ButRelS(), updateQtVariable(), and watchdogTimerS().
termEmulator * MainWindow::appTerm |
Referenced by butt1ClickS(), connToRhdSlot(), exitApp(), logTimeoutSlot(), MainWindow(), rhdServButRelS(), updateImg(), and watchdogTimerS().
QToolButton * MainWindow::butt1 |
Referenced by butt1ClickS(), logTimeoutSlot(), MainWindow(), resizeEvent(), and watchdogTimerS().
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 |
Referenced by MainWindow(), queueMsg(), runServer(), and updateImg().
QTimer * MainWindow::connToRhdTimer |
Referenced by connToRhdSlot(), MainWindow(), rhdServButPresS(), rhdServButRelS(), and watchdogTimerS().
QLabel * MainWindow::driveInfo1 |
Referenced by MainWindow(), resizeEvent(), and watchdogTimerS().
QLabel * MainWindow::driveInfo2 |
Referenced by MainWindow(), resizeEvent(), and watchdogTimerS().
QLabel * MainWindow::driveInfo3 |
Referenced by MainWindow(), resizeEvent(), and watchdogTimerS().
QToolButton * MainWindow::exitButt |
Referenced by MainWindow(), and resizeEvent().
guiSetWidget * MainWindow::guiSetTab |
Referenced by MainWindow(), and updateQtVariable().
QStackedWidget * MainWindow::imageStack1 |
Referenced by changeView1(), MainWindow(), and resizeEvent().
QStackedWidget * MainWindow::imageStack2 |
Referenced by changeView2(), MainWindow(), and resizeEvent().
QStackedWidget * MainWindow::imageStack3 |
Referenced by changeView3(), MainWindow(), and resizeEvent().
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 |
|
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().
|
private |
Referenced by MainWindow(), and watchdogTimerS().
rhdServSetWidget * MainWindow::rhdServSetTab |
Referenced by MainWindow().
QStackedWidget * MainWindow::statusStack |
Referenced by MainWindow().
QTimer * MainWindow::SyncRhdTimer |
Referenced by connToRhdSlot(), MainWindow(), rhdServButRelS(), and watchdogTimerS().
QTabWidget * MainWindow::tabDisp |
Referenced by MainWindow(), and resizeEvent().
QTimer * MainWindow::watchdogTimer |
Referenced by MainWindow().