Checks if toolbar is closed when opening view menu.

Basically just reverted back Kimmo's code that was lost in merge.
This commit is contained in:
Vesa Pikki 2009-07-02 20:11:47 +03:00
parent e1701d5b27
commit 8f516a5638
8 changed files with 282 additions and 278 deletions

View File

@ -116,227 +116,227 @@ kate -l(line) (file)</source>
<name>MainWindow</name>
<message>
<location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="566"/>
<location filename="mainwindow.cpp" line="239"/>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="544"/>
<location filename="mainwindow.cpp" line="562"/>
<source>Cppcheck</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="253"/>
<location filename="main.ui" line="136"/>
<source>Standard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="255"/>
<source>Show possible false positives</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="74"/>
<location filename="main.ui" line="77"/>
<source>&amp;File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="81"/>
<location filename="main.ui" line="84"/>
<source>&amp;View</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="110"/>
<location filename="main.ui" line="113"/>
<source>&amp;Check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="119"/>
<location filename="main.ui" line="122"/>
<source>&amp;Edit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="134"/>
<source>toolBar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="152"/>
<location filename="main.ui" line="154"/>
<source>&amp;License...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="157"/>
<location filename="main.ui" line="159"/>
<source>A&amp;uthors...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="166"/>
<location filename="main.ui" line="168"/>
<source>&amp;About...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="171"/>
<location filename="main.ui" line="173"/>
<source>&amp;Files...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="174"/>
<location filename="main.ui" line="176"/>
<source>Ctrl+F</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="183"/>
<location filename="main.ui" line="185"/>
<source>&amp;Directory...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="186"/>
<location filename="main.ui" line="188"/>
<source>Ctrl+D</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="195"/>
<location filename="main.ui" line="197"/>
<source>&amp;Recheck files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="198"/>
<location filename="main.ui" line="200"/>
<source>Ctrl+R</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="207"/>
<location filename="main.ui" line="209"/>
<source>&amp;Stop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="210"/>
<location filename="main.ui" line="212"/>
<source>Esc</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="219"/>
<location filename="main.ui" line="221"/>
<source>&amp;Save results to file...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="222"/>
<location filename="main.ui" line="224"/>
<source>Ctrl+S</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="227"/>
<location filename="main.ui" line="229"/>
<source>&amp;Quit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="236"/>
<location filename="main.ui" line="238"/>
<source>&amp;Clear results</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="245"/>
<location filename="main.ui" line="247"/>
<source>&amp;Preferences</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="261"/>
<location filename="main.ui" line="263"/>
<source>Show security errors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="269"/>
<location filename="main.ui" line="271"/>
<source>Show style errors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="277"/>
<location filename="main.ui" line="279"/>
<source>Show common errors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="282"/>
<location filename="main.ui" line="284"/>
<source>&amp;Check all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="287"/>
<location filename="main.ui" line="289"/>
<source>&amp;Uncheck all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="292"/>
<location filename="main.ui" line="294"/>
<source>Collapse &amp;all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="297"/>
<location filename="main.ui" line="299"/>
<source>&amp;Expand all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="305"/>
<location filename="main.ui" line="307"/>
<source>&amp;Toolbar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="97"/>
<location filename="main.ui" line="100"/>
<source>&amp;Language</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="102"/>
<location filename="main.ui" line="105"/>
<source>&amp;Help</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="206"/>
<location filename="mainwindow.cpp" line="202"/>
<source>Select files to check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="215"/>
<location filename="mainwindow.cpp" line="211"/>
<source>Select directory to check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="244"/>
<location filename="mainwindow.cpp" line="240"/>
<source>No suitable files found to check!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="442"/>
<source>Cannot exit while checking.
Stop the checking before exiting.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="492"/>
<location filename="mainwindow.cpp" line="488"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="499"/>
<location filename="mainwindow.cpp" line="495"/>
<source>Authors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="507"/>
<location filename="mainwindow.cpp" line="503"/>
<source>XML files (*.xml);;Text files (*.txt)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="509"/>
<location filename="mainwindow.cpp" line="505"/>
<source>Save the report file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="517"/>
<location filename="mainwindow.cpp" line="513"/>
<source>XML files (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="550"/>
<location filename="mainwindow.cpp" line="546"/>
<source>Cppcheck - %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="567"/>
<location filename="mainwindow.cpp" line="563"/>
<source>Failed to change language:
%1</source>

View File

@ -129,190 +129,190 @@ kate -l(line) (file)</translation>
<name>MainWindow</name>
<message>
<location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="566"/>
<location filename="mainwindow.cpp" line="239"/>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="544"/>
<location filename="mainwindow.cpp" line="562"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
<message>
<location filename="main.ui" line="253"/>
<location filename="main.ui" line="136"/>
<source>Standard</source>
<translation>Standard</translation>
</message>
<message>
<location filename="main.ui" line="255"/>
<source>Show possible false positives</source>
<translation>Show possible false positives</translation>
</message>
<message>
<location filename="main.ui" line="74"/>
<location filename="main.ui" line="77"/>
<source>&amp;File</source>
<translation>&amp;File</translation>
</message>
<message>
<location filename="main.ui" line="81"/>
<location filename="main.ui" line="84"/>
<source>&amp;View</source>
<translation>&amp;View</translation>
</message>
<message>
<location filename="main.ui" line="110"/>
<location filename="main.ui" line="113"/>
<source>&amp;Check</source>
<translation>&amp;Check</translation>
</message>
<message>
<location filename="main.ui" line="119"/>
<location filename="main.ui" line="122"/>
<source>&amp;Edit</source>
<translation>&amp;Edit</translation>
</message>
<message>
<location filename="main.ui" line="134"/>
<source>toolBar</source>
<translation>toolBar</translation>
</message>
<message>
<location filename="main.ui" line="152"/>
<location filename="main.ui" line="154"/>
<source>&amp;License...</source>
<translation>&amp;License...</translation>
</message>
<message>
<location filename="main.ui" line="157"/>
<location filename="main.ui" line="159"/>
<source>A&amp;uthors...</source>
<translation>A&amp;uthors...</translation>
</message>
<message>
<location filename="main.ui" line="166"/>
<location filename="main.ui" line="168"/>
<source>&amp;About...</source>
<translation>&amp;About...</translation>
</message>
<message>
<location filename="main.ui" line="171"/>
<location filename="main.ui" line="173"/>
<source>&amp;Files...</source>
<translation>&amp;Files...</translation>
</message>
<message>
<location filename="main.ui" line="174"/>
<location filename="main.ui" line="176"/>
<source>Ctrl+F</source>
<translation>Ctrl+F</translation>
</message>
<message>
<location filename="main.ui" line="183"/>
<location filename="main.ui" line="185"/>
<source>&amp;Directory...</source>
<translation>&amp;Directory...</translation>
</message>
<message>
<location filename="main.ui" line="186"/>
<location filename="main.ui" line="188"/>
<source>Ctrl+D</source>
<translation>Ctrl+D</translation>
</message>
<message>
<location filename="main.ui" line="195"/>
<location filename="main.ui" line="197"/>
<source>&amp;Recheck files</source>
<translation>&amp;Recheck files</translation>
</message>
<message>
<location filename="main.ui" line="198"/>
<location filename="main.ui" line="200"/>
<source>Ctrl+R</source>
<translation>Ctrl+R</translation>
</message>
<message>
<location filename="main.ui" line="207"/>
<location filename="main.ui" line="209"/>
<source>&amp;Stop</source>
<translation>&amp;Stop</translation>
</message>
<message>
<location filename="main.ui" line="210"/>
<location filename="main.ui" line="212"/>
<source>Esc</source>
<translation>Esc</translation>
</message>
<message>
<location filename="main.ui" line="219"/>
<location filename="main.ui" line="221"/>
<source>&amp;Save results to file...</source>
<translation>&amp;Save results to file...</translation>
</message>
<message>
<location filename="main.ui" line="222"/>
<location filename="main.ui" line="224"/>
<source>Ctrl+S</source>
<translation>Ctrl+S</translation>
</message>
<message>
<location filename="main.ui" line="227"/>
<location filename="main.ui" line="229"/>
<source>&amp;Quit</source>
<translation>&amp;Quit</translation>
</message>
<message>
<location filename="main.ui" line="236"/>
<location filename="main.ui" line="238"/>
<source>&amp;Clear results</source>
<translation>&amp;Clear results</translation>
</message>
<message>
<location filename="main.ui" line="245"/>
<location filename="main.ui" line="247"/>
<source>&amp;Preferences</source>
<translation>&amp;Preferences</translation>
</message>
<message>
<location filename="main.ui" line="261"/>
<location filename="main.ui" line="263"/>
<source>Show security errors</source>
<translation>Show security errors</translation>
</message>
<message>
<location filename="main.ui" line="269"/>
<location filename="main.ui" line="271"/>
<source>Show style errors</source>
<translation>Show style errors</translation>
</message>
<message>
<location filename="main.ui" line="277"/>
<location filename="main.ui" line="279"/>
<source>Show common errors</source>
<translation>Show common errors</translation>
</message>
<message>
<location filename="main.ui" line="282"/>
<location filename="main.ui" line="284"/>
<source>&amp;Check all</source>
<translation>&amp;Check all</translation>
</message>
<message>
<location filename="main.ui" line="287"/>
<location filename="main.ui" line="289"/>
<source>&amp;Uncheck all</source>
<translation>&amp;Uncheck all</translation>
</message>
<message>
<location filename="main.ui" line="292"/>
<location filename="main.ui" line="294"/>
<source>Collapse &amp;all</source>
<translation>Collapse &amp;all</translation>
</message>
<message>
<location filename="main.ui" line="297"/>
<location filename="main.ui" line="299"/>
<source>&amp;Expand all</source>
<translation>&amp;Expand all</translation>
</message>
<message>
<location filename="main.ui" line="305"/>
<location filename="main.ui" line="307"/>
<source>&amp;Toolbar</source>
<translation>&amp;Toolbar</translation>
</message>
<message>
<location filename="main.ui" line="97"/>
<location filename="main.ui" line="100"/>
<source>&amp;Language</source>
<translation>&amp;Language</translation>
</message>
<message>
<location filename="main.ui" line="102"/>
<location filename="main.ui" line="105"/>
<source>&amp;Help</source>
<translation>&amp;Help</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="206"/>
<location filename="mainwindow.cpp" line="202"/>
<source>Select files to check</source>
<translation>Select files to check</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="215"/>
<location filename="mainwindow.cpp" line="211"/>
<source>Select directory to check</source>
<translation>Select directory to check</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="244"/>
<location filename="mainwindow.cpp" line="240"/>
<source>No suitable files found to check!</source>
<translation>No suitable files found to check!</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="442"/>
<source>Cannot exit while checking.
Stop the checking before exiting.</source>
@ -321,37 +321,37 @@ Stop the checking before exiting.</source>
Stop the checking before exiting.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="492"/>
<location filename="mainwindow.cpp" line="488"/>
<source>License</source>
<translation>License</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="499"/>
<location filename="mainwindow.cpp" line="495"/>
<source>Authors</source>
<translation>Authors</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="507"/>
<location filename="mainwindow.cpp" line="503"/>
<source>XML files (*.xml);;Text files (*.txt)</source>
<translation>XML files (*.xml);;Text files (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="509"/>
<location filename="mainwindow.cpp" line="505"/>
<source>Save the report file</source>
<translation>Save the report file</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="517"/>
<location filename="mainwindow.cpp" line="513"/>
<source>XML files (*.xml)</source>
<translation>XML files (*.xml)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="550"/>
<location filename="mainwindow.cpp" line="546"/>
<source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="567"/>
<location filename="mainwindow.cpp" line="563"/>
<source>Failed to change language:
%1</source>

View File

@ -131,190 +131,190 @@ kate -l(line) (file)
<name>MainWindow</name>
<message>
<location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="566"/>
<location filename="mainwindow.cpp" line="239"/>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="544"/>
<location filename="mainwindow.cpp" line="562"/>
<source>Cppcheck</source>
<translation>Cppcheck</translation>
</message>
<message>
<location filename="main.ui" line="253"/>
<location filename="main.ui" line="136"/>
<source>Standard</source>
<translation>Vakio</translation>
</message>
<message>
<location filename="main.ui" line="255"/>
<source>Show possible false positives</source>
<translation>Näytä epävarmat virheet</translation>
</message>
<message>
<location filename="main.ui" line="74"/>
<location filename="main.ui" line="77"/>
<source>&amp;File</source>
<translation>&amp;Tiedosto</translation>
</message>
<message>
<location filename="main.ui" line="81"/>
<location filename="main.ui" line="84"/>
<source>&amp;View</source>
<translation>&amp;Näytä</translation>
</message>
<message>
<location filename="main.ui" line="110"/>
<location filename="main.ui" line="113"/>
<source>&amp;Check</source>
<translation>&amp;Tarkista</translation>
</message>
<message>
<location filename="main.ui" line="119"/>
<location filename="main.ui" line="122"/>
<source>&amp;Edit</source>
<translation>&amp;Muokkaa</translation>
</message>
<message>
<location filename="main.ui" line="134"/>
<source>toolBar</source>
<translation>työkalupalkki</translation>
</message>
<message>
<location filename="main.ui" line="152"/>
<location filename="main.ui" line="154"/>
<source>&amp;License...</source>
<translation>&amp;Lisenssi...</translation>
</message>
<message>
<location filename="main.ui" line="157"/>
<location filename="main.ui" line="159"/>
<source>A&amp;uthors...</source>
<translation>&amp;Tekijät...</translation>
</message>
<message>
<location filename="main.ui" line="166"/>
<location filename="main.ui" line="168"/>
<source>&amp;About...</source>
<translation>&amp;Tietoa ohjelmasta Cppcheck...</translation>
</message>
<message>
<location filename="main.ui" line="171"/>
<location filename="main.ui" line="173"/>
<source>&amp;Files...</source>
<translation>&amp;Tiedostot...</translation>
</message>
<message>
<location filename="main.ui" line="174"/>
<location filename="main.ui" line="176"/>
<source>Ctrl+F</source>
<translation>Ctrl+F</translation>
</message>
<message>
<location filename="main.ui" line="183"/>
<location filename="main.ui" line="185"/>
<source>&amp;Directory...</source>
<translation>&amp;Hakemisto...</translation>
</message>
<message>
<location filename="main.ui" line="186"/>
<location filename="main.ui" line="188"/>
<source>Ctrl+D</source>
<translation>Ctrl+D</translation>
</message>
<message>
<location filename="main.ui" line="195"/>
<location filename="main.ui" line="197"/>
<source>&amp;Recheck files</source>
<translation>Tarkista tiedostot &amp;uudelleen</translation>
</message>
<message>
<location filename="main.ui" line="198"/>
<location filename="main.ui" line="200"/>
<source>Ctrl+R</source>
<translation>Ctrl+R</translation>
</message>
<message>
<location filename="main.ui" line="207"/>
<location filename="main.ui" line="209"/>
<source>&amp;Stop</source>
<translation>&amp;Pysäytä</translation>
</message>
<message>
<location filename="main.ui" line="210"/>
<location filename="main.ui" line="212"/>
<source>Esc</source>
<translation>Esc</translation>
</message>
<message>
<location filename="main.ui" line="219"/>
<location filename="main.ui" line="221"/>
<source>&amp;Save results to file...</source>
<translation>&amp;Tallenna tulokset tiedostoon...</translation>
</message>
<message>
<location filename="main.ui" line="222"/>
<location filename="main.ui" line="224"/>
<source>Ctrl+S</source>
<translation>Ctrl+S</translation>
</message>
<message>
<location filename="main.ui" line="227"/>
<location filename="main.ui" line="229"/>
<source>&amp;Quit</source>
<translation>&amp;Lopeta</translation>
</message>
<message>
<location filename="main.ui" line="236"/>
<location filename="main.ui" line="238"/>
<source>&amp;Clear results</source>
<translation>&amp;Tyhjennä tulokset</translation>
</message>
<message>
<location filename="main.ui" line="245"/>
<location filename="main.ui" line="247"/>
<source>&amp;Preferences</source>
<translation>&amp;Asetukset</translation>
</message>
<message>
<location filename="main.ui" line="261"/>
<location filename="main.ui" line="263"/>
<source>Show security errors</source>
<translation>Näytä tietoturvavirheet</translation>
</message>
<message>
<location filename="main.ui" line="269"/>
<location filename="main.ui" line="271"/>
<source>Show style errors</source>
<translation>Näytä tyylivirheet</translation>
</message>
<message>
<location filename="main.ui" line="277"/>
<location filename="main.ui" line="279"/>
<source>Show common errors</source>
<translation>Näytä yleiset virheet</translation>
</message>
<message>
<location filename="main.ui" line="282"/>
<location filename="main.ui" line="284"/>
<source>&amp;Check all</source>
<translation>&amp;Valitse kaikki</translation>
</message>
<message>
<location filename="main.ui" line="287"/>
<location filename="main.ui" line="289"/>
<source>&amp;Uncheck all</source>
<translation>&amp;Poista kaikista valinta</translation>
</message>
<message>
<location filename="main.ui" line="292"/>
<location filename="main.ui" line="294"/>
<source>Collapse &amp;all</source>
<translation>&amp;Pienennä kaikki</translation>
</message>
<message>
<location filename="main.ui" line="297"/>
<location filename="main.ui" line="299"/>
<source>&amp;Expand all</source>
<translation>&amp;Laajenna kaikki</translation>
</message>
<message>
<location filename="main.ui" line="305"/>
<location filename="main.ui" line="307"/>
<source>&amp;Toolbar</source>
<translation>&amp;Työkalupalkki</translation>
</message>
<message>
<location filename="main.ui" line="97"/>
<location filename="main.ui" line="100"/>
<source>&amp;Language</source>
<translation>&amp;Kieli</translation>
</message>
<message>
<location filename="main.ui" line="102"/>
<location filename="main.ui" line="105"/>
<source>&amp;Help</source>
<translation>&amp;Ohje</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="206"/>
<location filename="mainwindow.cpp" line="202"/>
<source>Select files to check</source>
<translation>Valitse tarkistettavat tiedostot</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="215"/>
<location filename="mainwindow.cpp" line="211"/>
<source>Select directory to check</source>
<translation>Valitse tarkistettava hakemisto</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="244"/>
<location filename="mainwindow.cpp" line="240"/>
<source>No suitable files found to check!</source>
<translation>Tarkistettavaksi sopivia tiedostoja ei löytynyt!</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="442"/>
<source>Cannot exit while checking.
Stop the checking before exiting.</source>
@ -323,37 +323,37 @@ Stop the checking before exiting.</source>
Lopeta tarkistus ennen ohjelman sammuttamista.</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="492"/>
<location filename="mainwindow.cpp" line="488"/>
<source>License</source>
<translation>Lisenssi</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="499"/>
<location filename="mainwindow.cpp" line="495"/>
<source>Authors</source>
<translation>Tekijät</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="507"/>
<location filename="mainwindow.cpp" line="503"/>
<source>XML files (*.xml);;Text files (*.txt)</source>
<translation>XML-tiedostot (*.xml);;Tekstitiedostot (*.txt)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="509"/>
<location filename="mainwindow.cpp" line="505"/>
<source>Save the report file</source>
<translation>Tallenna raportti</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="517"/>
<location filename="mainwindow.cpp" line="513"/>
<source>XML files (*.xml)</source>
<translation>XML-tiedostot (*xml)</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="550"/>
<location filename="mainwindow.cpp" line="546"/>
<source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation>
</message>
<message>
<location filename="mainwindow.cpp" line="567"/>
<location filename="mainwindow.cpp" line="563"/>
<source>Failed to change language:
%1</source>

View File

@ -118,227 +118,227 @@ kate -l(line) (file)</source>
<name>MainWindow</name>
<message>
<location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="566"/>
<location filename="mainwindow.cpp" line="239"/>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="544"/>
<location filename="mainwindow.cpp" line="562"/>
<source>Cppcheck</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="253"/>
<location filename="main.ui" line="136"/>
<source>Standard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="255"/>
<source>Show possible false positives</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="74"/>
<location filename="main.ui" line="77"/>
<source>&amp;File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="81"/>
<location filename="main.ui" line="84"/>
<source>&amp;View</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="110"/>
<location filename="main.ui" line="113"/>
<source>&amp;Check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="119"/>
<location filename="main.ui" line="122"/>
<source>&amp;Edit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="134"/>
<source>toolBar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="152"/>
<location filename="main.ui" line="154"/>
<source>&amp;License...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="157"/>
<location filename="main.ui" line="159"/>
<source>A&amp;uthors...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="166"/>
<location filename="main.ui" line="168"/>
<source>&amp;About...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="171"/>
<location filename="main.ui" line="173"/>
<source>&amp;Files...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="174"/>
<location filename="main.ui" line="176"/>
<source>Ctrl+F</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="183"/>
<location filename="main.ui" line="185"/>
<source>&amp;Directory...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="186"/>
<location filename="main.ui" line="188"/>
<source>Ctrl+D</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="195"/>
<location filename="main.ui" line="197"/>
<source>&amp;Recheck files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="198"/>
<location filename="main.ui" line="200"/>
<source>Ctrl+R</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="207"/>
<location filename="main.ui" line="209"/>
<source>&amp;Stop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="210"/>
<location filename="main.ui" line="212"/>
<source>Esc</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="219"/>
<location filename="main.ui" line="221"/>
<source>&amp;Save results to file...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="222"/>
<location filename="main.ui" line="224"/>
<source>Ctrl+S</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="227"/>
<location filename="main.ui" line="229"/>
<source>&amp;Quit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="236"/>
<location filename="main.ui" line="238"/>
<source>&amp;Clear results</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="245"/>
<location filename="main.ui" line="247"/>
<source>&amp;Preferences</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="261"/>
<location filename="main.ui" line="263"/>
<source>Show security errors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="269"/>
<location filename="main.ui" line="271"/>
<source>Show style errors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="277"/>
<location filename="main.ui" line="279"/>
<source>Show common errors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="282"/>
<location filename="main.ui" line="284"/>
<source>&amp;Check all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="287"/>
<location filename="main.ui" line="289"/>
<source>&amp;Uncheck all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="292"/>
<location filename="main.ui" line="294"/>
<source>Collapse &amp;all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="297"/>
<location filename="main.ui" line="299"/>
<source>&amp;Expand all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="305"/>
<location filename="main.ui" line="307"/>
<source>&amp;Toolbar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="97"/>
<location filename="main.ui" line="100"/>
<source>&amp;Language</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="102"/>
<location filename="main.ui" line="105"/>
<source>&amp;Help</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="206"/>
<location filename="mainwindow.cpp" line="202"/>
<source>Select files to check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="215"/>
<location filename="mainwindow.cpp" line="211"/>
<source>Select directory to check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="244"/>
<location filename="mainwindow.cpp" line="240"/>
<source>No suitable files found to check!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="442"/>
<source>Cannot exit while checking.
Stop the checking before exiting.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="492"/>
<location filename="mainwindow.cpp" line="488"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="499"/>
<location filename="mainwindow.cpp" line="495"/>
<source>Authors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="507"/>
<location filename="mainwindow.cpp" line="503"/>
<source>XML files (*.xml);;Text files (*.txt)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="509"/>
<location filename="mainwindow.cpp" line="505"/>
<source>Save the report file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="517"/>
<location filename="mainwindow.cpp" line="513"/>
<source>XML files (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="550"/>
<location filename="mainwindow.cpp" line="546"/>
<source>Cppcheck - %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="567"/>
<location filename="mainwindow.cpp" line="563"/>
<source>Failed to change language:
%1</source>

View File

@ -118,227 +118,227 @@ kate -l(line) (file)</source>
<name>MainWindow</name>
<message>
<location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="566"/>
<location filename="mainwindow.cpp" line="239"/>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="544"/>
<location filename="mainwindow.cpp" line="562"/>
<source>Cppcheck</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="253"/>
<location filename="main.ui" line="136"/>
<source>Standard</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="255"/>
<source>Show possible false positives</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="74"/>
<location filename="main.ui" line="77"/>
<source>&amp;File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="81"/>
<location filename="main.ui" line="84"/>
<source>&amp;View</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="110"/>
<location filename="main.ui" line="113"/>
<source>&amp;Check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="119"/>
<location filename="main.ui" line="122"/>
<source>&amp;Edit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="134"/>
<source>toolBar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="152"/>
<location filename="main.ui" line="154"/>
<source>&amp;License...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="157"/>
<location filename="main.ui" line="159"/>
<source>A&amp;uthors...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="166"/>
<location filename="main.ui" line="168"/>
<source>&amp;About...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="171"/>
<location filename="main.ui" line="173"/>
<source>&amp;Files...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="174"/>
<location filename="main.ui" line="176"/>
<source>Ctrl+F</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="183"/>
<location filename="main.ui" line="185"/>
<source>&amp;Directory...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="186"/>
<location filename="main.ui" line="188"/>
<source>Ctrl+D</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="195"/>
<location filename="main.ui" line="197"/>
<source>&amp;Recheck files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="198"/>
<location filename="main.ui" line="200"/>
<source>Ctrl+R</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="207"/>
<location filename="main.ui" line="209"/>
<source>&amp;Stop</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="210"/>
<location filename="main.ui" line="212"/>
<source>Esc</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="219"/>
<location filename="main.ui" line="221"/>
<source>&amp;Save results to file...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="222"/>
<location filename="main.ui" line="224"/>
<source>Ctrl+S</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="227"/>
<location filename="main.ui" line="229"/>
<source>&amp;Quit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="236"/>
<location filename="main.ui" line="238"/>
<source>&amp;Clear results</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="245"/>
<location filename="main.ui" line="247"/>
<source>&amp;Preferences</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="261"/>
<location filename="main.ui" line="263"/>
<source>Show security errors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="269"/>
<location filename="main.ui" line="271"/>
<source>Show style errors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="277"/>
<location filename="main.ui" line="279"/>
<source>Show common errors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="282"/>
<location filename="main.ui" line="284"/>
<source>&amp;Check all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="287"/>
<location filename="main.ui" line="289"/>
<source>&amp;Uncheck all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="292"/>
<location filename="main.ui" line="294"/>
<source>Collapse &amp;all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="297"/>
<location filename="main.ui" line="299"/>
<source>&amp;Expand all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="305"/>
<location filename="main.ui" line="307"/>
<source>&amp;Toolbar</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="97"/>
<location filename="main.ui" line="100"/>
<source>&amp;Language</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="main.ui" line="102"/>
<location filename="main.ui" line="105"/>
<source>&amp;Help</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="206"/>
<location filename="mainwindow.cpp" line="202"/>
<source>Select files to check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="215"/>
<location filename="mainwindow.cpp" line="211"/>
<source>Select directory to check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="244"/>
<location filename="mainwindow.cpp" line="240"/>
<source>No suitable files found to check!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="446"/>
<location filename="mainwindow.cpp" line="442"/>
<source>Cannot exit while checking.
Stop the checking before exiting.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="492"/>
<location filename="mainwindow.cpp" line="488"/>
<source>License</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="499"/>
<location filename="mainwindow.cpp" line="495"/>
<source>Authors</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="507"/>
<location filename="mainwindow.cpp" line="503"/>
<source>XML files (*.xml);;Text files (*.txt)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="509"/>
<location filename="mainwindow.cpp" line="505"/>
<source>Save the report file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="517"/>
<location filename="mainwindow.cpp" line="513"/>
<source>XML files (*.xml)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="550"/>
<location filename="mainwindow.cpp" line="546"/>
<source>Cppcheck - %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="mainwindow.cpp" line="567"/>
<location filename="mainwindow.cpp" line="563"/>
<source>Failed to change language:
%1</source>

View File

@ -63,7 +63,7 @@
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<widget class="QMenuBar" name="mMenuBar">
<property name="geometry">
<rect>
<x>0</x>
@ -72,14 +72,14 @@
<height>24</height>
</rect>
</property>
<widget class="QMenu" name="menu_File">
<widget class="QMenu" name="mMenuFile">
<property name="title">
<string>&amp;File</string>
</property>
<addaction name="mActionSave"/>
<addaction name="mActionQuit"/>
</widget>
<widget class="QMenu" name="menu_View">
<widget class="QMenu" name="mMenuView">
<property name="title">
<string>&amp;View</string>
</property>
@ -95,12 +95,12 @@
<addaction name="separator"/>
<addaction name="mActionToolbar"/>
</widget>
<widget class="QMenu" name="menu_Language">
<widget class="QMenu" name="mMenuLanguage">
<property name="title">
<string>&amp;Language</string>
</property>
</widget>
<widget class="QMenu" name="menu_Help">
<widget class="QMenu" name="mMenuHelp">
<property name="title">
<string>&amp;Help</string>
</property>
@ -108,7 +108,7 @@
<addaction name="mActionAuthors"/>
<addaction name="mActionAbout"/>
</widget>
<widget class="QMenu" name="menu_Check">
<widget class="QMenu" name="mMenuCheck">
<property name="title">
<string>&amp;Check</string>
</property>
@ -117,23 +117,23 @@
<addaction name="mActionRecheck"/>
<addaction name="mActionStop"/>
</widget>
<widget class="QMenu" name="menu_Edit">
<widget class="QMenu" name="mMenuEdit">
<property name="title">
<string>&amp;Edit</string>
</property>
<addaction name="mActionClearResults"/>
<addaction name="mActionSettings"/>
</widget>
<addaction name="menu_File"/>
<addaction name="menu_Edit"/>
<addaction name="menu_View"/>
<addaction name="menu_Check"/>
<addaction name="menu_Language"/>
<addaction name="menu_Help"/>
<addaction name="mMenuFile"/>
<addaction name="mMenuEdit"/>
<addaction name="mMenuView"/>
<addaction name="mMenuCheck"/>
<addaction name="mMenuLanguage"/>
<addaction name="mMenuHelp"/>
</widget>
<widget class="QToolBar" name="toolBar">
<widget class="QToolBar" name="mToolBar">
<property name="windowTitle">
<string>toolBar</string>
<string>Standard</string>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>

View File

@ -75,7 +75,7 @@ MainWindow::MainWindow() :
connect(mUI.mActionAuthors, SIGNAL(triggered()), this, SLOT(ShowAuthors()));
connect(mThread, SIGNAL(Done()), this, SLOT(CheckDone()));
connect(mUI.mResults, SIGNAL(GotResults()), this, SLOT(ResultsAdded()));
connect(mUI.mMenuView, SIGNAL(aboutToShow()), this, SLOT(AboutToShowViewMenu()));
CreateLanguageMenuItems();
@ -101,10 +101,6 @@ MainWindow::~MainWindow()
void MainWindow::CreateLanguageMenuItems()
{
QStringList languages = mTranslation->GetNames();
for (int i = 0; i < languages.size(); i++)
@ -116,7 +112,7 @@ void MainWindow::CreateLanguageMenuItems()
temp->setCheckable(true);
//Add the action to menu
mUI.menu_Language->addAction(temp);
mUI.mMenuLanguage->addAction(temp);
//Add action to the group
mLanguages->addAction(temp);
@ -164,7 +160,7 @@ void MainWindow::LoadSettings()
mUI.mResults->ShowResults(SHOW_STYLE, mUI.mActionShowStyle->isChecked());
mUI.mActionToolbar->setChecked(mSettings->value(SETTINGS_TOOLBARS_SHOW, true).toBool());
mUI.toolBar->setVisible(mSettings->value(SETTINGS_TOOLBARS_SHOW, true).toBool());
mUI.mToolBar->setVisible(mSettings->value(SETTINGS_TOOLBARS_SHOW, true).toBool());
mApplications->LoadSettings(mSettings);
@ -538,7 +534,7 @@ void MainWindow::ResultsAdded()
void MainWindow::ToggleToolbar()
{
mUI.toolBar->setVisible(mUI.mActionToolbar->isChecked());
mUI.mToolBar->setVisible(mUI.mActionToolbar->isChecked());
}
void MainWindow::FormatAndSetTitle(const QString &text)
@ -602,3 +598,7 @@ void MainWindow::MapLanguage(QAction *action)
}
}
void MainWindow::AboutToShowViewMenu()
{
mUI.mActionToolbar->setChecked(mUI.mToolBar->isVisible());
}

View File

@ -163,6 +163,10 @@ protected slots:
*/
void ToggleToolbar();
/**
* @brief Slot for updating View-menu before it is shown.
*/
void AboutToShowViewMenu();
protected: