Merge lp:~sylvain-pineau/checkbox/ui_profiles_doc into lp:checkbox

Proposed by Sylvain Pineau
Status: Merged
Approved by: Daniel Manrique
Approved revision: 2937
Merged at revision: 2937
Proposed branch: lp:~sylvain-pineau/checkbox/ui_profiles_doc
Merge into: lp:checkbox
Diff against target: 114 lines (+99/-0)
2 files modified
checkbox-ng/docs/index.rst (+1/-0)
checkbox-ng/docs/profiles.rst (+98/-0)
To merge this branch: bzr merge lp:~sylvain-pineau/checkbox/ui_profiles_doc
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+216702@code.launchpad.net

Description of the change

UI profiles documentation

Describes how the launcher parses the Qsettings and the currently supported options.

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

Very useful, thanks!

review: Approve
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Still, please expand on it and apply at least some of the feedback I asked for on IRC

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'checkbox-ng/docs/index.rst'
--- checkbox-ng/docs/index.rst 2013-11-18 11:12:52 +0000
+++ checkbox-ng/docs/index.rst 2014-04-22 12:16:02 +0000
@@ -53,6 +53,7 @@
53 :maxdepth: 253 :maxdepth: 2
5454
55 scripts/index.rst55 scripts/index.rst
56 profiles.rst
56 release.rst57 release.rst
5758
58Indices and tables59Indices and tables
5960
=== added file 'checkbox-ng/docs/profiles.rst'
--- checkbox-ng/docs/profiles.rst 1970-01-01 00:00:00 +0000
+++ checkbox-ng/docs/profiles.rst 2014-04-22 12:16:02 +0000
@@ -0,0 +1,98 @@
1Profiles configuration
2^^^^^^^^^^^^^^^^^^^^^^
3
4Checkbox-gui supports execution profiles via a predefined set of configuration
5options that allow customization of the welcome screen, displayed whitelists
6as well as saving results locally or sending the submission file to Launchpad
7or to the Certification database/HEXR.
8
9The profile settings are part of a launcher script and use checkbox-gui as a
10shebang to interpret the key/values.
11
12As checkbox-gui is a Qt application, settings must follow the INI-style rules
13of the `QSettings <http://qt-project.org/doc/qt-5/QSettings.html>`_ class.
14
15Multilines values are supported but must be enclosed in doubles quotes and extra
16lines must start with one space, e.g:
17
18.. code-block:: bash
19
20 [category]
21 key = "Hello
22 World"
23
24
25- From QML:
26
27.. code-block:: bash
28
29 settings.value("category/key", i18n.tr("default_value"))
30
31- From C++:
32
33.. code-block:: bash
34
35 settings->value("category/key", app.tr("default_value"))
36
37Supported Settings
38==================
39
40welcome/title
41------------
42 * QML app title and welcome screen header
43 * default: "System Testing"
44
45welcome/text
46------------
47 * Welcome message to display on the first screen (Rich text allowing HTML-style markup)
48 * default: "<p>Welcome to System Testing.</p> [...]"
49
50suite/whitelist_filter
51----------------------
52 * Regular expression to match a subset of whitelist filenames
53 * default: .*
54
55submission/message
56------------------
57 * Header text of the Submission Popup
58
59submission/input_type
60---------------------
61 * Show a Text input field to enter the secure ID or the LP adress (default).
62 To just save the results to disk, must use the "none" value.
63
64submission/regex
65----------
66 * RegExpValidator, default ".*"
67
68submission/input_placeholder
69----------------------------
70 * "Launchpad E-Mail Address" (default) or "Secure ID (15 or 18 characters)"
71
72submission/secure_id
73--------------------
74 * Preset value of the secure ID
75
76submission/ok_btn_text
77----------------------
78 * "Submit Results" (default) or "Save Results"
79
80submission/cancel_warning
81-------------------------
82 * "You are about to exit this test run without saving your results report. Do you want to save the report?"
83
84submission/submit_to_hexr
85-------------------------
86 * Boolean, add an extra header to also send the results to HEXR (works with
87 the certification transport)
88
89exporter/xml_export_path
90------------------------
91 * location to save the XML submission file, if set to an empty string will open a FileSaveDialog.
92 * default: "/tmp/submission.xml"
93
94transport/submit_to
95-------------------
96 * Transport endpoint
97 * default: ""
98 * Supports submission to LP (the default), "certification", or "local" (save to disk)

Subscribers

People subscribed via source and target branches