#include "toolbar.h"
|
static QList< Room > | myRooms () |
|
static QString | identifyMgrIP () |
| Identifies the responsible manager for this client by searching through the configuration file. More...
|
|
Definition at line 32 of file toolbar.h.
Toolbar::Toolbar |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Constructor of the Toolbar.
Constructs a widget which is a child of parent. Initialize the GUI and sets up the menu, sets window properties, create the VNC- and connect-window, connects the necessary signals, sets the UI's position and configuires the timer for the UI to be hidden.
- Parameters
-
parent | If parent is 0, the new widget becomes a window. If parent is another widget, this widget becomes a child window inside parent. The new widget is deleted when its parent is deleted. |
Definition at line 83 of file toolbar.cpp.
Toolbar::Toolbar |
( |
const QByteArray & |
sessionName, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
Does exact teh same as Toolbar::Toolbar(QWidget *parent) but additionally instantly tries to connect to a pvsmgr with the given sessionName.
- Parameters
-
sessionName | The session to connect to. |
parent | If parent is 0, the new widget becomes a window. If parent is another widget, this widget becomes a child window inside parent. The new widget is deleted when its parent is deleted. |
Definition at line 28 of file toolbar.cpp.
Toolbar::Toolbar |
( |
bool |
autoConnect, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
Constructor of the Toolbar.
Does exact the same as Toolbar::Toolbar(QWidget *parent) but additionally instantly tries to connect to the pvsmgr in its room without sessionName.
- Parameters
-
autoConnect | |
parent | If parent is 0, the new widget becomes a window. If parent is another widget, this widget becomes a child window inside parent. The new widget is deleted when its parent is deleted. |
Definition at line 52 of file toolbar.cpp.
Destructor of the Toolbar.
Destroys the widget. All this widget's children are deleted first.
Definition at line 222 of file toolbar.cpp.
void Toolbar::cameraBlink |
( |
| ) |
|
|
privateslot |
A slot for changing the camera icon.
This slot should be called permanently if the vnc server is recording the screen.
Definition at line 337 of file toolbar.cpp.
void Toolbar::delayedHideBar |
( |
| ) |
|
|
privateslot |
void Toolbar::delayedShowBar |
( |
| ) |
|
|
privateslot |
void Toolbar::enterEvent |
( |
QEvent * |
e | ) |
|
|
overrideprivate |
This event is reimplemented to receive widget enter events.
When the mouse cursor enters the widget, the timer which, when timed out, hides the Toolbar, gets stopped.
- Parameters
-
e | The enter event (Mouse enters widget's boundaries.) |
Definition at line 239 of file toolbar.cpp.
void Toolbar::hideBar |
( |
| ) |
|
|
privateslot |
This slot hides the toolbar.
Places the toolbar hidden behind the edge of the screen just showing 2 pixels.
Definition at line 439 of file toolbar.cpp.
QString Toolbar::identifyMgrIP |
( |
| ) |
|
|
staticprivate |
Identifies the responsible manager for this client by searching through the configuration file.
The manager whose room has the highest priority is chosen.
Definition at line 319 of file toolbar.cpp.
void Toolbar::initButtonsAndMenus |
( |
| ) |
|
|
private |
This function should be called once from the main init() function which in turn should only be called by the constructor.
Definition at line 163 of file toolbar.cpp.
void Toolbar::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprivate |
void Toolbar::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprivate |
QList< Room > Toolbar::myRooms |
( |
| ) |
|
|
staticprivate |
void Toolbar::onBtnAttention |
( |
| ) |
|
|
privateslot |
A slot for the onConnected signal of the ConnectWindow.
This slot will change the UI according to the state of the connection and connect the relevant signals and slots.
- Parameters
-
Definition at line 396 of file toolbar.cpp.
A slot for the onDisconnected signal of the ConnectWindow.
This slot will change the UI according to the state fo the connection.
Definition at line 374 of file toolbar.cpp.
void Toolbar::onDoDisconnect |
( |
| ) |
|
|
privateslot |
void Toolbar::onServerAttentionChanged |
( |
bool |
on | ) |
|
|
privateslot |
void Toolbar::onVncServerIsRunning |
( |
int |
port | ) |
|
|
privateslot |
A slot for the VncServerIsRunning signal.
This slot will change the UI according to the state fo the VncServer.
- Parameters
-
[in] | port | Indicates the state of the VncServer. |
Definition at line 354 of file toolbar.cpp.
void Toolbar::setToolbarPosition |
( |
const QRect & |
geometry | ) |
|
|
privateslot |
void Toolbar::showAboutDialog |
( |
| ) |
|
|
privateslot |
void Toolbar::showBar |
( |
| ) |
|
|
privateslot |
void Toolbar::showInformationDialog |
( |
| ) |
|
|
privateslot |
QAction* Toolbar::_acnAbout {} |
|
private |
QAction* Toolbar::_acnConnect {} |
|
private |
QAction* Toolbar::_acnDisconnect {} |
|
private |
QAction* Toolbar::_acnInformation {} |
|
private |
QAction* Toolbar::_acnQuit {} |
|
private |
const QPixmap Toolbar::_beWatchedEye |
|
private |
QTimer Toolbar::_blinkTimer |
|
private |
const QPixmap Toolbar::_cam32 |
|
private |
int Toolbar::_hideCountdown |
|
private |
QTimer Toolbar::_hideTimer |
|
private |
QPoint Toolbar::_lastDragPos |
|
private |
QTimer Toolbar::_showTimer |
|
private |
Ui::Toolbar* Toolbar::_ui {} |
|
private |
int Toolbar::_yPosHidden {} |
|
private |
The documentation for this class was generated from the following files: