diff options
-rw-r--r-- | i18n/pvs_ar_JO.ts | 8 | ||||
-rw-r--r-- | i18n/pvs_de_DE.ts | 8 | ||||
-rw-r--r-- | i18n/pvs_es_MX.ts | 8 | ||||
-rw-r--r-- | i18n/pvs_fr_FR.ts | 8 | ||||
-rw-r--r-- | i18n/pvs_pl_PL.ts | 8 | ||||
-rw-r--r-- | i18n/pvsmgr_ar_JO.ts | 164 | ||||
-rw-r--r-- | i18n/pvsmgr_de_DE.ts | 164 | ||||
-rw-r--r-- | i18n/pvsmgr_es_MX.ts | 164 | ||||
-rw-r--r-- | i18n/pvsmgr_fr_FR.ts | 164 | ||||
-rw-r--r-- | i18n/pvsmgr_pl_PL.ts | 164 | ||||
-rw-r--r-- | pvsmgr.qrc | 79 | ||||
-rw-r--r-- | src/gui/mainWindow.cpp | 1320 | ||||
-rw-r--r-- | src/gui/mainWindow.h | 1 | ||||
-rw-r--r-- | src/gui/ui/mainwindow.ui | 19 | ||||
-rw-r--r-- | src/gui/ui/mainwindowtouch.ui | 17 | ||||
-rw-r--r-- | src/pvs.cpp | 13 |
16 files changed, 1231 insertions, 1078 deletions
diff --git a/i18n/pvs_ar_JO.ts b/i18n/pvs_ar_JO.ts index 0b4c72f..f5b5dc5 100644 --- a/i18n/pvs_ar_JO.ts +++ b/i18n/pvs_ar_JO.ts @@ -4,22 +4,22 @@ <context> <name>PVS</name> <message> - <location filename="../src/pvs.cpp" line="259"/> + <location filename="../src/pvs.cpp" line="270"/> <source>Message</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>VNC connection</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>The host </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="354"/> + <location filename="../src/pvs.cpp" line="365"/> <source> requested your screen!</source> <translation type="unfinished"></translation> </message> diff --git a/i18n/pvs_de_DE.ts b/i18n/pvs_de_DE.ts index 0b4c72f..f5b5dc5 100644 --- a/i18n/pvs_de_DE.ts +++ b/i18n/pvs_de_DE.ts @@ -4,22 +4,22 @@ <context> <name>PVS</name> <message> - <location filename="../src/pvs.cpp" line="259"/> + <location filename="../src/pvs.cpp" line="270"/> <source>Message</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>VNC connection</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>The host </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="354"/> + <location filename="../src/pvs.cpp" line="365"/> <source> requested your screen!</source> <translation type="unfinished"></translation> </message> diff --git a/i18n/pvs_es_MX.ts b/i18n/pvs_es_MX.ts index 0b4c72f..f5b5dc5 100644 --- a/i18n/pvs_es_MX.ts +++ b/i18n/pvs_es_MX.ts @@ -4,22 +4,22 @@ <context> <name>PVS</name> <message> - <location filename="../src/pvs.cpp" line="259"/> + <location filename="../src/pvs.cpp" line="270"/> <source>Message</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>VNC connection</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>The host </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="354"/> + <location filename="../src/pvs.cpp" line="365"/> <source> requested your screen!</source> <translation type="unfinished"></translation> </message> diff --git a/i18n/pvs_fr_FR.ts b/i18n/pvs_fr_FR.ts index 0b4c72f..f5b5dc5 100644 --- a/i18n/pvs_fr_FR.ts +++ b/i18n/pvs_fr_FR.ts @@ -4,22 +4,22 @@ <context> <name>PVS</name> <message> - <location filename="../src/pvs.cpp" line="259"/> + <location filename="../src/pvs.cpp" line="270"/> <source>Message</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>VNC connection</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>The host </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="354"/> + <location filename="../src/pvs.cpp" line="365"/> <source> requested your screen!</source> <translation type="unfinished"></translation> </message> diff --git a/i18n/pvs_pl_PL.ts b/i18n/pvs_pl_PL.ts index 0b4c72f..f5b5dc5 100644 --- a/i18n/pvs_pl_PL.ts +++ b/i18n/pvs_pl_PL.ts @@ -4,22 +4,22 @@ <context> <name>PVS</name> <message> - <location filename="../src/pvs.cpp" line="259"/> + <location filename="../src/pvs.cpp" line="270"/> <source>Message</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>VNC connection</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="352"/> + <location filename="../src/pvs.cpp" line="363"/> <source>The host </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/pvs.cpp" line="354"/> + <location filename="../src/pvs.cpp" line="365"/> <source> requested your screen!</source> <translation type="unfinished"></translation> </message> diff --git a/i18n/pvsmgr_ar_JO.ts b/i18n/pvsmgr_ar_JO.ts index bc5c69c..ba391d2 100644 --- a/i18n/pvsmgr_ar_JO.ts +++ b/i18n/pvsmgr_ar_JO.ts @@ -314,360 +314,376 @@ Perform an unprojection or remove remote help to get a target.</source> <context> <name>MainWindow</name> <message> - <location filename="../build/ui_mainwindow.h" line="403"/> - <location filename="../src/gui/mainWindow.cpp" line="120"/> + <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../src/gui/mainWindow.cpp" line="117"/> <source>Exit</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="122"/> + <location filename="../src/gui/mainWindow.cpp" line="119"/> <source>Remove the vnc-Connection for the selected client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="125"/> + <location filename="../src/gui/mainWindow.cpp" line="122"/> <source>Show the selected client in the whole window</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="129"/> + <location filename="../src/gui/mainWindow.cpp" line="126"/> <source>Make a screenshot for the selected client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="418"/> - <location filename="../src/gui/mainWindow.cpp" line="130"/> + <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../src/gui/mainWindow.cpp" line="127"/> <source>Lock or Unlock all Clients</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="151"/> + <location filename="../src/gui/mainWindow.cpp" line="150"/> <source>The pvs manager</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="740"/> + <location filename="../src/gui/mainWindow.cpp" line="736"/> <source>This operation can only be performed for one selected Client!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="792"/> + <location filename="../src/gui/mainWindow.cpp" line="780"/> + <source>This operation can only be performed if you have selected a Client!</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/gui/mainWindow.cpp" line="819"/> <source>This operation can only be performed for at least one selected Client!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1061"/> + <location filename="../src/gui/mainWindow.cpp" line="1094"/> <source>You have to set a Superclient-machine before performing this action.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1171"/> <source>Open Image</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1172"/> <source>Image Files (*.png *.jpg *.svg)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="376"/> + <location filename="../build/ui_mainwindow.h" line="383"/> <source>PVSmgr</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="377"/> + <location filename="../build/ui_mainwindow.h" line="384"/> <source>Show Username</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="378"/> + <location filename="../build/ui_mainwindow.h" line="385"/> <source>Ctrl+3</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="379"/> + <location filename="../build/ui_mainwindow.h" line="386"/> <source>Show IP</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="380"/> + <location filename="../build/ui_mainwindow.h" line="387"/> <source>Ctrl+2</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="381"/> + <location filename="../build/ui_mainwindow.h" line="388"/> <source>VNC-Placeholders</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="382"/> + <location filename="../build/ui_mainwindow.h" line="389"/> <source>Show Log</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="383"/> + <location filename="../build/ui_mainwindow.h" line="390"/> <source>Ctrl+L</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="384"/> + <location filename="../build/ui_mainwindow.h" line="391"/> <source>Show Normal</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="385"/> + <location filename="../build/ui_mainwindow.h" line="392"/> <source>Ctrl+O</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="386"/> + <location filename="../build/ui_mainwindow.h" line="393"/> <source>Show Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="387"/> + <location filename="../build/ui_mainwindow.h" line="394"/> <source>Ctrl+E</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="388"/> + <location filename="../build/ui_mainwindow.h" line="395"/> <source>Show Network</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="389"/> + <location filename="../build/ui_mainwindow.h" line="396"/> <source>Ctrl+N</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="390"/> + <location filename="../build/ui_mainwindow.h" line="397"/> <source>Show Terminal</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="391"/> + <location filename="../build/ui_mainwindow.h" line="398"/> <source>Ctrl+T</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="392"/> + <location filename="../build/ui_mainwindow.h" line="399"/> <source>Show Chat</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="393"/> + <location filename="../build/ui_mainwindow.h" line="400"/> <source>Ctrl+G</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="394"/> + <location filename="../build/ui_mainwindow.h" line="401"/> <source>About pvs</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="395"/> + <location filename="../build/ui_mainwindow.h" line="402"/> <source>Ctrl+P</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="396"/> + <location filename="../build/ui_mainwindow.h" line="403"/> <source>100 x 100</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="397"/> + <location filename="../build/ui_mainwindow.h" line="404"/> <source>200 x 200</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="398"/> + <location filename="../build/ui_mainwindow.h" line="405"/> <source>500 x 500</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="399"/> + <location filename="../build/ui_mainwindow.h" line="406"/> <source>&Disconnect</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="400"/> + <location filename="../build/ui_mainwindow.h" line="407"/> <source>Ctrl+W</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="401"/> + <location filename="../build/ui_mainwindow.h" line="408"/> <source>&Exit</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="405"/> + <location filename="../build/ui_mainwindow.h" line="412"/> <source>Ctrl+Q</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="406"/> - <location filename="../build/ui_mainwindow.h" line="408"/> + <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="415"/> <source>Foto</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../build/ui_mainwindow.h" line="417"/> <source>Ctrl+F</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="411"/> + <location filename="../build/ui_mainwindow.h" line="418"/> <source>view</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="420"/> <source>View</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="415"/> + <location filename="../build/ui_mainwindow.h" line="422"/> <source>Ctrl+V</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="416"/> + <location filename="../build/ui_mainwindow.h" line="423"/> <source>lock</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="420"/> + <location filename="../build/ui_mainwindow.h" line="427"/> <source>Ctrl+A</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="421"/> + <location filename="../build/ui_mainwindow.h" line="428"/> <source>Profile &manager</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="422"/> + <location filename="../build/ui_mainwindow.h" line="429"/> <source>Ctrl+M</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="423"/> + <location filename="../build/ui_mainwindow.h" line="430"/> <source>Show Name</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="424"/> + <location filename="../build/ui_mainwindow.h" line="431"/> <source>Ctrl+1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../build/ui_mainwindow.h" line="432"/> <source>Chat</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="427"/> + <location filename="../build/ui_mainwindow.h" line="434"/> <source>Start Chat with client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="429"/> + <location filename="../build/ui_mainwindow.h" line="436"/> <source>Ctrl+D</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="430"/> + <location filename="../build/ui_mainwindow.h" line="437"/> <source>-</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="431"/> + <location filename="../build/ui_mainwindow.h" line="438"/> + <source>showProcesses</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="440"/> + <location filename="../src/gui/mainWindow.cpp" line="130"/> + <source>Show Processes of the selected Client</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="442"/> <source>border-color: rgb(0, 0, 0);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="432"/> + <location filename="../build/ui_mainwindow.h" line="443"/> <source>VNC quality</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="435"/> + <location filename="../build/ui_mainwindow.h" line="446"/> <source>HIGH</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="436"/> + <location filename="../build/ui_mainwindow.h" line="447"/> <source>MEDIUM</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="437"/> + <location filename="../build/ui_mainwindow.h" line="448"/> <source>LOW</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="439"/> + <location filename="../build/ui_mainwindow.h" line="450"/> <source>Set password</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="442"/> + <location filename="../build/ui_mainwindow.h" line="453"/> <source>Thumbnailratio</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="443"/> + <location filename="../build/ui_mainwindow.h" line="454"/> <source>Thumbnailrate</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="445"/> + <location filename="../build/ui_mainwindow.h" line="456"/> <source> 0</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="446"/> + <location filename="../build/ui_mainwindow.h" line="457"/> <source>%</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="447"/> + <location filename="../build/ui_mainwindow.h" line="458"/> <source>background-color: rgb(255, 255, 255);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="448"/> + <location filename="../build/ui_mainwindow.h" line="459"/> <source>background-color: rgb(150, 150, 150);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="449"/> + <location filename="../build/ui_mainwindow.h" line="460"/> <source>&File</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="450"/> + <location filename="../build/ui_mainwindow.h" line="461"/> <source>Load profile </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="451"/> + <location filename="../build/ui_mainwindow.h" line="462"/> <source>&Clients</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="452"/> + <location filename="../build/ui_mainwindow.h" line="463"/> <source>&Logging</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="453"/> + <location filename="../build/ui_mainwindow.h" line="464"/> <source>&Help</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="454"/> + <location filename="../build/ui_mainwindow.h" line="465"/> <source>toolBar</source> <translation type="unfinished"></translation> </message> diff --git a/i18n/pvsmgr_de_DE.ts b/i18n/pvsmgr_de_DE.ts index fd6d56b..e8d7001 100644 --- a/i18n/pvsmgr_de_DE.ts +++ b/i18n/pvsmgr_de_DE.ts @@ -314,360 +314,376 @@ Perform an unprojection or remove remote help to get a target.</source> <context> <name>MainWindow</name> <message> - <location filename="../build/ui_mainwindow.h" line="403"/> - <location filename="../src/gui/mainWindow.cpp" line="120"/> + <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../src/gui/mainWindow.cpp" line="117"/> <source>Exit</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="122"/> + <location filename="../src/gui/mainWindow.cpp" line="119"/> <source>Remove the vnc-Connection for the selected client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="125"/> + <location filename="../src/gui/mainWindow.cpp" line="122"/> <source>Show the selected client in the whole window</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="129"/> + <location filename="../src/gui/mainWindow.cpp" line="126"/> <source>Make a screenshot for the selected client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="418"/> - <location filename="../src/gui/mainWindow.cpp" line="130"/> + <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../src/gui/mainWindow.cpp" line="127"/> <source>Lock or Unlock all Clients</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="151"/> + <location filename="../src/gui/mainWindow.cpp" line="150"/> <source>The pvs manager</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="740"/> + <location filename="../src/gui/mainWindow.cpp" line="736"/> <source>This operation can only be performed for one selected Client!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="792"/> + <location filename="../src/gui/mainWindow.cpp" line="780"/> + <source>This operation can only be performed if you have selected a Client!</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/gui/mainWindow.cpp" line="819"/> <source>This operation can only be performed for at least one selected Client!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1061"/> + <location filename="../src/gui/mainWindow.cpp" line="1094"/> <source>You have to set a Superclient-machine before performing this action.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1171"/> <source>Open Image</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1172"/> <source>Image Files (*.png *.jpg *.svg)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="376"/> + <location filename="../build/ui_mainwindow.h" line="383"/> <source>PVSmgr</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="377"/> + <location filename="../build/ui_mainwindow.h" line="384"/> <source>Show Username</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="378"/> + <location filename="../build/ui_mainwindow.h" line="385"/> <source>Ctrl+3</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="379"/> + <location filename="../build/ui_mainwindow.h" line="386"/> <source>Show IP</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="380"/> + <location filename="../build/ui_mainwindow.h" line="387"/> <source>Ctrl+2</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="381"/> + <location filename="../build/ui_mainwindow.h" line="388"/> <source>VNC-Placeholders</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="382"/> + <location filename="../build/ui_mainwindow.h" line="389"/> <source>Show Log</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="383"/> + <location filename="../build/ui_mainwindow.h" line="390"/> <source>Ctrl+L</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="384"/> + <location filename="../build/ui_mainwindow.h" line="391"/> <source>Show Normal</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="385"/> + <location filename="../build/ui_mainwindow.h" line="392"/> <source>Ctrl+O</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="386"/> + <location filename="../build/ui_mainwindow.h" line="393"/> <source>Show Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="387"/> + <location filename="../build/ui_mainwindow.h" line="394"/> <source>Ctrl+E</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="388"/> + <location filename="../build/ui_mainwindow.h" line="395"/> <source>Show Network</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="389"/> + <location filename="../build/ui_mainwindow.h" line="396"/> <source>Ctrl+N</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="390"/> + <location filename="../build/ui_mainwindow.h" line="397"/> <source>Show Terminal</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="391"/> + <location filename="../build/ui_mainwindow.h" line="398"/> <source>Ctrl+T</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="392"/> + <location filename="../build/ui_mainwindow.h" line="399"/> <source>Show Chat</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="393"/> + <location filename="../build/ui_mainwindow.h" line="400"/> <source>Ctrl+G</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="394"/> + <location filename="../build/ui_mainwindow.h" line="401"/> <source>About pvs</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="395"/> + <location filename="../build/ui_mainwindow.h" line="402"/> <source>Ctrl+P</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="396"/> + <location filename="../build/ui_mainwindow.h" line="403"/> <source>100 x 100</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="397"/> + <location filename="../build/ui_mainwindow.h" line="404"/> <source>200 x 200</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="398"/> + <location filename="../build/ui_mainwindow.h" line="405"/> <source>500 x 500</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="399"/> + <location filename="../build/ui_mainwindow.h" line="406"/> <source>&Disconnect</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="400"/> + <location filename="../build/ui_mainwindow.h" line="407"/> <source>Ctrl+W</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="401"/> + <location filename="../build/ui_mainwindow.h" line="408"/> <source>&Exit</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="405"/> + <location filename="../build/ui_mainwindow.h" line="412"/> <source>Ctrl+Q</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="406"/> - <location filename="../build/ui_mainwindow.h" line="408"/> + <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="415"/> <source>Foto</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../build/ui_mainwindow.h" line="417"/> <source>Ctrl+F</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="411"/> + <location filename="../build/ui_mainwindow.h" line="418"/> <source>view</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="420"/> <source>View</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="415"/> + <location filename="../build/ui_mainwindow.h" line="422"/> <source>Ctrl+V</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="416"/> + <location filename="../build/ui_mainwindow.h" line="423"/> <source>lock</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="420"/> + <location filename="../build/ui_mainwindow.h" line="427"/> <source>Ctrl+A</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="421"/> + <location filename="../build/ui_mainwindow.h" line="428"/> <source>Profile &manager</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="422"/> + <location filename="../build/ui_mainwindow.h" line="429"/> <source>Ctrl+M</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="423"/> + <location filename="../build/ui_mainwindow.h" line="430"/> <source>Show Name</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="424"/> + <location filename="../build/ui_mainwindow.h" line="431"/> <source>Ctrl+1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../build/ui_mainwindow.h" line="432"/> <source>Chat</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="427"/> + <location filename="../build/ui_mainwindow.h" line="434"/> <source>Start Chat with client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="429"/> + <location filename="../build/ui_mainwindow.h" line="436"/> <source>Ctrl+D</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="430"/> + <location filename="../build/ui_mainwindow.h" line="437"/> <source>-</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="431"/> + <location filename="../build/ui_mainwindow.h" line="438"/> + <source>showProcesses</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="440"/> + <location filename="../src/gui/mainWindow.cpp" line="130"/> + <source>Show Processes of the selected Client</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="442"/> <source>border-color: rgb(0, 0, 0);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="432"/> + <location filename="../build/ui_mainwindow.h" line="443"/> <source>VNC quality</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="435"/> + <location filename="../build/ui_mainwindow.h" line="446"/> <source>HIGH</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="436"/> + <location filename="../build/ui_mainwindow.h" line="447"/> <source>MEDIUM</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="437"/> + <location filename="../build/ui_mainwindow.h" line="448"/> <source>LOW</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="439"/> + <location filename="../build/ui_mainwindow.h" line="450"/> <source>Set password</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="442"/> + <location filename="../build/ui_mainwindow.h" line="453"/> <source>Thumbnailratio</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="443"/> + <location filename="../build/ui_mainwindow.h" line="454"/> <source>Thumbnailrate</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="445"/> + <location filename="../build/ui_mainwindow.h" line="456"/> <source> 0</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="446"/> + <location filename="../build/ui_mainwindow.h" line="457"/> <source>%</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="447"/> + <location filename="../build/ui_mainwindow.h" line="458"/> <source>background-color: rgb(255, 255, 255);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="448"/> + <location filename="../build/ui_mainwindow.h" line="459"/> <source>background-color: rgb(150, 150, 150);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="449"/> + <location filename="../build/ui_mainwindow.h" line="460"/> <source>&File</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="450"/> + <location filename="../build/ui_mainwindow.h" line="461"/> <source>Load profile </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="451"/> + <location filename="../build/ui_mainwindow.h" line="462"/> <source>&Clients</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="452"/> + <location filename="../build/ui_mainwindow.h" line="463"/> <source>&Logging</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="453"/> + <location filename="../build/ui_mainwindow.h" line="464"/> <source>&Help</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="454"/> + <location filename="../build/ui_mainwindow.h" line="465"/> <source>toolBar</source> <translation type="unfinished"></translation> </message> diff --git a/i18n/pvsmgr_es_MX.ts b/i18n/pvsmgr_es_MX.ts index fc53e6d..484d600 100644 --- a/i18n/pvsmgr_es_MX.ts +++ b/i18n/pvsmgr_es_MX.ts @@ -314,360 +314,376 @@ Perform an unprojection or remove remote help to get a target.</source> <context> <name>MainWindow</name> <message> - <location filename="../build/ui_mainwindow.h" line="403"/> - <location filename="../src/gui/mainWindow.cpp" line="120"/> + <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../src/gui/mainWindow.cpp" line="117"/> <source>Exit</source> <translation>Salir</translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="122"/> + <location filename="../src/gui/mainWindow.cpp" line="119"/> <source>Remove the vnc-Connection for the selected client(s)</source> <translation>Remover la conexión VNC de los clientes seleccionados</translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="125"/> + <location filename="../src/gui/mainWindow.cpp" line="122"/> <source>Show the selected client in the whole window</source> <translation>Mostrar el cliente seleccionado en toda la ventana</translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="129"/> + <location filename="../src/gui/mainWindow.cpp" line="126"/> <source>Make a screenshot for the selected client(s)</source> <translation>Capturar la pantalla de los clientes seleccionados</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="418"/> - <location filename="../src/gui/mainWindow.cpp" line="130"/> + <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../src/gui/mainWindow.cpp" line="127"/> <source>Lock or Unlock all Clients</source> <translation>Bloquear o desbloquear todos los clientes</translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="151"/> + <location filename="../src/gui/mainWindow.cpp" line="150"/> <source>The pvs manager</source> <translation>PVS Manager</translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="740"/> + <location filename="../src/gui/mainWindow.cpp" line="736"/> <source>This operation can only be performed for one selected Client!</source> <translation>Esta operación solamente puede ser realizada para un cliente!</translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="792"/> + <location filename="../src/gui/mainWindow.cpp" line="780"/> + <source>This operation can only be performed if you have selected a Client!</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/gui/mainWindow.cpp" line="819"/> <source>This operation can only be performed for at least one selected Client!</source> <translation>Esta operación solamente puede ser realizada para el ultimo cliente seleccionado!</translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1061"/> + <location filename="../src/gui/mainWindow.cpp" line="1094"/> <source>You have to set a Superclient-machine before performing this action.</source> <translation>Usted debe asignar un super cliente antes de realizar esta acción.</translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1171"/> <source>Open Image</source> <translation>Abrir imagen</translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1172"/> <source>Image Files (*.png *.jpg *.svg)</source> <translation>Extensión de imagenes (*.png *.jpg *.svg)</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="376"/> + <location filename="../build/ui_mainwindow.h" line="383"/> <source>PVSmgr</source> <translation>PVSmgr</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="377"/> + <location filename="../build/ui_mainwindow.h" line="384"/> <source>Show Username</source> <translation>Mostrar nombre de usuario</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="378"/> + <location filename="../build/ui_mainwindow.h" line="385"/> <source>Ctrl+3</source> <translation>Ctrl+3</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="379"/> + <location filename="../build/ui_mainwindow.h" line="386"/> <source>Show IP</source> <translation>Mostrar IP</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="380"/> + <location filename="../build/ui_mainwindow.h" line="387"/> <source>Ctrl+2</source> <translation>Ctrl+2</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="381"/> + <location filename="../build/ui_mainwindow.h" line="388"/> <source>VNC-Placeholders</source> <translation>VNC - Marcadores de posición</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="382"/> + <location filename="../build/ui_mainwindow.h" line="389"/> <source>Show Log</source> <translation>Mostrar Log</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="383"/> + <location filename="../build/ui_mainwindow.h" line="390"/> <source>Ctrl+L</source> <translation>Ctrl+L</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="384"/> + <location filename="../build/ui_mainwindow.h" line="391"/> <source>Show Normal</source> <translation>Mostrar normal</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="385"/> + <location filename="../build/ui_mainwindow.h" line="392"/> <source>Ctrl+O</source> <translation>Ctrl+O</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="386"/> + <location filename="../build/ui_mainwindow.h" line="393"/> <source>Show Error</source> <translation>Mostrar Errores</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="387"/> + <location filename="../build/ui_mainwindow.h" line="394"/> <source>Ctrl+E</source> <translation>Ctrl+E</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="388"/> + <location filename="../build/ui_mainwindow.h" line="395"/> <source>Show Network</source> <translation>Mostrar Red</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="389"/> + <location filename="../build/ui_mainwindow.h" line="396"/> <source>Ctrl+N</source> <translation></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="390"/> + <location filename="../build/ui_mainwindow.h" line="397"/> <source>Show Terminal</source> <translation>Mostrar Linea de comandos</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="391"/> + <location filename="../build/ui_mainwindow.h" line="398"/> <source>Ctrl+T</source> <translation>Ctrl+T</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="392"/> + <location filename="../build/ui_mainwindow.h" line="399"/> <source>Show Chat</source> <translation>Mostrar Chat</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="393"/> + <location filename="../build/ui_mainwindow.h" line="400"/> <source>Ctrl+G</source> <translation>Ctrl+G</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="394"/> + <location filename="../build/ui_mainwindow.h" line="401"/> <source>About pvs</source> <translation>Acerca de PVS</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="395"/> + <location filename="../build/ui_mainwindow.h" line="402"/> <source>Ctrl+P</source> <translation>Ctrl+P</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="396"/> + <location filename="../build/ui_mainwindow.h" line="403"/> <source>100 x 100</source> <translation>100 x 100</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="397"/> + <location filename="../build/ui_mainwindow.h" line="404"/> <source>200 x 200</source> <translation>200 x 200</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="398"/> + <location filename="../build/ui_mainwindow.h" line="405"/> <source>500 x 500</source> <translation>500 x 500</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="399"/> + <location filename="../build/ui_mainwindow.h" line="406"/> <source>&Disconnect</source> <translation>&Desconectar</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="400"/> + <location filename="../build/ui_mainwindow.h" line="407"/> <source>Ctrl+W</source> <translation>Ctrl+W</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="401"/> + <location filename="../build/ui_mainwindow.h" line="408"/> <source>&Exit</source> <translation>&Salir</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="405"/> + <location filename="../build/ui_mainwindow.h" line="412"/> <source>Ctrl+Q</source> <translation>Ctrl+Q</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="406"/> - <location filename="../build/ui_mainwindow.h" line="408"/> + <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="415"/> <source>Foto</source> <translation>Imagen</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../build/ui_mainwindow.h" line="417"/> <source>Ctrl+F</source> <translation>Ctrl+F</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="411"/> + <location filename="../build/ui_mainwindow.h" line="418"/> <source>view</source> <translation>ver</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="420"/> <source>View</source> <translation>Ver</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="415"/> + <location filename="../build/ui_mainwindow.h" line="422"/> <source>Ctrl+V</source> <translation>Ctrl+V</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="416"/> + <location filename="../build/ui_mainwindow.h" line="423"/> <source>lock</source> <translation>bloquear</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="420"/> + <location filename="../build/ui_mainwindow.h" line="427"/> <source>Ctrl+A</source> <translation>Ctrl+A</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="421"/> + <location filename="../build/ui_mainwindow.h" line="428"/> <source>Profile &manager</source> <translation>Perfil &manager</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="422"/> + <location filename="../build/ui_mainwindow.h" line="429"/> <source>Ctrl+M</source> <translation>Ctrl+M</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="423"/> + <location filename="../build/ui_mainwindow.h" line="430"/> <source>Show Name</source> <translation>Mostrar nombre</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="424"/> + <location filename="../build/ui_mainwindow.h" line="431"/> <source>Ctrl+1</source> <translation>Ctrl+1</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../build/ui_mainwindow.h" line="432"/> <source>Chat</source> <translation>Chat</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="427"/> + <location filename="../build/ui_mainwindow.h" line="434"/> <source>Start Chat with client(s)</source> <translation>Iniciar Chat con cliente(s)</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="429"/> + <location filename="../build/ui_mainwindow.h" line="436"/> <source>Ctrl+D</source> <translation>Ctrl+D</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="430"/> + <location filename="../build/ui_mainwindow.h" line="437"/> <source>-</source> <translation>-</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="431"/> + <location filename="../build/ui_mainwindow.h" line="438"/> + <source>showProcesses</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="440"/> + <location filename="../src/gui/mainWindow.cpp" line="130"/> + <source>Show Processes of the selected Client</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="442"/> <source>border-color: rgb(0, 0, 0);</source> <translation>border-color: rgb(0, 0, 0);</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="432"/> + <location filename="../build/ui_mainwindow.h" line="443"/> <source>VNC quality</source> <translation>VNC calidad</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="435"/> + <location filename="../build/ui_mainwindow.h" line="446"/> <source>HIGH</source> <translation>Alta</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="436"/> + <location filename="../build/ui_mainwindow.h" line="447"/> <source>MEDIUM</source> <translation>Media</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="437"/> + <location filename="../build/ui_mainwindow.h" line="448"/> <source>LOW</source> <translation>Baja</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="439"/> + <location filename="../build/ui_mainwindow.h" line="450"/> <source>Set password</source> <translation>Asignar contraseña</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="442"/> + <location filename="../build/ui_mainwindow.h" line="453"/> <source>Thumbnailratio</source> <translation>Radio de la vista en miniatura</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="443"/> + <location filename="../build/ui_mainwindow.h" line="454"/> <source>Thumbnailrate</source> <translation>Frecuancia de actualización para las vistas en miniatura</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="445"/> + <location filename="../build/ui_mainwindow.h" line="456"/> <source> 0</source> <translation> 0</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="446"/> + <location filename="../build/ui_mainwindow.h" line="457"/> <source>%</source> <translation>%</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="447"/> + <location filename="../build/ui_mainwindow.h" line="458"/> <source>background-color: rgb(255, 255, 255);</source> <translation>background-color: rgb(255, 255, 255);</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="448"/> + <location filename="../build/ui_mainwindow.h" line="459"/> <source>background-color: rgb(150, 150, 150);</source> <translation>background-color: rgb(150, 150, 150);</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="449"/> + <location filename="../build/ui_mainwindow.h" line="460"/> <source>&File</source> <translation>&Archivo</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="450"/> + <location filename="../build/ui_mainwindow.h" line="461"/> <source>Load profile </source> <translation>Cargar perfil</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="451"/> + <location filename="../build/ui_mainwindow.h" line="462"/> <source>&Clients</source> <translation>&Clientes</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="452"/> + <location filename="../build/ui_mainwindow.h" line="463"/> <source>&Logging</source> <translation>&Logging</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="453"/> + <location filename="../build/ui_mainwindow.h" line="464"/> <source>&Help</source> <translation>&Ayuda</translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="454"/> + <location filename="../build/ui_mainwindow.h" line="465"/> <source>toolBar</source> <translation>Barra de herramientas</translation> </message> diff --git a/i18n/pvsmgr_fr_FR.ts b/i18n/pvsmgr_fr_FR.ts index bc5c69c..ba391d2 100644 --- a/i18n/pvsmgr_fr_FR.ts +++ b/i18n/pvsmgr_fr_FR.ts @@ -314,360 +314,376 @@ Perform an unprojection or remove remote help to get a target.</source> <context> <name>MainWindow</name> <message> - <location filename="../build/ui_mainwindow.h" line="403"/> - <location filename="../src/gui/mainWindow.cpp" line="120"/> + <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../src/gui/mainWindow.cpp" line="117"/> <source>Exit</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="122"/> + <location filename="../src/gui/mainWindow.cpp" line="119"/> <source>Remove the vnc-Connection for the selected client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="125"/> + <location filename="../src/gui/mainWindow.cpp" line="122"/> <source>Show the selected client in the whole window</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="129"/> + <location filename="../src/gui/mainWindow.cpp" line="126"/> <source>Make a screenshot for the selected client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="418"/> - <location filename="../src/gui/mainWindow.cpp" line="130"/> + <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../src/gui/mainWindow.cpp" line="127"/> <source>Lock or Unlock all Clients</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="151"/> + <location filename="../src/gui/mainWindow.cpp" line="150"/> <source>The pvs manager</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="740"/> + <location filename="../src/gui/mainWindow.cpp" line="736"/> <source>This operation can only be performed for one selected Client!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="792"/> + <location filename="../src/gui/mainWindow.cpp" line="780"/> + <source>This operation can only be performed if you have selected a Client!</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/gui/mainWindow.cpp" line="819"/> <source>This operation can only be performed for at least one selected Client!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1061"/> + <location filename="../src/gui/mainWindow.cpp" line="1094"/> <source>You have to set a Superclient-machine before performing this action.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1171"/> <source>Open Image</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1172"/> <source>Image Files (*.png *.jpg *.svg)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="376"/> + <location filename="../build/ui_mainwindow.h" line="383"/> <source>PVSmgr</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="377"/> + <location filename="../build/ui_mainwindow.h" line="384"/> <source>Show Username</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="378"/> + <location filename="../build/ui_mainwindow.h" line="385"/> <source>Ctrl+3</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="379"/> + <location filename="../build/ui_mainwindow.h" line="386"/> <source>Show IP</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="380"/> + <location filename="../build/ui_mainwindow.h" line="387"/> <source>Ctrl+2</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="381"/> + <location filename="../build/ui_mainwindow.h" line="388"/> <source>VNC-Placeholders</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="382"/> + <location filename="../build/ui_mainwindow.h" line="389"/> <source>Show Log</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="383"/> + <location filename="../build/ui_mainwindow.h" line="390"/> <source>Ctrl+L</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="384"/> + <location filename="../build/ui_mainwindow.h" line="391"/> <source>Show Normal</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="385"/> + <location filename="../build/ui_mainwindow.h" line="392"/> <source>Ctrl+O</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="386"/> + <location filename="../build/ui_mainwindow.h" line="393"/> <source>Show Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="387"/> + <location filename="../build/ui_mainwindow.h" line="394"/> <source>Ctrl+E</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="388"/> + <location filename="../build/ui_mainwindow.h" line="395"/> <source>Show Network</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="389"/> + <location filename="../build/ui_mainwindow.h" line="396"/> <source>Ctrl+N</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="390"/> + <location filename="../build/ui_mainwindow.h" line="397"/> <source>Show Terminal</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="391"/> + <location filename="../build/ui_mainwindow.h" line="398"/> <source>Ctrl+T</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="392"/> + <location filename="../build/ui_mainwindow.h" line="399"/> <source>Show Chat</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="393"/> + <location filename="../build/ui_mainwindow.h" line="400"/> <source>Ctrl+G</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="394"/> + <location filename="../build/ui_mainwindow.h" line="401"/> <source>About pvs</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="395"/> + <location filename="../build/ui_mainwindow.h" line="402"/> <source>Ctrl+P</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="396"/> + <location filename="../build/ui_mainwindow.h" line="403"/> <source>100 x 100</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="397"/> + <location filename="../build/ui_mainwindow.h" line="404"/> <source>200 x 200</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="398"/> + <location filename="../build/ui_mainwindow.h" line="405"/> <source>500 x 500</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="399"/> + <location filename="../build/ui_mainwindow.h" line="406"/> <source>&Disconnect</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="400"/> + <location filename="../build/ui_mainwindow.h" line="407"/> <source>Ctrl+W</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="401"/> + <location filename="../build/ui_mainwindow.h" line="408"/> <source>&Exit</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="405"/> + <location filename="../build/ui_mainwindow.h" line="412"/> <source>Ctrl+Q</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="406"/> - <location filename="../build/ui_mainwindow.h" line="408"/> + <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="415"/> <source>Foto</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../build/ui_mainwindow.h" line="417"/> <source>Ctrl+F</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="411"/> + <location filename="../build/ui_mainwindow.h" line="418"/> <source>view</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="420"/> <source>View</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="415"/> + <location filename="../build/ui_mainwindow.h" line="422"/> <source>Ctrl+V</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="416"/> + <location filename="../build/ui_mainwindow.h" line="423"/> <source>lock</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="420"/> + <location filename="../build/ui_mainwindow.h" line="427"/> <source>Ctrl+A</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="421"/> + <location filename="../build/ui_mainwindow.h" line="428"/> <source>Profile &manager</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="422"/> + <location filename="../build/ui_mainwindow.h" line="429"/> <source>Ctrl+M</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="423"/> + <location filename="../build/ui_mainwindow.h" line="430"/> <source>Show Name</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="424"/> + <location filename="../build/ui_mainwindow.h" line="431"/> <source>Ctrl+1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../build/ui_mainwindow.h" line="432"/> <source>Chat</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="427"/> + <location filename="../build/ui_mainwindow.h" line="434"/> <source>Start Chat with client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="429"/> + <location filename="../build/ui_mainwindow.h" line="436"/> <source>Ctrl+D</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="430"/> + <location filename="../build/ui_mainwindow.h" line="437"/> <source>-</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="431"/> + <location filename="../build/ui_mainwindow.h" line="438"/> + <source>showProcesses</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="440"/> + <location filename="../src/gui/mainWindow.cpp" line="130"/> + <source>Show Processes of the selected Client</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="442"/> <source>border-color: rgb(0, 0, 0);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="432"/> + <location filename="../build/ui_mainwindow.h" line="443"/> <source>VNC quality</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="435"/> + <location filename="../build/ui_mainwindow.h" line="446"/> <source>HIGH</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="436"/> + <location filename="../build/ui_mainwindow.h" line="447"/> <source>MEDIUM</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="437"/> + <location filename="../build/ui_mainwindow.h" line="448"/> <source>LOW</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="439"/> + <location filename="../build/ui_mainwindow.h" line="450"/> <source>Set password</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="442"/> + <location filename="../build/ui_mainwindow.h" line="453"/> <source>Thumbnailratio</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="443"/> + <location filename="../build/ui_mainwindow.h" line="454"/> <source>Thumbnailrate</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="445"/> + <location filename="../build/ui_mainwindow.h" line="456"/> <source> 0</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="446"/> + <location filename="../build/ui_mainwindow.h" line="457"/> <source>%</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="447"/> + <location filename="../build/ui_mainwindow.h" line="458"/> <source>background-color: rgb(255, 255, 255);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="448"/> + <location filename="../build/ui_mainwindow.h" line="459"/> <source>background-color: rgb(150, 150, 150);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="449"/> + <location filename="../build/ui_mainwindow.h" line="460"/> <source>&File</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="450"/> + <location filename="../build/ui_mainwindow.h" line="461"/> <source>Load profile </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="451"/> + <location filename="../build/ui_mainwindow.h" line="462"/> <source>&Clients</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="452"/> + <location filename="../build/ui_mainwindow.h" line="463"/> <source>&Logging</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="453"/> + <location filename="../build/ui_mainwindow.h" line="464"/> <source>&Help</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="454"/> + <location filename="../build/ui_mainwindow.h" line="465"/> <source>toolBar</source> <translation type="unfinished"></translation> </message> diff --git a/i18n/pvsmgr_pl_PL.ts b/i18n/pvsmgr_pl_PL.ts index bc5c69c..ba391d2 100644 --- a/i18n/pvsmgr_pl_PL.ts +++ b/i18n/pvsmgr_pl_PL.ts @@ -314,360 +314,376 @@ Perform an unprojection or remove remote help to get a target.</source> <context> <name>MainWindow</name> <message> - <location filename="../build/ui_mainwindow.h" line="403"/> - <location filename="../src/gui/mainWindow.cpp" line="120"/> + <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../src/gui/mainWindow.cpp" line="117"/> <source>Exit</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="122"/> + <location filename="../src/gui/mainWindow.cpp" line="119"/> <source>Remove the vnc-Connection for the selected client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="125"/> + <location filename="../src/gui/mainWindow.cpp" line="122"/> <source>Show the selected client in the whole window</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="129"/> + <location filename="../src/gui/mainWindow.cpp" line="126"/> <source>Make a screenshot for the selected client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="418"/> - <location filename="../src/gui/mainWindow.cpp" line="130"/> + <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../src/gui/mainWindow.cpp" line="127"/> <source>Lock or Unlock all Clients</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="151"/> + <location filename="../src/gui/mainWindow.cpp" line="150"/> <source>The pvs manager</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="740"/> + <location filename="../src/gui/mainWindow.cpp" line="736"/> <source>This operation can only be performed for one selected Client!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="792"/> + <location filename="../src/gui/mainWindow.cpp" line="780"/> + <source>This operation can only be performed if you have selected a Client!</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/gui/mainWindow.cpp" line="819"/> <source>This operation can only be performed for at least one selected Client!</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1061"/> + <location filename="../src/gui/mainWindow.cpp" line="1094"/> <source>You have to set a Superclient-machine before performing this action.</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1171"/> <source>Open Image</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../src/gui/mainWindow.cpp" line="1141"/> + <location filename="../src/gui/mainWindow.cpp" line="1172"/> <source>Image Files (*.png *.jpg *.svg)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="376"/> + <location filename="../build/ui_mainwindow.h" line="383"/> <source>PVSmgr</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="377"/> + <location filename="../build/ui_mainwindow.h" line="384"/> <source>Show Username</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="378"/> + <location filename="../build/ui_mainwindow.h" line="385"/> <source>Ctrl+3</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="379"/> + <location filename="../build/ui_mainwindow.h" line="386"/> <source>Show IP</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="380"/> + <location filename="../build/ui_mainwindow.h" line="387"/> <source>Ctrl+2</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="381"/> + <location filename="../build/ui_mainwindow.h" line="388"/> <source>VNC-Placeholders</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="382"/> + <location filename="../build/ui_mainwindow.h" line="389"/> <source>Show Log</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="383"/> + <location filename="../build/ui_mainwindow.h" line="390"/> <source>Ctrl+L</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="384"/> + <location filename="../build/ui_mainwindow.h" line="391"/> <source>Show Normal</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="385"/> + <location filename="../build/ui_mainwindow.h" line="392"/> <source>Ctrl+O</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="386"/> + <location filename="../build/ui_mainwindow.h" line="393"/> <source>Show Error</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="387"/> + <location filename="../build/ui_mainwindow.h" line="394"/> <source>Ctrl+E</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="388"/> + <location filename="../build/ui_mainwindow.h" line="395"/> <source>Show Network</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="389"/> + <location filename="../build/ui_mainwindow.h" line="396"/> <source>Ctrl+N</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="390"/> + <location filename="../build/ui_mainwindow.h" line="397"/> <source>Show Terminal</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="391"/> + <location filename="../build/ui_mainwindow.h" line="398"/> <source>Ctrl+T</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="392"/> + <location filename="../build/ui_mainwindow.h" line="399"/> <source>Show Chat</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="393"/> + <location filename="../build/ui_mainwindow.h" line="400"/> <source>Ctrl+G</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="394"/> + <location filename="../build/ui_mainwindow.h" line="401"/> <source>About pvs</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="395"/> + <location filename="../build/ui_mainwindow.h" line="402"/> <source>Ctrl+P</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="396"/> + <location filename="../build/ui_mainwindow.h" line="403"/> <source>100 x 100</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="397"/> + <location filename="../build/ui_mainwindow.h" line="404"/> <source>200 x 200</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="398"/> + <location filename="../build/ui_mainwindow.h" line="405"/> <source>500 x 500</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="399"/> + <location filename="../build/ui_mainwindow.h" line="406"/> <source>&Disconnect</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="400"/> + <location filename="../build/ui_mainwindow.h" line="407"/> <source>Ctrl+W</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="401"/> + <location filename="../build/ui_mainwindow.h" line="408"/> <source>&Exit</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="405"/> + <location filename="../build/ui_mainwindow.h" line="412"/> <source>Ctrl+Q</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="406"/> - <location filename="../build/ui_mainwindow.h" line="408"/> + <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="415"/> <source>Foto</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="410"/> + <location filename="../build/ui_mainwindow.h" line="417"/> <source>Ctrl+F</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="411"/> + <location filename="../build/ui_mainwindow.h" line="418"/> <source>view</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="413"/> + <location filename="../build/ui_mainwindow.h" line="420"/> <source>View</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="415"/> + <location filename="../build/ui_mainwindow.h" line="422"/> <source>Ctrl+V</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="416"/> + <location filename="../build/ui_mainwindow.h" line="423"/> <source>lock</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="420"/> + <location filename="../build/ui_mainwindow.h" line="427"/> <source>Ctrl+A</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="421"/> + <location filename="../build/ui_mainwindow.h" line="428"/> <source>Profile &manager</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="422"/> + <location filename="../build/ui_mainwindow.h" line="429"/> <source>Ctrl+M</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="423"/> + <location filename="../build/ui_mainwindow.h" line="430"/> <source>Show Name</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="424"/> + <location filename="../build/ui_mainwindow.h" line="431"/> <source>Ctrl+1</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="425"/> + <location filename="../build/ui_mainwindow.h" line="432"/> <source>Chat</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="427"/> + <location filename="../build/ui_mainwindow.h" line="434"/> <source>Start Chat with client(s)</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="429"/> + <location filename="../build/ui_mainwindow.h" line="436"/> <source>Ctrl+D</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="430"/> + <location filename="../build/ui_mainwindow.h" line="437"/> <source>-</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="431"/> + <location filename="../build/ui_mainwindow.h" line="438"/> + <source>showProcesses</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="440"/> + <location filename="../src/gui/mainWindow.cpp" line="130"/> + <source>Show Processes of the selected Client</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../build/ui_mainwindow.h" line="442"/> <source>border-color: rgb(0, 0, 0);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="432"/> + <location filename="../build/ui_mainwindow.h" line="443"/> <source>VNC quality</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="435"/> + <location filename="../build/ui_mainwindow.h" line="446"/> <source>HIGH</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="436"/> + <location filename="../build/ui_mainwindow.h" line="447"/> <source>MEDIUM</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="437"/> + <location filename="../build/ui_mainwindow.h" line="448"/> <source>LOW</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="439"/> + <location filename="../build/ui_mainwindow.h" line="450"/> <source>Set password</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="442"/> + <location filename="../build/ui_mainwindow.h" line="453"/> <source>Thumbnailratio</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="443"/> + <location filename="../build/ui_mainwindow.h" line="454"/> <source>Thumbnailrate</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="445"/> + <location filename="../build/ui_mainwindow.h" line="456"/> <source> 0</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="446"/> + <location filename="../build/ui_mainwindow.h" line="457"/> <source>%</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="447"/> + <location filename="../build/ui_mainwindow.h" line="458"/> <source>background-color: rgb(255, 255, 255);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="448"/> + <location filename="../build/ui_mainwindow.h" line="459"/> <source>background-color: rgb(150, 150, 150);</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="449"/> + <location filename="../build/ui_mainwindow.h" line="460"/> <source>&File</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="450"/> + <location filename="../build/ui_mainwindow.h" line="461"/> <source>Load profile </source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="451"/> + <location filename="../build/ui_mainwindow.h" line="462"/> <source>&Clients</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="452"/> + <location filename="../build/ui_mainwindow.h" line="463"/> <source>&Logging</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="453"/> + <location filename="../build/ui_mainwindow.h" line="464"/> <source>&Help</source> <translation type="unfinished"></translation> </message> <message> - <location filename="../build/ui_mainwindow.h" line="454"/> + <location filename="../build/ui_mainwindow.h" line="465"/> <source>toolBar</source> <translation type="unfinished"></translation> </message> @@ -1,58 +1,59 @@ <RCC> - <qresource prefix="/" > + <qresource prefix="/"> + <file>icons/gears.png</file> <file>icons/projection.png</file> <file>icons/reset.png</file> - <file alias="finder" >icons/finder.png</file> - <file alias="exit" >icons/exit.png</file> - <file alias="terminal" >icons/terminal.png</file> - <file alias="photo" >icons/photo.png</file> - <file alias="photos" >icons/photo2.png</file> - <file alias="logout" >icons/log-out.png</file> - <file alias="restore" >icons/view-restore.png</file> - <file alias="lock" >icons/lock.png</file> - <file alias="profile" >icons/profile.png</file> - <file alias="dozent" >icons/dozent.svg</file> - <file alias="offline" >icons/offline.png</file> - <file alias="online" >icons/online.png</file> - <file alias="source" >icons/source.png</file> - <file alias="target" >icons/target.png</file> - <file alias="dozent2" >icons/dozent.png</file> - <file alias="chat" >icons/chat.png</file> - <file alias="cam32" >icons/cam32.svg</file> + <file alias="finder">icons/finder.png</file> + <file alias="exit">icons/exit.png</file> + <file alias="terminal">icons/terminal.png</file> + <file alias="photo">icons/photo.png</file> + <file alias="photos">icons/photo2.png</file> + <file alias="logout">icons/log-out.png</file> + <file alias="restore">icons/view-restore.png</file> + <file alias="lock">icons/lock.png</file> + <file alias="profile">icons/profile.png</file> + <file alias="dozent">icons/dozent.svg</file> + <file alias="offline">icons/offline.png</file> + <file alias="online">icons/online.png</file> + <file alias="source">icons/source.png</file> + <file alias="target">icons/target.png</file> + <file alias="dozent2">icons/dozent.png</file> + <file alias="chat">icons/chat.png</file> + <file alias="cam32">icons/cam32.svg</file> <file alias="AUTHORS">AUTHORS</file> - <file alias="TRANSLATION">TRANSLATION</file> + <file alias="TRANSLATION">TRANSLATION</file> </qresource> - <qresource prefix="/" lang="de_DE" > + <qresource prefix="/" lang="de_DE"> <file>icons/unprojection.png</file> <file>icons/unlocksingle.png</file> <file>icons/locksingle.png</file> - <file alias="pvsmgr.qm" >build/pvsmgr_de_DE.qm</file> + <file alias="pvsmgr.qm">build/pvsmgr_de_DE.qm</file> </qresource> - <qresource prefix="/" lang="de" > - <file alias="pvsmgr.qm" >build/pvsmgr_de_DE.qm</file> + <qresource prefix="/" lang="de"> + <file alias="pvsmgr.qm">build/pvsmgr_de_DE.qm</file> </qresource> - <qresource prefix="/" lang="fr_FR" > - <file alias="pvsmgr.qm" >build/pvsmgr_fr_FR.qm</file> + <qresource prefix="/" lang="fr_FR"> + <file alias="pvsmgr.qm">build/pvsmgr_fr_FR.qm</file> </qresource> - <qresource prefix="/" lang="fr" > - <file alias="pvsmgr.qm" >build/pvsmgr_fr_FR.qm</file> + <qresource prefix="/" lang="fr"> + <file alias="pvsmgr.qm">build/pvsmgr_fr_FR.qm</file> </qresource> - <qresource prefix="/" lang="es_MX" > - <file alias="pvsmgr.qm" >build/pvsmgr_es_MX.qm</file> + <qresource prefix="/" lang="es_MX"> + <file alias="pvsmgr.qm">build/pvsmgr_es_MX.qm</file> </qresource> - <qresource prefix="/" lang="es" > - <file alias="pvsmgr.qm" >build/pvsmgr_es_MX.qm</file> + <qresource prefix="/" lang="es"> + <file alias="pvsmgr.qm">build/pvsmgr_es_MX.qm</file> </qresource> - <qresource prefix="/" lang="ar_JO" > - <file alias="pvsmgr.qm" >build/pvsmgr_ar_JO.qm</file> + <qresource prefix="/" lang="ar_JO"> + <file alias="pvsmgr.qm">build/pvsmgr_ar_JO.qm</file> </qresource> - <qresource prefix="/" lang="ar" > - <file alias="pvsmgr.qm" >build/pvsmgr_ar_JO.qm</file> + <qresource prefix="/" lang="ar"> + <file alias="pvsmgr.qm">build/pvsmgr_ar_JO.qm</file> </qresource> - <qresource prefix="/" lang="pl_PL" > - <file alias="pvsmgr.qm" >build/pvsmgr_pl_PL.qm</file> + <qresource prefix="/" lang="pl_PL"> + <file alias="pvsmgr.qm">build/pvsmgr_pl_PL.qm</file> </qresource> - <qresource prefix="/" lang="pl" > - <file alias="pvsmgr.qm" >build/pvsmgr_pl_PL.qm</file> + <qresource prefix="/" lang="pl"> + <file alias="pvsmgr.qm">build/pvsmgr_pl_PL.qm</file> </qresource> </RCC> diff --git a/src/gui/mainWindow.cpp b/src/gui/mainWindow.cpp index eb15e82..473c85b 100644 --- a/src/gui/mainWindow.cpp +++ b/src/gui/mainWindow.cpp @@ -10,7 +10,7 @@ # General information about OpenSLX can be found at http://openslx.org/ # ----------------------------------------------------------------------------- # mainWindow.cpp - This is the Main class for the pvsManager. The GUI is contructed here. + This is the Main class for the pvsManager. The GUI is contructed here. # ----------------------------------------------------------------------------- */ @@ -37,131 +37,129 @@ using namespace std; #include <iostream> MainWindow::MainWindow(QWidget *parent) : - QMainWindow(parent), ui(new Ui::MainWindow) + QMainWindow(parent), ui(new Ui::MainWindow) { - ui->setupUi(this); + ui->setupUi(this); - ui->horizontalSlider->setValue(100); - ui->label_2->setText("100"); + ui->horizontalSlider->setValue(100); + ui->label_2->setText("100"); - ui->separator->setVisible(false); + ui->separator->setVisible(false); - myself = this; - conWin = new ConnectionWindow(ui->widget); - ui->VconWinLayout->addWidget(conWin); - conList = new ConnectionList(ui->ClWidget); - ui->ClientGLayout->addWidget(conList); + myself = this; + conWin = new ConnectionWindow(ui->widget); + ui->VconWinLayout->addWidget(conWin); + conList = new ConnectionList(ui->ClWidget); + ui->ClientGLayout->addWidget(conList); - bgimage = false; + bgimage = false; - _aboutDialog = new AboutDialog(this); + _aboutDialog = new AboutDialog(this); - PVSConnectionManager::getManager(); + PVSConnectionManager::getManager(); - //set the maximum width for list content - ui->ClWidget->setMaximumWidth(160); + //set the maximum width for list content + ui->ClWidget->setMaximumWidth(160); - ui->pvsLog->setReadOnly(true); - ui->pvsLog->hide(); + ui->pvsLog->setReadOnly(true); + ui->pvsLog->hide(); - onToggleLog(false); - // add ourself to the log listeners, so we can output them too - ConsoleLog addListener(this, &MainWindow::on_log_line); + onToggleLog(false); + // add ourself to the log listeners, so we can output them too + ConsoleLog addListener(this, &MainWindow::on_log_line); - _firstResize = 1; - _oldRatio = "100"; - _isThumbnailrate = false; - is_closeup = false; - is_fullscreen = false; - _isLockAll = false; - locked = false; + _firstResize = 1; + _oldRatio = "100"; + _isThumbnailrate = false; + is_closeup = false; + is_fullscreen = false; + _isLockAll = false; + locked = false; - /* - * _sessionName: The session name for this Connection - * _pwdCon: Password needed to connect to the session with the name _sessionName - */ - _pwdCon = PVSConnectionManager::getManager()->setNeedPassword(false); - _sessionName = PVSConnectionManager::getManager()->getSessionName(); + /* + * _sessionName: The session name for this Connection + * _pwdCon: Password needed to connect to the session with the name _sessionName + */ + _pwdCon = PVSConnectionManager::getManager()->setNeedPassword(false); + _sessionName = PVSConnectionManager::getManager()->getSessionName(); - ui->setPassword->setCheckState(Qt::Checked); + ui->setPassword->setCheckState(Qt::Checked); #ifdef MAINWINDOW_USE_TOUCHGUI //only used for the touchgui + // define the slots we want to use + connect(ui->comboBox_touch1, SIGNAL(currentIndexChanged(int)), this, SLOT(combobox1(int))); // Combobox 1 verknüpfen mit IndexChangend Signal + connect(ui->comboBox_touch1, SIGNAL(currentIndexChanged(int)), this, SLOT(setindexback())); - // define the slots we want to use - connect(ui->comboBox_touch1, SIGNAL(currentIndexChanged(int)), this, SLOT(combobox1(int))); // Combobox 1 verknüpfen mit IndexChangend Signal - connect(ui->comboBox_touch1, SIGNAL(currentIndexChanged(int)), this, SLOT(setindexback())); + connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(createProfile())); // profile button + connect(ui->pushButton_2, SIGNAL(clicked()), this, SLOT(clientlisthide())); // clienlist button + // toolbar slots + connect(ui->actionresetall, SIGNAL(triggered()), this, SLOT(resetall())); + connect(ui->actionLocksingle, SIGNAL(triggered()), this, SLOT(locksingle())); + connect(ui->actionUnlocksingle, SIGNAL(triggered()), this, SLOT(unlocksingle())); + connect(ui->actionProjection, SIGNAL(triggered()), this, SLOT(projecttoolbar())); + connect(ui->actionUnprojection, SIGNAL(triggered()), this, SLOT(unprojecttoolbar())); + connect(ui->actionDozent, SIGNAL(triggered()), this, SLOT(setdozenttoolbar())); + connect(ui->actionShowProcesses, SIGNAL(triggered()), this, SLOT(showProcesses())); - connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(createProfile())); // profile button - connect(ui->pushButton_2, SIGNAL(clicked()), this, SLOT(clientlisthide())); // clienlist button - - // toolbar slots - connect(ui->actionresetall, SIGNAL(triggered()), this, SLOT(resetall())); - connect(ui->actionLocksingle, SIGNAL(triggered()), this, SLOT(locksingle())); - connect(ui->actionUnlocksingle, SIGNAL(triggered()), this, SLOT(unlocksingle())); - connect(ui->actionProjection, SIGNAL(triggered()), this, SLOT(projecttoolbar())); - connect(ui->actionUnprojection, SIGNAL(triggered()), this, SLOT(unprojecttoolbar())); - connect(ui->actionDozent, SIGNAL(triggered()), this, SLOT(setdozenttoolbar())); - - // Ui specific settings - - ui->ClWidget->hide(); - ui->progressBar->hide(); - ui->pvsLog->hide(); + // Ui specific settings + ui->ClWidget->hide(); + ui->progressBar->hide(); + ui->pvsLog->hide(); #endif - - // toolbar and actions in pvsmgr - connect(ui->action_Exit, SIGNAL(triggered()), this, SLOT(close())); - ui->action_Exit->setStatusTip(tr("Exit")); - connect(ui->action_Disconnect, SIGNAL(triggered()), this, SLOT(disconnect())); - ui->action_Disconnect->setStatusTip(tr("Remove the vnc-Connection for the selected client(s)")); - ui->action_Disconnect->setVisible(false);//we need it only for debug - connect(ui->actionView, SIGNAL(triggered()), this, SLOT(closeUp())); - 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())); - 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())); - - 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())); - connect(ui->horizontalSlider, SIGNAL(valueChanged (int)), this, SLOT(changeRatio(int))); - connect(ui->setPassword, SIGNAL(stateChanged (int)), this, SLOT(setPasswordForConnection(int))); - connect(ui->vncQuality, SIGNAL(currentIndexChanged (int)), this, SLOT(setVNCQuality(int))); - connect(ui->thumbStatus, SIGNAL(currentIndexChanged(int)), this, SLOT(changeStatus(int))); - connect(ui->actionShow_Log, SIGNAL(toggled(bool)), this, SLOT(setLogConsoleDisabled(bool))); - connect(ui->actionShow_Network, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); - connect(ui->actionShow_Chat, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); - connect(ui->actionShow_Terminal, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); - connect(ui->actionShow_Normal, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); - connect(ui->actionShow_Error, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); - connect(ui->actionAbout_pvs, SIGNAL(triggered()), _aboutDialog, SLOT(open())); - - loadSettings(); //we load the appliocation settings - - setUnifiedTitleAndToolBarOnMac(true); - statusBar()->showMessage(tr("The pvs manager")); - this->showMaximized(); // show the Mainwindow maximized - - // listen on port 29481 for incoming file transfers + // toolbar and actions in pvsmgr + connect(ui->action_Exit, SIGNAL(triggered()), this, SLOT(close())); + ui->action_Exit->setStatusTip(tr("Exit")); + connect(ui->action_Disconnect, SIGNAL(triggered()), this, SLOT(disconnect())); + ui->action_Disconnect->setStatusTip(tr("Remove the vnc-Connection for the selected client(s)")); + ui->action_Disconnect->setVisible(false);//we need it only for debug + connect(ui->actionView, SIGNAL(triggered()), this, SLOT(closeUp())); + 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())); + 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())); + connect(ui->actionShowProcesses, SIGNAL(triggered()), this, SLOT(showProcesses())); + ui->actionShowProcesses->setStatusTip(tr("Show Processes of the selected Client")); + + 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())); + connect(ui->horizontalSlider, SIGNAL(valueChanged (int)), this, SLOT(changeRatio(int))); + connect(ui->setPassword, SIGNAL(stateChanged (int)), this, SLOT(setPasswordForConnection(int))); + connect(ui->vncQuality, SIGNAL(currentIndexChanged (int)), this, SLOT(setVNCQuality(int))); + connect(ui->thumbStatus, SIGNAL(currentIndexChanged(int)), this, SLOT(changeStatus(int))); + connect(ui->actionShow_Log, SIGNAL(toggled(bool)), this, SLOT(setLogConsoleDisabled(bool))); + connect(ui->actionShow_Network, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); + connect(ui->actionShow_Chat, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); + connect(ui->actionShow_Terminal, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); + connect(ui->actionShow_Normal, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); + connect(ui->actionShow_Error, SIGNAL(toggled(bool)), this, SLOT(onToggleLog(bool))); + connect(ui->actionAbout_pvs, SIGNAL(triggered()), _aboutDialog, SLOT(open())); + + loadSettings(); //we load the appliocation settings + + setUnifiedTitleAndToolBarOnMac(true); + statusBar()->showMessage(tr("The pvs manager")); + this->showMaximized(); // show the Mainwindow maximized + + // listen on port 29481 for incoming file transfers _serverSocket = new QTcpServer(); _serverSocket->listen(QHostAddress::Any, 29481); connect(_serverSocket, SIGNAL(newConnection()), this, SLOT(incomingFile())); - } MainWindow::~MainWindow() { - delete ui; + delete ui; } /* @@ -180,38 +178,38 @@ void MainWindow::closeEvent(QCloseEvent *e) MainWindow* MainWindow::getWindow() // catches the window { - if (myself) - { - return myself; - } - else - { - return myself = new MainWindow; - } + if (myself) + { + return myself; + } + else + { + return myself = new MainWindow; + } } ConnectionWindow* MainWindow::getConnectionWindow() // catches the ConnectionWindow { - if (conWin) - { - return conWin; - } - else - { - conWin = new ConnectionWindow; - return conWin; - } + if (conWin) + { + return conWin; + } + else + { + conWin = new ConnectionWindow; + return conWin; + } } ConnectionList* MainWindow::getConnectionList() // catches the ConnectionList { - if (conList) - return conList; - else - { - conList = new ConnectionList; - return conList; - } + if (conList) + return conList; + else + { + conList = new ConnectionList; + return conList; + } } int MainWindow::getConnectionWindowWidth() // returns the width of the ConnectionWindow @@ -226,9 +224,9 @@ int MainWindow::getConnectionWindowHeight() // returns the height of the Coonect QStringList MainWindow::getProfilList() // loads the profile list { - QSettings settings("openslx", "pvsmgr"); - profilList = settings.childGroups(); - return profilList; + QSettings settings("openslx", "pvsmgr"); + profilList = settings.childGroups(); + return profilList; } #ifdef MAINWINDOW_USE_NORMALGUI @@ -254,70 +252,63 @@ void MainWindow::removeProfileInMenu(QString name) #endif void MainWindow::loadSettings() { - QSettings settings("openslx", "pvsmgr"); - QString current = settings.value("current", "default").toString(); - currentProfi = current; - _profilName = current; - - //When no profile is available, we define a default one whith 9 dummy screens - if (current.compare("default") == 0) - { - setWindowTitle("PVSmgr - Default"); - QPoint pos1 = settings.value("default/1", QPoint(0, 0)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings("1", pos1); - QPoint pos2 = - settings.value("default/2", QPoint(194, 0)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings("2", pos2); - QPoint pos3 = - settings.value("default/3", QPoint(388, 0)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings("3", pos3); - QPoint pos4 = - settings.value("default/4", QPoint(582, 0)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings("4", pos4); - QPoint pos5 = - settings.value("default/5", QPoint(0, 173)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings("5", pos5); - QPoint pos6 = - settings.value("default/6", QPoint(194, 173)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings("6", pos6); - QPoint pos7 = - settings.value("default/7", QPoint(388, 173)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings("7", pos7); - QPoint pos8 = - settings.value("default/8", QPoint(582, 173)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings("8", pos8); - QPoint pos9 = - settings.value("default/9", QPoint(293, 346)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings("9", pos9); - - QString title = "PVSmgr - "; + QSettings settings("openslx", "pvsmgr"); + QString current = settings.value("current", "default").toString(); + currentProfi = current; + _profilName = current; + + //When no profile is available, we define a default one whith 9 dummy screens + if (current.compare("default") == 0) + { + setWindowTitle("PVSmgr - Default"); + QPoint pos1 = settings.value("default/1", QPoint(0, 0)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings("1", pos1); + QPoint pos2 = settings.value("default/2", QPoint(194, 0)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings("2", pos2); + QPoint pos3 = settings.value("default/3", QPoint(388, 0)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings("3", pos3); + QPoint pos4 = settings.value("default/4", QPoint(582, 0)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings("4", pos4); + QPoint pos5 = settings.value("default/5", QPoint(0, 173)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings("5", pos5); + QPoint pos6 = settings.value("default/6", QPoint(194, 173)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings("6", pos6); + QPoint pos7 = settings.value("default/7", QPoint(388, 173)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings("7", pos7); + QPoint pos8 = settings.value("default/8", QPoint(582, 173)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings("8", pos8); + QPoint pos9 = settings.value("default/9", QPoint(293, 346)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings("9", pos9); + + QString title = "PVSmgr - "; title.append(_profilName); - title.append(" ["+_sessionName + " : "); - title.append(_pwdCon+"]"); + title.append(" [" + _sessionName + " : "); + title.append(_pwdCon + "]"); setWindowTitle(title); - } - else - { - QString title = "PVSmgr - "; + } + else + { + QString title = "PVSmgr - "; title.append(_profilName); - title.append(" ["+_sessionName + " : "); - title.append(_pwdCon+"]"); + title.append(" [" + _sessionName + " : "); + title.append(_pwdCon + "]"); setWindowTitle(title); - settings.beginGroup(current); - QStringList keys = settings.childKeys(); - for (int i=0; i<keys.size(); i++) - { - QString profil = current; - profil = profil.append("/").append(keys.at(i)); - QPoint pos = settings.value(keys.at(i)).toPoint(); - MainWindow::getConnectionWindow()->addFrameBySettings(keys.at(i), pos); - } - } - - MainWindow::getConnectionWindow()->showFrameFromSettings(); + settings.beginGroup(current); + QStringList keys = settings.childKeys(); + for (int i = 0; i < keys.size(); i++) + { + QString profil = current; + profil = profil.append("/").append(keys.at(i)); + QPoint pos = settings.value(keys.at(i)).toPoint(); + MainWindow::getConnectionWindow()->addFrameBySettings(keys.at(i), + pos); + } + } + + MainWindow::getConnectionWindow()->showFrameFromSettings(); #ifdef MAINWINDOW_USE_NORMALGUI - foreach (QString profile, getProfilList()) - addProfileInMenu(profile); + foreach (QString profile, getProfilList()) + addProfileInMenu(profile); #endif } @@ -329,17 +320,17 @@ void MainWindow::loadProfile(QAction* actiontriggered) void MainWindow::loadSettings(QString profilname) // loads the current profile { - QList<ConnectionFrame*> AllFrameOnWindow = - MainWindow::getConnectionWindow()->getAllFrameOnWindow(); - - if (AllFrameOnWindow.size() > 0) - { - _profilName = profilname; - MainWindow::getConnectionWindow()->ClientLocationList.clear(); - QSettings settings("openslx", "pvsmgr"); - settings.setValue("current", _profilName); - ConnectionFrame* cFrame; - foreach (cFrame, AllFrameOnWindow) + QList<ConnectionFrame*> AllFrameOnWindow = + MainWindow::getConnectionWindow()->getAllFrameOnWindow(); + + if (AllFrameOnWindow.size() > 0) + { + _profilName = profilname; + MainWindow::getConnectionWindow()->ClientLocationList.clear(); + QSettings settings("openslx", "pvsmgr"); + settings.setValue("current", _profilName); + ConnectionFrame* cFrame; + foreach (cFrame, AllFrameOnWindow) { if (cFrame->isDummy()) { @@ -348,90 +339,91 @@ void MainWindow::loadSettings(QString profilname) // loads the current profile cFrame->deleteLater(); } } - settings.beginGroup(_profilName); - QStringList keys = settings.childKeys(); - int rest = AllFrameOnWindow.size(); - int init = 1; - for (int i = 0; i < keys.size(); i++) - { - if (init <= rest) - { - ConnectionFrame* cF = AllFrameOnWindow.at(i); - QString profil = _profilName; - profil = profil.append("/").append(cF->getTaskbarTitle()); - if (!cF->isDummy()) - cF->move(settings.value(keys.at(i)).toPoint()); - else - cF->move(settings.value(profil, QPoint(10,(10+(5*i)))).toPoint()); - - init += 1; - } - else - { - MainWindow::getConnectionWindow()->addFrameBySettings( - keys.at(i), settings.value(keys.at(i)).toPoint()); - } - } - - MainWindow::getConnectionWindow()->showFrameFromSettings(); - - QString title = "PVSmgr - "; - title.append(_profilName); - title.append(" ["+_sessionName + " : "); - title.append(_pwdCon+"]"); - setWindowTitle(title); - } + settings.beginGroup(_profilName); + QStringList keys = settings.childKeys(); + int rest = AllFrameOnWindow.size(); + int init = 1; + for (int i = 0; i < keys.size(); i++) + { + if (init <= rest) + { + ConnectionFrame* cF = AllFrameOnWindow.at(i); + QString profil = _profilName; + profil = profil.append("/").append(cF->getTaskbarTitle()); + if (!cF->isDummy()) + cF->move(settings.value(keys.at(i)).toPoint()); + else + cF->move( + settings.value(profil, QPoint(10, (10 + (5 * i)))).toPoint()); + + init += 1; + } + else + { + MainWindow::getConnectionWindow()->addFrameBySettings( + keys.at(i), settings.value(keys.at(i)).toPoint()); + } + } + + MainWindow::getConnectionWindow()->showFrameFromSettings(); + + QString title = "PVSmgr - "; + title.append(_profilName); + title.append(" [" + _sessionName + " : "); + title.append(_pwdCon + "]"); + setWindowTitle(title); + } } void MainWindow::saveSettings(QString profilname) { - QList<ConnectionFrame*> AllFrameOnWindow = - MainWindow::getConnectionWindow()->getAllFrameOnWindow(); - QSettings settings("openslx", "pvsmgr"); - settings.setValue("current", profilname); - settings.setValue("size", QString("%1").arg(AllFrameOnWindow.size())); - - for (int i = 0; i < AllFrameOnWindow.size(); i++) - { - ConnectionFrame* current = AllFrameOnWindow.at(i); - QString profil = ""; - profil = settings.value("current").toString().append("/"); - if (!current->isDummy()) - profil.append(QString(current->getTaskbarTitle())); - else - profil.append(QString("%1").arg(i + 1)); - settings.setValue(profil, current->pos()); - } + QList<ConnectionFrame*> AllFrameOnWindow = + MainWindow::getConnectionWindow()->getAllFrameOnWindow(); + QSettings settings("openslx", "pvsmgr"); + settings.setValue("current", profilname); + settings.setValue("size", QString("%1").arg(AllFrameOnWindow.size())); + + for (int i = 0; i < AllFrameOnWindow.size(); i++) + { + ConnectionFrame* current = AllFrameOnWindow.at(i); + QString profil = ""; + profil = settings.value("current").toString().append("/"); + if (!current->isDummy()) + profil.append(QString(current->getTaskbarTitle())); + else + profil.append(QString("%1").arg(i + 1)); + settings.setValue(profil, current->pos()); + } #ifdef MAINWINDOW_USE_NORMALGUI -addProfileInMenu(profilname); + addProfileInMenu(profilname); #endif } void MainWindow::removeProfil(QString profilname) { - QSettings settings("openslx", "pvsmgr"); - settings.remove(profilname); + QSettings settings("openslx", "pvsmgr"); + settings.remove(profilname); #ifdef MAINWINDOW_USE_NORMALGUI -removeProfileInMenu(profilname); + removeProfileInMenu(profilname); #endif } void MainWindow::addConnection(PVSClient* newCon) { - conWin->addConnection(newCon); - if (!_chatListClients.contains(newCon->getUserName())) - { - _chatListClients.append(newCon->getUserName()); - sChatDialog.chat_client_add(newCon->getUserName()); - sChatDialog.chat_nicklist_update(); - } - // sChatDialog->chat_nicklist_update(newCon->getUserName()); + conWin->addConnection(newCon); + if (!_chatListClients.contains(newCon->getUserName())) + { + _chatListClients.append(newCon->getUserName()); + sChatDialog.chat_client_add(newCon->getUserName()); + sChatDialog.chat_nicklist_update(); + } + // sChatDialog->chat_nicklist_update(newCon->getUserName()); } void MainWindow::removeConnection(PVSClient* newCon) { - conWin->removeConnection(newCon); - if (_chatListClients.contains(newCon->getUserName())) + conWin->removeConnection(newCon); + if (_chatListClients.contains(newCon->getUserName())) { _chatListClients.removeOne(newCon->getUserName()); sChatDialog.chat_client_remove(newCon->getUserName()); @@ -442,87 +434,87 @@ void MainWindow::removeConnection(PVSClient* newCon) void MainWindow::onConnectionFailed(QString host) { #ifdef never - // code is voided because the info-management will be overhauled sometime - - if (pwDiag) // assume this thing failed after the pw-question... so a wrong password, ey? - - { - onPasswordFailed(host); - return; - } - - QString caption, secondary; - if (host != "") - { - caption = ("PVSConnection with hostname \""); - caption.append(host); - caption.append("\" failed."); - secondary = "PVSConnection attempt for this hostname failed.Maybe the host is not prepared to accept vnc connections. Please make sure hostname and (if needed) password are correct."; - } - else - { - caption = "No IP given"; - secondary = "PVSConnection attempt for this host failed. There was either no or an errorous Hostname given."; - } - QMessageBox::information(*this, caption, secondary); - /* Gtk::MessageDialog dialog(*this, Glib::ustring(caption)); - dialog.set_secondary_text(secondary); - dialog.run();*/ + // code is voided because the info-management will be overhauled sometime + + if (pwDiag) // assume this thing failed after the pw-question... so a wrong password, ey? + + { + onPasswordFailed(host); + return; + } + + QString caption, secondary; + if (host != "") + { + caption = ("PVSConnection with hostname \""); + caption.append(host); + caption.append("\" failed."); + secondary = "PVSConnection attempt for this hostname failed.Maybe the host is not prepared to accept vnc connections. Please make sure hostname and (if needed) password are correct."; + } + else + { + caption = "No IP given"; + secondary = "PVSConnection attempt for this host failed. There was either no or an errorous Hostname given."; + } + QMessageBox::information(*this, caption, secondary); + /* Gtk::MessageDialog dialog(*this, Glib::ustring(caption)); + dialog.set_secondary_text(secondary); + dialog.run();*/ #endif } void MainWindow::onConnectionTerminated(PVSClient* newConnection) { #ifdef never - // code is voided because the info-management will be overhauled sometime - - QString host; - if (newConnection) - { - host = newConnection->getIp(); // copy hostname for message - } - else - host = "spooky unknown"; - - // now inform - QString caption, secondary; - - caption = "Hostname \""; - caption.append(host); - caption.append("\" terminated connection."); - secondary = "The server has closed the connection to your client."; - - QMessageBox::information(*this, caption, secondary); - /*Gtk::MessageDialog dialog(*this, Glib::ustring(caption)); - dialog.set_secondary_text(secondary); - dialog.run();*/ + // code is voided because the info-management will be overhauled sometime + + QString host; + if (newConnection) + { + host = newConnection->getIp(); // copy hostname for message + } + else + host = "spooky unknown"; + + // now inform + QString caption, secondary; + + caption = "Hostname \""; + caption.append(host); + caption.append("\" terminated connection."); + secondary = "The server has closed the connection to your client."; + + QMessageBox::information(*this, caption, secondary); + /*Gtk::MessageDialog dialog(*this, Glib::ustring(caption)); + dialog.set_secondary_text(secondary); + dialog.run();*/ #endif } void MainWindow::onConnectionRemoved(PVSClient* newConnection) { - // TODO this would be the place to handle the rest of the fullscreen issue - conWin->onConnectionRemoved(newConnection); + // TODO this would be the place to handle the rest of the fullscreen issue + conWin->onConnectionRemoved(newConnection); } void MainWindow::onPasswordFailed(QString Qhost) { #ifdef never - // code is voided because the info-management will be overhauled sometime - QString caption, secondary; - if (Qhost != "") - { - caption = "Hostname \""; - caption.append(Qhost); - caption.append("\" refused password."); - secondary = "You have entered no or a wrong password."; - } - else - return; // unknown connection was terminated? too spooky - QMessageBox::information(*this, caption, secondary); - /* Gtk::MessageDialog dialog(*this, Glib::ustring(caption)); - dialog.set_secondary_text(secondary); - Gtk::Main::run(dialog);*/ + // code is voided because the info-management will be overhauled sometime + QString caption, secondary; + if (Qhost != "") + { + caption = "Hostname \""; + caption.append(Qhost); + caption.append("\" refused password."); + secondary = "You have entered no or a wrong password."; + } + else + return; // unknown connection was terminated? too spooky + QMessageBox::information(*this, caption, secondary); + /* Gtk::MessageDialog dialog(*this, Glib::ustring(caption)); + dialog.set_secondary_text(secondary); + Gtk::Main::run(dialog);*/ #endif } @@ -538,41 +530,41 @@ void MainWindow::receiveChatMsg(QString nick_from, QString nick_to, QString msg) int MainWindow::getPrevWidth() // PVSConnectionManager::getManager()->getPrevWidth() { - return prev_width; + return prev_width; } void MainWindow::setPrevWidth(int newWidth) { - if (newWidth > 100) - prev_width = newWidth; - else - prev_width = 100; + if (newWidth > 100) + prev_width = newWidth; + else + prev_width = 100; } int MainWindow::getPrevHeight() { - return prev_height; + return prev_height; } void MainWindow::setPrevHeight(int newHeight) { - if (newHeight > 100) - prev_height = newHeight; - else - prev_height = 100; + if (newHeight > 100) + prev_height = newHeight; + else + prev_height = 100; } void MainWindow::changeEvent(QEvent *e) { - QMainWindow::changeEvent(e); - switch (e->type()) - { - case QEvent::LanguageChange: - ui->retranslateUi(this); - break; - default: - break; - } + QMainWindow::changeEvent(e); + switch (e->type()) + { + case QEvent::LanguageChange: + ui->retranslateUi(this); + break; + default: + break; + } } /* @@ -586,107 +578,108 @@ void MainWindow::changeEvent(QEvent *e) void MainWindow::resizeEvent(QResizeEvent *event) { - if (bgimage == true){ - repaintbackgroundpicture(); // repaint the backgroundpicture scaled to the window size + if (bgimage == true) + { + repaintbackgroundpicture(); // repaint the backgroundpicture scaled to the window size } if (_firstResize == 3) { QSize oldSize = event->oldSize(); - _initW = ui->widget->width(); - _initH = ui->widget->height(); + _initW = ui->widget->width(); + _initH = ui->widget->height(); _firstResize++; } - std::list<QString>* selectedClients = - MainWindow::getConnectionList()->getSelectedClients(); - if (is_closeup && selectedClients->size() == 1) - { - PVSClient* pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - selectedClients->front().toStdString().c_str()); - pvsClient->getConnectionFrame()->paintCloseUp(ui->widget->width(), - ui->widget->height()); - } - else if (!is_closeup && _firstResize > 3) - { - int ratio_w = (ui->widget->width()*100)/_initW; - int ratio_h = (ui->widget->height()*100)/_initH; - foreach (ConnectionFrame* cf, getConnectionWindow()->getFrameList()) - { - /*int margin = ui->widget->style()->pixelMetric(QStyle::PM_DefaultTopLevelMargin); - int x = ui->widget->width() - margin; - int y = ui->widget->height() - margin; - updatePos(cf, x, y);*/ - int w = (cf->init_w * ratio_w) / 100; - int h = (cf->init_h * ratio_h) / 100; - cf->paintCloseUp(w,h); - } - } - - if (_firstResize < 3) - _firstResize++; + std::list<QString>* selectedClients = + MainWindow::getConnectionList()->getSelectedClients(); + if (is_closeup && selectedClients->size() == 1) + { + PVSClient* pvsClient = + PVSConnectionManager::getManager()->getClientFromIp( + selectedClients->front().toStdString().c_str()); + pvsClient->getConnectionFrame()->paintCloseUp(ui->widget->width(), + ui->widget->height()); + } + else if (!is_closeup && _firstResize > 3) + { + int ratio_w = (ui->widget->width() * 100) / _initW; + int ratio_h = (ui->widget->height() * 100) / _initH; +foreach (ConnectionFrame* cf, getConnectionWindow()->getFrameList()) + { + /*int margin = ui->widget->style()->pixelMetric(QStyle::PM_DefaultTopLevelMargin); + int x = ui->widget->width() - margin; + int y = ui->widget->height() - margin; + updatePos(cf, x, y);*/ + int w = (cf->init_w * ratio_w) / 100; + int h = (cf->init_h * ratio_h) / 100; + cf->paintCloseUp(w,h); + } +} + +if (_firstResize < 3) +_firstResize++; } void MainWindow::updatePos(ConnectionFrame* cf, int x, int y) { - int posx = (x*cf->pos().x())/_initW; - int posy = (y*cf->pos().y())/_initH; + int posx = (x * cf->pos().x()) / _initW; + int posy = (y * cf->pos().y()) / _initH; cf->move(posx, posy); /*QSize size = cf->sizeHint(); - cf->setGeometry(x - size.rwidth(), y - size.rheight(), - size.rwidth(), size.rheight());*/ + cf->setGeometry(x - size.rwidth(), y - size.rheight(), + size.rwidth(), size.rheight());*/ } void MainWindow::on_log_line(LogEntry consoleEntry) { - ConsoleLogger::LOG_LEVEL level = consoleEntry.getLevel(); - if (level == ConsoleLogger::LOG_ERROR && !showError) - return; - if (level == ConsoleLogger::LOG_NORMAL && !showNormal) - return; - if (level == ConsoleLogger::LOG_NETWORK && !showNetwork) - return; - if (level == ConsoleLogger::LOG_TERMINAL && !showTerminal) - return; - if (level == ConsoleLogger::LOG_CHAT && !showChat) - return; - - ui->pvsLog->insertPlainText(consoleEntry.getLine()); + ConsoleLogger::LOG_LEVEL level = consoleEntry.getLevel(); + if (level == ConsoleLogger::LOG_ERROR && !showError) + return; + if (level == ConsoleLogger::LOG_NORMAL && !showNormal) + return; + if (level == ConsoleLogger::LOG_NETWORK && !showNetwork) + return; + if (level == ConsoleLogger::LOG_TERMINAL && !showTerminal) + return; + if (level == ConsoleLogger::LOG_CHAT && !showChat) + return; + + ui->pvsLog->insertPlainText(consoleEntry.getLine()); } void MainWindow::onToggleLog(bool showtime) { - if (showtime) - ;//to kill the system warning due "unused variable" - showError = ui->actionShow_Error->isChecked(); - showTerminal = ui->actionShow_Terminal->isChecked(); - showNetwork = ui->actionShow_Network->isChecked(); - showChat = ui->actionShow_Chat->isChecked(); - showNormal = ui->actionShow_Normal->isChecked(); - //showAtAll = ui->logAtAllAction->get_active(); + if (showtime) + ;//to kill the system warning due "unused variable" + showError = ui->actionShow_Error->isChecked(); + showTerminal = ui->actionShow_Terminal->isChecked(); + showNetwork = ui->actionShow_Network->isChecked(); + showChat = ui->actionShow_Chat->isChecked(); + showNormal = ui->actionShow_Normal->isChecked(); + //showAtAll = ui->logAtAllAction->get_active(); - ConsoleLog dump2Listener(this, &MainWindow::on_log_line); + ConsoleLog dump2Listener(this, &MainWindow::on_log_line); } void MainWindow::setLogConsoleDisabled(bool visible) { - if (!visible) - ui->pvsLog->hide(); - else - ui->pvsLog->show(); + if (!visible) + ui->pvsLog->hide(); + else + ui->pvsLog->show(); } /*void MainWindow::close() -{ - //sChatDialog.close(); - QApplication::closeAllWindows(); -}*/ + { + //sChatDialog.close(); + QApplication::closeAllWindows(); + }*/ void MainWindow::disconnect() { - conWin->removeVNC(); + conWin->removeVNC(); } void MainWindow::lockUnlockAll() @@ -707,119 +700,153 @@ void MainWindow::lockUnlockAll() void MainWindow::closeUp() { - std::list<QString>* selectedClients = - MainWindow::getConnectionList()->getSelectedClients(); - if (!is_closeup) - { - if (selectedClients->size() == 1) - { - PVSClient - * pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - selectedClients->front().toStdString().c_str()); - _framePosOnCloseUp = pvsClient->getConnectionFrame()->pos();//get the actualy position before run closeup - if (pvsClient->getVNCConnection()) - { - conWin->setCloseupFrame(pvsClient->getConnectionFrame()); - _updatefreq = pvsClient->getConnectionFrame()->getFrame()->getVNCClientThread()->getUpdatefreq(); - pvsClient->getConnectionFrame()->getFrame()->getVNCClientThread()->setUpdatefreq(50); - pvsClient->getConnectionFrame()->move(5,5); - pvsClient->getConnectionFrame()->setWindowFlags(Qt::WindowStaysOnTopHint); + std::list<QString>* selectedClients = + MainWindow::getConnectionList()->getSelectedClients(); + if (!is_closeup) + { + if (selectedClients->size() == 1) + { + PVSClient * pvsClient = + PVSConnectionManager::getManager()->getClientFromIp( + selectedClients->front().toStdString().c_str()); + _framePosOnCloseUp = pvsClient->getConnectionFrame()->pos();//get the actualy position before run closeup + if (pvsClient->getVNCConnection()) + { + conWin->setCloseupFrame(pvsClient->getConnectionFrame()); + _updatefreq + = pvsClient->getConnectionFrame()->getFrame()->getVNCClientThread()->getUpdatefreq(); + pvsClient->getConnectionFrame()->getFrame()->getVNCClientThread()->setUpdatefreq( + 50); + pvsClient->getConnectionFrame()->move(5, 5); + pvsClient->getConnectionFrame()->setWindowFlags( + Qt::WindowStaysOnTopHint); pvsClient->getConnectionFrame()->raise(); - pvsClient->getConnectionFrame()->paintCloseUp(ui->widget->width(),ui->widget->height()); + pvsClient->getConnectionFrame()->paintCloseUp( + ui->widget->width(), ui->widget->height()); is_closeup = true; conWin->setCloseupFrame(pvsClient->getConnectionFrame()); } - } - else - { - QString - message = - QString( - tr( - "This operation can only be performed for one selected Client!")); - QMessageBox::information(this, "PVS", message); - } - } - else if (conWin->getCloseupFrame()) - { - /*PVSClient* pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - selectedClients->front().toStdString().c_str());*/ - conWin->getCloseupFrame()->setWindowFlags(Qt::Widget); - conWin->getCloseupFrame()->paintCloseUp(conWin->getCloseupFrame()->getPrevWidth(), conWin->getCloseupFrame()->getPrevHeight()); - conWin->getCloseupFrame()->move(_framePosOnCloseUp);//back to the position before the closeup - if (conWin->getCloseupFrame()->getConnection()->getVNCConnection()) - conWin->getCloseupFrame()->getFrame()->getVNCClientThread()->setUpdatefreq(_updatefreq); - - is_closeup = false; - conWin->setCloseupFrame(NULL); - } + } + else + { + QString + message = + QString( + tr( + "This operation can only be performed for one selected Client!")); + QMessageBox::information(this, "PVS", message); + } + } + else if (conWin->getCloseupFrame()) + { + /*PVSClient* pvsClient = + PVSConnectionManager::getManager()->getClientFromIp( + selectedClients->front().toStdString().c_str());*/ + conWin->getCloseupFrame()->setWindowFlags(Qt::Widget); + conWin->getCloseupFrame()->paintCloseUp( + conWin->getCloseupFrame()->getPrevWidth(), + conWin->getCloseupFrame()->getPrevHeight()); + conWin->getCloseupFrame()->move(_framePosOnCloseUp);//back to the position before the closeup + if (conWin->getCloseupFrame()->getConnection()->getVNCConnection()) + conWin->getCloseupFrame()->getFrame()->getVNCClientThread()->setUpdatefreq( + _updatefreq); + + is_closeup = false; + conWin->setCloseupFrame(NULL); + } +} + +/* Perform some action if actionShowProcesses button was pressed + * + */ +void MainWindow::showProcesses() +{ + std::list<QString>* selectedClients = + MainWindow::getConnectionList()->getSelectedClients(); + if (selectedClients->size() == 1) + { + // do stuff + PVSClient * pvsClient = + PVSConnectionManager::getManager()->getClientFromIp( + selectedClients->front().toStdString().c_str()); + pvsClient->sendMessage(PVSCOMMAND, "SHOWPROCESSES", ""); + } + else + { + QString + message = + QString( + tr( + "This operation can only be performed if you have selected a Client!")); + QMessageBox::information(this, "PVS", message); + } } void MainWindow::foto() // makes a screenshot of the selected client { - std::list<QString>* selectedClients = - MainWindow::getConnectionList()->getSelectedClients(); - if (selectedClients->size() > 0) - { - QString format = "png"; - for (std::list<QString>::iterator tmpIt = selectedClients->begin(); tmpIt - != selectedClients->end(); tmpIt++) - { - - QString path = QDir::homePath().append("/").append(*tmpIt).append( - ".png"); - PVSClient - * pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - (*tmpIt).toUtf8().data()); - if (pvsClient->getVNCConnection()) - { - const QImage img = pvsClient->getConnectionFrame()->getFrame()->getImageForFoto(); - if (!img.isNull()) - img.save(path, format.toAscii()); - } - else printf("Cannot save screen: Image is null.\n"); - } - } - else - { - QString - message = - QString( - tr( - "This operation can only be performed for at least one selected Client!")); - QMessageBox::information(this, "PVS", message); - } + std::list<QString>* selectedClients = + MainWindow::getConnectionList()->getSelectedClients(); + if (selectedClients->size() > 0) + { + QString format = "png"; + for (std::list<QString>::iterator tmpIt = selectedClients->begin(); tmpIt + != selectedClients->end(); tmpIt++) + { + + QString path = QDir::homePath().append("/").append(*tmpIt).append( + ".png"); + PVSClient * pvsClient = + PVSConnectionManager::getManager()->getClientFromIp( + (*tmpIt).toUtf8().data()); + if (pvsClient->getVNCConnection()) + { + const QImage + img = + pvsClient->getConnectionFrame()->getFrame()->getImageForFoto(); + if (!img.isNull()) + img.save(path, format.toAscii()); + } + else + printf("Cannot save screen: Image is null.\n"); + } + } + else + { + QString + message = + QString( + tr( + "This operation can only be performed for at least one selected Client!")); + QMessageBox::information(this, "PVS", message); + } } void MainWindow::createProfile() { - profileDialog proDiag; - proDiag.exec(); + profileDialog proDiag; + proDiag.exec(); } void MainWindow::showusername() { - MainWindow::getConnectionList()->setColumnHidden(2, false); - MainWindow::getConnectionList()->setColumnHidden(0, true); - MainWindow::getConnectionList()->setColumnHidden(1, true); + MainWindow::getConnectionList()->setColumnHidden(2, false); + MainWindow::getConnectionList()->setColumnHidden(0, true); + MainWindow::getConnectionList()->setColumnHidden(1, true); } void MainWindow::showname() { - MainWindow::getConnectionList()->setColumnHidden(0, false); - MainWindow::getConnectionList()->setColumnHidden(1, true); - MainWindow::getConnectionList()->setColumnHidden(2, true); + MainWindow::getConnectionList()->setColumnHidden(0, false); + MainWindow::getConnectionList()->setColumnHidden(1, true); + MainWindow::getConnectionList()->setColumnHidden(2, true); } void MainWindow::showip() { - MainWindow::getConnectionList()->setColumnHidden(1, false); - MainWindow::getConnectionList()->setColumnHidden(2, true); - MainWindow::getConnectionList()->setColumnHidden(0, true); + MainWindow::getConnectionList()->setColumnHidden(1, false); + MainWindow::getConnectionList()->setColumnHidden(2, true); + MainWindow::getConnectionList()->setColumnHidden(0, true); } void MainWindow::incomingFile() @@ -838,15 +865,16 @@ void MainWindow::changeRatio(int ratio) // needed the change the size of the vnc str.append(QString("%1").arg(ratio)); ui->label_2->setText(str); - std::list<QString>* selClients = getConnectionList()->getSelectedClients(); + std::list<QString>* selClients = + getConnectionList()->getSelectedClients(); if (selClients->size() > 0) { for (std::list<QString>::iterator client = selClients->begin(); client != selClients->end(); client++) { PVSClient* pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - (*client).toUtf8().data()); + PVSConnectionManager::getManager()->getClientFromIp( + (*client).toUtf8().data()); ConnectionFrame *frame = pvsClient->getConnectionFrame(); int w = (frame->init_w * ratio) / 100; int h = (frame->init_h * ratio) / 100; @@ -861,46 +889,46 @@ void MainWindow::changeRatio(int ratio) // needed the change the size of the vnc QList<ConnectionFrame *> frameList = MainWindow::getConnectionWindow()->getFrameList(); ConnectionFrame *frame; - foreach(frame, frameList) - { - int w = (frame->init_w * ratio) / 100; - int h = (frame->init_h * ratio) / 100; - frame->setPrevWidth(w); - frame->setPrevHeight(h); - frame->paintCloseUp(w, h); - } +foreach (frame, frameList) + { + int w = (frame->init_w * ratio) / 100; + int h = (frame->init_h * ratio) / 100; + frame->setPrevWidth(w); + frame->setPrevHeight(h); + frame->paintCloseUp(w, h); } } - else +} +else +{ + int updatefreq = (ratio*500)/100; + QString str; + str.append(QString("%1").arg(updatefreq)); + ui->label_2->setText(str); + std::list<QString>* selClients = getConnectionList()->getSelectedClients(); + if (selClients->size() > 0) { - int updatefreq = (ratio*500)/100; - QString str; - str.append(QString("%1").arg(updatefreq)); - ui->label_2->setText(str); - std::list<QString>* selClients = getConnectionList()->getSelectedClients(); - if (selClients->size() > 0) + for (std::list<QString>::iterator client = selClients->begin(); client + != selClients->end(); client++) { - for (std::list<QString>::iterator client = selClients->begin(); client - != selClients->end(); client++) - { - PVSClient* pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - (*client).toUtf8().data()); - if (pvsClient->getVNCConnection()) - pvsClient->getConnectionFrame()->getFrame()->getVNCClientThread()->setUpdatefreq(updatefreq); - } + PVSClient* pvsClient = + PVSConnectionManager::getManager()->getClientFromIp( + (*client).toUtf8().data()); + if (pvsClient->getVNCConnection()) + pvsClient->getConnectionFrame()->getFrame()->getVNCClientThread()->setUpdatefreq(updatefreq); } - else + } + else + { + std::list<PVSClient*> clients = PVSConnectionManager::getManager()->getConnections(); + foreach (PVSClient* client, clients) { - std::list<PVSClient*> clients = PVSConnectionManager::getManager()->getConnections(); - foreach (PVSClient* client, clients) - { - if (client->getVNCConnection()) - client->getConnectionFrame()->getFrame()->getVNCClientThread()->setUpdatefreq(updatefreq); - } + if (client->getVNCConnection()) + client->getConnectionFrame()->getFrame()->getVNCClientThread()->setUpdatefreq(updatefreq); } - } + +} } /* @@ -914,18 +942,19 @@ void MainWindow::changeRatio(int ratio) // needed the change the size of the vnc */ void MainWindow::changeStatus(int index) { - QString status = ui->thumbStatus->currentText (); + QString status = ui->thumbStatus->currentText(); if (status == "Thumbnailratio") { _isThumbnailrate = false; ui->label_3->setText("%"); - std::list<QString>* selClients = getConnectionList()->getSelectedClients(); + std::list<QString>* selClients = + getConnectionList()->getSelectedClients(); if (selClients->size() == 1) { PVSClient* pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - selClients->front().toStdString().c_str()); + PVSConnectionManager::getManager()->getClientFromIp( + selClients->front().toStdString().c_str()); int ratio = pvsClient->getConnectionFrame()->getRatio(); ui->label_2->setText(QString::number(ratio)); ui->horizontalSlider->setValue(ratio); @@ -941,16 +970,19 @@ void MainWindow::changeStatus(int index) { _isThumbnailrate = true; ui->label_3->setText("ms"); - std::list<QString>* selClients = getConnectionList()->getSelectedClients(); + std::list<QString>* selClients = + getConnectionList()->getSelectedClients(); if (selClients->size() == 1) { PVSClient* pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - selClients->front().toStdString().c_str()); + PVSConnectionManager::getManager()->getClientFromIp( + selClients->front().toStdString().c_str()); if (pvsClient->getVNCConnection()) { - int updatefreq = pvsClient->getConnectionFrame()->getFrame()->getVNCClientThread()->getUpdatefreq(); - int showfreq = (updatefreq*100)/500; + int + updatefreq = + pvsClient->getConnectionFrame()->getFrame()->getVNCClientThread()->getUpdatefreq(); + int showfreq = (updatefreq * 100) / 500; ui->label_2->setText(QString::number(updatefreq)); ui->horizontalSlider->setValue(showfreq); } @@ -963,7 +995,6 @@ void MainWindow::changeStatus(int index) } } - /* * Going to run a new vncthread with quality: quality */ @@ -973,47 +1004,48 @@ void MainWindow::setVNCQuality(int quality) if (selClients->size() > 0) { for (std::list<QString>::iterator client = selClients->begin(); client - != selClients->end(); client++) + != selClients->end(); client++) { PVSClient* pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - (*client).toUtf8().data()); + PVSConnectionManager::getManager()->getClientFromIp( + (*client).toUtf8().data()); pvsClient->getConnectionFrame()->resetConnectionWithQuality(quality); pvsClient->getConnectionFrame()->update(); } } else { - QList<ConnectionFrame*> FrameList = MainWindow::getConnectionWindow()->getFrameList(); - foreach(ConnectionFrame* frame, FrameList) - { - frame->resetConnectionWithQuality(quality); - frame->update(); - } + QList<ConnectionFrame*> FrameList = + MainWindow::getConnectionWindow()->getFrameList(); +foreach (ConnectionFrame* frame, FrameList) + { + frame->resetConnectionWithQuality(quality); + frame->update(); } - } +} void MainWindow::setPasswordForConnection(int enabled) { - if(enabled == 0)//the checkbox isn't checked, so no passowrd needed, we remove it in the titlebar + if (enabled == 0)//the checkbox isn't checked, so no passowrd needed, we remove it in the titlebar { - QString dummy = PVSConnectionManager::getManager()->setNeedPassword(false); - _sessionName = PVSConnectionManager::getManager()->getSessionName(); + QString dummy = PVSConnectionManager::getManager()->setNeedPassword( + false); + _sessionName = PVSConnectionManager::getManager()->getSessionName(); QString title = "PVSmgr - "; title.append(_profilName); - title.append(" ["+_sessionName + " : ]"); + title.append(" [" + _sessionName + " : ]"); setWindowTitle(title); } else if (enabled == 2) //password is needed, we show it in the titlebar { - _pwdCon = PVSConnectionManager::getManager()->setNeedPassword(true); + _pwdCon = PVSConnectionManager::getManager()->setNeedPassword(true); _sessionName = PVSConnectionManager::getManager()->getSessionName(); QString title = "PVSmgr - "; title.append(_profilName); - title.append(" ["+_sessionName + " : "); - title.append(_pwdCon+"]"); + title.append(" [" + _sessionName + " : "); + title.append(_pwdCon + "]"); setWindowTitle(title); } } @@ -1023,153 +1055,155 @@ void MainWindow::setPasswordForConnection(int enabled) void MainWindow::setindexback() //sets the index of the combobox back { #ifdef MAINWINDOW_USE_TOUCHGUI - ui->comboBox_touch1->setCurrentIndex(0); + ui->comboBox_touch1->setCurrentIndex(0); #endif } void MainWindow::clientlisthide() // hide or show the clientlist { - if (locked1 == false) - { - ui->ClWidget->show(); - locked1 = true; - } + if (locked1 == false) + { + ui->ClWidget->show(); + locked1 = true; + } - else - { - ui->ClWidget->hide(); - locked1 = false; - } + else + { + ui->ClWidget->hide(); + locked1 = false; + } } - void MainWindow::lockalltoolbar() // locks all if a dozent is set { + if (locked == false) + { + if (MainWindow::getConnectionWindow()->hasDozent) + { + MainWindow::getConnectionList()->on_lock_all(); + locked = true; + } + else + { + QString + message = + QString( + tr( + "You have to set a Superclient-machine before performing this action.")); + QMessageBox::information(this, "PVS", message); + } + } - if (locked == false) - { - if (MainWindow::getConnectionWindow()->hasDozent) - { - MainWindow::getConnectionList()->on_lock_all(); - locked = true; - } - else - { - QString message = QString(tr("You have to set a Superclient-machine before performing this action.")); - QMessageBox::information(this, "PVS", message); - } - } - - else - { - MainWindow::getConnectionList()->on_unlock_all(); - locked = false; - } + else + { + MainWindow::getConnectionList()->on_unlock_all(); + locked = false; + } } void MainWindow::locksingle() // locks a single client { - MainWindow::getConnectionList()->on_lock(); + MainWindow::getConnectionList()->on_lock(); } void MainWindow::unlocksingle() // unlocks a single client { - MainWindow::getConnectionList()->on_unlock(); + MainWindow::getConnectionList()->on_unlock(); } - void MainWindow::combobox1(int menuindex1) // defines the functions to call from the combobox { - switch (menuindex1) - // index comes from the slot definition - { - case 1: - // Lock all - MainWindow::getConnectionList()->on_lock_all(); - break; - - case 2: - // UnLock all - MainWindow::getConnectionList()->on_unlock_all(); - break; - - case 3: - // UnProject all - MainWindow::getConnectionList()->on_unproject_all(); - break; - - case 4: - //Background Picture - backgroundpicture(); - break; - } + switch (menuindex1) + // index comes from the slot definition + { + case 1: + // Lock all + MainWindow::getConnectionList()->on_lock_all(); + break; + + case 2: + // UnLock all + MainWindow::getConnectionList()->on_unlock_all(); + break; + + case 3: + // UnProject all + MainWindow::getConnectionList()->on_unproject_all(); + break; + + case 4: + //Background Picture + backgroundpicture(); + break; + } } void MainWindow::resetall() // unlock and unproject all in toolbar - { +{ MainWindow::getConnectionList()->on_unlock_all(); MainWindow::getConnectionList()->on_unproject_all(); - } - +} void MainWindow::projecttoolbar() // projection from toolbar button - { +{ MainWindow::getConnectionList()->on_projection(); - } +} void MainWindow::unprojecttoolbar() // unproject all in toolbar - { +{ MainWindow::getConnectionList()->on_unprojection(); - } +} void MainWindow::backgroundpicture() - { - +{ - fileName = QFileDialog::getOpenFileName(this, - tr("Open Image"), "/home", tr("Image Files (*.png *.jpg *.svg)")); // user chooses a file + fileName = QFileDialog::getOpenFileName(this, tr("Open Image"), "/home", + tr("Image Files (*.png *.jpg *.svg)")); // user chooses a file - QImage img(""+fileName+""); // set image + QImage img("" + fileName + ""); // set image QString test("/tmp/test.png"); // set path for saving the scaled picture - QImage img2 = img.scaled(ui->widget->size(),Qt::IgnoreAspectRatio,Qt::FastTransformation); // scale it + QImage img2 = img.scaled(ui->widget->size(), Qt::IgnoreAspectRatio, + Qt::FastTransformation); // scale it - img2.save(""+test+""); // save it + img2.save("" + test + ""); // save it - ui->widget->setStyleSheet("background-image: url(/tmp/test.png);background-repeat:no-repeat; background-position:center;"); //set the picture as background + ui->widget->setStyleSheet( + "background-image: url(/tmp/test.png);background-repeat:no-repeat; background-position:center;"); //set the picture as background foreach (ConnectionFrame* cf, MainWindow::getConnectionWindow()->getAllFrameOnWindow()) { cf->setStyleSheet(QString::fromUtf8("background-color: rgb(150, 150, 168);")); } - bgimage=true; // for the resize event, set background true + bgimage = true; // for the resize event, set background true - } +} void MainWindow::repaintbackgroundpicture() // same as backgroundpicture but called when mainwindow is resized - { +{ QImage img("/tmp/test.png"); QString test("/tmp/test.png"); - QImage img2 = img.scaled(ui->widget->size(),Qt::IgnoreAspectRatio,Qt::FastTransformation); - - img2.save(""+test+""); + QImage img2 = img.scaled(ui->widget->size(), Qt::IgnoreAspectRatio, + Qt::FastTransformation); - ui->widget->setStyleSheet("background-image: url(/tmp/test.png);background-repeat:no-repeat; background-position:center;"); + img2.save("" + test + ""); + ui->widget->setStyleSheet( + "background-image: url(/tmp/test.png);background-repeat:no-repeat; background-position:center;"); - } +} void MainWindow::setdozenttoolbar() // set the dozents pc which is not locked with lockedall { @@ -1181,8 +1215,8 @@ void MainWindow::setdozenttoolbar() // set the dozents pc which is not locked wi { PVSClient* pvsClient = - PVSConnectionManager::getManager()->getClientFromIp( - selectedClients->front().toStdString().c_str()); + PVSConnectionManager::getManager()->getClientFromIp( + selectedClients->front().toStdString().c_str()); if (pvsClient->getVNCConnection()) pvsClient->getConnectionFrame()->getFrame()->setDozent(); } @@ -1197,9 +1231,7 @@ void MainWindow::startChatDialog() sChatDialog.raise();//show the chat dialog on top level } - - -MainWindow* MainWindow::myself = NULL; -ConnectionList* MainWindow::conList = NULL; -ConnectionWindow* MainWindow::conWin = NULL; -bool MainWindow::_isLockAll = false; +MainWindow* MainWindow::myself = NULL; +ConnectionList* MainWindow::conList = NULL; +ConnectionWindow* MainWindow::conWin = NULL; +bool MainWindow::_isLockAll = false; diff --git a/src/gui/mainWindow.h b/src/gui/mainWindow.h index 00bd927..1e4a18f 100644 --- a/src/gui/mainWindow.h +++ b/src/gui/mainWindow.h @@ -176,6 +176,7 @@ public slots: void repaintbackgroundpicture(); void setdozenttoolbar(); void startChatDialog(); + void showProcesses(); private slots: void onToggleLog(bool showtime); diff --git a/src/gui/ui/mainwindow.ui b/src/gui/ui/mainwindow.ui index eb49d1b..374177a 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>:/icons/gears.png</normaloff>:/icons/gears.png</iconset> + </property> + <property name="text"> + <string>showProcesses</string> + </property> + <property name="toolTip"> + <string>Show Processes of the selected 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..8b76101 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>:/icons/gears.png</normaloff>:/icons/gears.png</iconset> + </property> + <property name="text"> + <string>showProcesses</string> + </property> + <property name="toolTip"> + <string>Show Processes of the selected Client</string> + </property> + </action> </widget> <layoutdefault spacing="6" margin="11"/> <resources> diff --git a/src/pvs.cpp b/src/pvs.cpp index 2069e36..66a1c88 100644 --- a/src/pvs.cpp +++ b/src/pvs.cpp @@ -176,6 +176,19 @@ void PVS::onCommand(PVSMsg cmdMessage) unlock(); return; } + if (ident.compare("SHOWPROCESSES") == 0) + { + // do stuff to show processes + // to test if SHOWPROCESSES command is submitted correct uncomment following lines + // a messagebox will appear on the client + // emit showMessage("Show Processes", "", true); + return; + } + if (ident.compare("KILLPROCESS") == 0) + { + // do stuff to kill a process + return; + } #ifdef never // prototype |