Commit Graph

54 Commits

Author SHA1 Message Date
Scott Furry a195477470 Correct Zero/Null as pointer constant (#1938)
Building with enhanced clang warnings indicated a large number of
instances with the warning:

`warning: zero as null pointer constant`

Recommended practice in C++11 is to use `nullptr` as value for
a NULL or empty pointer value. All instances where this warning
was encountered were corrected in this commit.

Where warning was encountered in dependency code (i.e. external library)
no chnages were made. Patching will be offered upstream.
2019-06-30 21:39:22 +02:00
Daniel Marjamäki 84cc09d17c Update Copyright 2019-06-29 07:49:14 +02:00
Scott Furry 0d76d078e2 Implement User Selectable Code Editor Style in cppcheck-gui (#1913)
Building on #1874, commit adds user controls to choose
or edit style in cppcheck-gui ONLY. Commit does not
address CodeEditor style usage in triage app at this time.

Code Editor style can be altered from the added "Code Editor"
tab in the user preferences. The user has the option to select
default light, default dark, or to customize.

If user leaves the style set to light or dark defaults, this
will be reflected in the choices shown in the preferences
dialog.

User choice for Code Editor Style is saved in the cppcheck-gui
preferences under the heading "EditorStyle".
2019-06-23 19:04:53 +02:00
Daniel Marjamäki d6b976fd21 GUI: Renamed private variable LangCodeRole 2018-06-18 14:19:14 +02:00
Daniel Marjamäki e5c4e31da6 Fix a number of noOperatorEq and noCopyConstructor warnings 2018-05-01 09:36:21 +02:00
Daniel Marjamäki 7e4dba6a7e Updated copyright year 2018-03-31 20:59:09 +02:00
Daniel Marjamäki 6f2d4361df Misra: Integration of MISRA in the GUI. The misra addon can now extract the rule texts from the PDF. 2018-01-20 14:13:09 +01:00
Daniel Marjamäki c4caee6b18 Updated copyright year 2018-01-14 15:37:52 +01:00
Daniel Marjamäki 71f52b77a4 GUI: Configuration of python path for the addons 2017-08-14 00:23:21 +02:00
Daniel Marjamäki 928e053efc GUI: VS headers for clang-tidy 2017-08-13 17:13:24 +02:00
Daniel Marjamäki 83ae7ce270 GUI: Remove include paths from the preferences dialog 2017-08-13 16:56:37 +02:00
Daniel Marjamäki 5f324364bd GUI: chmod 2017-08-12 12:05:12 +02:00
Daniel Marjamäki f8c4d6cbc7 GUI: Clang settings 2017-08-12 12:04:42 +02:00
Daniel Marjamäki 1afebfa96d improve the clang settings 2017-08-10 15:47:20 +02:00
Daniel Marjamäki c1eb71e84d GUI: Rename methods 2017-07-28 13:43:49 +02:00
Lauri Nurmi 996c9244d8 Update copyright year to 2007-2016. 2016-01-01 15:34:45 +02:00
Daniel Marjamäki 0f9d90d2be Changed Copyrights. Removed my name. 2015-11-18 20:04:50 +01: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
Daniel Marjamäki ff11ba9847 Updated copyright year to 2015 2015-01-03 12:14:58 +01:00
Daniel Marjamäki fd3a8a2a18 Update copyright 2014-02-15 07:45:39 +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
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 7ffffdfc16 Optionally display error Id in additional column and details view (#3526) 2012-10-27 11:16:52 +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
Reijo Tomperi 8cae17fda8 Update year to 2012 2012-01-01 01:05:37 +02:00
Daniel Marjamäki 6f8e42a5af changed the astyle formatting flags 2011-10-13 20:53:06 +02:00
Kimmo Varis 1002d2e785 GUI: Simplify settings handling in Preferences dialog. 2011-05-13 10:25:52 +03:00
Kimmo Varis b7aa14f0e8 GUI: Improve edit application setttings dialog.
Make the editor application settings dialog to look similar than
include paths dialog. Move buttons right to the list, not below.
And remove unnecessary "application" word from button texts.
Rename Modify-button to Edit-button since we are not modifying
the application but editing its info. Similarly rename Delete-
button to Remove-button since we are not deleting the application
but removing from the list.
2011-02-25 09:43:07 +02:00
Kimmo Varis dd717427e1 GUI: Rename method.
SettingsDialog::PopulateListwidget() was a bit confusing name as
there are more than one list widgets already in settings-dialog.
2011-02-25 09:24:29 +02:00
Kimmo Varis 51eee5f3a7 GUI: Add list control for include paths.
Instead of hard-to-use single line edit control, use list control
for include paths. Have separate buttons for adding, editing and
removing paths. Paths are still stored as one string where paths
are separated with ";". Empty paths are ignored.
2011-02-24 22:12:15 +02:00
Kimmo Varis fd112fc16e GUI: Store selected language as language code.
GUI was storing selected language as index to the languages list.
This is fragile since the order and count of items can change.
This commit changes to using ISO language code (e.g. "en" for
"English").

Fixes ticket #2446 (GUI: Don't use index number for language selection)
2011-02-07 12:30:13 +02:00
Kimmo Varis 29d6b443fa GUI: Add language selection panel to settings-dialog.
Settings-dialog is more natural place for language selection than
the main menu. We also have more space and freedom there to have
longer text etc to make the selection easier (menus are quite limited
controls).
2011-01-10 00:52:02 +02:00
Reijo Tomperi 226b605774 Change year 2010 -> 2011 in license texts. 2011-01-09 21:33:36 +02:00
Kimmo Varis 2dfa1d540e GUI: Add Setting for global include paths.
This commit adds new setting and GUI for global include dirs. When
project file with include dirs is loaded, global includes dirs are
added first and after them the include dirs from project file.
2010-11-26 22:35:45 +02:00
Robert Reif 483a3ddfe1 Fixed #1925 (fix some cppcheck warnings in cppcheck) 2010-08-10 07:26:59 +02:00
Kimmo Varis 3261f848c3 GUI: Fix includes for dialogs/views.
At first we created the GUI in the code and so needed all the layouts
etc include to the code. Now when we are using UI files we don't need
all those included. So clean them up. Also use forward declarations
instead of includes in header files when possible.
2010-07-17 22:57:32 +03:00
Reijo Tomperi 35d2a27b9c Update copyright year in all source files 2010-04-13 22:23:17 +03:00
Reijo Tomperi fdde2182b9 Fix GPL comments in all files. ">." was missing from the end. 2009-09-27 18:08:31 +03:00
Daniel Marjamäki 7df3670128 doc: updated doxygen comments. three groups where created - 'GUI', 'Core' and 'Checks' 2009-07-17 10:49:01 +02:00
Vesa Pikki e973f9653b Settings dialog and application dialog now use Qt Designer ui files. 2009-07-02 19:14:12 +03:00
Vesa Pikki ebfa55b1c3 Began adding translations and using Qt Designer .ui files.
Also added QSetting value names to common.h

Work is halfway on both translations and .ui files.

I added a very quick and rough finnish translation.

The program now requires the translation files to be created before running
that can be done with lrelease gui.pro.

To compile the whole GUI one must do the following
cd gui
qmake
lrelease gui.pro
make
2009-07-02 11:33:28 +03:00
Vesa Pikki b67424785f Added messagebox to inform user about not found/non visible errors. 2009-06-09 10:51:27 +03:00
Kimmo Varis 13eb74173c GUI: Make mainwindow parent of Settings-dialog. 2009-06-06 12:51:14 +03:00
Vesa Pikki a330e9c35f Added the initial version of saving results to a file. 2009-06-03 21:18:22 +03:00
Reijo Tomperi 2a7470e986 Changed EOL character to LF in a few files. 2009-06-02 23:32:58 +03:00
Reijo Tomperi 58eda6e978 Fix ticket #325 (Replace developer names in source files with AUTHORS file)
http://apps.sourceforge.net/trac/cppcheck/ticket/325
2009-05-30 08:48:12 +03:00
Vesa Pikki 04b23b582c User can now undo changes to application list by clicking cancel. 2009-05-24 12:09:31 +03:00
Vesa Pikki 2d8b08d4ab Added more comments to class members and methods. 2009-05-23 19:29:24 +03:00
Vesa Pikki 2b7bf671d7 Now starts the default application by double clicking the error. 2009-05-23 18:45:05 +03:00
Vesa Pikki 78d4318c5e Added the ability to add/remove/modify applications to open errors with.
Only the list of applications added, errors cant be opened yet.
2009-05-23 13:37:30 +03:00