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

#include <qserver.h>

Inheritance diagram for UQtgui:
Inheritance graph

Public Slots

void killServer ()
 
void sendCmdToServer (QString cmd)
 
void updateImg (int value)
 
void updateVar (UVarPool *varStruct)
 
void updVarEvent (UVariable *var)
 

Signals

void imgUpdated (int newValue)
 
void messageEvent (QString message)
 
void varUpdated (UVarPool *varStruct)
 
void varUpdEvent (UVariable *var)
 

Public Member Functions

virtual void consoleReply (const char *s)
 Reimplementation of function "vitual void consoleReply(const char *s)". More...
 
virtual void imgUpdatedEvent (int updatdImgNr)
 
void makeTopViewMenu ()
 
virtual void postedCommand (const char *s)
 Reimplementation of function "vitual void postedCommand(const char * s)". More...
 
 UQtgui ()
 
virtual void varEvent (UVarPool *varStruct)
 
virtual void varUpdatedEvent (UVariable *var)
 
virtual ~UQtgui ()
 

Public Attributes

UCmdExecmdexe
 

Private Slots

void imgPanEvent (int imgnr, int dx, int dy)
 
void topPanLeft (bool left)
 
void topRobotField ()
 
void topRobotGuidebot ()
 
void topRobotHako ()
 
void topRobotIrobot ()
 
void topRobotMmr ()
 
void topRobotSmr ()
 
void topViewBold ()
 
void topViewZoomIn ()
 
void topViewZoomOut ()
 
void updateTime ()
 time to do some regular update services - like test status of buttons More...
 

Private Member Functions

UQStandardItemgetGlobalItem (QStandardItem *root, const char *group, const char *name)
 
UVariablegetGlobalVar (const char *group, const char *name)
 
QStandardItem * getQTItem (const char *name, QStandardItem *troot)
 
void initTreeStruct (QTreeView *treeView)
 errors detected in slot end More...
 
void setStruct (UVarPool *varStruct, QStandardItem *troot)
 
void setVar (UVariable *varStruct)
 

Private Attributes

QDockWidget * dock1
 
QDockWidget * dock2
 
QMenu * fileMenu
 
QAction * fquit
 
UQimageqimgs [100]
 
UTermEmulatorterminalGui
 
QAction * topBoldAct
 
QAction * topPanLeftAct
 
QAction * topPanRightAct
 
QAction * topRobotFieldAct
 
QActionGroup * topRobotGroup
 
QAction * topRobotGuidebotAct
 
QAction * topRobotHakoAct
 
QAction * topRobotIrobotAct
 
QMenu * topRobotMenu
 
QAction * topRobotMmrAct
 
QAction * topRobotSmrAct
 
QMenu * topviewMenu
 
QAction * topZoomInAct
 
QAction * topZoomOutAct
 
QStandardItemModel * treeModel
 
QStandardItem * treeRoot
 
QTreeView * treeView
 
QTimer updateTimer
 
int varEmitCnt
 
int varEmitErrCnt
 received in slot end More...
 
UTime varEmitUpdTime
 
int varSlotCnt
 emitted More...
 
int varSlotErrCnt
 errors detected in emit end More...
 
UTime varUpdTime
 
QMenu * viewMenu
 

Detailed Description

Main q-client window class, that has reference to the basic cmdexe class from mobotware server (auclient)

Constructor & Destructor Documentation

UQtgui::UQtgui ( )

get tree view item with reference to global variable at level 2 relative to this item

Parameters
groupis name of the structure at root level
nameis the name of a variable or structure at that level
Returns
a pointer to the UQStandardItem that holds relevant var pointers search the items in this part of the tree for an item with this name
UQtgui::~UQtgui ( )
virtual

Member Function Documentation

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

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

Reimplemented from UQevent.

UQStandardItem * UQtgui::getGlobalItem ( QStandardItem *  root,
const char *  group,
const char *  name 
)
private

get tree view item with reference to global variable at level 2

Parameters
rootis the structure to search into
groupis name of the structure at root level
nameis the name of a variable or structure at that level
Returns
a pointer to the UQStandardItem that holds relevant var pointers
UVariable * UQtgui::getGlobalVar ( const char *  group,
const char *  name 
)
private

get variable reference from global variable tree view structure

Parameters
groupis name of structure at root level
nameis the name of a variable at that level
Returns
a pointer to the global variable (in qclient)

References UQStandardItem::var.

QStandardItem * UQtgui::getQTItem ( const char *  name,
QStandardItem *  troot 
)
private

find an entry at this level with this name.

Parameters
nameis name to be found
trootis the branch to search
Returns
a pointer to the item that matches, ot NULL, if no match
void UQtgui::imgPanEvent ( int  imgnr,
int  dx,
int  dy 
)
privateslot
void UQtgui::imgUpdated ( int  newValue)
signal
void UQtgui::imgUpdatedEvent ( int  )
virtual

Constructor Destructor

Reimplemented from UQevent.

void UQtgui::initTreeStruct ( QTreeView *  treeView)
private

errors detected in slot end

initialize tree view with headlines etc.

void UQtgui::killServer ( )
slot
void UQtgui::makeTopViewMenu ( )

make menu actions for top view window

void UQtgui::messageEvent ( QString  message)
signal
void UQtgui::postedCommand ( const char *  s)
virtual

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

Reimplemented from UQevent.

void UQtgui::sendCmdToServer ( QString  cmd)
slot
void UQtgui::setStruct ( UVarPool varStruct,
QStandardItem *  troot 
)
private
void UQtgui::setVar ( UVariable varStruct)
private
void UQtgui::topPanLeft ( bool  left)
privateslot
void UQtgui::topRobotField ( )
privateslot
void UQtgui::topRobotGuidebot ( )
privateslot
void UQtgui::topRobotHako ( )
privateslot
void UQtgui::topRobotIrobot ( )
privateslot
void UQtgui::topRobotMmr ( )
privateslot
void UQtgui::topRobotSmr ( )
privateslot
void UQtgui::topViewBold ( )
privateslot
void UQtgui::topViewZoomIn ( )
privateslot
void UQtgui::topViewZoomOut ( )
privateslot
void UQtgui::updateImg ( int  value)
slot
void UQtgui::updateTime ( )
privateslot

time to do some regular update services - like test status of buttons

void UQtgui::updateVar ( UVarPool varStruct)
slot
void UQtgui::updVarEvent ( UVariable var)
slot
void UQtgui::varEvent ( UVarPool varStruct)
virtual

Referenced by runServer().

void UQtgui::varUpdated ( UVarPool varStruct)
signal
void UQtgui::varUpdatedEvent ( UVariable var)
virtual

Reimplemented from UQevent.

References UVariable::name.

void UQtgui::varUpdEvent ( UVariable var)
signal

Member Data Documentation

UCmdExe* UQtgui::cmdexe

Referenced by runServer().

QDockWidget* UQtgui::dock1
private
QDockWidget* UQtgui::dock2
private
QMenu* UQtgui::fileMenu
private
QAction* UQtgui::fquit
private
UQimage* UQtgui::qimgs[100]
private
UTermEmulator* UQtgui::terminalGui
private
QAction* UQtgui::topBoldAct
private
QAction* UQtgui::topPanLeftAct
private
QAction* UQtgui::topPanRightAct
private
QAction* UQtgui::topRobotFieldAct
private
QActionGroup* UQtgui::topRobotGroup
private
QAction* UQtgui::topRobotGuidebotAct
private
QAction* UQtgui::topRobotHakoAct
private
QAction* UQtgui::topRobotIrobotAct
private
QMenu* UQtgui::topRobotMenu
private
QAction* UQtgui::topRobotMmrAct
private
QAction* UQtgui::topRobotSmrAct
private
QMenu* UQtgui::topviewMenu
private
QAction* UQtgui::topZoomInAct
private
QAction* UQtgui::topZoomOutAct
private
QStandardItemModel* UQtgui::treeModel
private
QStandardItem* UQtgui::treeRoot
private
QTreeView* UQtgui::treeView
private
QTimer UQtgui::updateTimer
private
int UQtgui::varEmitCnt
private

debug for var update queue - values shown in tree as value to "var"

int UQtgui::varEmitErrCnt
private

received in slot end

UTime UQtgui::varEmitUpdTime
private
int UQtgui::varSlotCnt
private

emitted

int UQtgui::varSlotErrCnt
private

errors detected in emit end

UTime UQtgui::varUpdTime
private
QMenu* UQtgui::viewMenu
private

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