Commit Graph

508 Commits

Author SHA1 Message Date
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
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