From 97508ade3f770c6544763bb997d179f06a614914 Mon Sep 17 00:00:00 2001 From: Vesa Pikki Date: Thu, 2 Jul 2009 14:12:22 +0300 Subject: [PATCH] Added ui files for Settings and Application dialogs. The code doesn't use those at the moment though. Updated the translation files aswell. --- gui/application.ui | 112 +++++++++++++++++++++++++ gui/cppcheck_de.ts | 82 ++++++++++++++++++ gui/cppcheck_en.ts | 82 ++++++++++++++++++ gui/cppcheck_fi.ts | 82 ++++++++++++++++++ gui/cppcheck_ru.ts | 82 ++++++++++++++++++ gui/cppcheck_se.ts | 82 ++++++++++++++++++ gui/gui.pro | 4 +- gui/settings.ui | 202 +++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 727 insertions(+), 1 deletion(-) create mode 100644 gui/application.ui create mode 100644 gui/settings.ui diff --git a/gui/application.ui b/gui/application.ui new file mode 100644 index 000000000..c89b325bf --- /dev/null +++ b/gui/application.ui @@ -0,0 +1,112 @@ + + + ApplicationDialog + + + + 0 + 0 + 569 + 300 + + + + Add an application + + + + + + Here you can add applications that can open error files. +Specify a name for the application and the application to execute. + +The following texts are replaced with appriproate values when application is executed: +(file) - Filename containing the error +(line) - Line number containing the error +(message) - Error message +(severity) - Error severity + +Example opening a file with Kate and make Kate scroll to the correct line: +kate -l(line) (file) + + + + + + + + + Application's name + + + + + + + Application to execute + + + + + + + + + + + + + Browse + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + ApplicationDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + ApplicationDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts index 542c4b16a..c58851fdd 100644 --- a/gui/cppcheck_de.ts +++ b/gui/cppcheck_de.ts @@ -32,6 +32,12 @@ ApplicationDialog + + Add an application + + + + Here you can add applications that can open error files. Specify a name for the application and the application to execute. @@ -47,16 +53,19 @@ kate -l(line) (file) + Application's name + Application to execute + Browse @@ -479,6 +488,79 @@ To toggle what kind of errors are shown, open view menu. + + Settings + + + Settings + + + + + General + + + + + Number of threads: + + + + + Check all #ifdef configurations + + + + + Show full path of files + + + + + Show "No errors found" message when no errors found + + + + + Applications + + + + + Add application + + + + + Delete application + + + + + Modify application + + + + + Set as default application + + + + + Reports + + + + + Save all errors when creating report + + + + + Save full path to files in reports + + + SettingsDialog diff --git a/gui/cppcheck_en.ts b/gui/cppcheck_en.ts index 997c23900..f81d86107 100644 --- a/gui/cppcheck_en.ts +++ b/gui/cppcheck_en.ts @@ -32,6 +32,12 @@ ApplicationDialog + + Add an application + Add a new application + + + Here you can add applications that can open error files. Specify a name for the application and the application to execute. @@ -57,16 +63,19 @@ Example opening a file with Kate and make Kate scroll to the correct line: kate -l(line) (file) + Application's name Application's name + Application to execute Application to execute + Browse Browse @@ -498,6 +507,79 @@ To toggle what kind of errors are shown, open view menu. Results + + Settings + + + Settings + Settings + + + + General + General + + + + Number of threads: + Number of threads: + + + + Check all #ifdef configurations + Check all #ifdef configurations + + + + Show full path of files + Show full path of files + + + + Show "No errors found" message when no errors found + Show "No errors found" message when no errors found + + + + Applications + Applications + + + + Add application + Add application + + + + Delete application + Delete application + + + + Modify application + Modify application + + + + Set as default application + Set as default application + + + + Reports + Reports + + + + Save all errors when creating report + Save all errors when creating report + + + + Save full path to files in reports + Save full path to files in reports + + SettingsDialog diff --git a/gui/cppcheck_fi.ts b/gui/cppcheck_fi.ts index 20fd73f49..83f7e051a 100644 --- a/gui/cppcheck_fi.ts +++ b/gui/cppcheck_fi.ts @@ -32,6 +32,12 @@ ApplicationDialog + + Add an application + Lisää uusi ohjelma + + + Here you can add applications that can open error files. Specify a name for the application and the application to execute. @@ -59,16 +65,19 @@ kate -l(line) (file) + Application's name Ohjelman nimi + Application to execute Suoritettava ohjelma + Browse Selaa @@ -498,6 +507,79 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik Tulokset + + Settings + + + Settings + Asetukset + + + + General + Yleiset + + + + Number of threads: + Säikeiden lukumäärä: + + + + Check all #ifdef configurations + Tarkista kaikki #ifdef kombinaatiot + + + + Show full path of files + Näytä tiedostojen täysi polku + + + + Show "No errors found" message when no errors found + Näytä "virheitä ei löytynyt"-viesti jos virheitä ei löydy + + + + Applications + Ohjelmat + + + + Add application + Lisää ohjelma + + + + Delete application + Poista ohjelma + + + + Modify application + Muokkaa ohjelmaa + + + + Set as default application + Aseta oletusohjelmaksi + + + + Reports + Raportit + + + + Save all errors when creating report + Tallenna kaikki virheet raporttia luodessa + + + + Save full path to files in reports + Tallenna tiedostojen koko polku raportteihin + + SettingsDialog diff --git a/gui/cppcheck_ru.ts b/gui/cppcheck_ru.ts index 9221dc167..cbca18d0b 100644 --- a/gui/cppcheck_ru.ts +++ b/gui/cppcheck_ru.ts @@ -32,6 +32,12 @@ ApplicationDialog + + Add an application + + + + Here you can add applications that can open error files. Specify a name for the application and the application to execute. @@ -47,16 +53,19 @@ kate -l(line) (file) + Application's name + Application to execute + Browse @@ -481,6 +490,79 @@ To toggle what kind of errors are shown, open view menu. + + Settings + + + Settings + + + + + General + + + + + Number of threads: + + + + + Check all #ifdef configurations + + + + + Show full path of files + + + + + Show "No errors found" message when no errors found + + + + + Applications + + + + + Add application + + + + + Delete application + + + + + Modify application + + + + + Set as default application + + + + + Reports + + + + + Save all errors when creating report + + + + + Save full path to files in reports + + + SettingsDialog diff --git a/gui/cppcheck_se.ts b/gui/cppcheck_se.ts index 9221dc167..cbca18d0b 100644 --- a/gui/cppcheck_se.ts +++ b/gui/cppcheck_se.ts @@ -32,6 +32,12 @@ ApplicationDialog + + Add an application + + + + Here you can add applications that can open error files. Specify a name for the application and the application to execute. @@ -47,16 +53,19 @@ kate -l(line) (file) + Application's name + Application to execute + Browse @@ -481,6 +490,79 @@ To toggle what kind of errors are shown, open view menu. + + Settings + + + Settings + + + + + General + + + + + Number of threads: + + + + + Check all #ifdef configurations + + + + + Show full path of files + + + + + Show "No errors found" message when no errors found + + + + + Applications + + + + + Add application + + + + + Delete application + + + + + Modify application + + + + + Set as default application + + + + + Reports + + + + + Save all errors when creating report + + + + + Save full path to files in reports + + + SettingsDialog diff --git a/gui/gui.pro b/gui/gui.pro index 6ca450488..5b8d2ea91 100644 --- a/gui/gui.pro +++ b/gui/gui.pro @@ -12,7 +12,9 @@ OBJECTS_DIR = temp CONFIG += warn_on debug RESOURCES = gui.qrc FORMS = main.ui \ - resultsview.ui + resultsview.ui \ + application.ui \ + settings.ui TRANSLATIONS = cppcheck_fi.ts \ cppcheck_en.ts \ diff --git a/gui/settings.ui b/gui/settings.ui new file mode 100644 index 000000000..573e025a9 --- /dev/null +++ b/gui/settings.ui @@ -0,0 +1,202 @@ + + + Settings + + + + 0 + 0 + 589 + 274 + + + + Settings + + + + + + 0 + + + + General + + + + + + + + + + Number of threads: + + + + + + + + + + + + Check all #ifdef configurations + + + + + + + Show full path of files + + + + + + + Show "No errors found" message when no errors found + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + Applications + + + + + + + + + Add application + + + + + + + Delete application + + + + + + + Modify application + + + + + + + Set as default application + + + + + + + + Reports + + + + + + Save all errors when creating report + + + + + + + Save full path to files in reports + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + Settings + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + Settings + reject() + + + 316 + 260 + + + 286 + 274 + + + + +