~abreu-alexandre/qtcreator-plugin-ubuntu/fix-html5-app-launch-1504

« back to all changes in this revision

Viewing changes to share/qtcreator/templates/wizards/ubuntu/backend-app-cmake/wizard.xml

  • Committer: CI Train Bot
  • Author(s): nskaggs, Nicholas Skaggs
  • Date: 2015-06-16 14:47:50 UTC
  • mfrom: (391.1.14 update-qml-autopilot)
  • Revision ID: ci-train-bot@canonical.com-20150616144750-yh4z1evebap3sty2
Update qml based templates to best practicies
Approved by: Zoltan Balogh, PS Jenkins bot, Max Brustkern

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<wizard version="1" kind="project" firstpage="10" id="A4_UbuntuAppWBackendPlusTabsCMake'" category="A.UbuntuProject"
3
 
        platformIndependent="true" 
 
3
        platformIndependent="true"
4
4
        class="ubuntu-project-cmake"
5
 
                                featuresRequired=""
 
5
                featuresRequired=""
6
6
        >
7
7
    <icon>../share/ubuntu.png</icon>
8
8
    <description>A simple C++ based QtQuick2 Extension Library with
9
9
simple UI written in QML.
10
10
 
11
 
Includes also
 
11
Also includes:
12
12
 - a unit test for C++
13
13
 - unit and functional tests for QML
14
14
</description>
15
15
    <displayname>QML App with C++ plugin (cmake)</displayname>
16
16
    <displaycategory>Ubuntu</displaycategory>
17
17
    <files>
18
 
        <file source="CMakeLists.txt"                          target="CMakeLists.txt" openproject="true"/>
19
 
        <file source="backend/CMakeLists.txt"                  target="backend/CMakeLists.txt" openeditor="false"/>
20
 
        <file source="backend/modules/displayName/backend.h"   target="backend/modules/%ClickHookName:s%/backend.h" openeditor="false"/>
21
 
        <file source="backend/modules/displayName/backend.cpp" target="backend/modules/%ClickHookName:s%/backend.cpp" openeditor="false"/>
22
 
        <file source="backend/modules/displayName/mytype.h"    target="backend/modules/%ClickHookName:s%/mytype.h" openeditor="false"/>
23
 
        <file source="backend/modules/displayName/mytype.cpp"  target="backend/modules/%ClickHookName:s%/mytype.cpp" openeditor="false"/>
24
 
        <file source="backend/modules/displayName/qmldir"      target="backend/modules/%ClickHookName:s%/qmldir" openeditor="false"/>
25
 
        <file source="backend/tests/unit/tst_mytype.qml"       target="backend/tests/unit/tst_mytype.qml" openeditor="false"/>
26
 
        <file source="app/graphics/toolbarIcon@8.png"          target="app/graphics/toolbarIcon@8.png" openeditor="false" binary="true"/>
27
 
        <file source="app/displayName.desktop.in"              target="app/%ClickHookName%.desktop.in" openeditor="false"/>
28
 
        <file source="app/graphics/displayName.png"            target="app/graphics/%ProjectName%.png" openeditor="false" binary="true"/>
29
 
        <file source="app/CMakeLists.txt"                      target="app/CMakeLists.txt" openeditor="false"/>
30
 
        <file source="app/tests/autopilot/run"                 target="app/tests/autopilot/run" openeditor="false"/>
31
 
        <file source="app/tests/autopilot/displayName/main/test_main.py" target="app/tests/autopilot/%ProjectName%/main/test_main.py" openeditor="false"/>
32
 
        <file source="app/tests/autopilot/displayName/__init__.py"       target="app/tests/autopilot/%ProjectName%/__init__.py" openeditor="false"/>
33
 
        <file source="app/tests/autopilot/displayName/main/__init__.py"  target="app/tests/autopilot/%ProjectName%/main/__init__.py" openeditor="false"/>
34
 
        <file source="cmake/Click.cmake"                                 target="cmake/Click.cmake" openeditor="false"/>
35
 
        <file source="manifest.json.in"                                        target="manifest.json.in" openeditor="true"/>
36
 
        <file source="../share/displayName.apparmor"                       target="%ClickHookName%.apparmor" openeditor="false"/>
37
 
        <file source="app/Main.qml"                     target="app/Main.qml" openeditor="true"/>
38
 
        <file source="po/CMakeLists.txt"                       target="po/CMakeLists.txt"     openeditor="false"/>
 
18
        <file source="CMakeLists.txt"                                     target="CMakeLists.txt"                                       openproject="true"/>
 
19
        <file source="backend/CMakeLists.txt"                             target="backend/CMakeLists.txt"                               openeditor="false"/>
 
20
        <file source="backend/modules/displayName/backend.h"              target="backend/modules/%ClickHookName:s%/backend.h"          openeditor="false"/>
 
21
        <file source="backend/modules/displayName/backend.cpp"            target="backend/modules/%ClickHookName:s%/backend.cpp"        openeditor="false"/>
 
22
        <file source="backend/modules/displayName/mytype.h"               target="backend/modules/%ClickHookName:s%/mytype.h"           openeditor="false"/>
 
23
        <file source="backend/modules/displayName/mytype.cpp"             target="backend/modules/%ClickHookName:s%/mytype.cpp"         openeditor="false"/>
 
24
        <file source="backend/modules/displayName/qmldir"                 target="backend/modules/%ClickHookName:s%/qmldir"             openeditor="false"/>
 
25
        <file source="backend/tests/unit/tst_mytype.qml"                  target="backend/tests/unit/tst_mytype.qml"                    openeditor="false"/>
 
26
        <file source="app/graphics/toolbarIcon@8.png"                     target="app/graphics/toolbarIcon@8.png"                       openeditor="false" binary="true"/>
 
27
        <file source="app/displayName.desktop.in"                         target="app/%ClickHookName%.desktop.in"                       openeditor="false"/>
 
28
        <file source="app/graphics/displayName.png"                       target="app/graphics/%ProjectName%.png"                       openeditor="false" binary="true"/>
 
29
        <file source="app/CMakeLists.txt"                                 target="app/CMakeLists.txt"                                   openeditor="false"/>
 
30
        <file source="app/tests/autopilot/run"                            target="app/tests/autopilot/run"                              openeditor="false"/>
 
31
        <file source="app/tests/autopilot/displayName/tests/test_main.py" target="app/tests/autopilot/%ProjectName%/tests/test_main.py" openeditor="false"/>
 
32
        <file source="app/tests/autopilot/displayName/__init__.py"        target="app/tests/autopilot/%ProjectName%/__init__.py"        openeditor="false"/>
 
33
        <file source="app/tests/autopilot/displayName/tests/__init__.py"  target="app/tests/autopilot/%ProjectName%/tests/__init__.py"  openeditor="false"/>
 
34
        <file source="app/tests/unit/tst_main.qml"                        target="app/tests/unit/tst_main.qml"                          openeditor="false"/>
 
35
        <file source="cmake/Click.cmake"                                  target="cmake/Click.cmake"                                    openeditor="false"/>
 
36
        <file source="manifest.json.in"                                   target="manifest.json.in"                                     openeditor="true"/>
 
37
        <file source="../share/displayName.apparmor"                      target="%ClickHookName%.apparmor"                             openeditor="false"/>
 
38
        <file source="app/Main.qml"                                       target="app/Main.qml"                                         openeditor="true"/>
 
39
        <file source="po/CMakeLists.txt"                                  target="po/CMakeLists.txt"                                    openeditor="false"/>
39
40
   </files>
40
41
 
41
 
          <!-- Create a 2nd wizard page with click package parameters -->
42
 
                <fieldpagetitle>Click package parameters</fieldpagetitle>
43
 
                <fields>
44
 
                        <field mandatory="true" name="ClickDomain">
45
 
                          <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
46
 
                                        defaulttext="" placeholdertext="Nickname"/>
47
 
                          <fielddescription>Nickname:</fielddescription>
48
 
                        </field>
49
 
                        <field mandatory="true" name="ClickMaintainer">
50
 
                          <fieldcontrol class="QLineEdit" validator='^[^"]+$'
51
 
                                        defaulttext="" placeholdertext="Maintainer"/>
52
 
                          <fielddescription>Maintainer:</fielddescription>
53
 
                        </field>
54
 
                        <field mandatory="true" name="ClickHookName">
55
 
                          <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
56
 
                                        defaulttext="myapp" placeholdertext="app hook name"/>
57
 
                          <fielddescription>App name:</fielddescription>
58
 
                        </field>
 
42
      <!-- Create a 2nd wizard page with click package parameters -->
 
43
        <fieldpagetitle>Click package parameters</fieldpagetitle>
 
44
        <fields>
 
45
            <field mandatory="true" name="ClickDomain">
 
46
              <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
 
47
                            defaulttext="" placeholdertext="Nickname"/>
 
48
              <fielddescription>Nickname:</fielddescription>
 
49
            </field>
 
50
            <field mandatory="true" name="ClickMaintainer">
 
51
              <fieldcontrol class="QLineEdit" validator='^[^"]+$'
 
52
                            defaulttext="" placeholdertext="Maintainer"/>
 
53
              <fielddescription>Maintainer:</fielddescription>
 
54
            </field>
 
55
            <field mandatory="true" name="ClickHookName">
 
56
              <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
 
57
                            defaulttext="myapp" placeholdertext="app hook name"/>
 
58
              <fielddescription>App name:</fielddescription>
 
59
            </field>
59
60
      <field name="ClickFrameworkVersion">
60
61
          <fieldcontrol class="QComboBox" defaultindex="0">
61
62
              <comboentries>
62
 
                                                                <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->
63
 
                                                                <comboentry value="ubuntu-sdk-dummy-framework">
 
63
                                <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->
 
64
                                <comboentry value="ubuntu-sdk-dummy-framework">
64
65
                    <comboentrytext>Dummy Framework</comboentrytext>
65
66
                </comboentry>
66
67
              </comboentries>
67
68
          </fieldcontrol>
68
69
          <fielddescription>Framework:</fielddescription>
69
70
      </field>
70
 
                </fields>
 
71
        </fields>
71
72
    <validationrules>
72
73
        <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>
73
74
            <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>