Commit Graph

179 Commits

Author SHA1 Message Date
Kimmo Varis 9a5d45a968 GUI: Update online-help to open the HTML manual. 2011-03-26 20:37:28 +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
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
Erik Lax eddbfbee1e Fixed: #2572 (GUI: Disable all UI actions on Recheck) 2011-02-11 21:08:37 +02:00
Kimmo Varis e15bc488c9 GUI: Better handling of unknown language loading.
If there were unknown language in settings the fallback to English
language didn't work as expected. And there were no proper current
language set after that. Initialize current language to English
so we always have English as proper fallback.
2011-02-08 18:22:44 +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 7d9f8e1706 GUI: Remove unneeded translation code. 2011-02-06 20:56:04 +02:00
Kimmo Varis eaf0bca8fe GUI: Write XML version 2.
Ticket #2521 (GUI: Add XML format 2 support)
2011-02-04 22:42:43 +02:00
Kimmo Varis 001d382614 GUI: Enable warnings about missing include files. 2011-01-26 23:44:15 +02:00
Kimmo Varis 85a700b496 GUI: Remove Language-menu.
We now have language selection in Settings-dialog.
2011-01-10 00:52:02 +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 b7a3fc4908 GUI: Enable information messages.
Dan added new enable-flag for information messages in commit 033e759.
Enable that flag for GUI so that the information messages are visible
in the GUI.
2011-01-05 23:33:53 +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 991318d0de GUI: zero is not valid value for bool type. 2010-12-26 18:37:11 +02:00
Kimmo Varis d367243039 GUI: Allow enabling inline suppressions from the GUI.
Ticket #2342 (inline suppressions not available from the GUI)
2010-12-26 18:29:43 +02:00
Kimmo Varis a73970483d GUI: Add "Information" errors items to menu and toolbar. 2010-12-26 15:23:55 +02:00
Kimmo Varis 31c974c954 GUI: Add Information-severity support. 2010-12-26 15:23:54 +02:00
vBm 46a11183a5 Fixed some spelling mistakes 2010-12-15 18:45:53 +01: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 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 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 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
Zachary Blair a16c0dbd5e Fixed #1861 (GUI: Allow hiding error) 2010-11-21 10:55:34 -08:00
Kimmo Varis bee8d15848 GUI: Add support for warning and performance -error types. 2010-10-18 20:50:34 +03:00
Kimmo Varis c0d1bfeedf GUI: use new style API to enable style checks. 2010-09-06 23:28:41 +03:00
Zachary Blair 15b4cab4bb Fixed #1934 (GUI: Add checking info display) 2010-08-31 23:33:19 -07: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 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
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 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
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
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 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 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