1 #ifndef PVS_CONNECTIONFRAME_H_
2 #define PVS_CONNECTIONFRAME_H_
void onClientDisconnected()
Handle if client was disconnected.
bool isFromRoomplan() const
void leaveEvent(QEvent *event) override
Handle mouse leaves frame.
~ConnectionFrame() override
void setTutor(bool b)
Set tutor status of frame.
void timerEvent(QTimerEvent *event) override
Handle timer event.
void onThumbUpdated(Client *client, const QImage &thumb)
Update thumb of specific client.
void paintEvent(QPaintEvent *event) override
Draw remote screen in frame.
void setGridPosition(int x, int y)
void doubleClicked(ConnectionFrame *frame)
void mousePressEvent(QMouseEvent *event) override
Handle mouse press on frame.
const QString & computerId() const
void resizeEvent(QResizeEvent *event) override
void showDefaultThumb()
Show default thumg instead of remote screen in connectionFrame.
QLabel * addIcon(const QIcon *icon)
Add icon to connection frame.
static bool paintDisabled
void updateAppearance()
Update appearence of frame.
void setComputerId(QString computerId)
void mouseMoveEvent(QMouseEvent *event) override
Hanle mouse movement over frame.
const QPoint & getGridPosition() const
void setSelection(bool selected)
Set frame as selected or not.
void enterEvent(QEvent *event) override
Handle if mouse reaches frame.
void frameMoved(ConnectionFrame *frame)
void calcDesiredThumbSize(const QSize &frameSize)
Class for representing the clients of current session, with a specific frame displaying username and ...
void clicked(ConnectionFrame *frame)
ConnectionFrame(MainWindow *main, QWidget *parent, bool fromRoomplan=false)
Initialize frame for connected client.
void assignClient(Client *client)
Assign client to connectionFrame.
void mouseDoubleClickEvent(QMouseEvent *event) override
Handle double click event on frame.
void frameMoving(ConnectionFrame *frame)
void mouseReleaseEvent(QMouseEvent *e) override
Handle mouse release event on frame.
int main(int argc, char **argv)