396 Commits

Author SHA1 Message Date
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
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
Kimmo Varis
d5a6b02e9e GUI: Fix building after path handling refactorings. 2010-07-17 18:36:21 +03:00
Kimmo Varis
db7c9848d0 GUI: Update translation files. 2010-07-17 10:54:53 +03:00
Kimmo Varis
de767a7cf1 GUI: Remember log view size. 2010-07-16 23:27:57 +03:00
Kimmo Varis
8bf8dd4bf7 GUI: Add Clear-button to log view. 2010-07-16 18:35:51 +03:00
Kimmo Varis
7f3825d922 GUI: Add close-button to log view. 2010-07-16 18:07:23 +03:00
Kimmo Varis
7e88d7b41d GUI: Add simple log view.
Adding a simple log view which shows log messages the core code
emits.
2010-07-16 17:48:13 +03:00
Kimmo Varis
f5024a7f67 Fixed #1853 (GUI: Allow closing gui.exe while checking)
The GUI now asks if user wants to stop the current checking and exit
the application.
2010-07-16 12:44:11 +03:00
Kimmo Varis
f81774f5b9 GUI: Fix compile after Severity changes. 2010-07-14 21:12:54 +03:00
Kimmo Varis
6c6ab0a78d GUI: Sent ErrorItem with Error -signal.
This commit modifies and registers ErrorItem as proper metatype so it
can be used with Qt signals. Then sending Error-signals is refactored
so that ErrorItem instances are sent instead of several different
arguments that already contained couple of lists.
2010-07-14 14:24:46 +03:00
Kimmo Varis
cff008634e GUI: Update translation files. 2010-07-13 13:02:12 +03:00
Kimmo Varis
b92f7b854a GUI: Disable Project file menu items when checking. 2010-07-13 12:46:28 +03:00
Kimmo Varis
cc64907edb GUI: Remove ; from the end of the include/define strings in dialog. 2010-07-13 12:40:20 +03:00
Kimmo Varis
4a1708013e GUI: Rename project file related methods in mainwindow. 2010-07-13 12:33:24 +03:00
Daniel Marjamäki
414dbdb295 Merge branch 'master' into projfile-gui 2010-07-13 07:49:17 +02:00
Martin Ettl
51beb6d01a gui/main added spaces between template brackets 2010-07-13 00:13:08 +03:00