~ubuntu-branches/ubuntu/trusty/polkit-qt-1/trusty

« back to all changes in this revision

Viewing changes to examples/PkExample.ui

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-13 09:08:07 UTC
  • Revision ID: james.westby@ubuntu.com-20091213090807-ibl3mdtee5964009
Tags: upstream-0.95.0~svn1057107
ImportĀ upstreamĀ versionĀ 0.95.0~svn1057107

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<ui version="4.0">
 
3
 <class>PkExample</class>
 
4
 <widget class="QMainWindow" name="PkExample">
 
5
  <property name="geometry">
 
6
   <rect>
 
7
    <x>0</x>
 
8
    <y>0</y>
 
9
    <width>800</width>
 
10
    <height>600</height>
 
11
   </rect>
 
12
  </property>
 
13
  <property name="windowTitle">
 
14
   <string>PolicyKit-qt example</string>
 
15
  </property>
 
16
  <widget class="QWidget" name="centralwidget">
 
17
   <layout class="QHBoxLayout" name="horizontalLayout">
 
18
    <item>
 
19
     <layout class="QGridLayout" name="gridLayout" columnstretch="3,1">
 
20
      <item row="0" column="0">
 
21
       <widget class="QLabel" name="kickL">
 
22
        <property name="text">
 
23
         <string>Making the helper &lt;b&gt;Kick&lt;/b&gt; is not allowed. Action cannot be triggered.</string>
 
24
        </property>
 
25
        <property name="wordWrap">
 
26
         <bool>true</bool>
 
27
        </property>
 
28
       </widget>
 
29
      </item>
 
30
      <item row="0" column="1">
 
31
       <widget class="QPushButton" name="kickPB">
 
32
        <property name="text">
 
33
         <string>Kick!</string>
 
34
        </property>
 
35
       </widget>
 
36
      </item>
 
37
      <item row="1" column="0">
 
38
       <widget class="QLabel" name="cryL">
 
39
        <property name="text">
 
40
         <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
 
41
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
 
42
p, li { white-space: pre-wrap; }
 
43
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
 
44
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Making the helper &lt;span style=&quot; font-weight:600;&quot;&gt;Cry&lt;/span&gt; is always allowed. Action can be triggered without authentication.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
 
45
        </property>
 
46
        <property name="wordWrap">
 
47
         <bool>true</bool>
 
48
        </property>
 
49
       </widget>
 
50
      </item>
 
51
      <item row="1" column="1">
 
52
       <widget class="QPushButton" name="cryPB">
 
53
        <property name="text">
 
54
         <string>Cry!</string>
 
55
        </property>
 
56
       </widget>
 
57
      </item>
 
58
      <item row="2" column="0">
 
59
       <widget class="QLabel" name="bleedL">
 
60
        <property name="text">
 
61
         <string>Making the helper &lt;b&gt;Bleed&lt;/b&gt; requires the user to authenticate. This is a one-shot authorization.</string>
 
62
        </property>
 
63
        <property name="wordWrap">
 
64
         <bool>true</bool>
 
65
        </property>
 
66
       </widget>
 
67
      </item>
 
68
      <item row="2" column="1">
 
69
       <widget class="QPushButton" name="bleedPB">
 
70
        <property name="text">
 
71
         <string>Bleed!</string>
 
72
        </property>
 
73
       </widget>
 
74
      </item>
 
75
      <item row="3" column="0">
 
76
       <widget class="QLabel" name="playL">
 
77
        <property name="text">
 
78
         <string>Making the helper &lt;b&gt;Play&lt;/b&gt; requires a system administrator to authenticate. This is a one-shot authorization.</string>
 
79
        </property>
 
80
        <property name="wordWrap">
 
81
         <bool>true</bool>
 
82
        </property>
 
83
       </widget>
 
84
      </item>
 
85
      <item row="3" column="1">
 
86
       <widget class="QPushButton" name="playPB">
 
87
        <property name="text">
 
88
         <string>Play!</string>
 
89
        </property>
 
90
       </widget>
 
91
      </item>
 
92
      <item row="4" column="0">
 
93
       <widget class="QLabel" name="listenL">
 
94
        <property name="text">
 
95
         <string>Making the helper &lt;b&gt;Listen&lt;/b&gt; requires the user to authenticate. The authorization will be kept for a brief period.</string>
 
96
        </property>
 
97
        <property name="wordWrap">
 
98
         <bool>true</bool>
 
99
        </property>
 
100
       </widget>
 
101
      </item>
 
102
      <item row="4" column="1">
 
103
       <widget class="QPushButton" name="listenPB">
 
104
        <property name="text">
 
105
         <string>Listen!</string>
 
106
        </property>
 
107
       </widget>
 
108
      </item>
 
109
      <item row="5" column="0">
 
110
       <widget class="QLabel" name="deleteL">
 
111
        <property name="text">
 
112
         <string>Making the helper &lt;b&gt;Delete&lt;/b&gt; requires a system administrator to authenticate. The authorization will be kept for a brief period.</string>
 
113
        </property>
 
114
        <property name="wordWrap">
 
115
         <bool>true</bool>
 
116
        </property>
 
117
       </widget>
 
118
      </item>
 
119
      <item row="5" column="1">
 
120
       <widget class="QPushButton" name="deletePB">
 
121
        <property name="text">
 
122
         <string>Delete!</string>
 
123
        </property>
 
124
       </widget>
 
125
      </item>
 
126
      <item row="6" column="0" rowspan="2">
 
127
       <widget class="QLabel" name="deleteL_2">
 
128
        <property name="text">
 
129
         <string>&lt;b&gt;Set&lt;/b&gt; is special action. It sets the permissions for the &lt;b&gt;Shout&lt;/b&gt; action by actually using the helper application to change the implicit authorization.</string>
 
130
        </property>
 
131
        <property name="wordWrap">
 
132
         <bool>true</bool>
 
133
        </property>
 
134
       </widget>
 
135
      </item>
 
136
      <item row="6" column="1">
 
137
       <widget class="QComboBox" name="setCB">
 
138
        <item>
 
139
         <property name="text">
 
140
          <string>no</string>
 
141
         </property>
 
142
        </item>
 
143
        <item>
 
144
         <property name="text">
 
145
          <string>yes</string>
 
146
         </property>
 
147
        </item>
 
148
        <item>
 
149
         <property name="text">
 
150
          <string>auth_self</string>
 
151
         </property>
 
152
        </item>
 
153
        <item>
 
154
         <property name="text">
 
155
          <string>auth_admin</string>
 
156
         </property>
 
157
        </item>
 
158
        <item>
 
159
         <property name="text">
 
160
          <string>auth_self_keep</string>
 
161
         </property>
 
162
        </item>
 
163
        <item>
 
164
         <property name="text">
 
165
          <string>auth_admin_keep</string>
 
166
         </property>
 
167
        </item>
 
168
       </widget>
 
169
      </item>
 
170
      <item row="7" column="1">
 
171
       <widget class="QPushButton" name="setPB">
 
172
        <property name="text">
 
173
         <string>Set!</string>
 
174
        </property>
 
175
       </widget>
 
176
      </item>
 
177
      <item row="8" column="0">
 
178
       <widget class="QLabel" name="deleteL_3">
 
179
        <property name="text">
 
180
         <string>The implicit authorization for the &lt;b&gt;Shout&lt;/b&gt; action is set by the &lt;b&gt;Set&lt;/b&gt; action. You can watch how different options can change behaviour of this action.</string>
 
181
        </property>
 
182
        <property name="wordWrap">
 
183
         <bool>true</bool>
 
184
        </property>
 
185
       </widget>
 
186
      </item>
 
187
      <item row="8" column="1">
 
188
       <widget class="QPushButton" name="shoutPB">
 
189
        <property name="text">
 
190
         <string>Shout!</string>
 
191
        </property>
 
192
       </widget>
 
193
      </item>
 
194
     </layout>
 
195
    </item>
 
196
    <item>
 
197
     <widget class="QListWidget" name="actionList"/>
 
198
    </item>
 
199
   </layout>
 
200
  </widget>
 
201
  <widget class="QMenuBar" name="menubar">
 
202
   <property name="geometry">
 
203
    <rect>
 
204
     <x>0</x>
 
205
     <y>0</y>
 
206
     <width>800</width>
 
207
     <height>22</height>
 
208
    </rect>
 
209
   </property>
 
210
   <widget class="QMenu" name="menuActions">
 
211
    <property name="title">
 
212
     <string>Actions</string>
 
213
    </property>
 
214
   </widget>
 
215
   <addaction name="menuActions"/>
 
216
  </widget>
 
217
  <widget class="QToolBar" name="toolBar">
 
218
   <property name="windowTitle">
 
219
    <string>toolBar</string>
 
220
   </property>
 
221
   <property name="toolButtonStyle">
 
222
    <enum>Qt::ToolButtonTextUnderIcon</enum>
 
223
   </property>
 
224
   <attribute name="toolBarArea">
 
225
    <enum>TopToolBarArea</enum>
 
226
   </attribute>
 
227
   <attribute name="toolBarBreak">
 
228
    <bool>false</bool>
 
229
   </attribute>
 
230
  </widget>
 
231
 </widget>
 
232
 <resources/>
 
233
 <connections/>
 
234
</ui>