Commit Graph

542 Commits

Author SHA1 Message Date
Markus Elfring ccf1282c91 Deletion of "htmlhelp" from link setting in a CMake script (bug #2524, #1957)
The library "htmlhelp" is not needed by the graphical user interface at the moment.
2fea5f01d6 (gui)/gui.pro

There are difficulties to fulfil this dependency.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-03-28 09:03:04 +02:00
Markus Elfring db84b3d0e7 Renaming of the file for the Swedish translation in a CMake script (bug #2524)
A translation file was renamed to use the correct ISO-639 name.
03bd4fa463 (gui)/gui.pro

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-03-26 20:57:55 +01:00
Markus Elfring 87d85cd89e Renaming of the GUI executable to "cppcheck-gui" in a CMake script (bug #2524)
The executable file for the graphical user interface was renamed in a CMake
script to synchronise this setting with the qmake build specification.
b88ce77e4a (gui)/gui.pro

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2011-03-26 20:55:08 +01:00
Kimmo Varis 9a5d45a968 GUI: Update online-help to open the HTML manual. 2011-03-26 20:37:28 +02:00
Daniel Marjamaki c6b176014b cmake: removed the non-working pcre. ticket: #2679 2011-03-26 19:03:11 +01:00
Kimmo Varis aab1b996ab GUI: Remove help viewer files from CMake build. 2011-03-26 17:52:08 +02:00
Kimmo Varis 3965a08b7b GUI: Open online-help instead of local help.
Local help does not currently work (ticket #2316) and building it
is a bit painful in Windows. Hence it was decided on ticket #2677
and at IRC that we open on-line help from GUI until the local
help issue is solved.
2011-03-26 16:06:11 +02:00
Sebastien Debrard 29b7d4b9c3 sync cmake files with the master branch 2011-03-26 02:03:52 +01:00
Markus Elfring 9301ee28a8 Added CMake files 2011-03-25 07:14:53 +01:00
Kimmo Varis 056f8b3a52 GUI: Update translation files. 2011-03-20 16:24:14 +02:00
Kimmo Varis 03bd4fa463 GUI: Rename Swedish translation file.
Ln pointed out in IRC that 'se' is not ISO-639 name of the Swedish,
but 'sv' is. So rename the translation file to use the correct
ISO-639 name. This wrong name also probably caused the GUI not
recognizing Swedish locale of the OS.
2011-03-20 16:24:14 +02:00
Kimmo Varis c34a129102 GUI: Update About-dialog copyright year to 2011. 2011-03-08 08:59:52 +02:00
Kimmo Varis d8ced1dbb1 GUI: Initialize Severity in ErrorItem constructor. 2011-03-07 23:43:59 +02: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
Daniel Marjamäki a2d2d93958 astyle formatting 2011-03-01 17:58:15 +01:00
Kimmo Varis 81318bb4a1 GUI: Fix compiling. 2011-02-28 17:41:52 +02:00
Kimmo Varis 1c4e9c662b GUI: Show native path separators.
Show native path separators in project file-dialog. Convert paths
to internal separators when reading from project file and when
reading from the dialog. Convert to native separators when adding
to the dialog (for the user).
2011-02-28 17:18:14 +02:00
Kimmo Varis b1db29278d GUI: Update project file description file. 2011-02-28 16:31:46 +02:00
Kimmo Varis 819dddf570 GUI: Add path separator for ignore dirs. 2011-02-28 16:24:18 +02:00
Kimmo Varis ae11b064c8 GUI: Small cleanup for projectfile code. 2011-02-28 16:21:03 +02:00
Kimmo Varis fb74da7fbf GUI: Fix bug mixing include and ignore dirs in GUI. 2011-02-28 16:18:16 +02:00
Kimmo Varis 6fc90d1f18 GUI: Write ignore paths to project file. 2011-02-28 16:08:14 +02:00
Kimmo Varis bd405c454a GUI: Add GUI for ignored paths in project files.
Add similar GUI than include paths has. Currently there is only
possibly select directories directly from the GUI. But filename
can be added to the path by editing it.
2011-02-28 15:58:44 +02:00
Kimmo Varis 46f7a81b7b GUI: Take filtering into use in GUI.
Add applying of filtering into list of files to check if we have
an active project file. Filtering is quite much similar to the
filtering in CLI.

If we have directory filter ("gui/") then we check all paths if
they contain "gui" part. In practice we search for string "/gui"
from the paths. If we have filename filtering
("gui/projectfile.cpp") then we check if any of the paths end
with that.
2011-02-28 00:13:28 +02:00
Kimmo Varis 9de4ce8c8e GUI: If project open failed project got invalid.
The project was deleted but not set as NULL when the project
open failed. Fix this by deleting the project only when the
opening succeeds.
2011-02-27 19:09:20 +02:00
Kimmo Varis e81fa46699 GUI: Convert some projectfile method arguments const. 2011-02-27 18:53:57 +02:00
Kimmo Varis d6f6da10fa GUI: Add ignored paths support to project file.
This patch adds support for ignored paths in the project file.
There is new <ignore> element which can contain one or more
<path> elements with name attribute containing the path to
ignore.
2011-02-27 18:32:53 +02:00
Kimmo Varis a80a38e25c GUI: Update translation files. 2011-02-26 13:23:06 +02:00
Kimmo Varis cf4a73eb80 GUI: Use list to manage paths in project file.
Handling paths in line edit control is quite hard. List control is
much more pleasant to use for it. Convert Project file path
handling to similar list control usage than include paths earlier.
2011-02-26 13:18:11 +02:00
Kimmo Varis d1d0706154 GUI: Edit project's include directories as list.
Editing include directories in edit control is not nice. Instead
add new tab and list control for the include directories. They
are now added, edited and removed like global include directories
in settings dialog.
2011-02-25 20:34:55 +02:00
Kimmo Varis ece896a13d GUI: Fix for initializing default application. 2011-02-25 18:01:23 +02:00
Kimmo Varis 74c85b6b70 GUI: Select the default application in app list. 2011-02-25 13:15:53 +02:00
Kimmo Varis 166e5248db GUI: Rename methods.
We don't need the 'type' postfix. We are handling applications,
not application types.
2011-02-25 13:07:42 +02:00
Kimmo Varis e6e616e542 GUI: Fix opening error item with default app. 2011-02-25 12:16:20 +02:00
Kimmo Varis 085034ddf7 GUI: Fix for removing application.
The default application was not handled correctly when removing
application from the list. If the default application is removed
then we reset the default application to unknown. Otherwise we
make sure the default application is correct after the removal of
other application.
2011-02-25 12:04:10 +02:00
Kimmo Varis eabec80154 GUI: Show default application with [Default] text.
Instead of keeping the default application as a first item in
the application list point the default application by adding a
"[Default]" text after its name.
2011-02-25 11:45:04 +02: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
Greg Hewgill c3fe6f80da fix CppCheck constructor to allow gui to compile 2011-02-23 21:58:38 +13:00
Erik Lax eddbfbee1e Fixed: #2572 (GUI: Disable all UI actions on Recheck) 2011-02-11 21:08:37 +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
Kimmo Varis 1e3efd08f8 GUITEST: Add test reading XML format v2 file. 2011-02-09 22:08:29 +02:00
Kimmo Varis 4d886f8c3b GUITEST: Add test for reading old format XML report. 2011-02-09 22:08:25 +02:00
Kimmo Varis 11378108fa GUITEST: Add test for checking XML report version. 2011-02-09 22:08:25 +02:00
Kimmo Varis aa6341dbed Astyle: add option to convert to linux EOLs. 2011-02-09 14:13:37 +02:00