kde-workspace/kdirshare/filepropertiesplugin/kdirshareplugin.ui
Ivailo Monev b099184aff kdirshare: disable user and password labels when authentication is disabled
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-20 16:41:06 +03:00

159 lines
5 KiB
XML

<?xml version="1.0" encoding="System"?>
<ui version="4.0">
<class>KDirShareUI</class>
<widget class="QWidget" name="KDirShareUI">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>433</width>
<height>353</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QCheckBox" name="sharebox">
<property name="text">
<string>Share with Local Network users</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="portgroup">
<property name="title">
<string>Port</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QCheckBox" name="randombox">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If the random port option is on then a random port in the range of values specified on the right will be used by the server. Otherwise, the server will always use the same port.&lt;/p&gt;&lt;p&gt;If, for example, firewall is used then using specifiec port and unblocking it in the firewall is the way to go.&lt;/p&gt;&lt;p&gt;There is a chance another service may be using the port, if that happens the server will not start.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Use random port</string>
</property>
</widget>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="KIntNumInput" name="portmininput">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The minimum port number.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>32000</number>
</property>
</widget>
</item>
<item>
<widget class="KIntNumInput" name="portmaxinput">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>32000</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="authgroup">
<property name="title">
<string>Authentication</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="authbox">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If restricted access to the share is desired this option may be turned on to require clients authentication with the specified user and password.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Require authentication</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="userlabel">
<property name="text">
<string>User:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="useredit"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="passlabel">
<property name="text">
<string>Password:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="passwordedit">
<property name="echoMode">
<enum>QLineEdit::Password</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="serverlabel">
<property name="text">
<string></string>
</property>
<property name="alignment">
<set>Qt::AlignHCenter|Qt::AlignVCenter</set>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KIntNumInput</class>
<extends></extends>
<header>knuminput.h</header>
</customwidget>
</customwidgets>
<connections/>
</ui>