QortalOS Brooklyn for Raspberry Pi 4
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

345 lines
10 KiB

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>ActionEditor</class>
<widget class="QWidget" name="ActionEditor">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>602</width>
<height>522</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="3" column="0">
<widget class="QGroupBox" name="GbParameter">
<property name="title">
<string>Edit Parameter</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<layout class="QGridLayout" name="GlParameterType">
<item row="0" column="0">
<widget class="QLabel" name="LblParameterType">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>150</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Parameter type:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="CbParameterType">
<item>
<property name="text">
<string>Property Match</string>
</property>
</item>
<item>
<property name="text">
<string>Content Conjunction</string>
</property>
</item>
<item>
<property name="text">
<string>Content Disjunction</string>
</property>
</item>
<item>
<property name="text">
<string>Device Interface Match</string>
</property>
</item>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QGridLayout" name="GlDeviceType">
<item row="0" column="0">
<widget class="QLabel" name="LblDeviceType">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>150</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Device type:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="CbDeviceType">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<layout class="QGridLayout" name="GlValueName">
<item row="0" column="0">
<widget class="QLabel" name="LblValueName">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>150</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Value name:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="CbValueName">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="0">
<layout class="QGridLayout" name="GlValueMatch">
<item row="0" column="0">
<widget class="QComboBox" name="CbValueMatch">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>150</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>150</width>
<height>16777215</height>
</size>
</property>
<item>
<property name="text">
<string>Equals</string>
</property>
</item>
<item>
<property name="text">
<string>Contains</string>
</property>
</item>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="LeValueMatch"/>
</item>
</layout>
</item>
<item row="4" column="0">
<layout class="QGridLayout" name="GlParameterControl">
<item row="0" column="0">
<spacer name="HsParameterControl">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>227</width>
<height>25</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="PbParameterReset">
<property name="text">
<string>Reset Parameter</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="PbParameterSave">
<property name="text">
<string>Save Parameter Changes</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="0" column="0">
<layout class="QGridLayout" name="GlActionIconName">
<item row="0" column="0">
<widget class="KIconButton" name="IbActionIcon">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>80</width>
<height>80</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>75</width>
<height>75</height>
</size>
</property>
<property name="toolTip">
<string>Action icon, click to change it</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="LeActionFriendlyName">
<property name="toolTip">
<string>Action name</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="0">
<layout class="QGridLayout" name="GlActionCommand">
<item row="0" column="0">
<widget class="QLabel" name="TlActionCommand">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Command: </string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="KUrlRequester" name="LeActionCommand">
<property name="toolTip">
<string>Command that will trigger the action
This can include any or all of the following case insensitive expands:
%f: The mountpoint for the device - Storage Access devices only
%d: Path to the device node - Block devices only
%i: The identifier of the device</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0">
<layout class="QGridLayout" name="GlPredicateTree">
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="TlPredicateTree">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>Devices must match the following parameters for this action:</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QTreeView" name="TvPredicateTree"/>
</item>
</layout>
</item>
<item row="4" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KIconButton</class>
<extends>QPushButton</extends>
<header>kiconbutton.h</header>
</customwidget>
<customwidget>
<class>KUrlRequester</class>
<extends>QWidget</extends>
<header>kurlrequester.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>IbActionIcon</tabstop>
<tabstop>LeActionFriendlyName</tabstop>
<tabstop>LeActionCommand</tabstop>
<tabstop>TvPredicateTree</tabstop>
<tabstop>CbDeviceType</tabstop>
<tabstop>CbParameterType</tabstop>
<tabstop>CbValueName</tabstop>
<tabstop>CbValueMatch</tabstop>
<tabstop>LeValueMatch</tabstop>
<tabstop>PbParameterReset</tabstop>
<tabstop>PbParameterSave</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>