Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
Main Page
Namespaces
Classes
Files
File List
File Members
client
toolbar
toolbar.h
Go to the documentation of this file.
1
/*
2
# Copyright (c) 2009, 2010 - OpenSLX Project, Computer Center University of
3
# Freiburg
4
#
5
# This program is free software distributed under the GPL version 2.
6
# See http://openslx.org/COPYING
7
#
8
# If you have any feedback please consult http://openslx.org/feedback and
9
# send your suggestions, praise, or complaints to feedback@openslx.org
10
#
11
# General information about OpenSLX can be found at http://openslx.org/
12
*/
13
14
#ifndef PVSCLIENTGUI_H_
15
#define PVSCLIENTGUI_H_
16
17
#include <QWidget>
18
#include <QTimer>
19
#include "../util/room.h"
20
21
class
ServerConnection
;
22
class
VncWindow
;
23
class
BlankScreen
;
24
25
class
QMenu;
26
27
namespace
Ui
28
{
29
class
Toolbar
;
30
}
31
32
class
Toolbar
:
public
QWidget
33
{
34
Q_OBJECT
35
36
public
:
37
explicit
Toolbar
(
QWidget
*parent =
nullptr
);
38
explicit
Toolbar
(
const
QByteArray& sessionName,
QWidget
*parent =
nullptr
);
39
explicit
Toolbar
(
bool
autoConnect,
QWidget
*parent =
nullptr
);
40
~Toolbar
()
override
;
41
42
private
:
43
Ui::Toolbar *
_ui
{};
44
QMenu *
_menu
{};
45
QAction *
_acnDisconnect
{};
46
QAction *
_acnConnect
{};
47
QAction *
_acnInformation
{};
48
QAction *
_acnAbout
{};
49
QAction *
_acnQuit
{};
50
QTimer
_showTimer
;
51
QTimer
_hideTimer
;
52
int
_hideCountdown
;
53
QTimer
_blinkTimer
;
54
VncWindow
*
_vnc
{};
55
const
QPixmap
_cam32
,
_beWatchedEye
;
56
QPoint
_lastDragPos
;
57
58
int
_yPos
{};
59
int
_yPosHidden
{};
60
61
void
enterEvent
(QEvent* e)
override
;
62
void
mousePressEvent
(QMouseEvent* event)
override
;
63
void
mouseMoveEvent
(QMouseEvent* event)
override
;
64
static
QList<Room>
myRooms
();
65
static
QString
identifyMgrIP
();
66
void
init
();
67
void
initButtonsAndMenus
();
68
69
private
slots:
70
void
onVncServerIsRunning
(
int
port);
71
void
onDisconnected
(
ServerConnection
* connection);
72
void
onConnected
(
ServerConnection
* connection);
73
void
onServerAttentionChanged
(
bool
on);
74
void
onDoDisconnect
();
75
void
onBtnAttention
();
76
void
exit
();
77
void
cameraBlink
();
78
void
showBar
();
79
void
hideBar
();
80
void
delayedShowBar
();
81
void
delayedHideBar
();
82
void
showAboutDialog
();
83
void
showInformationDialog
();
84
void
setToolbarPosition
(
const
QRect &geometry);
85
};
86
87
#endif
/* PVSCLIENTGUI_H_ */
Toolbar::mouseMoveEvent
void mouseMoveEvent(QMouseEvent *event) override
Definition:
toolbar.cpp:250
Toolbar::Toolbar
Toolbar(QWidget *parent=nullptr)
Constructor of the Toolbar.
Definition:
toolbar.cpp:83
Toolbar::_yPos
int _yPos
Definition:
toolbar.h:58
Toolbar::_ui
Ui::Toolbar * _ui
Definition:
toolbar.h:43
BlankScreen
Definition:
blankscreen.h:10
Toolbar::showBar
void showBar()
This slot shows the toolbar.
Definition:
toolbar.cpp:468
Toolbar::_acnConnect
QAction * _acnConnect
Definition:
toolbar.h:46
Toolbar::showAboutDialog
void showAboutDialog()
Toolbar::showAboutDialog.
Definition:
toolbar.cpp:485
Toolbar::initButtonsAndMenus
void initButtonsAndMenus()
This function should be called once from the main init() function which in turn should only be called...
Definition:
toolbar.cpp:163
QWidget
Ui
Definition:
connectwindow.cpp:21
Toolbar::onServerAttentionChanged
void onServerAttentionChanged(bool on)
Definition:
toolbar.cpp:425
Toolbar::_hideTimer
QTimer _hideTimer
Definition:
toolbar.h:51
Toolbar::delayedHideBar
void delayedHideBar()
Definition:
toolbar.cpp:456
Toolbar::_acnDisconnect
QAction * _acnDisconnect
Definition:
toolbar.h:45
Toolbar::delayedShowBar
void delayedShowBar()
Definition:
toolbar.cpp:474
Toolbar::identifyMgrIP
static QString identifyMgrIP()
Identifies the responsible manager for this client by searching through the configuration file...
Definition:
toolbar.cpp:319
Toolbar::~Toolbar
~Toolbar() override
Destructor of the Toolbar.
Definition:
toolbar.cpp:222
Toolbar::_yPosHidden
int _yPosHidden
Definition:
toolbar.h:59
Toolbar::_showTimer
QTimer _showTimer
Definition:
toolbar.h:50
Toolbar::hideBar
void hideBar()
This slot hides the toolbar.
Definition:
toolbar.cpp:439
Toolbar::_acnQuit
QAction * _acnQuit
Definition:
toolbar.h:49
Toolbar::_cam32
const QPixmap _cam32
Definition:
toolbar.h:55
Toolbar
Definition:
toolbar.h:32
Toolbar::cameraBlink
void cameraBlink()
A slot for changing the camera icon.
Definition:
toolbar.cpp:337
Toolbar::enterEvent
void enterEvent(QEvent *e) override
This event is reimplemented to receive widget enter events.
Definition:
toolbar.cpp:239
Toolbar::_beWatchedEye
const QPixmap _beWatchedEye
Definition:
toolbar.h:55
Toolbar::_acnInformation
QAction * _acnInformation
Definition:
toolbar.h:47
ServerConnection
Definition:
serverconnection.h:10
Toolbar::_hideCountdown
int _hideCountdown
Definition:
toolbar.h:52
Toolbar::_vnc
VncWindow * _vnc
Definition:
toolbar.h:54
Toolbar::onConnected
void onConnected(ServerConnection *connection)
A slot for the onConnected signal of the ConnectWindow.
Definition:
toolbar.cpp:396
Toolbar::_acnAbout
QAction * _acnAbout
Definition:
toolbar.h:48
Toolbar::onDisconnected
void onDisconnected(ServerConnection *connection)
A slot for the onDisconnected signal of the ConnectWindow.
Definition:
toolbar.cpp:374
Toolbar::exit
void exit()
Definition:
toolbar.cpp:89
Toolbar::_lastDragPos
QPoint _lastDragPos
Definition:
toolbar.h:56
Toolbar::mousePressEvent
void mousePressEvent(QMouseEvent *event) override
Definition:
toolbar.cpp:245
Toolbar::setToolbarPosition
void setToolbarPosition(const QRect &geometry)
Definition:
toolbar.cpp:520
Toolbar::onBtnAttention
void onBtnAttention()
Definition:
toolbar.cpp:508
Toolbar::onDoDisconnect
void onDoDisconnect()
Definition:
toolbar.cpp:419
VncWindow
Definition:
vncwindow.h:25
Toolbar::_blinkTimer
QTimer _blinkTimer
Definition:
toolbar.h:53
Toolbar::showInformationDialog
void showInformationDialog()
Definition:
toolbar.cpp:501
Toolbar::_menu
QMenu * _menu
Definition:
toolbar.h:44
Toolbar::onVncServerIsRunning
void onVncServerIsRunning(int port)
A slot for the VncServerIsRunning signal.
Definition:
toolbar.cpp:354
Toolbar::init
void init()
Definition:
toolbar.cpp:96
Toolbar::myRooms
static QList< Room > myRooms()
Definition:
toolbar.cpp:267
Generated on Tue Jul 9 2024 12:00:03 for Pool Video Switch v2 by
1.8.8