Class for representing the clients of current session, with a specific frame displaying username and hostname for each one.
More...
#include "connectionframe.h"
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 |
|
) |
| |
ConnectionFrame::~ConnectionFrame |
( |
| ) |
|
|
override |
QLabel * ConnectionFrame::addIcon |
( |
const QIcon * |
icon | ) |
|
|
private |
Add icon to connection frame.
- Parameters
-
- Returns
- Pointer to new Icon.
Definition at line 165 of file connectionframe.cpp.
void ConnectionFrame::assignClient |
( |
Client * |
client | ) |
|
Assign client to connectionFrame.
Set hostName, userName and tutor status to display.
- Parameters
-
Definition at line 180 of file connectionframe.cpp.
void ConnectionFrame::calcDesiredThumbSize |
( |
const QSize & |
frameSize | ) |
|
|
private |
Client* ConnectionFrame::client |
( |
| ) |
const |
|
inline |
const QString& ConnectionFrame::computerId |
( |
| ) |
const |
|
inline |
void ConnectionFrame::enterEvent |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
const QPoint& ConnectionFrame::getGridPosition |
( |
| ) |
const |
|
inline |
bool ConnectionFrame::isFromRoomplan |
( |
| ) |
const |
|
inline |
bool ConnectionFrame::isSelected |
( |
| ) |
const |
|
inline |
bool ConnectionFrame::isTutor |
( |
| ) |
const |
|
inline |
void ConnectionFrame::leaveEvent |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
void ConnectionFrame::mouseDoubleClickEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
void ConnectionFrame::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
void ConnectionFrame::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
void ConnectionFrame::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
Handle mouse release event on frame.
Check if frame was clicked or moved, if not moved enough, the event is handled as click.
- Parameters
-
Definition at line 286 of file connectionframe.cpp.
void ConnectionFrame::onClientDisconnected |
( |
| ) |
|
|
privateslot |
Handle if client was disconnected.
Kill timer and set appearence to default.
Definition at line 433 of file connectionframe.cpp.
void ConnectionFrame::onThumbUpdated |
( |
Client * |
client, |
|
|
const QImage & |
thumb |
|
) |
| |
|
privateslot |
void ConnectionFrame::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
void ConnectionFrame::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
void ConnectionFrame::setComputerId |
( |
QString |
computerId | ) |
|
|
inline |
void ConnectionFrame::setGridPosition |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
void ConnectionFrame::setGridPosition |
( |
const QPoint & |
pos | ) |
|
void ConnectionFrame::setSelection |
( |
bool |
selected | ) |
|
void ConnectionFrame::setTutor |
( |
bool |
b | ) |
|
void ConnectionFrame::showDefaultThumb |
( |
| ) |
|
|
private |
Show default thumg instead of remote screen in connectionFrame.
Definition at line 201 of file connectionframe.cpp.
void ConnectionFrame::timerEvent |
( |
QTimerEvent * |
event | ) |
|
|
overrideprotected |
void ConnectionFrame::updateAppearance |
( |
| ) |
|
|
privateslot |
Update appearence of frame.
Check tutor status, vnc status and set background or icon.
Definition at line 380 of file connectionframe.cpp.
void ConnectionFrame::updateGeometry |
( |
| ) |
|
void ConnectionFrame::updateLabels |
( |
| ) |
|
|
privateslot |
QPoint ConnectionFrame::_clickPoint |
|
private |
Client* ConnectionFrame::_client {} |
|
private |
QString ConnectionFrame::_computerId |
|
private |
QSize ConnectionFrame::_desiredThumbSize |
|
private |
QPoint ConnectionFrame::_gridPosition |
|
private |
QLabel* ConnectionFrame::_icoCam |
|
private |
QLabel * ConnectionFrame::_icoEye |
|
private |
QLabel * ConnectionFrame::_icoLock |
|
private |
QBoxLayout* ConnectionFrame::_iconLayout |
|
private |
QList<QLabel*> ConnectionFrame::_icons |
|
private |
bool ConnectionFrame::_isFromRoomplan |
|
private |
bool ConnectionFrame::_isSelected {} |
|
private |
bool ConnectionFrame::_isTutor {} |
|
private |
QLabel* ConnectionFrame::_lblExamMode |
|
private |
QLabel* ConnectionFrame::_lblHostName |
|
private |
QLabel* ConnectionFrame::_lblUserName |
|
private |
QBoxLayout* ConnectionFrame::_mainLayout |
|
private |
QPoint ConnectionFrame::_previousPosition |
|
private |
QImage ConnectionFrame::_remoteScreen |
|
private |
int ConnectionFrame::_timerCounter {} |
|
private |
int ConnectionFrame::_timerId {} |
|
private |
bool ConnectionFrame::paintDisabled = false |
|
static |
The documentation for this class was generated from the following files: