summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorFabian Schillinger2010-07-09 21:18:44 +0200
committerFabian Schillinger2010-07-09 21:18:44 +0200
commit5acd0590258e9335cf4d3b1910a517efccd22a3e (patch)
tree5c2a127249fac6f8ba15d132c2cd6ef00e6a577f /src/gui
parentBuilding rpms is now supported. On Debian based systems you need the rpm pack... (diff)
downloadpvs-5acd0590258e9335cf4d3b1910a517efccd22a3e.tar.gz
pvs-5acd0590258e9335cf4d3b1910a517efccd22a3e.tar.xz
pvs-5acd0590258e9335cf4d3b1910a517efccd22a3e.zip
first commit to test git
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/connectionList.cpp23
-rw-r--r--src/gui/connectionList.h1
-rw-r--r--src/gui/connectionWindow.cpp2
-rw-r--r--src/gui/mainWindow.cpp35
-rw-r--r--src/gui/mainWindow.h1
-rw-r--r--src/gui/ui/mainwindow.ui19
-rw-r--r--src/gui/ui/mainwindowtouch.ui17
7 files changed, 91 insertions, 7 deletions
diff --git a/src/gui/connectionList.cpp b/src/gui/connectionList.cpp
index 2f9829e..61be876 100644
--- a/src/gui/connectionList.cpp
+++ b/src/gui/connectionList.cpp
@@ -432,6 +432,14 @@ void ConnectionList::on_remoteHelp()
}
}
+/*
+ *
+ */
+void ConnectionList::showProcesses()
+{
+ MainWindow::getConnectionWindow()->messageStations("BROADCAST","SHOWPROCESSES");
+}
+
void ConnectionList::on_lock()
{
MainWindow::getConnectionWindow()->lockStations();
@@ -442,6 +450,21 @@ void ConnectionList::on_unlock()
MainWindow::getConnectionWindow()->unlockStations();
}
+/* Hier werden Nachrichten vom Server versendet:
+* Type: PVSMESSAGE
+* Ident: BROADCAST
+* Msg: die Nachricht
+*
+* Wenn Ident: LOCKSTATION -> locke Client
+*
+*
+*
+*
+*
+*
+*
+*/
+
void ConnectionList::on_message()
{
Dialog msgD;
diff --git a/src/gui/connectionList.h b/src/gui/connectionList.h
index 50d8924..29dd174 100644
--- a/src/gui/connectionList.h
+++ b/src/gui/connectionList.h
@@ -108,6 +108,7 @@ public slots:
virtual void on_projection();
virtual void on_unprojection();
virtual void on_lock();
+ virtual void showProcesses();
virtual void on_unlock();
virtual void on_message();
virtual void on_lock_with_message();
diff --git a/src/gui/connectionWindow.cpp b/src/gui/connectionWindow.cpp
index cf51051..9e7b370 100644
--- a/src/gui/connectionWindow.cpp
+++ b/src/gui/connectionWindow.cpp
@@ -263,8 +263,6 @@ bool ConnectionWindow::remoteHelp(QString sname) {
}
-
-
bool ConnectionWindow::lockStations() {
if (std::list<QString>* lockList = MainWindow::getConnectionList()->getSelectedClients()) {
if (!lockList->empty()) {
diff --git a/src/gui/mainWindow.cpp b/src/gui/mainWindow.cpp
index eb15e82..4cd6997 100644
--- a/src/gui/mainWindow.cpp
+++ b/src/gui/mainWindow.cpp
@@ -116,6 +116,10 @@ MainWindow::MainWindow(QWidget *parent) :
// toolbar and actions in pvsmgr
+
+ //testweise chat starten beim klicken auf processlist
+ connect(ui->actionShowProcesses, SIGNAL(triggered()), this, SLOT(showProcesses()));
+ ui->actionShowProcesses->setStatusTip(tr("Shows list of processes of this client"));
connect(ui->action_Exit, SIGNAL(triggered()), this, SLOT(close()));
ui->action_Exit->setStatusTip(tr("Exit"));
connect(ui->action_Disconnect, SIGNAL(triggered()), this, SLOT(disconnect()));
@@ -130,6 +134,8 @@ MainWindow::MainWindow(QWidget *parent) :
ui->actionLock->setStatusTip(tr("Lock or Unlock all Clients"));
connect(ui->actionCreate_profile, SIGNAL(triggered()), this, SLOT(createProfile()));
+
+
connect(ui->actionShow_Username, SIGNAL(triggered()), this, SLOT(showusername()));
connect(ui->actionShow_Hostname_IP, SIGNAL(triggered()), this, SLOT(showip()));
connect(ui->actionShow_Fullname, SIGNAL(triggered()), this, SLOT(showname()));
@@ -795,6 +801,35 @@ void MainWindow::foto() // makes a screenshot of the selected client
}
}
+/*
+ * test if a client is selected and then make him tell his processlist
+ *
+ *
+ *
+ *
+ *
+ */
+
+void MainWindow::showProcesses()
+{
+ std::list<QString>* selectedClients =
+ MainWindow::getConnectionList()->getSelectedClients();
+ if (selectedClients->size() == 1)
+ {
+ // do stuff
+ }
+ else
+ {
+ QString
+ message =
+ QString(
+ tr(
+ "This operation can only be performed for one selected Client!"));
+ QMessageBox::information(this, "PVS", message);
+ }
+}
+
+
void MainWindow::createProfile()
{
profileDialog proDiag;
diff --git a/src/gui/mainWindow.h b/src/gui/mainWindow.h
index 00bd927..5e20af2 100644
--- a/src/gui/mainWindow.h
+++ b/src/gui/mainWindow.h
@@ -171,6 +171,7 @@ public slots:
void projecttoolbar();
void unprojecttoolbar();
void closeUp();
+ void showProcesses();
void foto();
void backgroundpicture();
void repaintbackgroundpicture();
diff --git a/src/gui/ui/mainwindow.ui b/src/gui/ui/mainwindow.ui
index eb49d1b..b5ac0e3 100644
--- a/src/gui/ui/mainwindow.ui
+++ b/src/gui/ui/mainwindow.ui
@@ -28,8 +28,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>776</width>
- <height>534</height>
+ <width>778</width>
+ <height>542</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
@@ -195,7 +195,7 @@
<x>0</x>
<y>0</y>
<width>838</width>
- <height>28</height>
+ <height>23</height>
</rect>
</property>
<widget class="QMenu" name="menu_File">
@@ -286,6 +286,7 @@
<addaction name="actionView"/>
<addaction name="actionLock"/>
<addaction name="actionChat"/>
+ <addaction name="actionShowProcesses"/>
</widget>
<action name="actionShow_Username">
<property name="checkable">
@@ -531,6 +532,18 @@
<string>-</string>
</property>
</action>
+ <action name="actionShowProcesses">
+ <property name="icon">
+ <iconset resource="../../../pvsmgr.qrc">
+ <normaloff>:/finder</normaloff>:/finder</iconset>
+ </property>
+ <property name="text">
+ <string>Show Processes</string>
+ </property>
+ <property name="toolTip">
+ <string>show processes of this client</string>
+ </property>
+ </action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>
diff --git a/src/gui/ui/mainwindowtouch.ui b/src/gui/ui/mainwindowtouch.ui
index 9030b17..f8e76c0 100644
--- a/src/gui/ui/mainwindowtouch.ui
+++ b/src/gui/ui/mainwindowtouch.ui
@@ -28,8 +28,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>1327</width>
- <height>658</height>
+ <width>1329</width>
+ <height>660</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_3">
@@ -365,6 +365,7 @@
<addaction name="actionresetall"/>
<addaction name="separator"/>
<addaction name="actionDozent"/>
+ <addaction name="actionShowProcesses"/>
</widget>
<action name="actionShow_Username">
<property name="checkable">
@@ -636,6 +637,18 @@
<string>Ctrl+D</string>
</property>
</action>
+ <action name="actionShowProcesses">
+ <property name="icon">
+ <iconset resource="../../../pvsmgr.qrc">
+ <normaloff>:/finder</normaloff>:/finder</iconset>
+ </property>
+ <property name="text">
+ <string>Show Processes</string>
+ </property>
+ <property name="toolTip">
+ <string>show processes of this client</string>
+ </property>
+ </action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>