Commit Graph

462 Commits

Author SHA1 Message Date
Kimmo Varis e0e0e3b4fa GUI: Change text in Add Application-dialog back to plain text.
Revert change ca9f8a7036 that converted
text in Add Application -dialog to rich text. The text is plain
text and doesn't use any formatting so plain text is good for it.
2010-11-26 23:20:25 +02:00
Kimmo Varis 14ee95eab7 GUI: Cleanup duplicate code. 2010-11-26 22:51:38 +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
Kimmo Varis c685035ca4 GUI: Fixing includes. 2010-11-24 17:39:53 +02:00
Kimmo Varis 458af3c931 Merge branch 'error-details'
Conflicts:
	gui/resultstree.h
	gui/resultsview.cpp
2010-11-24 17:24:36 +02:00
Kimmo Varis c6046b6663 GUI: Clear the details panel when starting new check. 2010-11-24 17:09:02 +02:00
Zachary Blair 6b9d9188c9 Fixed #1861 (GUI: Allow hiding error) Disabled menu item when not applicable 2010-11-24 00:48:07 -08:00
Kimmo Varis 0da55d6477 GUI: Improve updating details view.
After previous patches the details view was only updated when the
item was clicked with mouse. This patch improves the updating and
now it works also when changing selected item using keyboard.
2010-11-23 22:37:31 +02:00
Kimmo Varis f1b511a366 GUI: Remember main window splitter state.
Save and restore the vertical splitter state (sizes of tree view and
details panel).
2010-11-23 21:57:16 +02:00
Kimmo Varis 81a599e260 GUI: Rename the splitter widget. 2010-11-23 21:32:35 +02:00
Kimmo Varis 74c15d436b GUI: Add missing include lines. 2010-11-23 00:37:29 +02:00
Kimmo Varis 20334815c6 GUI: Remove Message-column from the error tree view.
The full detailed message is shown in the own panel below error tree.
2010-11-22 23:32:04 +02:00
Kimmo Varis 060131df2f GUI: Add own panel for detailed error messages.
This commit adds new rich text panel for the detailed error messages.
When user clicks error item the detailed error text is updated to
the panel. This way we have much more freedom in formatting the
message and user can easily copy/paste (parts of) the message.
2010-11-22 23:13:12 +02:00
Zachary Blair a16c0dbd5e Fixed #1861 (GUI: Allow hiding error) 2010-11-21 10:55:34 -08:00
Kimmo Varis 3fba8b52c0 GUI: Right-align line number. 2010-11-19 23:11:40 +02:00
Kimmo Varis a0a1ad806a GUI: Add tooltips for error items. 2010-11-19 22:54:40 +02:00
Kimmo Varis 3226281c59 GUI: Add new "Summary" column to results.
Summary column contains the short message core produces.
2010-11-11 23:15:06 +02:00
Kimmo Varis 999e446777 GUI: Add new short summary to error structures.
Also rename 'msg' in structures to 'message' for consistency.
2010-11-11 22:51:00 +02:00
Kimmo Varis 53e9938afe GUI: Add path separator in ProjectFiles dialog.
Add path separator to end of the paths user added via Browse-dialog.
2010-11-11 22:08:10 +02:00
Kimmo Varis 1e503cbad5 GUI: Show native paths in ProjectFiles -dialog.
When adding paths to the dialog convert them to native separators.
When saving the paths convert them to internal separators.
2010-11-11 22:08:10 +02:00
Kimmo Varis abf0a2ea52 GUI: Add buttons to add new paths to ProjectFile dialog. 2010-11-11 22:08:10 +02:00
Daniel Marjamäki ba7a3b376e Fixed #2167 (Drop linefeeds from error messages) 2010-11-11 19:54:43 +01:00
Kimmo Varis c80c709d7e Add missing include lines. 2010-10-31 13:26:23 +02:00
Kimmo Varis ca9f8a7036 GUI: Improve External editor add/edit dialog layout.
Get rid of the form layout stretching the Browse-button so wide. Use
form-like but more flexible layout. Change the term 'Application to
execute' to 'Command to execute'. This reduces duplication and makes
clear difference between application name and the command to execute
to start the application. Fix also tab ordering so that the
application name field gets the focus initially.
2010-10-28 23:47:30 +03:00
Kimmo Varis 3b4770e5a3 GUI: Use Notepad in Windows as default editor if Notepad++ not found. 2010-10-28 23:21:05 +03:00
Kimmo Varis 16fe2f8802 GUI: Failed to start default Notepad++.
Notepad++ found and set as editor by default failed to start. There
were no quotation marks around path containing space chars.
2010-10-28 22:54:30 +03:00
Kimmo Varis d2182dbd3e GUI: It is Notepad++ with capital first letter. 2010-10-28 22:32:35 +03:00
Kimmo Varis 6b017f6a2c GUI: Fix modality of Application dialog when editing application. 2010-10-28 22:32:01 +03:00
Kimmo Varis 3ad4067262 GUI: Fix saving new error categories names. 2010-10-28 20:04:35 +03:00
Kimmo Varis 23eb8c41eb GUI: Add icons for warning/performance categories and add them to toolbar. 2010-10-18 21:35:35 +03:00
Kimmo Varis aefa7d3370 GUI: Shorten menutexts for error/style items.
Items located in 'View' menu don't need 'Show' word as View-menu name
already implies it is about viewing items.
2010-10-18 20:58:04 +03:00
Kimmo Varis bee8d15848 GUI: Add support for warning and performance -error types. 2010-10-18 20:50:34 +03:00
Reijo Tomperi 3bedc9331e Fix encoding in some files 2010-10-03 00:20:18 +03:00
Kimmo Varis 72759de7a9 GUI: Fix path separators in project file.
Qt 4.7 qmake warns about using backslash in paths.
2010-09-26 10:13:21 +03:00
Daniel Marjamäki d9e7dd4d31 ln-: updated copyright 2010-09-16 22:15:37 +02:00
Kimmo Varis b88ce77e4a Rename gui to cppcheck-gui.
The 'gui' as executable name is way too general. So this commit
renames it to 'cppcheck-gui' which clearly says it is gui for
cppcheck.
2010-09-11 12:15:46 +03:00
Kimmo Varis 0fd51a814f Fix ticket #2041 (GUI: duplicate messages because file name case different) 2010-09-10 17:42:14 +03:00
Kimmo Varis c0d1bfeedf GUI: use new style API to enable style checks. 2010-09-06 23:28:41 +03:00
Kimmo Varis cf2822c427 GUI: Upate translation files. 2010-09-05 12:47:10 +03:00
Sbastien Debrard 2049f70754 Fixed #1972 (file extensions) 2010-09-02 19:17:47 +02:00
Kimmo Varis 6777718403 GUI: Fix slot name for debugerrors.
Now DebugErrors get correctly routed to check log. The wrong slot
name also caused a warning printed to the console as reported by
thevbm in ticket #2006.
2010-09-01 19:42:28 +03:00
Zachary Blair 15b4cab4bb Fixed #1934 (GUI: Add checking info display) 2010-08-31 23:33:19 -07:00
Kimmo Varis 2f0a245032 Fix error I made merging my internal error handling.
GUI didn't show debug warnings even if they were enabled.
2010-08-29 14:06:01 +03:00
Kimmo Varis b0fa7bfd8c GUI: Add option to show debug warnings in checking log. 2010-08-29 09:38:03 +03:00
Kimmo Varis 20a4f1e195 GUI: Output debug errors to log view.
Debug errors were not shown anywhere in the GUI, they were just
ignored. This commit adds new signal for those debug errors and
directs them to checking log.

Solves ticket #1898 (GUI: Handle internal errors from lib)
2010-08-28 20:37:21 +03:00
Kimmo Varis 35afc4c63f GUI: Disable debug warnings for now. 2010-08-28 09:21:25 +03:00
Kimmo Varis 11e073cf99 GUI: Fix compiling. 2010-08-28 09:16:01 +03:00
Daniel Marjamäki 4d6b7bea2e GUI: some fixes of help
* moved the help file to the application folder
 * use absolute path instead of relative path for helpfile
 * show warning messages if help file doesn't exist or fails to be loaded
2010-08-25 20:08:07 +02:00
Kimmo Varis c0c4d18120 GUI: Disable project opening while checking files. 2010-08-25 20:59:30 +03:00
Kimmo Varis b6bef44f61 GUI: Fix enabling project closing action.
Project closing action was not enabled when the project file was
opened from the checked directory. Also update the window caption to
contain project file name that was opened from the checked
directory.
2010-08-25 18:54:45 +03:00
Kimmo Varis 501015c760 GUI: Fix GCC build failure because of copy-paste error. 2010-08-25 01:01:44 +03:00
Kimmo Varis 28996bd9c1 Fixed #1978 (Fix compiler warnings in GUI (MainWindow::mExiting’ will be initialized after...)) 2010-08-25 00:56:45 +03:00
Kimmo Varis 8731b3efdd Fixed #1977 (GUI crashes when checking a directory)
The GUI was crashing if no project files were in checked directory.
I missed this case in my own testing because I had created test
project files for each directory. Whoops!

Anyway, this now also makes silently loaded project files (project
file residing in directory but not load by the user) as normal
projects in the GUI.
2010-08-25 00:47:05 +03:00
Kimmo Varis ce0f65e761 GUI: Fix for loading "oldstyle" project file. 2010-08-24 20:50:25 +03:00
Kimmo Varis 4ccdcf0fc2 Merge remote branch 'remotes/kimmo/loadable-project'
Conflicts:
	gui/gui.qrc
	gui/mainwindow.cpp
	gui/mainwindow.h
2010-08-24 20:37:51 +03:00
Daniel Marjamäki d97b3bd9d9 GUI: Added icons to the help window. 2010-08-23 22:01:01 +02:00
Kimmo Varis f2e3090a83 GUI: Fix bug that same defines were added to list several times. 2010-08-21 22:59:55 +03:00
Kimmo Varis dbf097326d Improve project file documentation. 2010-08-21 22:54:28 +03:00
Kimmo Varis 2f063ad775 GUI: Use rootpath from Project file.
If rootpath is given in project file then use it as a current
directory. Also check if paths given in project file are
relative and use rootpath as base path for relative paths.
2010-08-21 19:38:51 +03:00
Kimmo Varis d967151c32 GUI: Add project root path to Project file -dialog. 2010-08-21 17:08:10 +03:00
Daniel Marjamäki 8432e0048f GUI: updated helpwindow ui 2010-08-21 13:43:07 +02:00
Daniel Marjamäki 65c5b9906e GUI: Fixed help window leaks and made sure it is closed when the gui is closed 2010-08-21 11:02:52 +02:00
Kimmo Varis 1e7694d56b GUI: Add new optional root-element to project file.
Add support for new root-element to project file. This element
defines project root directory if given. If not given then project
root is directory where the project file is located.
2010-08-20 23:58:00 +03:00
Daniel Marjamäki ac8544f3b3 GUI: fixed the online-help.qhp file listing 2010-08-20 22:31:49 +02:00
Daniel Marjamäki 1e59302be6 GUI: Removed the help collection file because it didn't work on different Qt setups 2010-08-20 22:12:40 +02:00
Daniel Marjamäki 06b9cdb679 GUI: Updated online-help. This is still under work. 2010-08-20 21:25:43 +02:00
Daniel Marjamäki 1d0debddef astyle formatting 2010-08-20 19:31:23 +02:00
Kimmo Varis 5a65f4d55d GUI: Prevent opening new files or directories when project file loaded. 2010-08-19 22:28:56 +03:00
Kimmo Varis 2da6a242d2 GUI: Set current directory when loading a project file. 2010-08-19 22:06:45 +03:00
Daniel Marjamäki 043ff6aab5 GUI: Added generated file online-help.qhc because it is not yet autogenerated when building 2010-08-19 19:21:39 +02:00
Daniel Marjamäki c83461c858 GUI: added simple help file 2010-08-19 18:58:40 +02:00
Daniel Marjamäki 2fea5f01d6 GUI: quick fix for #1957 (Unable to compile gui.pro with Qt Creator in Windows) 2010-08-19 18:21:42 +02:00
Kimmo Varis c8e073576c GUI: Add icon for Open Project and add it to toolbar. 2010-08-19 17:47:27 +03:00
Kimmo Varis 6a3bccae6f GUI: Add check paths field to Project File -dialog. 2010-08-17 19:32:29 +03:00
Kimmo Varis aef0aeb974 GUI: Set project filename to main window caption.
When project file is closed the caption is emptied.
2010-08-17 18:06:17 +03:00
Kimmo Varis d4210f4fc0 GUI: Leave new project file open and selected.
When user creates new project file one probably wants to keep using
the same project file. So leave it open for use.
2010-08-15 22:51:15 +03:00
Daniel Marjamäki 8d52c33790 GUI: Use Notepad++ by default in windows. Ticket: #1931 2010-08-15 16:40:16 +02:00
Tim Gerundt eb6d596085 Fixed #1916 (gui: Update german translation) 2010-08-15 16:07:48 +02:00
Kimmo Varis 0f4d067926 GUI: Add menuitem to edit open project file.
Earlier we opened project file only for editing. But now that we
really use project files we need separate feature for editing
them.
2010-08-15 16:12:32 +03:00
Kimmo Varis ab1aaf9a45 GUI: Add menuitem to close open project file. 2010-08-15 12:12:28 +03:00
Kimmo Varis c98d398398 GUI: Open project file and check contained paths.
Now we load user-selected project file and start checking paths it
contains. Project file can be anywhere as long as it contains valid
path(s) to check.
2010-08-15 11:35:46 +03:00
Daniel Marjamäki 676e0d2c70 astyle formatting 2010-08-15 08:11:32 +02:00
Erik Lax 6423288d2e Fixed #1931 (GUI should try to detect the best possible editor) 2010-08-15 07:58:14 +02:00
Kimmo Varis a82edf5278 GUI: Add check paths to project file.
Add new element containing paths to check into the project file. This
is for growing project files to real project files that can be loaded
and selected from the GUI. And decoupling project files from the
directory they reside. So you can put project file in any directory,
load it and it checks paths listed.
2010-08-14 18:42:37 +03:00
Kimmo Varis 737ca1a968 Fix filenames starting with capital letters.
I accidentally committed two new files with filenames starting
with capital letters from Windows machine. The Linux build
breakage was fixed by fixing the include lines. But the correct
fix is to fix filenames as we are using all lower letter filenames
in this project.
2010-08-11 17:22:39 +03:00
Ettl Martin 653b5f37b8 gui: fixed regression du to case sensitifity of Linux 2010-08-10 23:04:59 +02:00
Kimmo Varis 2a294babc3 GUI: Use canonical path as checking path.
Cleanup the path name before starting checking and saving it.
2010-08-10 18:13:53 +03:00
Kimmo Varis 7dbe5b547a GUI: Implement FileList class to handle list of files to check.
Create a list of files to check. Currently we only read this list
once. But later on we can refer to this list to for example
determine which files were checked and which not in aborted
checking.
2010-08-10 18:13:53 +03:00
Robert Reif 483a3ddfe1 Fixed #1925 (fix some cppcheck warnings in cppcheck) 2010-08-10 07:26:59 +02:00
Kimmo Varis 9a9266b042 GUI: Add lib to include- and dependency-directories. 2010-07-27 17:39:33 +03:00
Kimmo Varis 45a6742e3f Windows: Add _CRT_SECURE_NO_WARNINGS define.
The _CRT_SECURE_NO_WARNINGS define suppresses some Windows-specific
compile warnings. Windows has "secure" versions of some functions
and compiler outputs warnings that those "secure" versions should
be used instead. Since other platforms don't have those functions
we just suppress this warning for now on.
2010-07-27 17:34:13 +03:00
Ettl Martin 76fbbd7bd0 fixed regression due to missing settings.h 2010-07-26 22:59:35 +02:00
Daniel Marjamäki 3c376047ba pulled changes from kimmov (filelocation-refactor) 2010-07-19 18:06:49 +02:00
Kimmo Varis c3dfe1a356 GUI: Fix bug that every error item got own parent item.
The code could not find existing parent item since items have paths
with native separators and search was done with non-native path
separators.
2010-07-18 13:17:21 +03:00
Kimmo Varis 50b41a25de Fixed #1870 (Wrong path in report)
Current directory was set from first file in the list. That file
could be in subdirectory when wrong path was set. Also getting
absolute path was buggy.
2010-07-18 13:00:39 +03:00
Kimmo Varis d8077cf2f7 Fixed #1870 (Wrong path in report)
Current directory was set from first file in the list. That file
could be in subdirectory when wrong path was set. Also getting
absolute path was buggy.
2010-07-18 12:57:48 +03:00
Kimmo Varis 006c9f17d4 GUI: Avoid unnecessary path separator conversion. 2010-07-18 11:20:10 +03:00
Kimmo Varis 0b463dadb9 GUI: Close application cleanly when exiting while checking.
Earlier commit allowed cppcheck to exit immediately while checking.
This however leads crashes and error logs shown since the thread
termination leaves things in inconsistent state. I thought cppcheck
would close fast enough so these could be ignored. But apparently
not.

So this commits adds new bool mExiting for MainWindow and sets that
to true when exiting while checking. When the checking is ready this
attribute is checked and if it is true the application can now be
cleanly exited.
2010-07-17 23:52:50 +03: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
Kimmo Varis 93bfa24d3e GUI: Ensure native path separators in reports.
Ensure that native separators are used in saved reports. Reports may
be parsed by other programs/scripts so it is important that paths
are properly formatted.
2010-07-17 21:07:09 +03:00