Commit Graph

810 Commits

Author SHA1 Message Date
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
Kimmo Varis a597bb1ec8 GUI: Update translation files. 2012-08-02 15:31:26 +03:00
Kimmo Varis e490852476 GUI: Clear current results before opening XML.
Currently if there were results in the GUI the results from XML
file were imported to list of results. This is confusing and not
what users usually want to do.

This patch makes GUI to clear the results before opening new
results from XML file.

Ticket #3829 (Rename open xml to import xml)
2012-08-02 15:29:55 +03:00
Kimmo Varis c843e9a763 GUI: Update translation files. 2012-08-02 10:26:21 +03:00
Kimmo Varis 602c93098e GUI: Remove Polish translation.
The Polish translation doesn't have any translated text. So it is
only waste of resources to have it available. And it may confuse
some people who try it.

Ticket #4008 (GUI: Polish translation does not translate and should be removed)
2012-08-02 10:21:13 +03:00
Changkyoon Kim 9d0fb1a169 GUI: Added Korean translation 2012-07-28 15:10:39 +02:00
Ryan Pavlik 9b1ef68713 In case of Windows, tell qmake it's a windows gui app 2012-04-30 11:47:40 -05:00
Daniel Marjamäki f5f7696d7d gui.pro: removed debug option that was added by mistake 2012-04-26 20:21:34 +02:00
PKEuS 3eede5ba8c Fixed/Improved description of -rp/--relative-paths
run astyle
2012-04-14 16:07:37 +02:00
Reijo Tomperi 8777842a23 Add missing license text to gui/selectfilesdialog.* files 2012-04-14 06:01:12 +03:00
PKEuS 6643e14d3c Avoid copying Settings in CppCheckExecutor 2012-04-06 14:19:26 +02:00
Stefan Weil cbfd1349b3 manual: fix grammar in documentation 2012-03-18 16:50:15 +01:00
larudwer e0c880133c on Windows Backslashes in Pathnames must be double quoted, otherwise some editors like e.c. SciTE are not able to open the file. 2012-03-04 15:53:39 +01:00
PKEuS fbef32d27b Updated german translation (nearly complete)
Added my name to AUTHORS (forgotten for a long time)
2012-03-02 16:20:15 +01:00
vBm 3d612b4bef Added my full name to AUTHORS
Updated Serbian localization file. (yet to be translated)
2012-03-01 22:58:51 +01:00
Ettl Martin ff1edbc98a gui: fixed wrong spelled words in comments. 2012-02-15 23:00:13 +01:00
Daniel Marjamäki 87a118cd16 GUI: Recheck changed files. Ticket: #816 2012-02-14 21:16:11 +01:00
Daniel Marjamäki 3c30dad5f1 GUI: updated copyright text in about dialog 2012-02-12 02:57:40 +01:00
Daniel Marjamäki 37305972fc GUI: Removed translations for english. There is no reason to translate a string from english to english. 2012-02-12 02:55:48 +01:00
lioncash 18e95ee83e Update the Japanese language translation file.
When I updated it through QT, it added some missing things to the other translation files, I hope that doesn't break anything :x

So far from what I've tested, everything works fine.
2012-01-28 14:50:27 -05:00
Daniel Marjamäki 9f493c7c51 GUI: Refactorings. Changed names. Added comments. 2012-01-15 07:59:54 +01:00
Daniel Marjamäki fe12b280b9 GUI: In the selectfiles dialog use partial selection if some children are checked and others are not 2012-01-15 07:43:50 +01:00
Daniel Marjamäki e43fa83aa4 GUI: SelectFilesDialog: increased the height somewhat 2012-01-13 06:34:07 +01:00
Daniel Marjamäki bcd04dd79e GUI: SelectFilesDialog: Changed text for OK button to 'Check' 2012-01-13 06:33:10 +01:00
Daniel Marjamäki d8a1a693d5 GUI: Fixed path match problem that caused extra directories to be selected/unselected 2012-01-13 06:18:56 +01:00
Reijo Tomperi da09adc583 Fix #3510 (Improve error message for --suppressions-list)
http://sourceforge.net/apps/trac/cppcheck/ticket/3510
Print additional info to error message if we suspect that multiple files were given.
2012-01-12 22:21:51 +02:00
Daniel Marjamäki 34105cb17e GUI: Use SelectFilesDialog result if OK button is pressed 2012-01-12 07:51:59 +01:00
Daniel Marjamäki feb187cb02 GUI: Added ui file for the selectfilesdialog 2012-01-11 21:32:52 +01:00
Daniel Marjamaki 833f9af107 GUI: give the SelectFilesDialog a parent widget 2012-01-11 06:26:24 +01:00
Daniel Marjamaki 8df66c9df7 GUI: SelectFilesDialog - tweaked behaviour when unchecking a folder and checking a subfolder 2012-01-11 06:20:30 +01:00
Daniel Marjamaki 9beb38a74d GUI: SelectFilesDialog - set root path to '/'. More files are selectable. 2012-01-11 06:01:14 +01:00
Daniel Marjamäki fe3d6bf8ea Merge pull request #75 from kimmov/guifixes
GUI fixes + VS 2008 project files update
2012-01-10 13:41:07 -08:00
Daniel Marjamäki fb248ed270 GUI: New experimental dialog for selecting files to check 2012-01-10 22:39:22 +01:00
Kimmo Varis cc92f1c432 GUI: Add include paths as relative to project file.
When adding a new include path check if the path is relative path to
the project file's path. If path is relative then remove the begin of
the path making it a relative path in project file.

Ticket: #3019 (GUI: Add project include paths as relative paths)
2012-01-10 22:14:51 +02:00
Kimmo Varis c74e246e9b GUI: Remeber last path where project file was opened from.
It is handy to remember the last location of the opened project file.
Currently the Open Project -dialog was always opened to location of
the executable file. Which is never the correct place. But last
opened project file location might at least be near the location user
wants to open next.

Ticket: #3493 (GUI: remember last path in Open Project File)
2012-01-10 21:40:11 +02:00
Kimmo Varis 362c5f604c GUI: Fix crash opening project file from command line.
The GUI crashed if the project file was tried to open from the
command line. The project file loading was run before the MRU menu
was created but tried to add a new item to it.
2012-01-10 21:16:47 +02:00
Reijo Tomperi 8cae17fda8 Update year to 2012 2012-01-01 01:05:37 +02:00
Kimmo Varis 314fd25f6e GUI: Disable project MRU items while checking.
Project file can't be opened when the check is running. So the menu
items must be disabled.

Fixes ticket: #3446 (GUI: MRU items must be disabled while checking)
2011-12-28 11:52:18 +02:00
Daniel Marjamäki 2d0531227f Merge pull request #72 from kimmov/gui-standards
Add standards support for the GUI
2011-12-27 21:55:46 -08:00
Kimmo Varis 2356e593e0 GUI: Add menu items for selecting standards.
This commit adds menuitems for selecting standards:
 - C++11
 - C99
 - Posix

Fixes tickets:
 #3203 (GUI: Support std=c99)
 #3202 (GUI: Support std=posix)
2011-12-27 22:12:52 +02:00
Kimmo Varis a057c8f30d GUI: Fix file order in project file. 2011-12-27 21:13:16 +02:00
Daniel Marjamäki 996a109b14 Merge pull request #70 from kimmov/gui-filter-fix
GUI: Fix bug in severity filtering.
2011-12-27 08:10:37 -08:00
Kimmo Varis bb28041758 GUI: Fix bug in severity filtering.
There was (obviously) a copy-paste bug in code converting severities
to GUI's show types. This caused some severities not being
filtered correctly when severity selection in GUI was changed.

Fixes ticket: #3242 (GUI: Unmatched suppression: message in wrong category)
2011-12-27 14:54:03 +02:00
Kimmo Varis f15729bee2 GUI: Disable platform selection during checking.
Fixes ticket: #3250 (GUI: platform type should not be changeable at runtime)
2011-12-27 12:46:21 +02:00
Kimmo Varis 56212aa9ca GUI: Remove empty/space-only items from MRU list. 2011-12-27 11:46:43 +02:00
Marek Zmysłowski 7c4c0b628b Fixed #3216 (GUI: Crash when cancel is clicked in the New Project dialog) 2011-11-25 07:42:16 +01:00
Edoardo Prezioso 9dd3360cd6 Fix some complainted choices made in my older commits.
Note: probably you should do 'make clean' before using 'make' to rebuild it again. Maybe it's me but 'make' reports various errors when linking.
2011-11-01 13:23:47 +01:00
Thomas Jarosch 91a5d95bc9 Use Token::simpleMatch() / Token::findsimplematch() where possible 2011-10-28 22:31:05 +02:00
Daniel Marjamäki 321aadf848 Merge pull request #46 from rpavlik/patch-1
Use forward slashes in resource file to support cross-building.
2011-10-25 11:49:50 -07:00
Ryan Pavlik 53d848da1d Remove 'help' from qmake profile
Supports cross-build using mingw-cross-env
2011-10-24 17:48:54 -05:00
Ryan Pavlik d3ede39d24 Use forward slashes in resource file to support cross-building. 2011-10-24 15:41:21 -05:00
Daniel Marjamäki 4705026242 fixed a few doxygen warnings 2011-10-16 17:16:07 +02:00
Daniel Marjamäki 6f8e42a5af changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
Kimmo Varis 4c24b6a804 GUI: Rename ErrorItem::id to ErrorItem::errorId. 2011-10-12 22:19:08 +03:00
Kimmo Varis 00ae7dbda3 GUI: Move ShowTypes enum to own class and file.
We are using ShowTypes around the GUI codebase so it makes sense
to have it in its own class. And the class also contains related
helper functions instead of scattering them around different
classes.

ShowTypes also contains the visibility settings for all the
GUI severities. Implementation in this commit makes ShowTypes
class to load the visibility settings when it is created. And save
the settings when it is destroyed.
2011-10-11 22:20:36 +03:00
Kimmo Varis 3b82c26a70 GUI: Update translation files. 2011-10-07 20:09:15 +03:00
Kimmo Varis 09df5de964 GUI: Rename default platform to "Build-in".
"default" as platform name/definition doesn't tell much and would
only confuse users. "Build-in" is not perfect either but it is
best I've can come with before the release.

Ticket: #3156 (GUI: "default" platform needs proper name)
2011-10-05 20:06:32 +03:00
Kimmo Varis 2ff7999baf GUI: Fix enabling/disabling visibilities of errors
When GUI was started not all the categories visibility statuses
were not preserved. I.e.

Ticket: #3087 (GUI does not show all reported files until a filter button state is changed)
2011-10-05 19:50:10 +03:00
Kimmo Varis 155eeb8e0a GUI: Fix endless loop in previous commit.
The iterator was not advanced in the loop. So the code worked when
I ran it in Linux as the first item was matching.

Thanks for Robert for spotting and reporting it.
2011-10-03 19:37:26 +03:00
Kimmo Varis dbef9b34b1 GUI: In Windows platforms default to Win32 ANSI.
When running in Windows platforms, set the GUI's checked platform
initially to Windows 32-bit ANSI. Other platforms are set
initially to default/unspecified which means the type sizes are
from the platform GUI was compiled on.

This was suggested by Rober in ticket #3119.
2011-10-02 23:45:11 +03:00
Kimmo Varis 56f6204cf7 GUI: Make platforms in GUI more dynamic.
We have now one list for checked platforms, menu items are created
dynamically based on that list. This makes it much easier to alter
the platforms list later on.
2011-10-02 22:10:05 +03:00