summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.cpp
diff options
context:
space:
mode:
authorBjörn Hagemeister2014-05-19 17:30:48 +0200
committerBjörn Hagemeister2014-05-19 17:30:48 +0200
commit5471fa5ac6178695b7917e44c76c0fc0f285e41a (patch)
treee2bb67b277033e5643c0b1908b9fe175d1ad49fb /src/server/mainwindow/mainwindow.cpp
parentCommiting forgotten icon, plus first changes on help - Button implementation,... (diff)
downloadpvs2-5471fa5ac6178695b7917e44c76c0fc0f285e41a.tar.gz
pvs2-5471fa5ac6178695b7917e44c76c0fc0f285e41a.tar.xz
pvs2-5471fa5ac6178695b7917e44c76c0fc0f285e41a.zip
Help window
Diffstat (limited to 'src/server/mainwindow/mainwindow.cpp')
-rw-r--r--src/server/mainwindow/mainwindow.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/mainwindow/mainwindow.cpp b/src/server/mainwindow/mainwindow.cpp
index ca9ecca..ce24227 100644
--- a/src/server/mainwindow/mainwindow.cpp
+++ b/src/server/mainwindow/mainwindow.cpp
@@ -23,6 +23,7 @@
#include "../clicklabel/clicklabel.h"
#include "../sessionnamewindow/sessionnamewindow.h"
#include "../connectionframe/connectionframe.h"
+#include "../helpwindow/helpwindow.h"
// Network
#include "../net/listenserver.h"
#include "../net/client.h"
@@ -57,6 +58,7 @@ MainWindow::MainWindow(QString ipListUrl, QWidget* parent) :
_selectedFrame = NULL;
_sessionNameWindow = new SessionNameWindow(this);
+ _helpWindow = new HelpWindow(this);
ui->setupUi(this);
Global::setSessionName();
@@ -94,6 +96,7 @@ MainWindow::MainWindow(QString ipListUrl, QWidget* parent) :
connect(ui->action_SetAsTutor, SIGNAL(triggered()), this, SLOT(onButtonSetAsTutor()));
connect(ui->action_SetAsTutor, SIGNAL(triggered()), this, SLOT(onButtonStopProjection()));
connect(ui->action_Lock, SIGNAL(toggled(bool)), this, SLOT(onButtonLock(bool)));
+ connect(ui->action_Help, SIGNAL(triggered()), this, SLOT(onButtonHelp()));
/* Stuff for the button lock */
_buttonLockTimer = new QTimer(this);
@@ -678,6 +681,14 @@ void MainWindow::prepareForProjection(Client * const from, Client * const to)
}
/***************************************************************************//**
+ * Display popup which explains possible actions about the buttons.
+ */
+void MainWindow::onButtonHelp()
+{
+ _helpWindow->show();
+}
+
+/***************************************************************************//**
* Handle projection from tutor to all.
* Get the client who is tutor and set the projectionSource of all
* clients, except the tutor ones, to false.