diff options
Diffstat (limited to 'examples/PkExample.ui')
-rw-r--r-- | examples/PkExample.ui | 234 |
1 files changed, 234 insertions, 0 deletions
diff --git a/examples/PkExample.ui b/examples/PkExample.ui new file mode 100644 index 000000000..8997e506a --- /dev/null +++ b/examples/PkExample.ui @@ -0,0 +1,234 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>PkExample</class> + <widget class="QMainWindow" name="PkExample"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>800</width> + <height>600</height> + </rect> + </property> + <property name="windowTitle"> + <string>PolicyKit-qt example</string> + </property> + <widget class="QWidget" name="centralwidget"> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <layout class="QGridLayout" name="gridLayout" columnstretch="3,1"> + <item row="0" column="0"> + <widget class="QLabel" name="kickL"> + <property name="text"> + <string>Making the helper <b>Kick</b> is not allowed. Action cannot be triggered.</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QPushButton" name="kickPB"> + <property name="text"> + <string>Kick!</string> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="cryL"> + <property name="text"> + <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Making the helper <span style=" font-weight:600;">Cry</span> is always allowed. Action can be triggered without authentication.</p></body></html></string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QPushButton" name="cryPB"> + <property name="text"> + <string>Cry!</string> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="bleedL"> + <property name="text"> + <string>Making the helper <b>Bleed</b> requires the user to authenticate. This is a one-shot authorization.</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QPushButton" name="bleedPB"> + <property name="text"> + <string>Bleed!</string> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="playL"> + <property name="text"> + <string>Making the helper <b>Play</b> requires a system administrator to authenticate. This is a one-shot authorization.</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QPushButton" name="playPB"> + <property name="text"> + <string>Play!</string> + </property> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="listenL"> + <property name="text"> + <string>Making the helper <b>Listen</b> requires the user to authenticate. The authorization will be kept for a brief period.</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QPushButton" name="listenPB"> + <property name="text"> + <string>Listen!</string> + </property> + </widget> + </item> + <item row="5" column="0"> + <widget class="QLabel" name="deleteL"> + <property name="text"> + <string>Making the helper <b>Delete</b> requires a system administrator to authenticate. The authorization will be kept for a brief period.</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="5" column="1"> + <widget class="QPushButton" name="deletePB"> + <property name="text"> + <string>Delete!</string> + </property> + </widget> + </item> + <item row="6" column="0" rowspan="2"> + <widget class="QLabel" name="deleteL_2"> + <property name="text"> + <string><b>Set</b> is special action. It sets the permissions for the <b>Shout</b> action by actually using the helper application to change the implicit authorization.</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="6" column="1"> + <widget class="QComboBox" name="setCB"> + <item> + <property name="text"> + <string>no</string> + </property> + </item> + <item> + <property name="text"> + <string>yes</string> + </property> + </item> + <item> + <property name="text"> + <string>auth_self</string> + </property> + </item> + <item> + <property name="text"> + <string>auth_admin</string> + </property> + </item> + <item> + <property name="text"> + <string>auth_self_keep</string> + </property> + </item> + <item> + <property name="text"> + <string>auth_admin_keep</string> + </property> + </item> + </widget> + </item> + <item row="7" column="1"> + <widget class="QPushButton" name="setPB"> + <property name="text"> + <string>Set!</string> + </property> + </widget> + </item> + <item row="8" column="0"> + <widget class="QLabel" name="deleteL_3"> + <property name="text"> + <string>The implicit authorization for the <b>Shout</b> action is set by the <b>Set</b> action. You can watch how different options can change behaviour of this action.</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item row="8" column="1"> + <widget class="QPushButton" name="shoutPB"> + <property name="text"> + <string>Shout!</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QListWidget" name="actionList"/> + </item> + </layout> + </widget> + <widget class="QMenuBar" name="menubar"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>800</width> + <height>22</height> + </rect> + </property> + <widget class="QMenu" name="menuActions"> + <property name="title"> + <string>Actions</string> + </property> + </widget> + <addaction name="menuActions"/> + </widget> + <widget class="QToolBar" name="toolBar"> + <property name="windowTitle"> + <string>toolBar</string> + </property> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonTextUnderIcon</enum> + </property> + <attribute name="toolBarArea"> + <enum>TopToolBarArea</enum> + </attribute> + <attribute name="toolBarBreak"> + <bool>false</bool> + </attribute> + </widget> + </widget> + <resources/> + <connections/> +</ui> |