Commit Graph

1441 Commits

Author SHA1 Message Date
Daniel Marjamäki 6f133a397b Fixed #3492 (GUI: after edit project recheck use old settings) 2016-10-01 13:08:58 +02:00
Daniel Marjamäki d4d1d32937 GUI: use early return 2016-10-01 12:06:04 +02:00
Daniel Marjamäki cf9ece4187 astyle formatting
[ci skip]
2016-10-01 12:04:13 +02:00
Daniel Marjamäki 1beb22a247 Fixed #7746 (Cppcheck can not open compile_commands.json (only compile_database.json)) 2016-10-01 11:25:58 +02:00
Chocobo1 54ac95223e Resize page to content.
Results in better menu icon
2016-09-27 17:06:26 +08:00
Chocobo1 0972de14f1 Rename icon.svg to cppcheck-gui.svg 2016-09-27 16:28:36 +08:00
Chocobo1 4e11c0004d Rename icon.png to cppcheck-gui.png 2016-09-27 16:28:36 +08:00
Chocobo1 bdc59a51dc Add .desktop file 2016-09-27 16:05:38 +08:00
Daniel Marjamäki 1c970df17f Revert "GUI: fix results if there is problem only in header and not in file-1."
This reverts commit 997a3cd9ca.
2016-09-19 15:40:15 +02:00
Daniel Marjamäki 997a3cd9ca GUI: fix results if there is problem only in header and not in file0. 2016-09-18 21:32:53 +02:00
Daniel Marjamäki bea35ee04c GUI: Select configuration that is checked 2016-08-21 15:57:38 +02:00
Daniel Marjamäki 86a6723a84 GUI: Fix 'Edit Project' dialog. Visual Studio solution was forgotten. 2016-08-20 18:34:17 +02:00
Daniel Marjamäki 4745d844ad GUI: don't auto-skip configurations when checking .sln file 2016-08-20 16:14:52 +02:00
Daniel Marjamäki fe2fa4d343 GUI: Only check current platform when checking sln/vcxproj file 2016-08-20 13:47:25 +02:00
Daniel Marjamäki 9cced993aa GUI: You can now select Visual Studio files and Compile databases in the Check files dialog 2016-08-20 13:32:48 +02:00
Daniel Marjamäki f555abb0b5 GUI: Expose --project to gui 2016-08-18 21:58:50 +02:00
PKEuS ec4a85ecef Added deprecation warning for XML format 1, which will be removed in cppcheck 1.81 2016-08-07 13:50:52 +02:00
Frank Zingsheim 47c063e13f Fixed #7660 (cmake build does not handle simplecpp) 2016-08-06 18:21:54 +02:00
XhmikosR 8908442f9e Losslessly compress images.
Before: 24,1 KB (24.685 bytes)
After:  23,0 KB (23.608 bytes)
2016-07-25 12:15:35 +03:00
umanamente 7466a49b21 Updated russian translation. (#804)
Add an optional extended description…
2016-06-14 14:01:17 +02:00
Daniel Marjamäki 85c7456546 http://cppcheck.sourceforge.net => http://cppcheck.net 2016-06-05 18:17:47 +02:00
PKEuS de232268a3 ran lupdate gui.pro 2016-06-05 10:55:55 +02:00
Boris Barbulovski 69cc64a717 Translate text for current Qt(not both Qt4 & Qt5). (#793)
Check Qt version on compile time, and translate text for current Qt version.
2016-05-16 22:02:31 +02:00
PKEuS 19c0bccfee Ran lupdate gui.pro, updated german translation 2016-03-20 10:34:55 +01:00
PKEuS c31f7c7a48 Improved flags in gui.pro:
- shlwapi.lib is not necessary if dynamic linking is used
- Do not define _CRT_SECURE_NO_WARNINGS explicitly, it gets defined anyway.
2016-01-31 10:10:48 +01:00
Gumichan01 9afd632c91 French translations 2016-01-20 19:11:31 +01:00
Daniel Marjamäki dc5e2d5c8d xml: output file0 whenever it is different to filename, both for included files and when #line is used. 2016-01-19 07:01:21 +01:00
Akhilesh Nema efff2c5397 Fixed #7294 (GUI: Add option in 'Settings' for 'Statistics Dialog' display.) 2016-01-16 17:43:57 +01:00
Akhilesh Nema 06ded4a3d4 Fixed #7240 (GUI: Result tree Context Menu should show default editor application only.) 2016-01-16 15:19:06 +01:00
Akhilesh Nema 2f29efce68 Fixed #7295 (GUI: 'Edit Project' and 'Close Project' actions getting enabled after Files/Directory check.) 2016-01-16 09:59:02 +01:00
Akhilesh Nema 4aa2876ca0 Fixed #7278 (GUI: error rechecking with some files) 2016-01-15 16:52:22 +01:00
Akhilesh Nema 6c1ac1bd53 GUI: Add detection for geany and Qtcreator as editor application 2016-01-15 09:33:04 +01:00
PKEuS 2a30e2bc01 Fixed bug in german translation 2016-01-09 11:00:32 +01:00
PKEuS bd202ba20a Ran lupdate gui.pro, updated german translation 2016-01-09 10:51:42 +01:00
PKEuS 37fefe3479 Removed non-standard code annotations with __attribute__ 2016-01-09 09:33:56 +01:00
Daniel Marjamäki 24739869ba GUI: Renamed 'Builtin' to 'Native' 2016-01-08 19:56:09 +01:00
Aleksandr Pikalev e92bbf6481 Fixed #7275 - Make GUI tests buildable
* Use -std=c++11 flag for gcc and clang
 * Use $$PWD variable in qmake files to have correct paths
 * Change tokenizer.simplifyTokenList() to tokenizer.simplifyTokenList2()
 * Add build-generated files to .gitignore
 * Link libpcre only if rules are enabled
2016-01-08 15:21:36 +01:00
Daniel Marjamäki 79e663dd6f Settings: Remove '_' prefix for public member variables 2016-01-03 16:18:17 +01:00
Daniel Marjamäki ca4f55ec4c Cleanup Copyrights. Now all should be just for Cppcheck team. 2016-01-01 23:04:16 +01:00
Lauri Nurmi 996c9244d8 Update copyright year to 2007-2016. 2016-01-01 15:34:45 +02:00
Akhilesh Nema 997d7dc695 Fixed #7231 (GUI: 'Selected File Recheck' being performed multiple times if file selection includes existing error messages.) 2015-12-29 01:38:36 +01:00
Akhilesh Nema 0886ef9c5f Fixed #3192 (GUI: Allow opening project file without extra parameter from CLI) 2015-12-26 11:47:07 +01:00
Daniel Marjamäki cc987d8ff5 astyle formatting 2015-12-23 23:05:26 +01:00
Akhilesh Nema bedd85fa50 Fixed #1459 (GUI: Allow re-checking selected files/folders) 2015-12-23 10:28:07 +01:00
fu7mu4 dab0774297 add translations in Japanese 2015-12-19 16:30:30 +09:00
PKEuS 8f22e4924c Updated AStyle to version 2.05.1
Tweaked runastyle.bat a little bit.
2015-12-17 15:53:13 +01:00
Daniel Marjamäki e88a1b0915 astyle formatting 2015-12-08 14:23:26 +01:00
Akhilesh Nema ca3c19c63d GUI: Fixed compiler warnings 2015-12-07 11:24:54 +01:00
Akhilesh Nema 20b695d62d GUI: Handle 'Enter Key' Event in results tree. 2015-12-03 19:33:36 +01:00
Aleksandr Pikalev e9b84a4f06 Related #7173: LibraryEditor: Do not save file with empty name 2015-11-29 17:02:08 +01:00
Aleksandr Pikalev fe8cedade5 Fixed #7173 (Library Editor: Save As button and error messages) 2015-11-29 11:21:04 +01:00
Aleksandr Pikalev e8decd925b Fixed #7161 (GUI: Do not lose [Default] label after editing an application) 2015-11-28 21:39:48 +01:00
Aleksandr Pikalev a6206ae727 Fixed #7174: Do not forget argument number in Library Editor 2015-11-27 10:54:06 +01:00
Frank Zingsheim 70c20515a9 Cmake object linkage. Fix #7128: (cppcheck 1.70 doesn't report any warnings) 2015-11-26 20:25:09 +01:00
Daniel Marjamäki e2b859bf42 Library Editor: Load/save <warn> elements 2015-11-22 11:45:29 +01:00
Daniel Marjamäki aedba792b5 Library Editor: Don't write empty comments 2015-11-21 16:10:14 +01:00
Daniel Marjamäki 0f9d90d2be Changed Copyrights. Removed my name. 2015-11-18 20:04:50 +01:00
PKEuS 65e8538590 GUI: Attempt to fix editor detection for x64 Windows 2015-11-18 17:35:10 +01:00
PKEuS 68afbaae07 Ran lupdate/lrelease. Updated german translation. 2015-11-14 10:55:48 +01:00
Aleksandr Pikalev e1342435ca Fixed #7063 (GUI: better extensions filtering)
Make filtering case insensitive to let check *.C, *.CPP, etc files.
Show in file open dialog only files that could be checked.
2015-11-13 20:21:07 +01:00
Aleksandr Pikalev c0191b25ac Fixed #5662 (GUI - Save results missing some entries)
Use empty parent index as we test top level items.
2015-11-13 20:21:06 +01:00
PKEuS cc783b0186 Updated/Improved several readme files 2015-11-06 15:19:08 +01:00
Aleksandr Pikalev ebfa40c369 Fixed #7047 (Library Editor crashes if I try to edit not selected function) 2015-11-05 16:34:08 +01:00
XhmikosR 0825c57c9f GUI: losslessly compress images.
Before: 21,9 KB (22.477 bytes)
After:  21,4 KB (21.996 bytes)

[ci skip]
2015-10-22 08:44:26 +03:00
PKEuS 04a31011b0 GUI: Do not show Severity, Id, Inconclusive and Summary twice if an error element has a child 2015-10-15 12:08:51 +02:00
PKEuS dfe61f415d GUI: Improved handling of inconclusive messages (#3815)
- Moved setting from "Advanced" to "General" tab
-> Moved remaining single item, too, as it does not make sense to keep a tab for a single option. This option is now shown at the bottom of the dialog
- Replaced [inconclusive] string in "Summary" Column by extra column "Inconclusive", which is only visible if inconclusive checking is enabled
2015-10-15 11:59:17 +02:00
PKEuS 6dcb918b78 GUI: Implemented "Recheck all files" button (#3614), renamed "Recheck files" button to "Recheck modified files" (#3624) 2015-10-14 19:07:20 +02:00
PKEuS dcb746a49a GUI: Improved translations:
- Fixed translation of default buttons for Qt5
- Removed translation opportunity for language names. English or native names are better than translated names (#4014)
2015-10-14 18:21:00 +02:00
PKEuS fb2802d6a3 GUI: Show file that included a header in details view (#4026) 2015-10-14 18:10:14 +02:00
PKEuS 46a43f3041 GUI: Properly refresh result tree if new rows are added (#4727) 2015-10-14 17:44:52 +02:00
PKEuS 61d8a73f4c GUI:
- Support enforcing language (#5456)
- Fixed several broken settings by saving them before creating Settings instance (changing them required restarting cppcheck)
- Updated german translation
2015-10-14 14:32:21 +02:00
Aleksandr Pikalev f239057e33 Change Q_WS_WIN to Q_OS_WIN
Q_WS_* macroses were removed from Qt5.
Use Q_OS_* instead.
2015-10-07 13:42:42 +02:00
ngosang 82ba6b5901 Update Spanish translation 2015-09-23 23:09:37 +02:00
Daniel Marjamäki e09f583096 GUI: library editor, edit function comments 2015-09-10 20:11:05 +02:00
orbitcowboy 60770a8fdc test/cfg: Improved testing of std.cfg regarding uninitialized variables. 2015-09-08 15:43:22 +02:00
Daniel Marjamäki a32aa03035 GUI: Library editor - rename function 2015-09-08 15:38:02 +02:00
Daniel Marjamäki 4cffff7bde GUI: tweaks in library dialog for sorting and filter 2015-09-06 14:54:21 +02:00
Daniel Marjamäki 9f31414179 GUI: Library editor - added sort button and filter edit box 2015-09-06 14:20:27 +02:00
Daniel Marjamäki 65d246aea2 GUI: Library editor - edit argument when user double clicks on it 2015-09-06 10:38:01 +02:00
Daniel Marjamäki ddfc766375 GUI: indentation of cfg files 2015-09-06 09:10:45 +02:00
Daniel Marjamäki 0e5f7fe567 GUI: fixes to save cfg files properly in the library editor 2015-09-06 08:48:13 +02:00
Daniel Marjamäki ff0f4cef16 GUI: Add handling of containers to CppcheckLibraryData 2015-09-05 20:13:26 +02:00
Daniel Marjamäki 40bd3de9b3 GUI: rewrote library dialog xml input/output 2015-09-05 11:37:55 +02:00
Daniel Marjamäki f5c6561e18 GUI: Readd library editor 2015-09-04 20:46:26 +02:00
Daniel Marjamäki 41d7e8e1f0 GUI: Quick fix for a crash when mContextItem->parent() is NULL 2015-09-04 20:04:31 +02:00
Daniel Marjamäki b7bac8c920 GUI: Disable and hide library editor for now. It will be readded after the release. 2015-09-04 14:20:49 +02:00
PKEuS 2ae7bcaf1b Ran lupdate gui.pro, updated german translation (only translatable strings), fixed typo in main.ui 2015-09-04 14:08:05 +02:00
Daniel Marjamäki 4385879b72 GUI: Improved handling of noreturn in library editor 2015-09-03 20:36:26 +02:00
Daniel Marjamäki bfb70f3312 saving std.cfg with libraryeditor, applied some of the generated diffs. 2015-09-03 07:00:43 +02:00
Daniel Marjamäki 6b49a39282 GUI: Make it possible to configure minsizes through the LibraryDialog 2015-09-01 18:13:27 +02:00
Daniel Marjamäki c9d14f4bb0 GUI: LibraryDialog - update presentation of minsizes 2015-08-31 09:04:35 +02:00
Daniel Marjamäki a65fabebce GUI: refactoring librarydialog 2015-08-30 18:37:12 +02:00
Daniel Marjamäki 3bae4ae429 GUI: Renamed LibraryData to CppcheckLibraryData to try to avoid a name clash 2015-08-30 13:41:57 +02:00
Daniel Marjamäki 779207933c GUI: Added missing files. Forgot to add them in my last commit. 2015-08-30 13:35:02 +02:00
Daniel Marjamäki dd7c0b353d GUI: Added a dedicated dialog for LibraryDialog for configuration of function arguments 2015-08-30 13:33:43 +02:00
Martin Ettl fb643ba2d4 Running astyle; test/cfg/: Since #6958 is fixed, activated test cases for fma()-functions. 2015-08-30 11:59:33 +02:00
Daniel Marjamäki ab4adf2836 GUI: Added a dedicated 'Add function' dialog to the LibraryDialog 2015-08-30 10:24:44 +02:00
Daniel Marjamäki f9415fc904 GUI: minor tweaks of library editor 2015-08-30 02:49:17 +02:00
Daniel Marjamäki f5d131671c GUI: Let user add function in the library editor 2015-08-29 18:50:08 +02:00
Daniel Marjamäki 6aeb3ff5e3 GUI: Load/save cfg files better 2015-08-29 18:07:59 +02:00
Daniel Marjamäki f357d8611d GUI: Allow some editing of argument properties in the library editor 2015-08-29 17:24:56 +02:00
Daniel Marjamäki cc8939cef9 GUI: Refactoring library editor, splitting out data to separate file 2015-08-23 16:03:24 +02:00
Daniel Marjamäki 43953b30fb astyle formatting 2015-08-23 13:34:50 +02:00
Daniel Marjamäki ea7209e669 GUI: make it possible to save changes in library editor 2015-08-23 12:49:51 +02:00
Daniel Marjamäki 0b78b66f64 Fix travis compile errors caused by direct member initialisation 2015-08-16 18:27:41 +02:00
Daniel Marjamäki 4946f772ef GUI: Add libraryeditor 2015-08-16 17:36:10 +02:00
versat 9e09c40eb3 GUI Projectfiledialog: Added tooltip
Added tooltip with explanation how to separate defines.
2015-08-13 14:30:16 +02:00
Jan Hellwig 308e7d9ae4 Allow project roots that are relative to the project file's location 2015-08-10 20:48:08 +02:00
PKEuS eef98ef5c8 Ran lupdate, updated german translation 2015-08-01 14:15:51 +02:00
PKEuS cfde690bb2 Fixed two comments and GUI build 2015-07-25 19:17:40 +02:00
Ameen Ali 8379b0e667 GUI: show statistics after check is done 2015-07-14 18:48:51 +02:00
olshevskiy87 ad4532fb9f fix typos in russian translation 2015-06-05 21:50:09 +04:00
Alexander Mai d4550c763d Exit code shall indicate that an internal error (syntax error) has been found. Add some const. Run astyle 2015-05-25 21:15:55 +02:00
Blubbz0r 15c0be9eb4 Added missing include 2015-05-25 16:25:58 +02:00
Blubbz0r aa66cf5eda Added context menu item Open containing folder
Note: This also fixes the Copy full path context menu item (was only
putting file name into clipboard)
2015-05-25 15:33:46 +02:00
amai2012 355890375c Merge pull request #590 from Blubbz0r/#2274-GUI-Printing-support
#2274 GUI: Printing support
2015-05-23 14:39:20 +02:00
PKEuS 6fecff8651 Fixed spelling mistakes as suggested by arm_in (#6643) 2015-05-01 08:06:59 +02:00
Blubbz0r 2ffffdfdd8 Refactoring
Removed PrintReport and PrintPreview slots from mainwindow. Print
actions will instead be directly connected to reultsview.
2015-04-18 17:37:13 +02:00
Blubbz0r 2eb0832ac2 Refactoring
Adjusted documentation of PrintableReport
PrintableReport no longer provides the formatted report as QTextDocument
but as plain QString (so that the caller can decide how to deal with the
text)
2015-04-17 16:46:58 +02:00
Blubbz0r ecf04c90e4 Added print and print preview functionality
Added Print... and Print Preview... actions to main window
Added PrintableReport responsible for formatting of ErrorItems and
exposing of a QTextDocument that can be used for printing
2015-04-17 16:33:52 +02:00
Jakub Melka b7d92a4fc7 Fixed warnings of CppCheck's own code (caused by new check #695) 2015-03-08 18:18:09 +01:00
XhmikosR 143c5d4875 GUI: Remove bogus period.
[ci skip]
2015-03-07 09:49:07 +02:00
Luis Díaz Más 22424ba54a Add CMake files 2015-02-13 19:00:14 +01:00
PKEuS fb58718ad1 GUI: fixed handling of language in settings dialog (#6435) 2015-01-21 18:35:00 +01:00
Matthias Krüger bd7765e008 gui: cppcheck_es.ts: revert from filemode 755 (exectuable) back to 644. 2015-01-21 13:09:24 +01:00
ngosang f82dcc0523 Updated spanish translations 2015-01-21 06:12:03 +01:00
Samir Aguiar 141a071792 * Added Clang-related flag to gui.pro
* Updated external lib location with PWD variable
2015-01-20 19:20:00 +01:00
PKEuS 70ace39a80 Implemented changes from 787cbcb02e in GUI 2015-01-10 22:51:45 +01:00
Alexander Mai d72fbdda27 Fix compiler warnings about incomplete handling of library error codes 2015-01-06 18:10:19 +01:00
Thomas Jarosch 1ef1143609 Make local functions static 2015-01-05 01:25:49 +01:00
PKEuS e4c7b0f831 Ran lupdate gui.pro 2015-01-03 12:46:28 +01:00
Daniel Marjamäki ff11ba9847 Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
Matthias Krüger 1c8c8e45d0 gui: icon.svg: manually fix offset and apply inkscapes "Vacuum Defs" functionality to reduce file size from 113675 b to 3906 b. 2014-12-21 12:24:57 +01:00
Daniel Marjamäki 051d42ae6b astyle formatting 2014-11-20 14:20:09 +01:00
orbitcowboy f5d804f71a running astyle 2014-11-20 10:13:03 +01:00
Robert Reif e2f72b4cb1 Fixed #6215 (Move Windows platform types into library) 2014-10-19 07:34:40 +02:00
PKEuS c395512ea6 Ran lupdate gui.pro, updated german translation 2014-10-18 11:03:12 +02:00
orbitcowboy c3c8132bbd Fixed gcc warning: mainwindow.cpp: In member function ‘Settings MainWindow::GetCppcheckSettings()’:
mainwindow.cpp:575:24: warning: enumeration value ‘UNSUPPORTED_FORMAT’ not handled in switch [-Wswitch]
                 switch (error.errorcode) {
                        ^
2014-09-30 08:07:50 +02:00
Lauri Nurmi 1cc872f5b2 Change "obsolete" in all filenames into "obsolescent", and also update all references to such files.
Neither the C standard, the C++ standard, or POSIX talks about "obsolete". All of them use the word "obsolescent", which is a different word with a different meaning.
2014-09-23 16:18:04 +02:00
PKEuS 495709376e lupdate gui.pro; updated german translation 2014-08-02 11:10:45 +02:00
Daniel Marjamäki 6f6642dcc5 GUI: In win32, use Win32W instead of Win32A as default platform 2014-06-16 06:30:42 +02:00
Daniel Marjamäki e3c45334d9 Fixed #5585 (GUI: Project file -dialog lists all .cfg files as config libraries) 2014-06-14 21:17:04 +02:00
Daniel Marjamäki 5471185781 GUI: save platform setting 2014-06-14 18:47:19 +02:00
XhmikosR 610f099487 GUI: Minor image compression improvements.
Before: 24.321 bytes
After:  24.272 bytes

[ci skip]
2014-05-28 08:17:47 +03:00
Daniel Marjamäki ae6c97eb39 GUI: Show validation errors when loading library fails. Ticket #5847 2014-05-26 20:16:19 +02:00
Daniel Marjamäki ed78d3e148 Library: Better error reporting when loading fails 2014-05-26 17:00:41 +02:00
Daniel Marjamäki d3dbfad131 GUI, manual: some clarifications how custom user .cfg files are used (Ticket: #5847) 2014-05-25 13:24:07 +02:00
PKEuS 8b180bc950 Ran lupdate gui.pro 2014-05-10 12:07:04 +02:00
Daniel Marjamäki 9a92a4d950 Cleanup. Remove unused argument. 2014-05-03 17:30:56 +02:00
Daniel Marjamäki 935b37da0e Fixed #5515 (Crash on Preferences/Applications) 2014-05-02 07:16:10 +02:00
Daniel Marjamäki 45ac1db175 GUI: set data dir before translations are loaded, before data dir is set they will not be found. 2014-05-01 14:21:17 +02:00
PKEuS 4ad7ef69c6 Updated german translation
ran lupdate gui.pro
Reverted accidential change in checkio.cpp
2014-03-28 19:06:48 +01:00
Daniel Marjamäki f3622f729c GUI: Added DATADIR setting. Related with #5513 2014-03-19 19:34:20 +01:00
Daniel Marjamäki 2ac2dcf392 GUI: fixed compilation, changed gcc flags 2014-03-08 14:10:12 +01:00
Daniel Marjamäki f991c8fd02 GUI: only show a library once in the projectfiledialog 2014-03-08 14:04:58 +01:00
Daniel Marjamäki 33e6c1bf53 GUI: use -std=c++0x with gcc compiler no matter if os is unix or windows 2014-03-08 13:45:40 +01:00
Matthias Krüger a9df4a3288 man, htdocs, gui, test, tools: bump a few more copyrights to 2014 2014-03-03 11:03:17 +01:00
Daniel Marjamäki fd3a8a2a18 Update copyright 2014-02-15 07:45:39 +01:00
Daniel Marjamäki 85b6495cce value flow: fixed comments 2014-01-23 19:40:47 +01:00
Xuecheng Zhang 50d0aa1870 GUI: fix SuggestLanguage for zh_CN 2014-01-23 06:32:41 +01:00
Daniel Marjamäki cda9b409ef GUI: List embedded cfg files in project dialog 2014-01-18 09:21:06 +01:00
Daniel Marjamäki 2ef95fc794 GUI: use debug mode 2014-01-18 08:50:22 +01:00
Mika Attila d642faf1d8 gui: Only load embedded translation if it doesn't exist in lang/
This makes it easier to test/override translations
2014-01-16 13:04:59 +01:00
Mika Attila 6a97da9871 gui: Embed the language files into the executable
This allows for:
- Out-of-source builds
- Easy installation
2014-01-15 14:35:26 +01:00
Daniel Marjamäki 037a0ba986 GUI: change -std=c++11 to -std=c++0x as it's more backwards compatible 2014-01-12 15:46:22 +01:00
Daniel Marjamäki 9c088c2dd6 gui.pro: add -std=c++11 to linux builds 2014-01-12 13:51:08 +01:00
Daniel Marjamäki f0743d3bc4 GUI: add the cfg files in the resources. use these as fallback when normal loading fails. 2014-01-11 08:38:26 +01:00
PKEuS e133bdded6 Updated (german) translation 2014-01-04 10:20:45 +01:00
Alexander Mai 12df5300ba Fixed #5290 (Doxygen fixes (32be409)) 2014-01-01 20:46:00 +01:00
Daniel Marjamäki 93b8a261a2 GUI: Add some sorting in the suppressions handling 2013-12-31 11:00:01 +01:00
Daniel Marjamäki 14d65f212f GUI: Refactoring the loading of libraries in mainwindow 2013-12-31 10:46:44 +01:00
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
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
Kimmo Varis 2d483b698f GUI: Add menu-selection for the checked platform.
This is quick and dirty patch to add the platform selection for
the GUI. It is simple menu selection in Check-menu. It always
defaults to "Default" at startup. And it forget the selection
when the application is closed.

Ticket: #3119 (GUI: add ability to specify platform type)
2011-09-29 22:50:49 +03:00
Kimmo Varis 527524a4c9 GUI: Update translation files. 2011-09-26 22:03:47 +03:00
Kimmo Varis 6d8093972d GUI: Make statistics dialog text translatable.
Refactor the code formatting statistics dialog content so that
the strings are easier to translate. Old formatting with embedded
HTML was practically impossible for translators to translate. New
code isn't very beautiful either but at least translating is now
possible.

Ticket: #2726 (GUI: HTML-formatted statistics report text hard to translate)
2011-09-26 21:59:53 +03:00
Kimmo Varis ef6a14dbaf GUI: Rename functions related to excluding. 2011-09-25 20:59:47 +03:00
Kimmo Varis a04d6b82f5 GUITESTS: Rename variable for consistency. 2011-09-25 20:17:06 +03:00
Kimmo Varis 039291d9d4 GUITESTS: Remove include lines from test data.
The included files aren't found anyway so the lines are useless
and can add more variance (filesystem access) to the results.
2011-09-25 19:23:47 +03:00
Kimmo Varis 8b5c1ad8b7 GUITESTS: Add benchmark for tokenize + simplify. 2011-09-18 09:44:27 +03:00
Kimmo Varis bb5e531c7f GUI: Enable performance- and portability checks.
The CLI/LIB change earlier added own enable-flag for performance-
and portability-checks. This commit updates GUI to also enable
those new enable-flags.
2011-09-04 21:45:52 +03:00
unknown 19b7468bb6 GUI: Fix order of project/global include directories.
Per project include directories must be added to the list before
the global include directories. Include directories are searched
in listed order. So placing per project include directories first
we ensure per project include file is found instead of the global
include file if same file exist in both.
2011-08-26 10:34:01 +03:00
Kimmo Varis 047984ea89 GUI: Fix extra menu separator in File-menu.
The extra menu separator was added before the MRU menu items. When
updating the (menu) MRU items existing items were first removed
and new items added back. But the added separator was not removed.
2011-08-24 23:14:28 +03:00
Kimmo Varis 1f4e1e0ffe GUI: Check the project after creation.
Earlier the GUI (project) went into some weird state after creating
a new project. The project could not be checked in any discoverable
way.

This commit fixes the above bug by automatically checking the new
project after the project dialog is closed. I think this is what
most users expect to happen.
2011-08-24 22:41:48 +03:00
Kimmo Varis 2123f6fafc GUI: Update projectfile tests. 2011-08-23 20:44:27 +03:00
Kimmo Varis a3d6b697ad GUI: Update project file documentation. 2011-08-23 20:44:27 +03:00
Kimmo Varis 4998c913da GUI: Rename Ignore-feature to Exclude-feature.
Exclude is the correct term to use when removing paths from the
list of checked items. Ignore as a term was a poor choise to begin
with. XML file reading still recognizes and reads  the 'ignore'
element but writes 'exclude' element.

Ticket: #2995 (GUI: Rename ignore-feature to exclude-feature)
2011-08-23 20:44:04 +03:00
Robert Reif 88b11d889c run astyle 2011-08-22 20:32:35 -04:00
Kimmo Varis b732fc0a3e GUI: Make few strings const strings. 2011-08-22 22:37:38 +03:00
Kimmo Varis 981c28845f GUI: Update translation files. 2011-08-22 22:21:42 +03:00
Kimmo Varis 63e8e9ea57 GUI: Allow reordering includes in project dialog.
Since include dir order is important (Cppcheck uses the first file
it finds) user must be able to edit the order of include paths.
This commit adds "Up" and "Down" buttons to the Project-dialog's
inlude paths-tab. User can use those two buttons to re-order the
include directories.

Ticket: #3037 (GUI: Allow reordering include paths in project dialog)
2011-08-22 22:16:59 +03:00
Kimmo Varis 042693a305 GUI: Rename Project-label in Projects-dialog.
The 'Project' label in Project-dialog is confusing and users think
it is project's name. When it acutually is the root directory of
the project. So rename the lable and move it below the 'Defines'-
field to make it less important looking.

Ticket: #2997 (GUI: 'Project'-field in project file-dialog is confusing)
2011-08-22 21:18:43 +03:00
Kimmo Varis 51102ee076 GUITESTS: Replace benchmark data file.
The benchmark data file had errors when checking with Cppcheck.
And people reported these errors. So replace the file with one
that has no (currently found) errors.
2011-08-12 14:40:14 +03:00
Kimmo Varis 2ef4e6fb59 GUITESTS: Remove the running script.
The script is available in another repository. I don't want to
distribute it with Cppcheck sources for now. Maybe if and when
there is more interest towards GUI tests...
2011-08-12 00:13:29 +03:00
Kimmo Varis c9816c67c5 GUI: Show extraversion in About-dialog.
If the "extra version" is defined (not empty) then it is shown
after the actual version number in the About-dialog.

Ticket: #2164 ([GUI] Add revision info to "About" window)
2011-08-11 18:13:54 +03:00
Kimmo Varis 447c3c28b4 GUI: Update translation files. 2011-08-03 10:58:03 +03:00
Kimmo Varis cff674ccac GUI: Don't translate non-translatable strings.
If strings contain only formatting placeholders for the dynamically
formatted text it does not make sense to mark the strings as
translatable. There is nothing translators can translate e.g. in
"%p".
2011-08-03 10:53:35 +03:00
Zachary Blair d2f4b8e3de Fixed 2915 (GUI: Show files checked in progress bar) 2011-07-27 23:30:45 -07:00
Kimmo Varis b7d110460e GUITESTS: Add simple readme.txt. 2011-07-24 21:45:53 +03:00
Kimmo Varis fe1ba6ae37 GUI: Simplify condition.
With current code we always have both filename and linenumber for
each error.
2011-07-21 20:15:24 +03:00
Kimmo Varis d1d8c24a03 GUI: Don't use relative paths for include files. 2011-07-21 15:13:41 +03:00
Kimmo Varis fea5c629eb GUI: Update translation files. 2011-07-20 13:38:23 +03:00
Kimmo Varis 8676647b03 GUI: Filter toolbar menu items not in synch.
When Filter-toolbar was enabled/disabled from the View-menu its
state was not updated to the context menu. And vice versa.

Ticket: #2923 (GUI: Filter toolbar menu items not synchronized)
2011-07-20 13:35:56 +03:00
Kimmo Varis ee988a0689 GUI: Filter toolbar didn't have a title.
Ticket: #2922 (GUI: Filter toolbar does not have a title)
2011-07-20 13:24:37 +03:00
Kimmo Varis e3cd600e4e GUI: Fix always false condition.
Ticket: #2827 (false negative: gui/resultstree.cpp:271 condition always false)
2011-07-17 15:25:46 +03:00
Kimmo Varis 634db2ab09 GUI: Update translation files. 2011-07-17 15:15:40 +03:00
Kimmo Varis aff8fbc05f GUI: Show error if no default editor configured.
There always should be default editor if there is editor
application configured. But it is possible in some cases that
default application is "lost". So check that we have default
application configured before trying to use it. And inform user
to configure default application instead of silently failing to
open the application (and the file) for the user.
2011-07-17 15:11:24 +03:00
Kimmo Varis 79385f0ff8 GUI: Fix separators when opening file to editor.
Ticket: #2916 (Wrong slashes in file path passed to the Windows-text editors)
2011-07-17 14:22:06 +03:00
Kimmo Varis 387fd35ff3 GUITESTS: Improve the running script.
Don't use recursion in the script. The Python's os.walk() already
lists all files in subdirectories and using recursion only caused
tests to be found twice. Also handle the case the project file
defines binary path with DESTDIR define.
2011-06-23 23:02:49 +03:00
Robert Reif f05ff9b4dc run astyle 2011-06-22 20:30:41 -04:00
Kimmo Varis 88f31403d7 GUITESTS: Run only existing tests with the script.
Improve the runner script to run only tests whose binary file
exists. Tests with inexistant binary file are not counted into
test counts in the summary.

Add the MIT license header. I'm now maintaining this script in
external repository with MIT license. So I can use the script
in other projects too.
2011-06-22 23:58:25 +03:00
Kimmo Varis d5157519a0 BENCHMARKS: Add simple benchmark. 2011-06-22 22:24:49 +03:00
Kimmo Varis ea6f6bb1aa GUITESTS: Print summary from the test script. 2011-06-21 15:38:18 +03:00
Kimmo Varis 0cd8282b2e GUITESTS: Add Python script for running all tests. 2011-06-21 15:38:18 +03:00
Kimmo Varis 6bae7b0f0f GUITESTS: Add FileList filtering tests. 2011-06-18 12:54:48 +03:00
Kimmo Varis 8b70046a42 GUITESTS: Add tests for adding directory. 2011-06-17 14:54:04 +03:00
Kimmo Varis d5652ee3cc GUITESTS: Move testdata to data-subdirectory. 2011-06-17 13:56:32 +03:00
Kimmo Varis 82e8e1a737 GUITESTS: Add simple test for FileList.
These tests check that FileList only accepts existing files with
accepted filename extensions.
2011-06-17 13:46:40 +03:00
Kimmo Varis 5ec241ee0e GUITESTS: Few compares in tests were wrong way around. 2011-06-17 13:18:42 +03:00
Kimmo Varis 3508a79cd6 GUI: Cleanup settings usage.
Use local QSettings instead of the one created by MainWindow.
2011-06-16 16:03:25 +03:00
Kimmo Varis b66b8a31cc GUITESTS: Add tests for loading project files. 2011-06-16 14:24:33 +03:00
Kimmo Varis 08ab764f63 GUITESTS: More flexible test data paths.
Use build-time define to set the path to the source files
directory. Which then can be used to format path to the test
data. This allows running tests from out-of-source-tree -builds
that e.g. QtCreator does.
2011-06-16 13:05:00 +03:00
Kimmo Varis 7ae2536784 GUI: Update translation files. 2011-06-15 11:32:08 +03:00
Kimmo Varis 3d3b818e66 GUI: Add Q_OBJECT to TxtReport class. 2011-06-15 11:28:47 +03:00
Kimmo Varis ebd5a123ce GUITESTS: Fix XML V1 test.
Test was using and assuming that severity string starts with
capital letter (e.g. "Style"). But the strings are all lowercase
letters.

Ticket #2832 (GUI: XML version 1 test fails)
2011-06-10 15:16:44 +03:00
Kimmo Varis 8cff768d99 GUITESTS: Use common build artifact directory.
Using common build artifacts (object files, moc files) avoids
recompiling whole lib and other shared files separately for each
test.
2011-06-10 14:35:02 +03:00
Kimmo Varis 8e18c69ba8 GUITESTS: Run Astyle. 2011-06-10 14:22:52 +03:00
Kimmo Varis 63cf743ba1 GUITESTS: Remove unneeded main file. 2011-06-10 14:15:24 +03:00
Kimmo Varis c51b66d0b1 GUITESTS: Move XML V2 tests to own project. 2011-06-10 14:13:41 +03:00
Kimmo Varis 1337abd9fe GUITESTS: Move XML format V1 tests to own project. 2011-06-10 14:01:08 +03:00
Kimmo Varis 85aed65e80 GUITESTS: Fix XML files paths. 2011-06-10 13:20:17 +03:00
Kimmo Varis edbb66cb20 GUITESTS: Refactoring XmlReport test. 2011-06-10 13:20:17 +03:00
Kimmo Varis eb648eb3f7 GUITESTS: Fix translation count in test. 2011-06-10 13:20:17 +03:00
Kimmo Varis 6820fc6933 GUITESTS: Refactoring test building.
Start building each test as separate project as QtestLib tests
usually are built. This commit adds the infrastructure and moves
TranslationHandler test as own project.
2011-06-10 13:19:46 +03:00
Kimmo Varis 24061e536b GUI: Give full path when opening project file.
Fix I did yesterday gave only filename of the project file for
function loading project file. Causing the loading failing if
not in "current" directory.
2011-06-08 10:40:17 +03:00
Kimmo Varis f12b27f360 GUI: More strict filtering for finding project file. 2011-06-07 23:56:48 +03:00
Kimmo Varis 8bfbf82bdc GUI: Suggest using project file if one is found.
If we there is project file in the directory to check then ask
user if one wants to use the project file instead. If there are
multiple project files then just tell there are project files
and ask if user wants to continue without using them.

Ticket: #2816 (GUI regression: Interrupted checking because of too many #ifdef configurations.)
2011-06-07 16:12:21 +03:00
Kimmo Varis faa1354445 GUI: Handle missing checked paths in project file.
If the project file does not define paths to check then check the
project root directory (which likely is the directory where the
project file is located).

Ticket #2816 (GUI regression: Interrupted checking because of too many #ifdef configurations.)
2011-06-07 14:29:59 +03:00
Robert Reif 5a27552669 make usre we have a project file before outputting its name 2011-06-06 18:30:44 -04:00
Robert Reif 6a7e4c838f Output GUI project name when checking starts or restarts 2011-06-04 08:38:51 -04:00
Daniel Marjamäki c971fa0d4b cmake: cleanup unmaintained cmake files 2011-05-19 17:16:04 +02:00
Kimmo Varis 056476d28a GUI: Simplify settings usage in Log window. 2011-05-13 10:38:54 +03:00