From 65d9d15130d2d6798f16af011d9fefd39d36b9ce Mon Sep 17 00:00:00 2001 From: Johann Latocha Date: Wed, 28 Sep 2011 23:02:23 +0200 Subject: Enhancement #843 --- CMakeLists.txt | 1 + help/icon.png | Bin 0 -> 393 bytes help/lock.png | Bin 0 -> 880 bytes help/lockall.png | Bin 0 -> 819 bytes help/mouse.png | Bin 0 -> 741 bytes help/passwd.png | Bin 0 -> 747 bytes help/process.png | Bin 0 -> 931 bytes help/project.png | Bin 0 -> 2106 bytes help/pvsmgr_de_DE.html | 122 ++++++++++++++++++++++++++++++++++++++++++ help/reset.png | Bin 0 -> 673 bytes help/save.png | Bin 0 -> 662 bytes help/screenshot.png | Bin 0 -> 176895 bytes help/tutor.png | Bin 0 -> 677 bytes help/unlock.png | Bin 0 -> 869 bytes help/unproject.png | Bin 0 -> 2194 bytes help/zoom.png | Bin 0 -> 662 bytes pvsmgr.qrc | 17 ++++++ src/gui/mainWindow.cpp | 21 +++++++- src/gui/mainWindow.h | 1 + src/gui/ui/mainwindowtouch.ui | 6 +++ 20 files changed, 167 insertions(+), 1 deletion(-) create mode 100644 help/icon.png create mode 100644 help/lock.png create mode 100644 help/lockall.png create mode 100644 help/mouse.png create mode 100644 help/passwd.png create mode 100644 help/process.png create mode 100644 help/project.png create mode 100644 help/pvsmgr_de_DE.html create mode 100644 help/reset.png create mode 100644 help/save.png create mode 100644 help/screenshot.png create mode 100644 help/tutor.png create mode 100644 help/unlock.png create mode 100644 help/unproject.png create mode 100644 help/zoom.png diff --git a/CMakeLists.txt b/CMakeLists.txt index 758c056..c79f918 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -256,6 +256,7 @@ SET(PVSGUI_TSS # include Qt modules SET(QT_USE_QTDBUS TRUE) SET(QT_USE_QTNETWORK TRUE) +SET(QT_USE_QTWEBKIT TRUE) # add some useful macros and variables # (QT_USE_FILE is a variable defined by FIND_PACKAGE( Qt4 ) that contains diff --git a/help/icon.png b/help/icon.png new file mode 100644 index 0000000..2eb4884 Binary files /dev/null and b/help/icon.png differ diff --git a/help/lock.png b/help/lock.png new file mode 100644 index 0000000..b752d0e Binary files /dev/null and b/help/lock.png differ diff --git a/help/lockall.png b/help/lockall.png new file mode 100644 index 0000000..d5ccc50 Binary files /dev/null and b/help/lockall.png differ diff --git a/help/mouse.png b/help/mouse.png new file mode 100644 index 0000000..96639fa Binary files /dev/null and b/help/mouse.png differ diff --git a/help/passwd.png b/help/passwd.png new file mode 100644 index 0000000..83d5278 Binary files /dev/null and b/help/passwd.png differ diff --git a/help/process.png b/help/process.png new file mode 100644 index 0000000..4c193e6 Binary files /dev/null and b/help/process.png differ diff --git a/help/project.png b/help/project.png new file mode 100644 index 0000000..9009538 Binary files /dev/null and b/help/project.png differ diff --git a/help/pvsmgr_de_DE.html b/help/pvsmgr_de_DE.html new file mode 100644 index 0000000..9252a1e --- /dev/null +++ b/help/pvsmgr_de_DE.html @@ -0,0 +1,122 @@ + + + + +Help - PVS + + + +

Steuerkonsole

+ + +

Client

+ + + + \ No newline at end of file diff --git a/help/reset.png b/help/reset.png new file mode 100644 index 0000000..81e9d3a Binary files /dev/null and b/help/reset.png differ diff --git a/help/save.png b/help/save.png new file mode 100644 index 0000000..db9ee24 Binary files /dev/null and b/help/save.png differ diff --git a/help/screenshot.png b/help/screenshot.png new file mode 100644 index 0000000..1e9cadc Binary files /dev/null and b/help/screenshot.png differ diff --git a/help/tutor.png b/help/tutor.png new file mode 100644 index 0000000..974aabe Binary files /dev/null and b/help/tutor.png differ diff --git a/help/unlock.png b/help/unlock.png new file mode 100644 index 0000000..ea7f75b Binary files /dev/null and b/help/unlock.png differ diff --git a/help/unproject.png b/help/unproject.png new file mode 100644 index 0000000..d281318 Binary files /dev/null and b/help/unproject.png differ diff --git a/help/zoom.png b/help/zoom.png new file mode 100644 index 0000000..e9d8e05 Binary files /dev/null and b/help/zoom.png differ diff --git a/pvsmgr.qrc b/pvsmgr.qrc index 591553d..433835e 100644 --- a/pvsmgr.qrc +++ b/pvsmgr.qrc @@ -36,4 +36,21 @@ icons/unlocksingle.png icons/locksingle.png + + help/pvsmgr_de_DE.html + help/icon.png + help/lockall.png + help/lock.png + help/mouse.png + help/passwd.png + help/process.png + help/project.png + help/reset.png + help/save.png + help/screenshot.png + help/tutor.png + help/unlock.png + help/unproject.png + help/zoom.png + diff --git a/src/gui/mainWindow.cpp b/src/gui/mainWindow.cpp index 7e2efc3..8604bc2 100644 --- a/src/gui/mainWindow.cpp +++ b/src/gui/mainWindow.cpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include using namespace std; @@ -204,7 +205,7 @@ MainWindow::MainWindow(QWidget *parent, Qt::WindowFlags flags) : ui->actionView->setStatusTip(tr("Show the selected client in the whole window")); connect(ui->actionFoto, SIGNAL(triggered()), this, SLOT(foto())); connect(ui->actionLock, SIGNAL(triggered()), this, SLOT(lockalltoolbar())); - connect(ui->actionChat, SIGNAL(triggered()), this, SLOT(startChatDialog())); + connect(ui->actionChat, SIGNAL(triggered()),this, SLOT(startChatDialog())); ui->actionFoto->setStatusTip(tr("Make a screenshot for the selected client(s)")); ui->actionLock->setStatusTip(tr("Lock or Unlock all Clients")); connect(ui->actionCreate_profile, SIGNAL(triggered()), this, SLOT(createProfile())); @@ -243,6 +244,24 @@ MainWindow::MainWindow(QWidget *parent, Qt::WindowFlags flags) : _serverSocket->listen(QHostAddress::Any, 29481); connect(_serverSocket, SIGNAL(newConnection()), this, SLOT(incomingFile())); +#ifdef MAINWINDOW_USE_TOUCHGUI + // Setup Help Dialog + QWidget *_helpDialog = new QWidget; + + QWebView *helpView = new QWebView; + helpView->load(QUrl("qrc:/help/pvsmgr_de_DE.html")); + + QPushButton *exitButton = new QPushButton("Exit"); + + QVBoxLayout *layout = new QVBoxLayout; + layout->addWidget(helpView); + layout->addWidget(exitButton); + + _helpDialog->setLayout(layout); + + connect(ui->action_Howto, SIGNAL(triggered()), _helpDialog, SLOT(show())); + connect(exitButton, SIGNAL(clicked()), _helpDialog, SLOT(close())); +#endif } MainWindow::~MainWindow() diff --git a/src/gui/mainWindow.h b/src/gui/mainWindow.h index cf618f0..f3e9f18 100644 --- a/src/gui/mainWindow.h +++ b/src/gui/mainWindow.h @@ -136,6 +136,7 @@ private: ConnectionDialog* messageDiag;*/ AboutDialog *_aboutDialog; + QWidget *_helpDialog; profileDialog *_profileDialog; QString msgDialog; diff --git a/src/gui/ui/mainwindowtouch.ui b/src/gui/ui/mainwindowtouch.ui index 5b6498d..94baeb3 100644 --- a/src/gui/ui/mainwindowtouch.ui +++ b/src/gui/ui/mainwindowtouch.ui @@ -64,6 +64,7 @@ &Help + @@ -497,6 +498,11 @@ &Info + + + Howto + + -- cgit v1.2.3-55-g7522