* Pass program and arguments directly * Prevent failure on white space in executable path * Use own parser for arguments * Make libsyncthing accessible from launcher
251 lines
7.1 KiB
XML
251 lines
7.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>QtGui::LauncherOptionPage</class>
|
|
<widget class="QWidget" name="QtGui::LauncherOptionPage">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>507</width>
|
|
<height>391</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Syncthing launcher</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QCheckBox" name="enabledCheckBox">
|
|
<property name="font">
|
|
<font>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>Launch Syncthing when starting the tray icon</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="launcherFormWidget" native="true">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<property name="leftMargin">
|
|
<number>30</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="syncthingPathLabel">
|
|
<property name="text">
|
|
<string>Syncthing executable</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="Widgets::PathSelection" name="syncthingPathSelection" native="true"/>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="argumentsLabel">
|
|
<property name="text">
|
|
<string>Arguments</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="Widgets::ClearLineEdit" name="argumentsLineEdit"/>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QCheckBox" name="useBuiltInVersionCheckBox">
|
|
<property name="text">
|
|
<string>Use built-in Syncthing library (experimental)</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="considerForReconnectCheckBox">
|
|
<property name="text">
|
|
<string>Consider process status for reconnect attempts to local instance
|
|
• Don't reconnect when the process is not running
|
|
• Try to reconnect when starting the process</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="Line" name="line">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="logLabel">
|
|
<property name="font">
|
|
<font>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>Syncthing log (interleaved stdout/stderr)</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="launchNowPushButton">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>Apply and launch now</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset theme="view-refresh" resource="../resources/syncthingwidgetsicons.qrc">
|
|
<normaloff>:/icons/hicolor/scalable/actions/view-refresh.svg</normaloff>:/icons/hicolor/scalable/actions/view-refresh.svg</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="stopPushButton">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>Stop launched instance</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset theme="process-stop" resource="../resources/syncthingwidgetsicons.qrc">
|
|
<normaloff>:/icons/hicolor/scalable/actions/process-stop.svg</normaloff>:/icons/hicolor/scalable/actions/process-stop.svg</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="Widgets::ClearPlainTextEdit" name="logTextEdit">
|
|
<property name="undoRedoEnabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="readOnly">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="placeholderText">
|
|
<string>No log messages available yet</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="ensureCursorVisibleCheckBox">
|
|
<property name="text">
|
|
<string>Ensure latest log is visible</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>Widgets::PathSelection</class>
|
|
<extends>QWidget</extends>
|
|
<header location="global">qtutilities/widgets/pathselection.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>Widgets::ClearLineEdit</class>
|
|
<extends>QLineEdit</extends>
|
|
<header location="global">qtutilities/widgets/clearlineedit.h</header>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>Widgets::ClearPlainTextEdit</class>
|
|
<extends>QPlainTextEdit</extends>
|
|
<header location="global">qtutilities/widgets/clearplaintextedit.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources>
|
|
<include location="../resources/syncthingwidgetsicons.qrc"/>
|
|
</resources>
|
|
<connections>
|
|
<connection>
|
|
<sender>enabledCheckBox</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>launcherFormWidget</receiver>
|
|
<slot>setEnabled(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>142</x>
|
|
<y>17</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>142</x>
|
|
<y>65</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>enabledCheckBox</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>launchNowPushButton</receiver>
|
|
<slot>setEnabled(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>259</x>
|
|
<y>19</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>257</x>
|
|
<y>130</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>useBuiltInVersionCheckBox</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>syncthingPathSelection</receiver>
|
|
<slot>setDisabled(bool)</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>320</x>
|
|
<y>58</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>320</x>
|
|
<y>36</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|