Commit Graph

339 Commits

Author SHA1 Message Date
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
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
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
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 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
Kimmo Varis 4a695c78d9 GUI: Add two new files I forgot to add earlier. 2010-07-13 00:10:48 +03:00
Daniel Marjamäki 7d0fd3f2aa Fixed #1849 (GUI: failed to build gui) 2010-07-12 20:39:20 +02:00
Martin Ettl cba711f293 gui/main added spaces between template brackets 2010-07-12 20:02:58 +02:00
Kimmo Varis 4ceea93945 GUI: Show project file's name in project file -dialog title. 2010-07-12 20:31:37 +03:00
Kimmo Varis e468779feb GUI: Don't mention auto-allocated classes even in comments. 2010-07-12 20:22:19 +03:00
Kimmo Varis bf1b49b370 GUI: Add Project class to handle project files and projects.
This commit separates logic more from the GUI. The dialog class is
only responsible from showing the dialog and handling data in it.
Other related classes do the project file reading/saving/etc.
2010-07-12 20:21:45 +03:00
Kimmo Varis 75f6ca5b66 GUI: Disable opening XML report file when checking files. 2010-07-12 02:18:26 +03:00