Commit Graph

884 Commits

Author SHA1 Message Date
PKEuS b1b2b9b66b Use standard Qt buttons in LogView. Recreate LogView when changing language (#3647) 2013-03-01 12:07:34 -08:00
PKEuS a1926a8f89 Partial Fix for #3647: Provide translations for standard Qt buttons 2013-03-01 11:07:28 -08:00
PKEuS c4b711c0a7 Improved GUI translation:
- Allow translating texts before before Window is created
-> Translate help text
- Use AboutDialog instead of message box on Windows when starting GUI with -v
2013-03-01 10:11:27 -08:00
Alexander Mai dc88f20201 Implement -v and --version for GUI 2013-03-01 17:43:53 +01:00
PKEuS 4c23f0101a Updated translations:
- ran lupdate gui.pro
- Updated german translation
- Removed obsolete translations for file dialog
2013-03-01 07:10:44 -08:00
PKEuS d9f982443d Ran astyle 2013-02-19 12:39:50 -08:00
Mateusz Pusz 2f47b82090 Storing last path implemented according to received feedback 2013-02-17 19:59:57 +01:00
Mateusz Pusz c6520ffafe doxygen comments added 2013-02-17 19:59:56 +01:00
Mateusz Pusz 7301a3e64d QFileDialog last used paths storage improved 2013-02-17 19:59:56 +01:00
PKEuS 107dd31e50 Fixed calculation of statistics in GUI (#4578) 2013-02-15 07:49:36 -08:00
dencat b56d2a1364 update russian translation 2013-02-14 13:26:38 +04:00
Daniel Marjamäki b660cf89ef astyle formatting 2013-02-10 23:53:01 +01:00
Daniel Marjamäki ea574b0a38 GUI: Enable 'warning' severity implicitly 2013-02-10 23:19:07 +01:00
Daniel Marjamäki e18888cd4d Merge pull request #135 from acmyo/gcc346
fix misspellings & gcc v3.4.6 warnings
2013-02-10 01:21:58 -08:00
Daniel Marjamäki e4b8512bc7 GUI: Reverted 'GUI while opening FileDialog now remembers last path used' 2013-02-10 08:15:32 +01:00
unknown 6fdb24b7e7 GUI: Added extra command line parameters for opening a results file and for specifying which folder the results apply to 2013-02-10 07:50:47 +01:00
Andrew C. Martin bd0d9b9639 fix misspellings & gcc v3.4.6 warnings
1.  fix typos / misspellings
 - Fix misspelling within comments, variable/function names, stdout messages
 - changes the name of an error code: ```stlBoundries``` changed to ```stlBoundaries```.  Alias old name (```stlBoundries```) to the new one.

2.  fix gcc v3.4.6 32bit & 64bit warnings

 - fixes gcc v3.4.6 warnings, except for those in tinyxml and "-Wmissing-declarations" makefile warnings
 - in Preprocessor::handleIncludes(), replace a ```vector <bool>``` with ```stack<bool>``` (see ```vector<bool>``` warning below).
   - this is the only ```vector<bool>``` in the codebase
 - ```vector <bool>``` is actually a case of template specialization, and is not recommended, according to the following links:

http://stackoverflow.com/q/6461487
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2160.html
http://stackoverflow.com/q/670308

 - in the codebase before and after this change, testrunner SEGVs in a number of places on gcc v3.4.6, including ```Check::~Check()```, among others
   - fc42fc95 fixes this particular runtime issue for DJGPP & __sun
2013-02-09 23:43:09 -07:00
Daniel Marjamäki ff89997d89 Merge pull request #132 from mpusz/hide_all_with_id
"Hide all with id" popup menu item added
2013-02-09 22:33:39 -08:00
Daniel Marjamki 318ace7879 astyle formatting 2013-02-09 19:36:48 +01:00
Mateusz Pusz 90c0a6408f Translations updated 2013-02-08 08:26:24 +01:00
Mateusz Pusz 013de4857c GUI while opening FileDialog now remembers last path used 2013-02-07 18:06:11 +01:00
Mateusz Pusz 8b2a058539 "Hide all with id" popup menu item added
Give the user a chance to quickly hide all errors of specific type he is not interested in.
2013-02-07 18:05:51 +01:00
Daniel Marjamäki 446f326225 GUI: fixed cppcheck-warning for comparing unsigned variable with '<= 0' 2013-02-04 20:38:29 +01:00
dencat 95b244d4e1 update russian translation 2013-02-01 17:50:28 +04:00
PKEuS ea40fb60d1 Updated german translation 2013-01-25 14:05:31 -08:00
XhmikosR 645126fb8e remove double trailing semicolons 2013-01-23 06:48:21 +01:00
Andrew C. Martin 4a73c93750 Fix compiler warnings and comment/string typos
- fix g++ warning:

> lib/checkother.cpp:3779: warning: comparison between signed and unsigned integer expressions

 - fix suncc warning (see [everything2](http://everything2.com/title/C%252B%252B%253A+static+extern+%2522C%2522)):

> "lib/checkmemoryleak.cpp", line 578: Warning (Anachronism): Formal argument __compar of type extern "C" int(*)(const void*,const void*) in call to bsearch(const void*, const void*, unsigned long, unsigned long, extern "C" int(*)(const void*,const void*)) is being passed int(*)(const void*,const void*).

- prefer empty() / isEmpty() over "size() > 0" (cases not caught by stlSize)

- fix word misspellings (mostly comments, a few output lines)

  - Parenthesis => Parentheses (both variations were used in the codebase)

  - fix typo and wording ("never alwayw") in gui/test/data/benchmark/simple.cpp's CheckOther::unsignedPositive():

```
-  "An unsigned variable will never alwayw be positive so it is either pointless or "
+  "An unsigned variable can't be negative so it is either pointless or "
```
2013-01-16 07:37:07 -07:00
PKEuS 25e07c2466 Updated copyright year in about dialog 2013-01-12 17:50:09 +01:00
Daniel Marjamäki 6bf47212c2 Fixed #4479 (GUI tests fail) 2013-01-12 10:44:13 +01:00
XhmikosR 8d5afa7083 update translations 2013-01-07 19:53:32 +01:00
Daniel Marjamäki d5dfd5a006 GUI: removed my clumpsy selectfiles dialog. use the standard file selection dialog instead. 2013-01-04 10:23:16 +01:00
Edoardo Prezioso 9455542e81 Update cppcheck translations. 2013-01-02 15:43:54 +01:00
Reijo Tomperi 5d5f7085bf Updating year 2012 -> 2013 to .cpp and .h files and man page. 2013-01-01 18:29:08 +02:00
XhmikosR b7501a1db0 buildhelp.bat: Add missing popd 2012-12-23 10:58:33 +01:00
He Yuqi 6e6f864072 Update the Chinese translation. 2012-12-21 11:32:25 +08:00
He Yuqi ee095cbc97 Update the Chinese translation. 2012-12-20 21:31:08 +08:00
He Yuqi c5a2cd25ec Update the Chinese translation. 2012-12-19 22:28:45 +08:00
He Yuqi 5a21c7622f Update the Chinese translation. 2012-12-19 18:23:29 +08:00
He Yuqi df2523f956 Update the chinese translation. 2012-12-19 00:23:41 +08:00
He Yuqi d89a4cfd8a Create the translation file for Simplified Chinese. 2012-12-18 17:53:14 +08:00
Reijo Tomperi 8780713c51 Add test case (in comments) for exclude directory bug in gui. 2012-12-13 00:16:24 +02:00
PKEuS 1f87961c16 Fixed recent regression in GUI: multiple messages with same Id in the same line weren't shown 2012-12-07 04:35:14 -08:00
PKEuS 2a1ca20795 Fixed duplicate rows on windows when file name case differs (#2041) 2012-12-07 03:54:28 -08:00
Edoardo Prezioso 0273c183a7 Run astyle and update the translation files.
I believe we need a hook script because else everytime we change a file we have to make a new commit to fix the discrepancies problems.
2012-12-07 01:49:51 +01:00
Frank Zingsheim a24f224a38 Revert "Support for older Qt versions which do not support "setPlaceholderText""
This reverts commit 9784a426f4.

Support for older Qt versions is not desired.
See https://github.com/danmar/cppcheck/pull/31
2012-12-06 22:21:44 +01:00
PKEuS ae447a192a Removed some more nested redundant QHBoxLayout/QVBoxLayout/QWidget were it is safe to remove them. 2012-12-06 19:00:38 +01:00
PKEuS 77bab29809 Updated german translation 2012-12-06 18:57:19 +01:00
Frank Zingsheim 9784a426f4 Support for older Qt versions which do not support "setPlaceholderText" 2012-12-04 22:47:47 +01:00
XhmikosR b0a3ef33ef compress gui images losslessly 2012-12-01 17:22:19 +01:00
Edoardo Prezioso 072ad3e344 Updated the translation files with lupdate+lrelease.
Updated also the Italian translation which became useless, should be done the same for the other files.
2012-12-01 03:30:26 +01:00
PKEuS 5f8496407f Fixed #4357: Wrongly configured slot caused Ok() handler being not called. 2012-11-30 12:38:41 +01:00
Edoardo Prezioso 66627e0608 Update Italian translation, fix German translation 2012-11-03 23:36:03 +01:00
PKEuS 01f929a7e2 Updated german translation 2012-11-03 21:46:01 +01:00
PKEuS 869966cbbf Updated .ts files 2012-11-03 21:42:59 +01:00
Alexander Mai dc6d0c0dea Added Copy message Id to context menu (#4327) 2012-11-03 21:41:42 +01:00
arm_in c46eb66a3a Fixed typos in german translation. Fixed typo in platforms.cpp 2012-11-03 21:30:06 +01:00
PKEuS ca073bdaad Set parent of LogView. 2012-10-27 13:24:58 +02:00
Edoardo Prezioso b44ad4e277 Update translation files. 2012-10-27 12:28:47 +02:00
PKEuS 10d338d4a7 Removed unnecessary call to AboutToShowViewMenu() -> Increase constness of MainWindow::SaveSettings() 2012-10-27 12:26:51 +02:00
PKEuS 7c8f6173c1 Don't need parent of QObject to be set in Report -> Increase constness of ResultsView::Save()
- our code already deletes all Report instances; there is no need for garbage collector
2012-10-27 12:22:56 +02:00
PKEuS fc78cac797 Made several functions in GUI static or const
Fixed cppcheck message about wrong order in initializer list
2012-10-27 12:10:32 +02:00
PKEuS c56170acfa Refactorization: Avoid copying Application instances. 2012-10-27 11:35:00 +02:00
PKEuS 0fe2deafe5 Fixed compiler error introduced by last commit. 2012-10-27 11:18:41 +02:00
PKEuS 7ffffdfc16 Optionally display error Id in additional column and details view (#3526) 2012-10-27 11:16:52 +02:00
PKEuS 8750c93a7a GUI Translation updates:
- Updated german translation
- Removed obsolete strings from ko and sv translation
2012-10-26 13:19:15 +02:00
Edoardo Prezioso ad1e65d290 Update translations files. 2012-10-24 03:19:38 +02:00
Edoardo Prezioso b50e1f4451 Attempt to fix all doxygen warnings. 2012-10-24 01:32:07 +02:00
PKEuS b06cebe9b5 Simplification: Don't call LoadProjectFile with empty filename 2012-10-21 11:40:01 +02:00
PKEuS 14eede1cba Show translated name of severities in ResultsTree.
Removed redundant break; from switch, removed redundant return (MSVC warning)
2012-10-21 11:37:23 +02:00
PKEuS d7bdb90bc9 Refactorizations in Report classes:
- Base class destructor already calls Close() - removed redundant call
- Avoid creation of temporary variable
2012-10-21 10:33:11 +02:00
PKEuS be52a1404b Replaced local implementations of Severity<->String conversions by wrappers of functions in /lib 2012-10-20 21:11:34 +02:00
PKEuS f63e68fcaa Refactorizations:
- Don't declare functions as slots if they are no slots (one recently added)
- Made some members private instead of protected
2012-10-20 20:32:22 +02:00
PKEuS 70ad457992 New Feature "Scratchpad" added to GUI. (#4166) 2012-10-20 20:14:52 +02:00
PKEuS e7904bd7a8 Rely on on-demand creation of MainWindow::mLogView 2012-10-20 20:05:02 +02:00
PKEuS e44e6837c2 Fixed several doxygen-comments in lib and gui 2012-10-19 11:29:05 +02:00
PKEuS 60271a5819 Simplified some switch statements and removed redundant code (VS warning) in GUI. 2012-10-19 11:08:50 +02:00
Edoardo Prezioso 9e147c4a0a Makefile: update with 'dmake'; gui: run 'lupdate gui.pro ; lrelease gui.pro'. 2012-10-15 02:25:26 +02:00
PKEuS 4995ab7828 Fixed #4284 2012-10-14 17:40:51 +02:00
PKEuS d152ec31f1 Use the same style for inconclusive errors as in CLI when writing txt reports. 2012-10-14 16:28:34 +02:00
PKEuS 8c9748063b Set notr="true" for strings that are never displayed. 2012-10-14 16:14:47 +02:00
PKEuS f26b82e172 Removed redundant, nested QVBoxLayout controls 2012-10-14 16:09:45 +02:00
PKEuS 9b48c3d3e9 Slightly changed layout of stats dialog: Reduced height of form to reduce empty space on screen. 2012-10-14 15:51:38 +02:00
PKEuS b0f5b7dce0 Fixed freeze when canceling projectfile dialog when creating a new Project.
Updated gui.pro (forgot it in last commit)
2012-10-14 14:13:54 +02:00
PKEuS 67fb2dc2c9 Removed unnecessary copy-ctor and dtor in class ErrorItem - they are generated automatically. Use initializer list in remaining ctors. 2012-10-14 12:42:44 +02:00
PKEuS b9da806492 Fixed setting default application at first start. 2012-10-14 12:10:30 +02:00
PKEuS fc53b15fa4 Refactorized resource files:
- Stored global information about cppcheck version and copyright string in a single resource.h file.
- Use macros of windows.h instead of numeric values for filetype, etc.
- Added versioninfo metadata to lib (#4275)
- Removed VS resource editor code from resource files - these files shouldn't be modified with it to avoid information loss
- Renamed files to version.h/rc
- Encoded files as ANSI again - use escape sequences for unicode characters in literals (#4281)
2012-10-14 10:21:22 +02:00
PKEuS e1e154721a Fixed detection of multiple editors on non-Windows systems
Don't look for Windows editors on Linux and vice-versa
2012-10-12 20:28:31 +02:00
PKEuS a2548d1319 Partially fixed detection of multiple editors on Windows (setting default is still broken) 2012-10-12 20:06:40 +02:00
XhmikosR 857ea9fb0d remove unneeded spaces and empty lines 2012-10-12 17:46:57 +02:00
XhmikosR 8d08c3b58b pro and pri files: remove unneeded empty lines, use spaces for consistency 2012-10-12 17:46:57 +02:00
XhmikosR 85f75179ff gui: tabs to spaces and remove extra empty lines at the end of files 2012-10-12 17:46:57 +02:00
PKEuS 3c4c547fcf Encoded .rc files as UTF16 LE. (#4279) 2012-10-12 13:13:06 +02:00
Edoardo Prezioso 74d735247f run 'lupdate gui.pro ; lrelease gui.pro'. 2012-10-07 23:53:42 +02:00
PKEuS b1a768e5ec Cleanup of includes in GUI (Removed redundant includes, use forward declarations) - Build speedup by 3% in VS10 (LINKCORE=yes, Qt 4.8.3) 2012-10-07 12:25:34 +02:00
PKEuS fa5c8fb90b Added support to link cppcheck-core dynamically into GUI (use LINKCORE=yes when calling qmake) 2012-10-06 21:23:52 +02:00
PKEuS 47ca73c00a Hide recently added include by preprocessor configuration (as "suggested" by comment) 2012-10-06 12:19:01 +02:00
XhmikosR 830f4559a0 batch files: switch to the batch file directory before doing anything else so that relative paths work right even if the batch file isn't called from its directory 2012-09-29 17:32:04 +02:00
Alexander Mai b15cb09af6 Fixed #3489 ('cppcheck-gui -h' doesnt work on WinXP) 2012-09-26 20:26:46 +02:00
Edoardo Prezioso 3f4e8e81a9 GUI: fixed spotted italian translation error. 2012-09-17 12:17:18 +02:00
Edoardo Prezioso c2bca552e5 GUI: Forgot to add the Italian entry in the translation handler; run 'lupdate gui.pro ; lrelease gui.pro'. 2012-09-17 12:07:45 +02:00