Kimmo Varis
9dd1515f6f
GUITEST: Add couple of tests for XmlReport.
2011-02-09 01:59:12 +02:00
Kimmo Varis
2684b230f1
GUITEST: Add first GUI test testing TranslationHandler.
2011-02-08 23:42:50 +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
f66bdad03d
GUI: Enable French translation.
...
French translation file was added to the source tree but not added
to the code loading translations.
2011-02-07 12:59:46 +02:00
Kimmo Varis
76b235b9cf
GUI: Add comments for translationhandler.h.
2011-02-07 12:56:32 +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
64a70fa51c
GUI: Refactoring translation handling.
...
Instead of separate language name and filename lists use one
list of structs. This makes language name and filename more
connected and makes handling of them easier.
2011-02-06 22:00:16 +02:00
Kimmo Varis
7d9f8e1706
GUI: Remove unneeded translation code.
2011-02-06 20:56:04 +02:00
Kimmo Varis
2a49ff9c4d
GUI: Sort the languages list.
2011-02-06 20:47:12 +02:00
Kimmo Varis
b62d034eae
GUI: Update translation files.
2011-02-05 23:46:10 +02:00
Kimmo Varis
1e5743ff1e
GUI: Add French translation to project file.
2011-02-05 23:46:05 +02:00
Kimmo Varis
e8ebbf2701
GUI: Update translation files.
2011-02-05 18:38:17 +02:00
Kimmo Varis
dd0182c99d
GUI: Fix reading multiple error locations from XML.
2011-02-05 18:33:45 +02:00
Kimmo Varis
c116caa7eb
Merge branch 'xml2-refactoring'
2011-02-05 16:11:58 +02:00
Kimmo Varis
f279fcd351
GUI: Unquote special characters when reading XML.
...
Unquote the quoted data from XML file when reading. We don't want
quoted chars to be visible in the GUI.
2011-02-05 16:07:59 +02:00
Kimmo Varis
9eacceb00a
GUI: Read XML format version 2 files.
...
Implement the parsing of XML format v2 error data.
2011-02-05 15:56:56 +02:00
Kimmo Varis
d31703e452
GUI: Read ErrorItems instead of ErrorLines from XML report.
...
XML report format 1 only had error "lines" that we promoted to "items"
when adding to GUI. XML report format 2 contains error "items" so
change the code to read items and do the promotion directly when
reading and parsing the data.
2011-02-05 12:41:29 +02:00
Kimmo Varis
0f0f53f919
GUI: Determine the XML report format before reading report.
2011-02-05 12:12:34 +02:00
Kimmo Varis
299e200d45
GUI: Quote special chars in the XML output.
...
Fixes ticket #2543 (GUI: Xml report does not quote special characters)
2011-02-05 00:23:25 +02:00
Kimmo Varis
df231aa738
GUI: Add base class for XML report classes.
...
A base class is needed for e.g. some common routines that can be
shared between the formats.
2011-02-04 23:56:14 +02:00
Daniel Marjamäki
45327e46cd
GUI: Updated the swedish translation
2011-02-04 22:05:37 +01: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
Robert Reif
52fea0f245
Ticket #2522 (update project files to fix missing include messages)
2011-01-31 22:18:16 +02:00
Kimmo Varis
0112cd505d
GUI: Update translation files.
2011-01-31 11:20:03 +02:00
Kimmo Varis
f70aaac5cd
GUI: Reword the option for checking all #ifdefs.
...
The current wording was confusing (espcially related to CLI) since
it said the option will make Cppcheck to check all #ifdef configs.
But this really is case only when there is excessive amount of
those configs and without the option some would be ignored. So
format the option text in line of CLI switch and say it is forcing
not enabling checking of all configurations.
2011-01-31 11:16:32 +02:00
Kimmo Varis
b7cb684b1b
GUI: Write error summary to CSV and TXT reports.
...
It makes more sense to write the one-line summary to TXT and
especially to CSV reports. Long multi-line verbose messages ruin
the layout these files.
2011-01-31 10:32:23 +02:00
Kimmo Varis
43b0e2a74c
GUI: Fill summary data when reading XML file.
...
When reading XML file there is no summary data stored so we must
dublicate the message data to summary. Since message can be long
try to find full stop from the message and cut summary to it.
Ticket: #2402 ([GUI] Summary is not shown for loaded .xml file)
2011-01-31 10:25:14 +02:00
Kimmo Varis
97f041f292
GUI: Update homepage URL to About-dialog.
2011-01-27 13:14:53 +02:00
Kimmo Varis
50dba88077
Fix formatting of debug messages to log view.
...
Ticket #2513 (GUI: Garbage printed to log after missing include warning)
The linenumber was not properly converted to the QString so there
were garbage printed to the log.
2011-01-27 08:47:28 +02:00
Kimmo Varis
001d382614
GUI: Enable warnings about missing include files.
2011-01-26 23:44:15 +02:00
Kimmo Varis
012b07023b
GUI: Fix compiler warning from GCC.
...
Thanks for vBm for reporting this!
2011-01-13 23:38:08 +02:00
Kimmo Varis
03093cb8c4
GUI: Update translation files.
2011-01-10 14:12:40 +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
Daniel Marjamäki
d27b6a1598
astyle formatting
2011-01-07 20:48:02 +01:00
Kimmo Varis
6e0f6c5aec
GUI: Add comment about storing paths.
2011-01-06 20:45:07 +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
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
46c03973ee
GUI: Show ideal thread count next to current thread count.
...
Ideal thread count is determined by Qt as number of available cores.
Ticket: #2194 (Automatically match thread count to available cores)
2010-12-27 18:00:44 +02:00
Kimmo Varis
6404374bba
GUI: Update translation files.
2010-12-27 11:43:20 +02:00
Kimmo Varis
8a81022a30
GUI: Use simple "Errors" instead of "Common errors".
...
We have only one "error" category nowadays so we don't need to
separate different error categories anymore.
2010-12-27 11:42:17 +02:00
Kimmo Varis
ba38f73168
GUI: Improve toolbar button tooltips.
2010-12-27 11:38:43 +02:00
Kimmo Varis
f7c0377412
GUI: Fix EOL style of stats.ui.
2010-12-27 11:27:39 +02:00
Kimmo Varis
2cd4fbfeb2
GUI: Add 'portability' warnings to statistics-dialog.
2010-12-27 11:17:17 +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
0758160fcd
GUI: Fix building with Qt < 4.7.0.
...
I accidentally added the 'placeholderText' attribute to settings.ui
when editing it with Qt Creator. That attribute was added in Qt
4.7.0 and we are not using it for anything. So removing it to fix
building with older Qt versions.
2010-12-26 23:49:43 +02:00
Kimmo Varis
dd13a98fd9
GUI: Improve Preferences-dialog layout.
...
Make threads-textfield smaller as it can contain only three numbers.
Also set the input mask so that three numbers at max are accepted.
2010-12-26 20:18:49 +02:00
Kimmo Varis
991318d0de
GUI: zero is not valid value for bool type.
2010-12-26 18:37:11 +02:00
Kimmo Varis
436bd68ece
GUI: Reorder settings-constants in common.h
...
It is easier to manage those constants when there is even some basic
ordering and organization.
2010-12-26 18:35:51 +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
3020e77570
GUI: Show information messages count in stats dialog.
2010-12-26 15:23:56 +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
062eabf246
Don't use relative paths in lib.pri.
...
Using relative path in included file binds it to be usable only
included from one directory. Instead use variable for giving the
base path for files.
2010-12-18 17:03:46 +02:00
vBm
46a11183a5
Fixed some spelling mistakes
2010-12-15 18:45:53 +01:00
Zachary Blair
500c0a19c3
Fixed #2047 (GUI: save log to file)
2010-12-14 23:51:21 -08:00
Zachary Blair
05ebf120c3
Fixed #2266 (GUI: Better check duration display format)
2010-12-14 00:16:26 -08: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
Daniel Marjamäki
2d3865a671
Add support for user defined rules
2010-12-12 11:56:22 +01:00
Daniel Marjamäki
71146a444b
online-help: Remove old files before generating new ones.
2010-12-11 17:29:40 +01:00
Daniel Marjamäki
ab37127511
GUI: updated help file. Use latest manual.
2010-12-11 17:04:31 +01:00
vBm
ccaa5c2c17
GUI: Initial addition of Serbian localization using clean English template.
2010-12-10 16:59:36 +01:00
Kimmo Varis
bc30c7d23b
GUI: Small cleanup - use const reference.
2010-12-08 15:08:27 +02:00
Kimmo Varis
27936a9968
GUI: Small cleanup - use const reference.
2010-12-08 14:55:56 +02:00
Kimmo Varis
fab16c4cbf
GUI: Fix typo in Japanese translation name.
...
The typo was visible in the Language-menu.
2010-12-08 11:52:49 +02:00
Kimmo Varis
ec842782e4
GUI: Update language files.
2010-12-08 11:22:08 +02:00
Kimmo Varis
675cb5b5a2
GUI Add Japanese translation.
...
The translation was contributed by cjohnk7@sourceforge.net .
Ticket #2276 .
2010-12-08 11:16:48 +02:00
Kimmo Varis
383df58e7e
Fix EOL style for stats.ui.
...
I accidentally committed stats.ui with Windows EOL style.
2010-12-08 10:59:06 +02:00
Kimmo Varis
3527c04cfb
GUI: Update translation files.
2010-12-07 18:24:45 +02:00
Kimmo Varis
abc5ec9009
GUI: Don't translate placeholder texts in stats dialog.
2010-12-07 18:22:32 +02:00
Kimmo Varis
b41447384c
GUI: Don't show summary/details for the parent items.
2010-12-01 18:58:26 +02:00
Kimmo Varis
9731c736e5
Fix ticket #2269 ([GUI] Crash when rechecking files while having hidden stuff)
...
If there is no current item show empty details panel.
2010-12-01 18:19:37 +02:00
Kimmo Varis
523a4a6f05
GUI: Add files I forgot to add when committing statistic patches.
2010-11-30 23:50:40 +02:00
Kimmo Varis
57a61a4a83
GUI: Show also summary in the details pane.
...
Show both short summary and verbose message in lower details panel
in the GUI: Add titles for short summary and message. Hopefully this
makes it easier to read the messages and copy/paste them too.
2010-11-30 23:37:25 +02:00
Kimmo Varis
2b8f6b9b56
GUI: Copy statistics also to clipboard.
2010-11-30 22:50:57 +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
94ab34d797
GUI: Update translation files.
2010-11-26 23:22:14 +02:00
Kimmo Varis
e0e0e3b4fa
GUI: Change text in Add Application-dialog back to plain text.
...
Revert change ca9f8a7036
that converted
text in Add Application -dialog to rich text. The text is plain
text and doesn't use any formatting so plain text is good for it.
2010-11-26 23:20:25 +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
c685035ca4
GUI: Fixing includes.
2010-11-24 17:39: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
Kimmo Varis
c6046b6663
GUI: Clear the details panel when starting new check.
2010-11-24 17:09:02 +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
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
Kimmo Varis
81a599e260
GUI: Rename the splitter widget.
2010-11-23 21:32:35 +02:00
Kimmo Varis
74c15d436b
GUI: Add missing include lines.
2010-11-23 00:37:29 +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
Kimmo Varis
060131df2f
GUI: Add own panel for detailed error messages.
...
This commit adds new rich text panel for the detailed error messages.
When user clicks error item the detailed error text is updated to
the panel. This way we have much more freedom in formatting the
message and user can easily copy/paste (parts of) the message.
2010-11-22 23:13:12 +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
53e9938afe
GUI: Add path separator in ProjectFiles dialog.
...
Add path separator to end of the paths user added via Browse-dialog.
2010-11-11 22:08:10 +02:00
Kimmo Varis
1e503cbad5
GUI: Show native paths in ProjectFiles -dialog.
...
When adding paths to the dialog convert them to native separators.
When saving the paths convert them to internal separators.
2010-11-11 22:08:10 +02:00