kde-workspace/knetattach/knetattach.ui
Ivailo Monev f879fe9a4d knetattach: implement option to specify password
security wise it is bad idea to store the password as is but it is the only
way to save and connect to connection that requires password right now
because the connection is verified (see KNetAttach::doConnectionTest())

the option to not save the connection and a big warning are in place tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-05 17:58:29 +03:00

389 lines
11 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>KNetAttach</class>
<widget class="QWizard" name="KNetAttach">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>722</width>
<height>475</height>
</rect>
</property>
<property name="windowTitle">
<string>Network Folder Wizard</string>
</property>
<widget class="QWizardPage" name="_folderType">
<property name="title">
<string>Add Network Folder</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="textLabel1_2">
<property name="text">
<string>Select the type of network folder you wish to connect to and press the Next button.</string>
</property>
<property name="alignment">
<set>Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="spacer20">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>653</width>
<height>18</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="KButtonGroup" name="buttonGroup1">
<property name="title">
<string/>
</property>
<property name="flat">
<bool>true</bool>
</property>
<layout class="QGridLayout">
<property name="margin">
<number>0</number>
</property>
<item row="3" column="1">
<widget class="KComboBox" name="_recentConnectionName">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>250</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QRadioButton" name="_ftp">
<property name="text">
<string>&amp;File Transfer Protocol (ftp)</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QRadioButton" name="_recent">
<property name="text">
<string>&amp;Recent connection:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="_sftp">
<property name="text">
<string>&amp;SSH File Transfer Protocol (sftp)</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="spacer2_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>653</width>
<height>184</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWizardPage" name="_folderParameters">
<property name="title">
<string>Network Folder Information</string>
</property>
<layout class="QGridLayout" name="gridLayout1">
<item row="0" column="0" colspan="3">
<widget class="QLabel" name="_informationText">
<property name="text">
<string>Enter a name for this &lt;i&gt;%1&lt;/i&gt; as well as the server address, port and folder path to use and press the Next button.</string>
</property>
<property name="alignment">
<set>Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="2">
<spacer name="spacer20_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>282</width>
<height>18</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1" colspan="2">
<widget class="KLineEdit" name="_connectionName"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="textLabel4_2">
<property name="text">
<string>&amp;Name:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>_connectionName</cstring>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="_userText">
<property name="text">
<string>&amp;User:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>_user</cstring>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="KLineEdit" name="_user">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>10</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="_passText">
<property name="text">
<string>&amp;Password:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>_pass</cstring>
</property>
</widget>
</item>
<item row="4" column="1" colspan="2">
<widget class="KLineEdit" name="_pass">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>10</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="passwordMode">
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="textLabel1">
<property name="text">
<string>Se&amp;rver:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>_host</cstring>
</property>
</widget>
</item>
<item row="5" column="1" colspan="2">
<widget class="KLineEdit" name="_host">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>10</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="_portText">
<property name="text">
<string>&amp;Port:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>_port</cstring>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="KIntSpinBox" name="_port">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>1</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="textLabel3">
<property name="text">
<string>&amp;Folder:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>false</bool>
</property>
<property name="buddy">
<cstring>_path</cstring>
</property>
</widget>
</item>
<item row="7" column="1" colspan="2">
<widget class="KLineEdit" name="_path"/>
</item>
<item row="8" column="0">
<widget class="QLabel" name="_encodingText">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Encoding:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>_encoding</cstring>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="KComboBox" name="_encoding"/>
</item>
<item row="9" column="1" colspan="2">
<widget class="QCheckBox" name="_createIcon">
<property name="text">
<string>Cr&amp;eate an icon for this remote folder</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="10" column="0" colspan="3">
<spacer name="spacer5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>653</width>
<height>56</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
<customwidgets>
<customwidget>
<class>KIntSpinBox</class>
<extends>QSpinBox</extends>
<header>knuminput.h</header>
</customwidget>
<customwidget>
<class>KButtonGroup</class>
<extends>QGroupBox</extends>
<header>kbuttongroup.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
</customwidgets>
<connections/>
</ui>