Commit Graph

117 Commits

Author SHA1 Message Date
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 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
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
Daniel Marjamäki 87a118cd16 GUI: Recheck changed files. Ticket: #816 2012-02-14 21:16:11 +01: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 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 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 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 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
Zachary Blair 79370258df Fixed #2758 ([GUI] Provide a means to filter results based on a search string) 2011-05-03 22:30:54 -07:00
Kimmo Varis f9c97c7b56 GUI: Add support for inconclusive errors.
This is the first (and quick) support for the inconclusive errors.
We simply add [Inconclusive] to begin of the summary. This is
temporary solution until better GUI is implemented. XML v1 won't
be supporting inconclusive errors. For XML v2 we need still to
decide what to do.
2011-04-16 14:07:33 +03:00
Kimmo Varis 91345234e0 GUI: Refactoring application definition.
Using Application class as method parameters instead of separate
application attributes.
2011-04-02 16:30:47 +03:00
Kimmo Varis 292984db39 GUI: Simplify handling applications with spaces in paths.
Earlier user had to add quotation marks around application executable
path in application dialog. Because we could not determine which part
is path and which part is parameters. As we now have separate
variables we can automatically add the quotation marks when needed
before starting the application. This reduces the confusion users
have had about the correct formatting of paths.
2011-04-02 12:30:21 +03:00
Kimmo Varis 1f7d9145b0 GUI: Have separate setting for editor app path and params.
Currently combined editor application path + params is a bit
problematic (at least in Windows). We really don't know where the app
path ends and parameters start. So proper quoting is not always
possible.

And application path and command line parameters are clearly
different settings anyway. So make them separate settings. It has
bunch of other positive sides too. Like one can now browse new path
for the application without loosing the parameters.

When starting Cppcheck version with these new settings user is warned
that loading settings had problems and asked to check and fix the
settings.
2011-04-02 12:30:16 +03:00
Kimmo Varis d9efd53033 GUI: Add back translation of severity texts.
Translation of severity texts was temporarily disabled by earlier
commits. Now adding new method to ResultsTree for getting
translated severity string.
2011-03-07 23:35:58 +02:00
Kimmo Varis 0d27966eb8 GUI: Update more severity conversion methods. 2011-03-07 23:11:59 +02:00
Kimmo Varis 5bf98447c9 GUI: Make Severity to ShowType use enum values.
Continue converting Severity use in GUI from QString to enum
values.
2011-03-07 22:36:47 +02:00
Kimmo Varis d2c06501d9 GUI: Convert severity in ErrorLine to enum value.
This commit continues converting severity in GUI to enum.
2011-03-07 21:20:09 +02:00
Kimmo Varis 7c589384d2 GUI: Use severity enum in ErrorItem.
Convert from using string to enum values for severity in ErrorItem.
Storing and handling severity as string was the easy way earlier
but it is not convenient or efficient way to handle severities.
This commit is the first step in converting severity handling to
use the enum values instead of strings.
2011-03-07 21:10:30 +02:00
Kimmo Varis e6e616e542 GUI: Fix opening error item with default app. 2011-02-25 12:16:20 +02:00
Erik Lax a1c1234596 Fixed: #2460 (GUI: Errors are sorted by line number alphabetically instead of numerically) 2011-02-11 21:03:39 +02:00
Reijo Tomperi 226b605774 Change year 2010 -> 2011 in license texts. 2011-01-09 21:33:36 +02:00
Kimmo Varis 2a93aa9fce GUI: Convert path to native separators before copying it.
Ticket #2424 (Windows GUI: "Copy full path" doesn't copy the visible full path if it has been changed in preferences)

We keep paths internally with / separator and only convert to native
separators (for Windows) when showing them. Conversion was missing
from path copying function.
2011-01-06 20:36:35 +02:00
Kimmo Varis f150f1ba05 GUI: Add GUI for showing 'portability' warnings.
Add menuitem, icon and toolbar button for portability warnings.
Ticket #2359 (Gui: Show portability warnings).
2010-12-27 11:06:31 +02:00
Kimmo Varis a73970483d GUI: Add "Information" errors items to menu and toolbar. 2010-12-26 15:23:55 +02:00
Kimmo Varis 84180e4fcd GUI: Change Style-warnings icon.
I want to use the current Style-warning icon for Information
messages. So change the Style-warning icon first to new
icon.
2010-12-26 15:23:54 +02:00
Kimmo Varis 31c974c954 GUI: Add Information-severity support. 2010-12-26 15:23:54 +02:00
Kimmo Varis 9186cd8503 GUI: Add partial support for portability severity.
Add 'backend' support for the new 'portability' severity. The new
severity is handled, converted to new SHOW_PORTABILITY and added
with correct type to the result view.

There is no menuitem/toolbar button to show/hide portability
items. Likewise there is no line for portability issues in stats-
dialog.

Ticket #2106 (More severities and new xml format)
2010-12-13 11:25:45 +02:00
Kimmo Varis 8e8e1d1d72 GUI: Collect statistics about amount of different severities.
Add new class for collecting statistics per each error severity. Add
a new tab to Statistics-dialog for these numbers.
2010-11-30 22:50:57 +02:00
Kimmo Varis e0702d3ef8 GUI: Allow selecting multiple items in results tree.
If multiple items are selected then other than "Hide" context menu
items are disabled.
2010-11-28 23:26: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
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 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
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 c80c709d7e Add missing include lines. 2010-10-31 13:26:23 +02: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 bee8d15848 GUI: Add support for warning and performance -error types. 2010-10-18 20:50:34 +03:00
Kimmo Varis 0fd51a814f Fix ticket #2041 (GUI: duplicate messages because file name case different) 2010-09-10 17:42:14 +03:00
Robert Reif 483a3ddfe1 Fixed #1925 (fix some cppcheck warnings in cppcheck) 2010-08-10 07:26:59 +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 c606dc8403 GUI: Show paths with native separators in result tree.
GUI used to show paths with / separator which is not native
separator in Windows. So lets convert shown paths to native
separators before adding them to the GUI.
2010-07-17 20:26:24 +03:00