|
Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
|
Class for representing the clients of current session, with a specific frame displaying username and hostname for each one. More...
#include "connectionframe.h"
Inheritance diagram for ConnectionFrame:
Collaboration diagram for ConnectionFrame:Signals | |
| void | frameMoving (ConnectionFrame *frame) |
| void | frameMoved (ConnectionFrame *frame) |
| void | doubleClicked (ConnectionFrame *frame) |
| void | clicked (ConnectionFrame *frame) |
Public Member Functions | |
| ConnectionFrame (MainWindow *main, QWidget *parent, bool fromRoomplan=false) | |
| Initialize frame for connected client. More... | |
| ~ConnectionFrame () override | |
| const QPoint & | getGridPosition () const |
| void | setGridPosition (int x, int y) |
| void | setGridPosition (const QPoint &pos) |
| void | updateGeometry () |
| void | assignClient (Client *client) |
| Assign client to connectionFrame. More... | |
| void | setSelection (bool selected) |
| Set frame as selected or not. More... | |
| bool | isSelected () const |
| const QString & | computerId () const |
| void | setComputerId (QString computerId) |
| Client * | client () const |
| bool | isTutor () const |
| bool | isFromRoomplan () const |
| void | setTutor (bool b) |
| Set tutor status of frame. More... | |
Static Public Attributes | |
| static bool | paintDisabled = false |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) override |
| void | mouseDoubleClickEvent (QMouseEvent *event) override |
| Handle double click event on frame. More... | |
| void | mouseReleaseEvent (QMouseEvent *e) override |
| Handle mouse release event on frame. More... | |
| void | enterEvent (QEvent *event) override |
| Handle if mouse reaches frame. More... | |
| void | leaveEvent (QEvent *event) override |
| Handle mouse leaves frame. More... | |
| void | mousePressEvent (QMouseEvent *event) override |
| Handle mouse press on frame. More... | |
| void | mouseMoveEvent (QMouseEvent *event) override |
| Hanle mouse movement over frame. More... | |
| void | paintEvent (QPaintEvent *event) override |
| Draw remote screen in frame. More... | |
| void | timerEvent (QTimerEvent *event) override |
| Handle timer event. More... | |
Private Slots | |
| void | onClientDisconnected () |
| Handle if client was disconnected. More... | |
| void | onThumbUpdated (Client *client, const QImage &thumb) |
| Update thumb of specific client. More... | |
| void | updateAppearance () |
| Update appearence of frame. More... | |
| void | updateLabels () |
Private Member Functions | |
| void | showDefaultThumb () |
| Show default thumg instead of remote screen in connectionFrame. More... | |
| void | calcDesiredThumbSize (const QSize &frameSize) |
| QLabel * | addIcon (const QIcon *icon) |
| Add icon to connection frame. More... | |
Private Attributes | |
| QString | _computerId |
| QBoxLayout * | _mainLayout |
| QBoxLayout * | _iconLayout |
| QLabel * | _lblUserName |
| QLabel * | _lblHostName |
| QLabel * | _lblExamMode |
| QLabel * | _icoCam |
| QLabel * | _icoEye |
| QLabel * | _icoLock |
| QList< QLabel * > | _icons |
| QImage | _remoteScreen |
| QPoint | _clickPoint |
| QPoint | _previousPosition |
| QPoint | _gridPosition |
| QSize | _desiredThumbSize |
| Client * | _client {} |
| int | _timerId {} |
| int | _timerCounter {} |
| bool | _isSelected {} |
| bool | _isTutor {} |
| bool | _isFromRoomplan |
| MainWindow * | _mainWindow |
Class for representing the clients of current session, with a specific frame displaying username and hostname for each one.
Definition at line 17 of file connectionframe.h.
| ConnectionFrame::ConnectionFrame | ( | MainWindow * | main, |
| QWidget * | parent, | ||
| bool | fromRoomplan = false |
||
| ) |
Initialize frame for connected client.
| parent | |
| width | |
| height |
Definition at line 78 of file connectionframe.cpp.
Here is the call graph for this function:
|
override |
Definition at line 133 of file connectionframe.cpp.
|
private |
Add icon to connection frame.
| icon |
Definition at line 165 of file connectionframe.cpp.
Here is the caller graph for this function:| void ConnectionFrame::assignClient | ( | Client * | client | ) |
Assign client to connectionFrame.
Set hostName, userName and tutor status to display.
| client |
Definition at line 180 of file connectionframe.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
signal |
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 71 of file connectionframe.h.
|
signal |
Here is the caller graph for this function:
|
overrideprotected |
|
signal |
Here is the caller graph for this function:
|
signal |
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Definition at line 69 of file connectionframe.h.
|
inline |
Definition at line 79 of file connectionframe.h.
|
overrideprotected |
|
overrideprotected |
Handle double click event on frame.
| event |
Definition at line 305 of file connectionframe.cpp.
|
overrideprotected |
Hanle mouse movement over frame.
| event |
Definition at line 271 of file connectionframe.cpp.
|
overrideprotected |
|
overrideprotected |
Handle mouse release event on frame.
Check if frame was clicked or moved, if not moved enough, the event is handled as click.
| event |
Definition at line 286 of file connectionframe.cpp.
|
privateslot |
Handle if client was disconnected.
Kill timer and set appearence to default.
Definition at line 433 of file connectionframe.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Update thumb of specific client.
| client | |
| thumb |
Definition at line 450 of file connectionframe.cpp.
Here is the caller graph for this function:
|
overrideprotected |
|
overrideprotected |
|
inline |
| void ConnectionFrame::setGridPosition | ( | int | x, |
| int | y | ||
| ) |
| void ConnectionFrame::setGridPosition | ( | const QPoint & | pos | ) |
| void ConnectionFrame::setSelection | ( | bool | selected | ) |
Set frame as selected or not.
| selected |
Definition at line 356 of file connectionframe.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ConnectionFrame::setTutor | ( | bool | b | ) |
Set tutor status of frame.
| b |
Definition at line 368 of file connectionframe.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Show default thumg instead of remote screen in connectionFrame.
Definition at line 201 of file connectionframe.cpp.
Here is the caller graph for this function:
|
overrideprotected |
Handle timer event.
| event |
Definition at line 342 of file connectionframe.cpp.
Here is the call graph for this function:
|
privateslot |
Update appearence of frame.
Check tutor status, vnc status and set background or icon.
Definition at line 380 of file connectionframe.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void ConnectionFrame::updateGeometry | ( | ) |
Definition at line 152 of file connectionframe.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 214 of file connectionframe.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 37 of file connectionframe.h.
|
private |
Definition at line 42 of file connectionframe.h.
|
private |
Definition at line 24 of file connectionframe.h.
|
private |
Definition at line 40 of file connectionframe.h.
|
private |
Definition at line 39 of file connectionframe.h.
|
private |
Definition at line 32 of file connectionframe.h.
|
private |
Definition at line 32 of file connectionframe.h.
|
private |
Definition at line 32 of file connectionframe.h.
|
private |
Definition at line 27 of file connectionframe.h.
|
private |
Definition at line 33 of file connectionframe.h.
|
private |
Definition at line 47 of file connectionframe.h.
|
private |
Definition at line 45 of file connectionframe.h.
|
private |
Definition at line 46 of file connectionframe.h.
|
private |
Definition at line 30 of file connectionframe.h.
|
private |
Definition at line 29 of file connectionframe.h.
|
private |
Definition at line 28 of file connectionframe.h.
|
private |
Definition at line 26 of file connectionframe.h.
|
private |
Definition at line 53 of file connectionframe.h.
|
private |
Definition at line 38 of file connectionframe.h.
|
private |
Definition at line 35 of file connectionframe.h.
|
private |
Definition at line 44 of file connectionframe.h.
|
private |
Definition at line 44 of file connectionframe.h.
|
static |
Definition at line 57 of file connectionframe.h.
1.8.8