Commit Graph

1164 Commits

Author SHA1 Message Date
David Korth 310226bb6b gui: Check CFGDIR if it's defined.
For quite a while, cppcheck-gui hasn't shown any of the standard
library packages on my Gentoo system. It turns out that cppcheck-gui
doesn't use CFGDIR, but it does use a DATADIR variable stored in
QSettings. Problem is, DATADIR isn't set unless you manually specify
--data-dir, which isn't very intuitive.

This commit adds CFGDIR to the default list of cfg paths if the
CFGDIR macro is defined during the build.
2017-05-11 11:02:10 +02:00
Daniel Marjamäki 549fec1628 GUI: Try to clarify --data-dir message 2017-05-03 21:44:59 +02:00
Daniel Marjamäki 34a56506cb Fixed #8042 (Unclear semantics of --data-dir option of cppcheck-gui) 2017-05-01 11:41:22 +02:00
Daniel Marjamäki 633ed23c0d Fix Cppcheck warnings about mismatching function argument names 2017-04-01 09:31:27 +02:00
Daniel Marjamäki 1ea392a40f lupdate gui.pro 2016-12-31 18:13:11 +01:00
PKEuS 21ab39e2b2 Updated german translation 2016-12-29 11:33:13 +01:00
Daniel Marjamäki 6f2480fb4d GUI: update whole program analysis 2016-12-09 20:48:32 +01:00
Stefan Weil 57b57428c2 Fix some typos in comments (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-11-27 11:40:42 +01:00
Daniel Marjamäki 769b6a0b72 astyle formatting 2016-11-20 10:38:27 +01:00
Daniel Marjamäki 93fc489cbc GUI: rename main.ui to mainwindow.ui 2016-11-19 23:07:48 +01:00
Daniel Marjamäki c2069c4b76 GUI: Renamed functions 2016-11-19 23:00:59 +01:00
Daniel Marjamäki ad1b3361db GUI: Renamed projectfile.ui to projectfiledialog.ui. moved some code from project.cpp to projectfiledialog.cpp 2016-11-19 22:54:32 +01:00
Daniel Marjamäki 0da33eaa80 GUI: Renamed elements 2016-11-19 22:37:12 +01:00
Daniel Marjamäki 7c046e541b GUI: Renamed ui elements 2016-11-19 21:38:05 +01:00
Daniel Marjamäki 2b767d3f6f GUI: Rename 2016-11-19 21:12:32 +01:00
Daniel Marjamäki 84e6163cb8 GUI: Add cppcheck build dir 2016-11-19 20:38:50 +01:00
fsb4000 14d4af1235 to update year at russian translation 2016-10-16 13:22:28 +07:00
PKEuS 04b9076af3 Updated german translation 2016-10-08 19:30:25 +02:00
Daniel Marjamäki d9912a2bbe updated translations 2016-10-08 18:05:11 +02:00
Daniel Marjamäki 143e7bf8b1 GUI: Formatting comments 2016-10-02 18:23:51 +02:00
Daniel Marjamäki 0e78dd5eac GUI: refactoring, replace .c_str() 2016-10-02 18:11:44 +02:00
Daniel Marjamäki 81a38bd7ea GUI: Refactorings 2016-10-02 18:03:21 +02:00
Daniel Marjamäki 03d6d34396 Fixed #4399 (Exclude directory with absolute path does not work) 2016-10-02 13:02:29 +02:00
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