Merge pull request #106 from kimmov/openxml

GUI: Clear current results before adding new results from XML file
This commit is contained in:
PKEuS 2012-08-02 06:17:39 -07:00
commit 0028ec9211
11 changed files with 296 additions and 202 deletions

View File

@ -182,11 +182,12 @@ Parameter: -l(line) (file)
<location filename="mainwindow.cpp" line="339"/>
<location filename="mainwindow.cpp" line="406"/>
<location filename="mainwindow.cpp" line="428"/>
<location filename="mainwindow.cpp" line="686"/>
<location filename="mainwindow.cpp" line="805"/>
<location filename="mainwindow.cpp" line="825"/>
<location filename="mainwindow.cpp" line="966"/>
<location filename="mainwindow.cpp" line="1047"/>
<location filename="mainwindow.cpp" line="613"/>
<location filename="mainwindow.cpp" line="704"/>
<location filename="mainwindow.cpp" line="823"/>
<location filename="mainwindow.cpp" line="843"/>
<location filename="mainwindow.cpp" line="984"/>
<location filename="mainwindow.cpp" line="1065"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
@ -596,27 +597,27 @@ Do you want to proceed checking without using any of these project files?</sourc
Möchten Sie die Prüfung wirklich durchführen, ohne eine Projektdatei zu verwenden?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="728"/>
<location filename="mainwindow.cpp" line="746"/>
<source>License</source>
<translation>Lizenz</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="735"/>
<location filename="mainwindow.cpp" line="753"/>
<source>Authors</source>
<translation>Autoren</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="743"/>
<location filename="mainwindow.cpp" line="761"/>
<source>XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation>XML-Dateien Version 2 (*.xml);;XML-Dateien Version 1 (*.xml);;Textdateien (*.txt);;CSV-Dateien (*.csv)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="745"/>
<location filename="mainwindow.cpp" line="763"/>
<source>Save the report file</source>
<translation>Speichert die Berichtdatei</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="612"/>
<location filename="mainwindow.cpp" line="629"/>
<source>XML files (*.xml)</source>
<translation>XML-Dateien (*.xml)</translation>
</message>
@ -636,11 +637,18 @@ Dies wurde vermutlich durch einen Wechsel der Cppcheck-Version hervorgerufen. Bi
</message>
<message>
<location filename="mainwindow.cpp" line="614"/>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="631"/>
<source>Open the report file</source>
<translation>Berichtdatei öffnen</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="682"/>
<location filename="mainwindow.cpp" line="700"/>
<source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source>
@ -649,32 +657,32 @@ Do you want to stop the checking and exit Cppcheck?.</source>
Möchten Sie die Prüfung abbrechen und Cppcheck beenden?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="752"/>
<location filename="mainwindow.cpp" line="770"/>
<source>XML files version 1 (*.xml)</source>
<translation>XML-Dateien Version 1 (*.xml)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="756"/>
<location filename="mainwindow.cpp" line="774"/>
<source>XML files version 2 (*.xml)</source>
<translation>XML-Dateien Version 2 (*.xml)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="760"/>
<location filename="mainwindow.cpp" line="778"/>
<source>Text files (*.txt)</source>
<translation>Textdateien (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="764"/>
<location filename="mainwindow.cpp" line="782"/>
<source>CSV files (*.csv)</source>
<translation>CSV-Dateien (*.csv)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="807"/>
<location filename="mainwindow.cpp" line="825"/>
<source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="819"/>
<location filename="mainwindow.cpp" line="837"/>
<source>Failed to change the user interface language:
%1
@ -687,34 +695,34 @@ The user interface language has been reset to English. Open the Preferences-dial
Die Sprache wurde auf Englisch zurückgesetzt. Öffnen Sie den Einstellungen-Dialog um eine verfügbare Sprache auszuwählen.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="863"/>
<location filename="mainwindow.cpp" line="930"/>
<location filename="mainwindow.cpp" line="881"/>
<location filename="mainwindow.cpp" line="948"/>
<source>Project files (*.cppcheck);;All files(*.*)</source>
<translation>Projektdateien (*.cppcheck);;Alle Dateien(*.*)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="865"/>
<location filename="mainwindow.cpp" line="883"/>
<source>Select Project File</source>
<translation>Projektdatei auswählen</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="882"/>
<location filename="mainwindow.cpp" line="942"/>
<location filename="mainwindow.cpp" line="900"/>
<location filename="mainwindow.cpp" line="960"/>
<source>Project:</source>
<translation>Projekt:</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="932"/>
<location filename="mainwindow.cpp" line="950"/>
<source>Select Project Filename</source>
<translation>Projektnamen auswählen</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="967"/>
<location filename="mainwindow.cpp" line="985"/>
<source>No project file loaded</source>
<translation>Keine Projektdatei geladen</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1042"/>
<location filename="mainwindow.cpp" line="1060"/>
<source>The project file
%1

View File

@ -170,11 +170,12 @@ Parameters: -l(line) (file)</source>
<location filename="mainwindow.cpp" line="339"/>
<location filename="mainwindow.cpp" line="406"/>
<location filename="mainwindow.cpp" line="428"/>
<location filename="mainwindow.cpp" line="686"/>
<location filename="mainwindow.cpp" line="805"/>
<location filename="mainwindow.cpp" line="825"/>
<location filename="mainwindow.cpp" line="966"/>
<location filename="mainwindow.cpp" line="1047"/>
<location filename="mainwindow.cpp" line="613"/>
<location filename="mainwindow.cpp" line="704"/>
<location filename="mainwindow.cpp" line="823"/>
<location filename="mainwindow.cpp" line="843"/>
<location filename="mainwindow.cpp" line="984"/>
<location filename="mainwindow.cpp" line="1065"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
@ -573,17 +574,17 @@ This is probably because the settings were changed between the Cppcheck versions
<translation>Selecciona una carpeta para comprobar</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="612"/>
<location filename="mainwindow.cpp" line="629"/>
<source>XML files (*.xml)</source>
<translation>Ficheros XML(*.xml)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="614"/>
<location filename="mainwindow.cpp" line="631"/>
<source>Open the report file</source>
<translation>Abrir informe</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="682"/>
<location filename="mainwindow.cpp" line="700"/>
<source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source>
@ -592,22 +593,22 @@ Do you want to stop the checking and exit Cppcheck?.</source>
¿Quieres parar la comprobación y salir del Cppcheck?.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="728"/>
<location filename="mainwindow.cpp" line="746"/>
<source>License</source>
<translation>Licencia</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="735"/>
<location filename="mainwindow.cpp" line="753"/>
<source>Authors</source>
<translation>Autores</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="743"/>
<location filename="mainwindow.cpp" line="761"/>
<source>XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="819"/>
<location filename="mainwindow.cpp" line="837"/>
<source>Failed to change the user interface language:
%1
@ -616,7 +617,7 @@ The user interface language has been reset to English. Open the Preferences-dial
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="745"/>
<location filename="mainwindow.cpp" line="763"/>
<source>Save the report file</source>
<translation>Guardar informe</translation>
</message>
@ -640,59 +641,66 @@ Do you want to proceed checking without using any of these project files?</sourc
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="752"/>
<location filename="mainwindow.cpp" line="614"/>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="770"/>
<source>XML files version 1 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="756"/>
<location filename="mainwindow.cpp" line="774"/>
<source>XML files version 2 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="760"/>
<location filename="mainwindow.cpp" line="778"/>
<source>Text files (*.txt)</source>
<translation>Ficheros de texto (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="764"/>
<location filename="mainwindow.cpp" line="782"/>
<source>CSV files (*.csv)</source>
<translation>Ficheros CVS (*.cvs)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="807"/>
<location filename="mainwindow.cpp" line="825"/>
<source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="863"/>
<location filename="mainwindow.cpp" line="930"/>
<location filename="mainwindow.cpp" line="881"/>
<location filename="mainwindow.cpp" line="948"/>
<source>Project files (*.cppcheck);;All files(*.*)</source>
<translation>Ficheros de proyecto (*.cppcheck;;Todos los ficheros (*.*)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="865"/>
<location filename="mainwindow.cpp" line="883"/>
<source>Select Project File</source>
<translation>Selecciona proyecto</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="882"/>
<location filename="mainwindow.cpp" line="942"/>
<location filename="mainwindow.cpp" line="900"/>
<location filename="mainwindow.cpp" line="960"/>
<source>Project:</source>
<translation type="unfinished">Proyecto:</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="932"/>
<location filename="mainwindow.cpp" line="950"/>
<source>Select Project Filename</source>
<translation>Selecciona el nombre del proyecto</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="967"/>
<location filename="mainwindow.cpp" line="985"/>
<source>No project file loaded</source>
<translation>No hay ningún proyecto cargado</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1042"/>
<location filename="mainwindow.cpp" line="1060"/>
<source>The project file
%1

View File

@ -173,11 +173,12 @@ Parameters: -l(line) (file)</source>
<location filename="mainwindow.cpp" line="339"/>
<location filename="mainwindow.cpp" line="406"/>
<location filename="mainwindow.cpp" line="428"/>
<location filename="mainwindow.cpp" line="686"/>
<location filename="mainwindow.cpp" line="805"/>
<location filename="mainwindow.cpp" line="825"/>
<location filename="mainwindow.cpp" line="966"/>
<location filename="mainwindow.cpp" line="1047"/>
<location filename="mainwindow.cpp" line="613"/>
<location filename="mainwindow.cpp" line="704"/>
<location filename="mainwindow.cpp" line="823"/>
<location filename="mainwindow.cpp" line="843"/>
<location filename="mainwindow.cpp" line="984"/>
<location filename="mainwindow.cpp" line="1065"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
@ -583,28 +584,28 @@ Do you want to proceed checking without using any of these project files?</sourc
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="728"/>
<location filename="mainwindow.cpp" line="746"/>
<source>License</source>
<translation>Lisenssi</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="735"/>
<location filename="mainwindow.cpp" line="753"/>
<source>Authors</source>
<translation>Tekijät</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="743"/>
<location filename="mainwindow.cpp" line="761"/>
<source>XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<oldsource>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</oldsource>
<translation type="unfinished">XML-tiedostot (*.xml);;Tekstitiedostot (*.txt);;CSV-tiedostot (*.csv)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="745"/>
<location filename="mainwindow.cpp" line="763"/>
<source>Save the report file</source>
<translation>Tallenna raportti</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="612"/>
<location filename="mainwindow.cpp" line="629"/>
<source>XML files (*.xml)</source>
<translation>XML-tiedostot (*xml)</translation>
</message>
@ -622,43 +623,50 @@ This is probably because the settings were changed between the Cppcheck versions
</message>
<message>
<location filename="mainwindow.cpp" line="614"/>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="631"/>
<source>Open the report file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="682"/>
<location filename="mainwindow.cpp" line="700"/>
<source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="752"/>
<location filename="mainwindow.cpp" line="770"/>
<source>XML files version 1 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="756"/>
<location filename="mainwindow.cpp" line="774"/>
<source>XML files version 2 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="760"/>
<location filename="mainwindow.cpp" line="778"/>
<source>Text files (*.txt)</source>
<translation>Tekstitiedostot (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="764"/>
<location filename="mainwindow.cpp" line="782"/>
<source>CSV files (*.csv)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="807"/>
<location filename="mainwindow.cpp" line="825"/>
<source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="819"/>
<location filename="mainwindow.cpp" line="837"/>
<source>Failed to change the user interface language:
%1
@ -667,34 +675,34 @@ The user interface language has been reset to English. Open the Preferences-dial
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="863"/>
<location filename="mainwindow.cpp" line="930"/>
<location filename="mainwindow.cpp" line="881"/>
<location filename="mainwindow.cpp" line="948"/>
<source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="865"/>
<location filename="mainwindow.cpp" line="883"/>
<source>Select Project File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="882"/>
<location filename="mainwindow.cpp" line="942"/>
<location filename="mainwindow.cpp" line="900"/>
<location filename="mainwindow.cpp" line="960"/>
<source>Project:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="932"/>
<location filename="mainwindow.cpp" line="950"/>
<source>Select Project Filename</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="967"/>
<location filename="mainwindow.cpp" line="985"/>
<source>No project file loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1042"/>
<location filename="mainwindow.cpp" line="1060"/>
<source>The project file
%1

View File

@ -597,6 +597,12 @@ Do you want to remove the file from the recently used projects -list?</source>
<source>Korean</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Platforms</name>

View File

@ -170,11 +170,12 @@ Parameters: -l(line) (file)</source>
<location filename="mainwindow.cpp" line="339"/>
<location filename="mainwindow.cpp" line="406"/>
<location filename="mainwindow.cpp" line="428"/>
<location filename="mainwindow.cpp" line="686"/>
<location filename="mainwindow.cpp" line="805"/>
<location filename="mainwindow.cpp" line="825"/>
<location filename="mainwindow.cpp" line="966"/>
<location filename="mainwindow.cpp" line="1047"/>
<location filename="mainwindow.cpp" line="613"/>
<location filename="mainwindow.cpp" line="704"/>
<location filename="mainwindow.cpp" line="823"/>
<location filename="mainwindow.cpp" line="843"/>
<location filename="mainwindow.cpp" line="984"/>
<location filename="mainwindow.cpp" line="1065"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
@ -592,17 +593,24 @@ Do you want to proceed checking without using any of these project files?</sourc
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="612"/>
<location filename="mainwindow.cpp" line="614"/>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="629"/>
<source>XML files (*.xml)</source>
<translation>XML (*.xml)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="614"/>
<location filename="mainwindow.cpp" line="631"/>
<source>Open the report file</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="682"/>
<location filename="mainwindow.cpp" line="700"/>
<source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source>
@ -611,53 +619,53 @@ Do you want to stop the checking and exit Cppcheck?.</source>
Cppcheckを終了しますか.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="728"/>
<location filename="mainwindow.cpp" line="746"/>
<source>License</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="735"/>
<location filename="mainwindow.cpp" line="753"/>
<source>Authors</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="743"/>
<location filename="mainwindow.cpp" line="761"/>
<source>XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<oldsource>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</oldsource>
<translation type="unfinished">XML (*.xml);; (*.txt);;CSV形式ファイル (*.csv)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="745"/>
<location filename="mainwindow.cpp" line="763"/>
<source>Save the report file</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="752"/>
<location filename="mainwindow.cpp" line="770"/>
<source>XML files version 1 (*.xml)</source>
<translation>XMLファイルのバージョン1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="756"/>
<location filename="mainwindow.cpp" line="774"/>
<source>XML files version 2 (*.xml)</source>
<translation>XMLファイルのバージョン2</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="760"/>
<location filename="mainwindow.cpp" line="778"/>
<source>Text files (*.txt)</source>
<translation> (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="764"/>
<location filename="mainwindow.cpp" line="782"/>
<source>CSV files (*.csv)</source>
<translation>CSV形式ファイル (*.csv)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="807"/>
<location filename="mainwindow.cpp" line="825"/>
<source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="819"/>
<location filename="mainwindow.cpp" line="837"/>
<source>Failed to change the user interface language:
%1
@ -666,34 +674,34 @@ The user interface language has been reset to English. Open the Preferences-dial
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="863"/>
<location filename="mainwindow.cpp" line="930"/>
<location filename="mainwindow.cpp" line="881"/>
<location filename="mainwindow.cpp" line="948"/>
<source>Project files (*.cppcheck);;All files(*.*)</source>
<translation> (*.cppcheck);;(*.*)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="865"/>
<location filename="mainwindow.cpp" line="883"/>
<source>Select Project File</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="882"/>
<location filename="mainwindow.cpp" line="942"/>
<location filename="mainwindow.cpp" line="900"/>
<location filename="mainwindow.cpp" line="960"/>
<source>Project:</source>
<translation>:</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="932"/>
<location filename="mainwindow.cpp" line="950"/>
<source>Select Project Filename</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="967"/>
<location filename="mainwindow.cpp" line="985"/>
<source>No project file loaded</source>
<translation></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1042"/>
<location filename="mainwindow.cpp" line="1060"/>
<source>The project file
%1

View File

@ -625,6 +625,12 @@ Do you want to remove the file from the recently used projects -list?</source>
<source>Swedish</source>
<translation></translation>
</message>
<message>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>Platforms</name>

View File

@ -173,11 +173,12 @@ Parameters: -l(line) (file)</source>
<location filename="mainwindow.cpp" line="339"/>
<location filename="mainwindow.cpp" line="406"/>
<location filename="mainwindow.cpp" line="428"/>
<location filename="mainwindow.cpp" line="686"/>
<location filename="mainwindow.cpp" line="805"/>
<location filename="mainwindow.cpp" line="825"/>
<location filename="mainwindow.cpp" line="966"/>
<location filename="mainwindow.cpp" line="1047"/>
<location filename="mainwindow.cpp" line="613"/>
<location filename="mainwindow.cpp" line="704"/>
<location filename="mainwindow.cpp" line="823"/>
<location filename="mainwindow.cpp" line="843"/>
<location filename="mainwindow.cpp" line="984"/>
<location filename="mainwindow.cpp" line="1065"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
@ -583,28 +584,28 @@ Do you want to proceed checking without using any of these project files?</sourc
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="728"/>
<location filename="mainwindow.cpp" line="746"/>
<source>License</source>
<translation>Licentie</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="735"/>
<location filename="mainwindow.cpp" line="753"/>
<source>Authors</source>
<translation>Auteurs</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="743"/>
<location filename="mainwindow.cpp" line="761"/>
<source>XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<oldsource>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</oldsource>
<translation type="unfinished">XML bestanden (*.xml);;Tekst bestanden (*.txt);;CSV bestanden (*.csv)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="745"/>
<location filename="mainwindow.cpp" line="763"/>
<source>Save the report file</source>
<translation>Rapport opslaan </translation>
</message>
<message>
<location filename="mainwindow.cpp" line="612"/>
<location filename="mainwindow.cpp" line="629"/>
<source>XML files (*.xml)</source>
<translation>XML bestanden (*.xml)</translation>
</message>
@ -622,43 +623,50 @@ This is probably because the settings were changed between the Cppcheck versions
</message>
<message>
<location filename="mainwindow.cpp" line="614"/>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="631"/>
<source>Open the report file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="682"/>
<location filename="mainwindow.cpp" line="700"/>
<source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="752"/>
<location filename="mainwindow.cpp" line="770"/>
<source>XML files version 1 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="756"/>
<location filename="mainwindow.cpp" line="774"/>
<source>XML files version 2 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="760"/>
<location filename="mainwindow.cpp" line="778"/>
<source>Text files (*.txt)</source>
<translation>Tekst bestanden (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="764"/>
<location filename="mainwindow.cpp" line="782"/>
<source>CSV files (*.csv)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="807"/>
<location filename="mainwindow.cpp" line="825"/>
<source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="819"/>
<location filename="mainwindow.cpp" line="837"/>
<source>Failed to change the user interface language:
%1
@ -667,34 +675,34 @@ The user interface language has been reset to English. Open the Preferences-dial
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="863"/>
<location filename="mainwindow.cpp" line="930"/>
<location filename="mainwindow.cpp" line="881"/>
<location filename="mainwindow.cpp" line="948"/>
<source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="865"/>
<location filename="mainwindow.cpp" line="883"/>
<source>Select Project File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="882"/>
<location filename="mainwindow.cpp" line="942"/>
<location filename="mainwindow.cpp" line="900"/>
<location filename="mainwindow.cpp" line="960"/>
<source>Project:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="932"/>
<location filename="mainwindow.cpp" line="950"/>
<source>Select Project Filename</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="967"/>
<location filename="mainwindow.cpp" line="985"/>
<source>No project file loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1042"/>
<location filename="mainwindow.cpp" line="1060"/>
<source>The project file
%1

View File

@ -173,11 +173,12 @@ Parameters: -l(line) (file)</source>
<location filename="mainwindow.cpp" line="339"/>
<location filename="mainwindow.cpp" line="406"/>
<location filename="mainwindow.cpp" line="428"/>
<location filename="mainwindow.cpp" line="686"/>
<location filename="mainwindow.cpp" line="805"/>
<location filename="mainwindow.cpp" line="825"/>
<location filename="mainwindow.cpp" line="966"/>
<location filename="mainwindow.cpp" line="1047"/>
<location filename="mainwindow.cpp" line="613"/>
<location filename="mainwindow.cpp" line="704"/>
<location filename="mainwindow.cpp" line="823"/>
<location filename="mainwindow.cpp" line="843"/>
<location filename="mainwindow.cpp" line="984"/>
<location filename="mainwindow.cpp" line="1065"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
@ -583,28 +584,28 @@ Do you want to proceed checking without using any of these project files?</sourc
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="728"/>
<location filename="mainwindow.cpp" line="746"/>
<source>License</source>
<translation>Лицензия</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="735"/>
<location filename="mainwindow.cpp" line="753"/>
<source>Authors</source>
<translation>Авторы</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="743"/>
<location filename="mainwindow.cpp" line="761"/>
<source>XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<oldsource>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</oldsource>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="745"/>
<location filename="mainwindow.cpp" line="763"/>
<source>Save the report file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="612"/>
<location filename="mainwindow.cpp" line="629"/>
<source>XML files (*.xml)</source>
<translation type="unfinished"></translation>
</message>
@ -622,43 +623,50 @@ This is probably because the settings were changed between the Cppcheck versions
</message>
<message>
<location filename="mainwindow.cpp" line="614"/>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="631"/>
<source>Open the report file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="682"/>
<location filename="mainwindow.cpp" line="700"/>
<source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="752"/>
<location filename="mainwindow.cpp" line="770"/>
<source>XML files version 1 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="756"/>
<location filename="mainwindow.cpp" line="774"/>
<source>XML files version 2 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="760"/>
<location filename="mainwindow.cpp" line="778"/>
<source>Text files (*.txt)</source>
<translation>Текстовые файлы (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="764"/>
<location filename="mainwindow.cpp" line="782"/>
<source>CSV files (*.csv)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="807"/>
<location filename="mainwindow.cpp" line="825"/>
<source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="819"/>
<location filename="mainwindow.cpp" line="837"/>
<source>Failed to change the user interface language:
%1
@ -667,34 +675,34 @@ The user interface language has been reset to English. Open the Preferences-dial
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="863"/>
<location filename="mainwindow.cpp" line="930"/>
<location filename="mainwindow.cpp" line="881"/>
<location filename="mainwindow.cpp" line="948"/>
<source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="865"/>
<location filename="mainwindow.cpp" line="883"/>
<source>Select Project File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="882"/>
<location filename="mainwindow.cpp" line="942"/>
<location filename="mainwindow.cpp" line="900"/>
<location filename="mainwindow.cpp" line="960"/>
<source>Project:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="932"/>
<location filename="mainwindow.cpp" line="950"/>
<source>Select Project Filename</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="967"/>
<location filename="mainwindow.cpp" line="985"/>
<source>No project file loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1042"/>
<location filename="mainwindow.cpp" line="1060"/>
<source>The project file
%1

View File

@ -171,11 +171,12 @@ Parameters: -l(line) (file)</source>
<location filename="mainwindow.cpp" line="339"/>
<location filename="mainwindow.cpp" line="406"/>
<location filename="mainwindow.cpp" line="428"/>
<location filename="mainwindow.cpp" line="686"/>
<location filename="mainwindow.cpp" line="805"/>
<location filename="mainwindow.cpp" line="825"/>
<location filename="mainwindow.cpp" line="966"/>
<location filename="mainwindow.cpp" line="1047"/>
<location filename="mainwindow.cpp" line="613"/>
<location filename="mainwindow.cpp" line="704"/>
<location filename="mainwindow.cpp" line="823"/>
<location filename="mainwindow.cpp" line="843"/>
<location filename="mainwindow.cpp" line="984"/>
<location filename="mainwindow.cpp" line="1065"/>
<source>Cppcheck</source>
<translation type="unfinished">Cppcheck</translation>
</message>
@ -581,27 +582,27 @@ Do you want to proceed checking without using any of these project files?</sourc
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="728"/>
<location filename="mainwindow.cpp" line="746"/>
<source>License</source>
<translation type="unfinished">License</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="735"/>
<location filename="mainwindow.cpp" line="753"/>
<source>Authors</source>
<translation type="unfinished">Authors</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="743"/>
<location filename="mainwindow.cpp" line="761"/>
<source>XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<translation type="unfinished">XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="745"/>
<location filename="mainwindow.cpp" line="763"/>
<source>Save the report file</source>
<translation type="unfinished">Save the report file</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="612"/>
<location filename="mainwindow.cpp" line="629"/>
<source>XML files (*.xml)</source>
<translation type="unfinished">XML files (*.xml)</translation>
</message>
@ -619,43 +620,50 @@ This is probably because the settings were changed between the Cppcheck versions
</message>
<message>
<location filename="mainwindow.cpp" line="614"/>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="631"/>
<source>Open the report file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="682"/>
<location filename="mainwindow.cpp" line="700"/>
<source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="752"/>
<location filename="mainwindow.cpp" line="770"/>
<source>XML files version 1 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="756"/>
<location filename="mainwindow.cpp" line="774"/>
<source>XML files version 2 (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="760"/>
<location filename="mainwindow.cpp" line="778"/>
<source>Text files (*.txt)</source>
<translation type="unfinished">Text files (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="764"/>
<location filename="mainwindow.cpp" line="782"/>
<source>CSV files (*.csv)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="807"/>
<location filename="mainwindow.cpp" line="825"/>
<source>Cppcheck - %1</source>
<translation type="unfinished">Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="819"/>
<location filename="mainwindow.cpp" line="837"/>
<source>Failed to change the user interface language:
%1
@ -664,34 +672,34 @@ The user interface language has been reset to English. Open the Preferences-dial
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="863"/>
<location filename="mainwindow.cpp" line="930"/>
<location filename="mainwindow.cpp" line="881"/>
<location filename="mainwindow.cpp" line="948"/>
<source>Project files (*.cppcheck);;All files(*.*)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="865"/>
<location filename="mainwindow.cpp" line="883"/>
<source>Select Project File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="882"/>
<location filename="mainwindow.cpp" line="942"/>
<location filename="mainwindow.cpp" line="900"/>
<location filename="mainwindow.cpp" line="960"/>
<source>Project:</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="932"/>
<location filename="mainwindow.cpp" line="950"/>
<source>Select Project Filename</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="967"/>
<location filename="mainwindow.cpp" line="985"/>
<source>No project file loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1042"/>
<location filename="mainwindow.cpp" line="1060"/>
<source>The project file
%1

View File

@ -183,11 +183,12 @@ Parametrar: -l(line) (file)</translation>
<location filename="mainwindow.cpp" line="339"/>
<location filename="mainwindow.cpp" line="406"/>
<location filename="mainwindow.cpp" line="428"/>
<location filename="mainwindow.cpp" line="686"/>
<location filename="mainwindow.cpp" line="805"/>
<location filename="mainwindow.cpp" line="825"/>
<location filename="mainwindow.cpp" line="966"/>
<location filename="mainwindow.cpp" line="1047"/>
<location filename="mainwindow.cpp" line="613"/>
<location filename="mainwindow.cpp" line="704"/>
<location filename="mainwindow.cpp" line="823"/>
<location filename="mainwindow.cpp" line="843"/>
<location filename="mainwindow.cpp" line="984"/>
<location filename="mainwindow.cpp" line="1065"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
@ -594,28 +595,28 @@ Do you want to proceed checking without using any of these project files?</sourc
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="728"/>
<location filename="mainwindow.cpp" line="746"/>
<source>License</source>
<translation>Licens</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="735"/>
<location filename="mainwindow.cpp" line="753"/>
<source>Authors</source>
<translation>Utvecklare</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="743"/>
<location filename="mainwindow.cpp" line="761"/>
<source>XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)</source>
<oldsource>XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)</oldsource>
<translation>XML filer version 2 (*.xml);;XML filer version 1 (*.xml);;Text filer (*.txt);;CSV filer (*.csv)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="745"/>
<location filename="mainwindow.cpp" line="763"/>
<source>Save the report file</source>
<translation>Spara rapport</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="612"/>
<location filename="mainwindow.cpp" line="629"/>
<source>XML files (*.xml)</source>
<translation>XML filer (*.xml)</translation>
</message>
@ -635,11 +636,18 @@ En trolig orsak är att inställningarna ändrats för olika Cppcheck versioner.
</message>
<message>
<location filename="mainwindow.cpp" line="614"/>
<source>Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="631"/>
<source>Open the report file</source>
<translation>Öppna rapportfilen</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="682"/>
<location filename="mainwindow.cpp" line="700"/>
<source>Checking is running.
Do you want to stop the checking and exit Cppcheck?.</source>
@ -648,32 +656,32 @@ Do you want to stop the checking and exit Cppcheck?.</source>
Vill du stoppa analysen och avsluta Cppcheck?</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="752"/>
<location filename="mainwindow.cpp" line="770"/>
<source>XML files version 1 (*.xml)</source>
<translation>XML filer version 1 (*.xml)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="756"/>
<location filename="mainwindow.cpp" line="774"/>
<source>XML files version 2 (*.xml)</source>
<translation>XML filer version 2 (*.xml)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="760"/>
<location filename="mainwindow.cpp" line="778"/>
<source>Text files (*.txt)</source>
<translation>Text filer (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="764"/>
<location filename="mainwindow.cpp" line="782"/>
<source>CSV files (*.csv)</source>
<translation>CSV filer (*.csv)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="807"/>
<location filename="mainwindow.cpp" line="825"/>
<source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="819"/>
<location filename="mainwindow.cpp" line="837"/>
<source>Failed to change the user interface language:
%1
@ -686,34 +694,34 @@ The user interface language has been reset to English. Open the Preferences-dial
Språket har nollställts till Engelska. Öppna Preferences och välj något av de tillgängliga språken.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="863"/>
<location filename="mainwindow.cpp" line="930"/>
<location filename="mainwindow.cpp" line="881"/>
<location filename="mainwindow.cpp" line="948"/>
<source>Project files (*.cppcheck);;All files(*.*)</source>
<translation>Projektfiler (*.cppcheck);;Alla filer(*.*)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="865"/>
<location filename="mainwindow.cpp" line="883"/>
<source>Select Project File</source>
<translation>Välj projektfil</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="882"/>
<location filename="mainwindow.cpp" line="942"/>
<location filename="mainwindow.cpp" line="900"/>
<location filename="mainwindow.cpp" line="960"/>
<source>Project:</source>
<translation type="unfinished">Projekt:</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="932"/>
<location filename="mainwindow.cpp" line="950"/>
<source>Select Project Filename</source>
<translation>Välj Projektfil</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="967"/>
<location filename="mainwindow.cpp" line="985"/>
<source>No project file loaded</source>
<translation>Inget projekt laddat</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="1042"/>
<location filename="mainwindow.cpp" line="1060"/>
<source>The project file
%1

View File

@ -608,6 +608,23 @@ void MainWindow::ClearResults()
void MainWindow::OpenXML()
{
if (mUI.mResults->HasResults()) {
QMessageBox msgBox(this);
msgBox.setWindowTitle(tr("Cppcheck"));
const QString msg(tr("Current results will be cleared.\n\n"
"Opening a new XML file will clear current results."
"Do you want to proceed?"));
msgBox.setText(msg);
msgBox.setIcon(QMessageBox::Warning);
msgBox.addButton(QMessageBox::Yes);
msgBox.addButton(QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::Yes);
int dlgResult = msgBox.exec();
if (dlgResult == QMessageBox::No) {
return;
}
}
QString selectedFilter;
const QString filter(tr("XML files (*.xml)"));
QString selectedFile = QFileDialog::getOpenFileName(this,
@ -617,6 +634,7 @@ void MainWindow::OpenXML()
&selectedFilter);
if (!selectedFile.isEmpty()) {
mUI.mResults->Clear();
mUI.mResults->ReadErrorsXml(selectedFile);
}
}