2020-11-16 12:39:42 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PreferenceEditor</class>
<widget class="QMainWindow" name="PreferenceEditor">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
2023-09-12 18:25:16 +01:00
<width>522</width>
<height>493</height>
2020-11-16 12:39:42 +00:00
</rect>
</property>
<property name="windowTitle">
<string>Preferences</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QVBoxLayout" name="verticalLayout">
2020-12-01 21:32:08 +00:00
<property name="spacing">
<number>9</number>
</property>
2023-09-11 21:54:15 +01:00
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Miscellaneous</string>
</property>
2023-09-12 18:25:16 +01:00
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
2023-09-11 21:54:15 +01:00
<widget class="QCheckBox" name="checkBox_MonitorProjectFiles">
2024-01-21 04:02:43 +00:00
<property name="toolTip">
<string>If checked, a prompt to reload your project will appear if relevant project files are edited</string>
</property>
2023-09-11 21:54:15 +01:00
<property name="text">
<string>Monitor project files</string>
</property>
</widget>
</item>
2023-09-12 18:25:16 +01:00
<item>
<widget class="QCheckBox" name="checkBox_OpenRecentProject">
2024-01-21 04:02:43 +00:00
<property name="toolTip">
<string>If checked, Porymap will automatically open your most recently opened project on startup</string>
</property>
2023-09-12 18:25:16 +01:00
<property name="text">
<string>Open recent project on launch</string>
2023-09-11 21:54:15 +01:00
</property>
2023-09-12 18:25:16 +01:00
</widget>
2023-09-11 21:54:15 +01:00
</item>
2024-01-21 04:02:43 +00:00
<item>
<widget class="QCheckBox" name="checkBox_CheckForUpdates">
<property name="toolTip">
<string>If checked, Porymap will automatically alert you on startup if a new release is available</string>
</property>
<property name="text">
<string>Automatically check for updates</string>
</property>
</widget>
</item>
2023-09-11 21:54:15 +01:00
</layout>
</widget>
</item>
2020-12-01 12:12:32 +00:00
<item>
<widget class="QGroupBox" name="groupBox_Themes">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Application Theme</string>
</property>
</widget>
</item>
2020-11-16 12:39:42 +00:00
<item>
2020-11-16 14:35:55 +00:00
<widget class="QGroupBox" name="groupBox_TextEditor">
2020-11-16 12:39:42 +00:00
<property name="title">
<string>Preferred Text Editor</string>
</property>
<layout class="QGridLayout" name="gridLayout">
2020-12-01 12:12:32 +00:00
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<item row="2" column="0">
<widget class="QScrollArea" name="scrollArea_TextEditor">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
2020-11-16 12:39:42 +00:00
</property>
2020-12-01 12:12:32 +00:00
<property name="widgetResizable">
2020-11-16 12:39:42 +00:00
<bool>true</bool>
</property>
2020-12-01 12:12:32 +00:00
<widget class="QWidget" name="scrollAreaWidgetContents_TextEditor">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
2023-09-12 18:25:16 +01:00
<width>492</width>
<height>327</height>
2020-12-01 12:12:32 +00:00
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="sizeConstraint">
<enum>QLayout::SetMinimumSize</enum>
</property>
2020-12-01 21:32:08 +00:00
<item row="6" column="0" colspan="2">
2020-12-01 12:12:32 +00:00
<widget class="QLabel" name="label_TextEditorGotoLineHelp">
<property name="text">
2020-12-13 05:24:03 +00:00
<string><html><head/><body><p>When this command is set a button will appear next to the <span style=" font-weight:600; font-style:italic;">Script</span> combo-box in the <span style=" font-weight:600; font-style:italic;">Events</span> tab which executes this command.<span style=" font-weight:600;"> %F</span> will be substituted with the file path of the script and <span style=" font-weight:600;">%L</span> will be substituted with the line number of the script in that file. <span style=" font-weight:600;">%F </span><span style=" font-style:italic;">must</span> be given if <span style=" font-weight:600;">%L</span> is given. If <span style=" font-weight:600;">%F</span> is <span style=" font-style:italic;">not</span> given then the script's file path will be added to the end of the command. If the script can't be found then the current map's scripts file is opened.</p></body></html></string>
2020-12-01 12:12:32 +00:00
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
2020-12-01 21:32:08 +00:00
<item row="5" column="0">
<widget class="QLabel" name="label_TextEditorGotoLine">
<property name="text">
<string>Goto Line Command</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lineEdit_TextEditorOpenFolder">
2020-12-01 12:12:32 +00:00
<property name="toolTip">
2020-12-01 21:32:08 +00:00
<string>The shell command for your preferred text editor (possibly an absolute path if the program doesn't exist in your PATH).</string>
2020-12-01 12:12:32 +00:00
</property>
<property name="placeholderText">
2020-12-01 21:32:08 +00:00
<string>e.g. code %D</string>
2020-12-01 12:12:32 +00:00
</property>
<property name="clearButtonEnabled">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QLabel" name="label_TextEditorOpenFolderHelp">
<property name="text">
2020-12-13 05:24:03 +00:00
<string><html><head/><body><p>This is the command that is executed when clicking <span style=" font-weight:600; font-style:italic;">Open Project in Text Editor</span> in the <span style=" font-weight:600; font-style:italic;">Tools</span> menu. <span style=" font-weight:600;">%D</span> will be substituted with the project's root directory. If <span style=" font-weight:600;">%D</span> is <span style=" font-style:italic;">not</span> specified then the project directory will be added to the end of the command.</p></body></html></string>
2020-12-01 12:12:32 +00:00
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_TextEditorOpenFolder">
<property name="text">
<string>Open Directory Command</string>
</property>
</widget>
</item>
2020-12-01 21:32:08 +00:00
<item row="5" column="1">
<widget class="QLineEdit" name="lineEdit_TextEditorGotoLine">
2020-12-01 12:12:32 +00:00
<property name="toolTip">
2020-12-01 21:32:08 +00:00
<string>The shell command for your preferred text editor to open a file to a specific line number (possibly an absolute path if the program doesn't exist in your PATH).</string>
2020-12-01 12:12:32 +00:00
</property>
<property name="placeholderText">
2020-12-01 21:32:08 +00:00
<string>e.g. code --goto %F:%L</string>
</property>
<property name="clearButtonEnabled">
<bool>true</bool>
2020-12-01 12:12:32 +00:00
</property>
</widget>
</item>
2020-12-01 21:32:08 +00:00
<item row="2" column="0" colspan="2">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
2020-12-01 12:12:32 +00:00
</property>
2020-12-01 21:32:08 +00:00
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>15</height>
</size>
</property>
</spacer>
</item>
<item row="7" column="0" colspan="2">
<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>
2020-12-01 12:12:32 +00:00
</item>
</layout>
</widget>
2020-11-16 12:39:42 +00:00
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<resources/>
<connections/>
</ui>