diff options
Diffstat (limited to 'src/server/mainwindow/mainwindow.h')
-rw-r--r-- | src/server/mainwindow/mainwindow.h | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h index 3de0e1c..637628a 100644 --- a/src/server/mainwindow/mainwindow.h +++ b/src/server/mainwindow/mainwindow.h @@ -12,8 +12,9 @@ class DiscoveryListener; class HelpWindow; class ReloadRoomWindow; -namespace Ui{ - class MainWindow; +namespace Ui +{ +class MainWindow; } /** @@ -27,7 +28,7 @@ class MainWindow : public QMainWindow public: MainWindow(QWidget *parent = 0); - ~MainWindow(); + ~MainWindow(); private: @@ -41,29 +42,30 @@ private: Qt::ToolBarArea _tbArea; int _tilesX; int _tilesY; - QImage* _backgroundImage = NULL; + QImage* _backgroundImage = NULL; QLabel* _examModeLabel = NULL; - /* virtual columns to preserve the aspect ratio of the loaded room */ - int _virtCols; - int _virtRows; + /* virtual columns to preserve the aspect ratio of the loaded room */ + int _virtCols; + int _virtRows; // Button block stuff QTimer *_buttonLockTimer; QList<QAction*> _lockingButtons; static const qint64 _buttonBlockTime = 2000; - /* Context-sensitive Buttons */ - QList<QAction*> _contextButtons; + /* Context-sensitive Buttons */ + QList<QAction*> _contextButtons; // Management stuff - enum class Mode { - Broadcast, - Multicast, - Unicast, - LockedUnicast, - None + enum class Mode + { + Broadcast, + Multicast, + Unicast, + LockedUnicast, + None } _mode; int _streamingSource; int _countSessionNameUpdate; @@ -73,8 +75,8 @@ private: DiscoveryListener *_discoveryListener; QStringList _tutorList; - QPoint closestFreeSlot(QPoint preferredPixels, ConnectionFrame* toIgnore); - void placeFrameInFreeSlot(ConnectionFrame* frame, QPoint preferred = QPoint(0,0)); + QPoint closestFreeSlot(QPoint preferredPixels, ConnectionFrame* toIgnore); + void placeFrameInFreeSlot(ConnectionFrame* frame, QPoint preferred = QPoint(0, 0)); ConnectionFrame* createFrame(); ConnectionFrame* createFrame(QString computerId, QPoint position, QPoint gridPosition); bool loadPosition(QSharedPointer<QSettings> settings, const QString& id, int& x, int& y); @@ -92,19 +94,19 @@ private: void resizeEvent(QResizeEvent *e); void mouseReleaseEvent(QMouseEvent* e); - int getTileWidthPx() const; - int getTileHeightPx() const; + int getTileWidthPx() const; + int getTileHeightPx() const; - void lockContextButtons(); - void unlockContextButtons(); + void lockContextButtons(); + void unlockContextButtons(); - void switchRoomTo(QString); + void switchRoomTo(QString); protected slots: void onSessionNameClick(); void onSessionNameUpdate(); - void onDeleteClient(); + void onDeleteClient(); void onButtonLock(bool checked); void onButtonStudentToTutor(); |