Commit Graph

970 Commits

Author SHA1 Message Date
Daniel Marjamäki 803182bf45 Reverted 'GUI: Added CFGDIR qmake flag' there are various installation problems and this only fixes one of them. 2013-12-31 10:35:34 +01:00
Daniel Marjamäki 24a9da3771 GUI: Add suppressions to project file 2013-12-30 22:32:50 +01:00
Daniel Marjamäki c143b02e67 GUI: Added CFGDIR qmake flag 2013-12-30 09:01:44 +01:00
Daniel Marjamäki ac91aa4fdf GUI: Load user-selected library properly 2013-12-30 00:23:42 +01:00
Daniel Marjamäki bf8bb29938 GUI: Allow user to choose any available library file 2013-12-30 00:05:03 +01:00
Daniel Marjamäki 9698387d3a GUI: Add libraries setting to project 2013-12-29 18:06:31 +01:00
Daniel Marjamäki 562387e3ff library: use extensions when loading std.cfg and posix.cfg 2013-12-26 13:18:54 +01:00
Daniel Marjamäki 6785f07458 GUI: Use tr() to make visible strings translatable. 2013-12-26 11:24:05 +01:00
Daniel Marjamäki 4131c621c9 Fixed #5254 (Warn about missing library files (.cfg)) 2013-12-26 11:15:28 +01:00
Lucas Manuel Rodriguez a15561d7eb Update Spanish GUI translation file with Qt Linguist 2013-12-25 17:38:55 -03:00
Daniel Marjamäki 76b907fe65 Fixed #5252 (Improve check: use Library to validate function arguments in invalidFunctionUsage) 2013-12-23 10:06:45 +01:00
XhmikosR 38471babf9 Reduce variable scope. 2013-11-05 08:10:44 +02:00
XhmikosR 549e464dcf Run lupdate. 2013-10-23 09:05:39 +03:00
Elbert Pol c6a628249a GUI: Improved translation 2013-10-19 18:12:10 +02:00
PKEuS 7d39a2d8bd Ran lupdate gui.pro 2013-10-12 12:33:03 +02:00
Daniel Marjamäki 2b3e1a28d8 Reverted 4f76f8f558 (GUI: wrong multiselection behaviour) 2013-09-07 19:38:40 +02:00
Daniel Marjamäki 6e536b9e35 astyle formatting 2013-08-21 22:53:46 +02:00
Daniel Marjamäki 4f76f8f558 Fixed #4606 (GUI: Allows selection of multiple directories then does nothing) 2013-08-21 22:51:33 +02:00
PKEuS 2413655d3d Moved GUI translations into subdirectory /lang 2013-08-03 20:21:13 +02:00
PKEuS 5a92af2556 lupdate gui.pro 2013-08-03 19:05:15 +02:00
Daniel Marjamäki 0c5e39a813 Library: Added configuration file std.cfg that clients should load. 2013-07-20 17:12:56 +02:00
Daniel Marjamäki 941da42cfd GUI: updated swedish translation 2013-07-20 16:01:02 +02:00
Kimmo Varis d1ec81771c Fixed 3191 (GUI: Does not compile against Qt 5) 2013-07-13 09:16:15 +02:00
XhmikosR 849292f821 Run lupdate. 2013-07-06 17:19:36 +02:00
Daniel Marjamäki bafdb80110 Revert "GUI: Added --std setting for GTK"
This reverts commit 5f5fdab650.

The --std setting for GTK has been removed
2013-07-05 21:53:19 +02:00
vBm 8340d32460 Update Serbian localization 2013-06-30 16:45:05 +02:00
XhmikosR d517e12043 Run lupdate. 2013-06-30 12:41:59 +02:00
XhmikosR 850cfe2be2 Compress gui/images/go-home.png a little more. 2013-06-30 12:41:59 +02:00
Daniel Marjamki 5f5fdab650 GUI: Added --std setting for GTK 2013-06-29 19:40:22 +02:00
Zachary Blair a381170886 Fixed #4874 (Minor spelling corrections) 2013-06-26 00:47:02 -07:00
Daniel Marjamäki 02fbf15557 Fixed #4855 (GUI: The checking of the file will be interrupted because there are too many #ifdef configurations.) 2013-06-18 14:14:33 +02:00
Дмитрий Старцев c5d33e163c GUI: Updated russian translation 2013-06-17 19:48:29 +02:00
XhmikosR 17b4a906ea gui: losslessly compress images with https://github.com/subzey/zopfli-png 2013-05-08 18:36:35 +02:00
PKEuS a94598e447 Fixed some gcc and cppcheck messages 2013-03-05 07:07:59 -08:00
PKEuS f1ad74da80 Ran lupdate gui.pro 2013-03-02 09:09:04 -08:00
PKEuS 30bdab5d8d Added support for new code standard options to GUI (#4132) 2013-03-02 04:01:21 -08:00
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
Edoardo Prezioso 2bf8195a22 New language file: Italian. 2012-09-16 13:21:46 +02:00
Edoardo Prezioso eca4ab344f run 'lupdate gui.pro && lrelease gui.pro' 2012-09-16 13:17:47 +02:00
Daniel Marjamäki 7753258eca reverted my change 7852b7e8 2012-09-15 21:13:31 +02:00
Edoardo Prezioso f410db6499 run 'lupdate gui.pro && lrelease gui.pro'. 2012-09-15 21:01:36 +02:00
Daniel Marjamäki 7852b7e8e0 gui: fixed 'variable is assigned a value that is never used' warnings 2012-09-15 16:13:22 +02:00
XhmikosR 2794d3dfd2 add Notepad2/Notepad2-mod in the application's list 2012-09-15 15:27:39 +02:00
XhmikosR d69293a929 rename "QT" to "Qt" 2012-09-15 15:24:32 +02:00
Daniel Marjamäki e809e246d0 Merge pull request #112 from kimmov/gui-fixes
Gui fixes
2012-09-09 07:33:14 -07:00
XhmikosR f7d0d8129c improve gui/help/buildhelp.bat 2012-09-06 18:25:29 +02:00
Kimmo Varis ba49d856bd GUI: Update translation files. 2012-09-05 22:23:48 +03:00
Kimmo Varis 6d75cdf7c2 GUI: Don't warn about empty results after re-check.
If user tried to save results after re-checking files and not
getting new results by the re-check, the save was failed since
Cppcheck thought there were no results. This was caused by wrong
clearing of "has results" flag when removing single items from
the results.

Ticket: #4121 (Bogus error message when saving the report)
2012-09-05 22:01:50 +03:00
Kimmo Varis 8025b8bab4 GUI: Fix extra space in German translation file. 2012-09-05 18:33:55 +03:00
Daniel Marjamäki 475f12eec3 gui: fixed compiler errors 2012-08-26 08:19:43 +02:00
PKEuS 28efd10dbd Updated german translation 2012-08-02 07:14:36 -07:00