From a483b1d5e98316c73c7e3080c693f1c8085e14b3 Mon Sep 17 00:00:00 2001 From: Johann Latocha Date: Sun, 29 Aug 2010 15:59:33 +0200 Subject: Bug fixed: create config-dir --- i18n/pvs_ar_JO.ts | 8 ++++---- i18n/pvs_de_DE.ts | 8 ++++---- i18n/pvs_es_MX.ts | 8 ++++---- i18n/pvs_fr_FR.ts | 8 ++++---- i18n/pvs_pl_PL.ts | 8 ++++---- i18n/pvsgui_ar_JO.ts | 40 ++++++++++++++++++++-------------------- i18n/pvsgui_de_DE.ts | 40 ++++++++++++++++++++-------------------- i18n/pvsgui_es_MX.ts | 40 ++++++++++++++++++++-------------------- i18n/pvsgui_fr_FR.ts | 40 ++++++++++++++++++++-------------------- i18n/pvsgui_pl_PL.ts | 40 ++++++++++++++++++++-------------------- i18n/pvsmgr_ar_JO.ts | 26 +++++++++++++------------- i18n/pvsmgr_de_DE.ts | 26 +++++++++++++------------- i18n/pvsmgr_es_MX.ts | 26 +++++++++++++------------- i18n/pvsmgr_fr_FR.ts | 26 +++++++++++++------------- i18n/pvsmgr_pl_PL.ts | 26 +++++++++++++------------- src/gui/mainWindow.cpp | 3 +++ src/pvs.cpp | 4 ++++ src/pvsgui.cpp | 3 +++ 18 files changed, 195 insertions(+), 185 deletions(-) diff --git a/i18n/pvs_ar_JO.ts b/i18n/pvs_ar_JO.ts index 02f343b..4fe4627 100644 --- a/i18n/pvs_ar_JO.ts +++ b/i18n/pvs_ar_JO.ts @@ -4,22 +4,22 @@ PVS - + Message - + VNC connection - + The host - + requested your screen! diff --git a/i18n/pvs_de_DE.ts b/i18n/pvs_de_DE.ts index 7b41dff..7bd9dff 100644 --- a/i18n/pvs_de_DE.ts +++ b/i18n/pvs_de_DE.ts @@ -4,22 +4,22 @@ PVS - + Message - + VNC connection - + The host - + requested your screen! diff --git a/i18n/pvs_es_MX.ts b/i18n/pvs_es_MX.ts index 02f343b..4fe4627 100644 --- a/i18n/pvs_es_MX.ts +++ b/i18n/pvs_es_MX.ts @@ -4,22 +4,22 @@ PVS - + Message - + VNC connection - + The host - + requested your screen! diff --git a/i18n/pvs_fr_FR.ts b/i18n/pvs_fr_FR.ts index 02f343b..4fe4627 100644 --- a/i18n/pvs_fr_FR.ts +++ b/i18n/pvs_fr_FR.ts @@ -4,22 +4,22 @@ PVS - + Message - + VNC connection - + The host - + requested your screen! diff --git a/i18n/pvs_pl_PL.ts b/i18n/pvs_pl_PL.ts index 02f343b..4fe4627 100644 --- a/i18n/pvs_pl_PL.ts +++ b/i18n/pvs_pl_PL.ts @@ -4,22 +4,22 @@ PVS - + Message - + VNC connection - + The host - + requested your screen! diff --git a/i18n/pvsgui_ar_JO.ts b/i18n/pvsgui_ar_JO.ts index 1c15454..41291ca 100644 --- a/i18n/pvsgui_ar_JO.ts +++ b/i18n/pvsgui_ar_JO.ts @@ -394,82 +394,82 @@ p, li { white-space: pre-wrap; } PVSGUI - + Connect - + &Disconnect - + C&hat - + &Send File - + &Config - + &Information - + &About - + &Quit - - - + + + PVS Connection - + Please enter password (If not needed leave blank): - + Are you sure you want to disconnect? - - + + PVS connection - - + + Connected to - - + + Disconnected - + New host available: diff --git a/i18n/pvsgui_de_DE.ts b/i18n/pvsgui_de_DE.ts index c92de3f..73aae10 100644 --- a/i18n/pvsgui_de_DE.ts +++ b/i18n/pvsgui_de_DE.ts @@ -402,82 +402,82 @@ p, li { white-space: pre-wrap; } PVSGUI - + Connect Verbinden - + &Disconnect &Trennen - + C&hat - + &Send File Datei &Senden - + &Config &Konfiguration - + &Information &Information - + &About &Über - + &Quit &Beenden - - - + + + PVS Connection PVS Verbindung - + Please enter password (If not needed leave blank): Bitte geben sie ein Passwor ein (Falls nicht erforderlich einfach leer lassen): - + Are you sure you want to disconnect? Sind sie sicher dass sie die Verbindung trennen möchten? - - + + PVS connection PVS Verbindung - - + + Connected to Verbunden mit - - + + Disconnected Getrennt - + New host available: Neuer Host verfügbar: diff --git a/i18n/pvsgui_es_MX.ts b/i18n/pvsgui_es_MX.ts index 7dab7d2..effb8d1 100644 --- a/i18n/pvsgui_es_MX.ts +++ b/i18n/pvsgui_es_MX.ts @@ -414,82 +414,82 @@ p, li { white-space: pre-wrap; } PVSGUI - + Connect Conectar - + &Disconnect &Desconectar - + C&hat ??? - + &Send File &Enviar archivo - + &Config &Configuración - + &Information &Información - + &About &Acerca de - + &Quit &Cerrar - - - + + + PVS Connection PVS Connección - + Please enter password (If not needed leave blank): Porfavor ingrese una contraseña (Deje la seccion vacia si no lo necesita): - + Are you sure you want to disconnect? Realmente desea desconectarse? - - + + PVS connection PVS Connección - - + + Connected to Connectar a - - + + Disconnected Desconectado - + New host available: Nuevo Host disponible: diff --git a/i18n/pvsgui_fr_FR.ts b/i18n/pvsgui_fr_FR.ts index 1c15454..41291ca 100644 --- a/i18n/pvsgui_fr_FR.ts +++ b/i18n/pvsgui_fr_FR.ts @@ -394,82 +394,82 @@ p, li { white-space: pre-wrap; } PVSGUI - + Connect - + &Disconnect - + C&hat - + &Send File - + &Config - + &Information - + &About - + &Quit - - - + + + PVS Connection - + Please enter password (If not needed leave blank): - + Are you sure you want to disconnect? - - + + PVS connection - - + + Connected to - - + + Disconnected - + New host available: diff --git a/i18n/pvsgui_pl_PL.ts b/i18n/pvsgui_pl_PL.ts index 1c15454..41291ca 100644 --- a/i18n/pvsgui_pl_PL.ts +++ b/i18n/pvsgui_pl_PL.ts @@ -394,82 +394,82 @@ p, li { white-space: pre-wrap; } PVSGUI - + Connect - + &Disconnect - + C&hat - + &Send File - + &Config - + &Information - + &About - + &Quit - - - + + + PVS Connection - + Please enter password (If not needed leave blank): - + Are you sure you want to disconnect? - - + + PVS connection - - + + Connected to - - + + Disconnected - + New host available: diff --git a/i18n/pvsmgr_ar_JO.ts b/i18n/pvsmgr_ar_JO.ts index 3371586..a5a9a8a 100644 --- a/i18n/pvsmgr_ar_JO.ts +++ b/i18n/pvsmgr_ar_JO.ts @@ -315,63 +315,63 @@ Perform an unprojection or remove remote help to get a target. MainWindow - + Exit - + Remove the vnc-Connection for the selected client(s) - + Show the selected client in the whole window - + Make a screenshot for the selected client(s) - + Lock or Unlock all Clients - + The pvs manager - + This operation can only be performed for one selected Client! - + This operation can only be performed if you have selected a Client! - + This operation can only be performed for at least one selected Client! - + You have to set a Superclient-machine before performing this action. - + Open Image - + Image Files (*.png *.jpg *.svg) @@ -593,7 +593,7 @@ Perform an unprojection or remove remote help to get a target. - + Show Processes of the selected Client diff --git a/i18n/pvsmgr_de_DE.ts b/i18n/pvsmgr_de_DE.ts index 00db421..a7ba2a0 100644 --- a/i18n/pvsmgr_de_DE.ts +++ b/i18n/pvsmgr_de_DE.ts @@ -315,63 +315,63 @@ Perform an unprojection or remove remote help to get a target. MainWindow - + Exit - + Remove the vnc-Connection for the selected client(s) - + Show the selected client in the whole window - + Make a screenshot for the selected client(s) - + Lock or Unlock all Clients - + The pvs manager - + This operation can only be performed for one selected Client! - + This operation can only be performed if you have selected a Client! - + This operation can only be performed for at least one selected Client! - + You have to set a Superclient-machine before performing this action. - + Open Image - + Image Files (*.png *.jpg *.svg) @@ -593,7 +593,7 @@ Perform an unprojection or remove remote help to get a target. - + Show Processes of the selected Client diff --git a/i18n/pvsmgr_es_MX.ts b/i18n/pvsmgr_es_MX.ts index 491b1b8..75999b9 100644 --- a/i18n/pvsmgr_es_MX.ts +++ b/i18n/pvsmgr_es_MX.ts @@ -315,63 +315,63 @@ Perform an unprojection or remove remote help to get a target. MainWindow - + Exit Salir - + Remove the vnc-Connection for the selected client(s) Remover la conexión VNC de los clientes seleccionados - + Show the selected client in the whole window Mostrar el cliente seleccionado en toda la ventana - + Make a screenshot for the selected client(s) Capturar la pantalla de los clientes seleccionados - + Lock or Unlock all Clients Bloquear o desbloquear todos los clientes - + The pvs manager PVS Manager - + This operation can only be performed for one selected Client! Esta operación solamente puede ser realizada para un cliente! - + This operation can only be performed if you have selected a Client! - + This operation can only be performed for at least one selected Client! Esta operación solamente puede ser realizada para el ultimo cliente seleccionado! - + You have to set a Superclient-machine before performing this action. Usted debe asignar un super cliente antes de realizar esta acción. - + Open Image Abrir imagen - + Image Files (*.png *.jpg *.svg) Extensión de imagenes (*.png *.jpg *.svg) @@ -593,7 +593,7 @@ Perform an unprojection or remove remote help to get a target. - + Show Processes of the selected Client diff --git a/i18n/pvsmgr_fr_FR.ts b/i18n/pvsmgr_fr_FR.ts index 3371586..a5a9a8a 100644 --- a/i18n/pvsmgr_fr_FR.ts +++ b/i18n/pvsmgr_fr_FR.ts @@ -315,63 +315,63 @@ Perform an unprojection or remove remote help to get a target. MainWindow - + Exit - + Remove the vnc-Connection for the selected client(s) - + Show the selected client in the whole window - + Make a screenshot for the selected client(s) - + Lock or Unlock all Clients - + The pvs manager - + This operation can only be performed for one selected Client! - + This operation can only be performed if you have selected a Client! - + This operation can only be performed for at least one selected Client! - + You have to set a Superclient-machine before performing this action. - + Open Image - + Image Files (*.png *.jpg *.svg) @@ -593,7 +593,7 @@ Perform an unprojection or remove remote help to get a target. - + Show Processes of the selected Client diff --git a/i18n/pvsmgr_pl_PL.ts b/i18n/pvsmgr_pl_PL.ts index 3371586..a5a9a8a 100644 --- a/i18n/pvsmgr_pl_PL.ts +++ b/i18n/pvsmgr_pl_PL.ts @@ -315,63 +315,63 @@ Perform an unprojection or remove remote help to get a target. MainWindow - + Exit - + Remove the vnc-Connection for the selected client(s) - + Show the selected client in the whole window - + Make a screenshot for the selected client(s) - + Lock or Unlock all Clients - + The pvs manager - + This operation can only be performed for one selected Client! - + This operation can only be performed if you have selected a Client! - + This operation can only be performed for at least one selected Client! - + You have to set a Superclient-machine before performing this action. - + Open Image - + Image Files (*.png *.jpg *.svg) @@ -593,7 +593,7 @@ Perform an unprojection or remove remote help to get a target. - + Show Processes of the selected Client diff --git a/src/gui/mainWindow.cpp b/src/gui/mainWindow.cpp index 9eeb719..bea636f 100644 --- a/src/gui/mainWindow.cpp +++ b/src/gui/mainWindow.cpp @@ -43,7 +43,10 @@ MainWindow::MainWindow(QWidget *parent) : ui->setupUi(this); if (!QFile::exists(_settings.fileName())) + { + QDir::root().mkpath(QFileInfo(_settings.fileName()).path()); QFile::copy("/etc/openslx/pvsmgr.conf", _settings.fileName()); + } ui->horizontalSlider->setValue(100); ui->label_2->setText("100"); diff --git a/src/pvs.cpp b/src/pvs.cpp index bcd2a48..20e9b3b 100755 --- a/src/pvs.cpp +++ b/src/pvs.cpp @@ -31,7 +31,11 @@ PVS::PVS() : QObject() { if (!QFile::exists(_settings.fileName())) + { + QDir::root().mkpath(QFileInfo(_settings.fileName()).path()); QFile::copy("/etc/openslx/pvs.conf", _settings.fileName()); + } + _pvsServerConnection = new PVSServerConnection(this); _locked = false; diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp index 41a79b9..747d843 100644 --- a/src/pvsgui.cpp +++ b/src/pvsgui.cpp @@ -25,7 +25,10 @@ PVSGUI::PVSGUI(QWidget *parent) : setupUi(this); if (!QFile::exists(_settings.fileName())) + { + QDir::root().mkpath(QFileInfo(_settings.fileName()).path()); QFile::copy("/etc/openslx/pvsgui.conf", _settings.fileName()); + } _menu = new QMenu(this); _hostMenu = new QMenu(tr("Connect"), this); -- cgit v1.2.3-55-g7522