2021-08-30 17:10:46 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ui version="4.0">
|
|
|
|
<class>EditorMiscWidget</class>
|
|
|
|
<widget class="QWidget" name="EditorMiscWidget">
|
|
|
|
<property name="geometry">
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
2022-12-16 11:10:46 +08:00
|
|
|
<width>583</width>
|
|
|
|
<height>528</height>
|
2021-08-30 17:10:46 +08:00
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="windowTitle">
|
|
|
|
<string>Form</string>
|
|
|
|
</property>
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
|
|
<item>
|
|
|
|
<widget class="QCheckBox" name="chkReadonlySystemHeaders">
|
|
|
|
<property name="text">
|
|
|
|
<string>Open system header files in read only mode</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QCheckBox" name="chkLoadLastFiles">
|
|
|
|
<property name="text">
|
|
|
|
<string>Auto load files being open when Red Panda C++ last exited.</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2021-10-24 13:03:54 +08:00
|
|
|
<item>
|
2022-11-07 21:44:12 +08:00
|
|
|
<widget class="QCheckBox" name="chkParseTodos">
|
2021-10-24 13:03:54 +08:00
|
|
|
<property name="text">
|
2022-11-07 21:44:12 +08:00
|
|
|
<string>Parse TODOs</string>
|
2021-10-24 13:03:54 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2022-10-25 10:13:51 +08:00
|
|
|
<item>
|
2022-12-16 01:03:57 +08:00
|
|
|
<widget class="QGroupBox" name="groupBox_4">
|
|
|
|
<property name="title">
|
|
|
|
<string>Limits for Undo</string>
|
2022-10-25 10:13:51 +08:00
|
|
|
</property>
|
2022-12-16 01:03:57 +08:00
|
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
|
|
<item row="0" column="2">
|
|
|
|
<widget class="QLabel" name="label_2">
|
2022-03-20 18:10:53 +08:00
|
|
|
<property name="text">
|
2022-12-16 01:03:57 +08:00
|
|
|
<string>Memory Usage</string>
|
2022-03-20 18:10:53 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2022-12-16 01:03:57 +08:00
|
|
|
<item row="0" column="1">
|
2022-03-20 18:10:53 +08:00
|
|
|
<widget class="QSpinBox" name="spinMaxUndo">
|
|
|
|
<property name="minimum">
|
2022-05-19 13:19:47 +08:00
|
|
|
<number>0</number>
|
2022-03-20 18:10:53 +08:00
|
|
|
</property>
|
|
|
|
<property name="maximum">
|
|
|
|
<number>1000000000</number>
|
|
|
|
</property>
|
|
|
|
<property name="singleStep">
|
|
|
|
<number>50</number>
|
|
|
|
</property>
|
2022-05-19 13:19:47 +08:00
|
|
|
<property name="value">
|
|
|
|
<number>10000</number>
|
|
|
|
</property>
|
2022-03-20 18:10:53 +08:00
|
|
|
</widget>
|
|
|
|
</item>
|
2022-12-16 01:03:57 +08:00
|
|
|
<item row="0" column="0">
|
|
|
|
<widget class="QLabel" name="label">
|
|
|
|
<property name="text">
|
|
|
|
<string>Steps</string>
|
2022-03-20 18:10:53 +08:00
|
|
|
</property>
|
2022-12-16 01:03:57 +08:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="0" column="3">
|
|
|
|
<widget class="QSpinBox" name="spinMaxUndoMemory">
|
|
|
|
<property name="suffix">
|
|
|
|
<string>MB</string>
|
2022-03-20 18:10:53 +08:00
|
|
|
</property>
|
2022-12-16 01:03:57 +08:00
|
|
|
<property name="maximum">
|
|
|
|
<number>100</number>
|
|
|
|
</property>
|
|
|
|
<property name="value">
|
|
|
|
<number>50</number>
|
|
|
|
</property>
|
|
|
|
</widget>
|
2022-03-20 18:10:53 +08:00
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2022-12-16 01:03:57 +08:00
|
|
|
<item>
|
|
|
|
<widget class="QWidget" name="widget" native="true">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
|
|
<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>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2022-10-11 22:33:09 +08:00
|
|
|
<item>
|
|
|
|
<widget class="QWidget" name="widget_2" native="true">
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
|
|
<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>
|
2022-12-16 01:03:57 +08:00
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QGroupBox" name="groupBox_3">
|
|
|
|
<property name="title">
|
|
|
|
<string>Action before saving files</string>
|
|
|
|
</property>
|
|
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
|
|
<item row="0" column="1">
|
|
|
|
<widget class="QRadioButton" name="rbAutoReformat">
|
2022-10-11 22:33:09 +08:00
|
|
|
<property name="text">
|
2022-12-16 11:10:46 +08:00
|
|
|
<string>Reformat</string>
|
2022-10-11 22:33:09 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2022-12-16 01:03:57 +08:00
|
|
|
<item row="0" column="2">
|
|
|
|
<widget class="QRadioButton" name="rbRemoveTrailingSpaces">
|
|
|
|
<property name="text">
|
2022-12-16 11:10:46 +08:00
|
|
|
<string>Trim trailing spaces</string>
|
2022-10-11 22:33:09 +08:00
|
|
|
</property>
|
2022-12-16 01:03:57 +08:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="0" column="0">
|
|
|
|
<widget class="QRadioButton" name="rbNone">
|
|
|
|
<property name="text">
|
|
|
|
<string>None</string>
|
2022-10-11 22:33:09 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2022-12-16 01:03:57 +08:00
|
|
|
<item row="0" column="3">
|
|
|
|
<spacer name="horizontalSpacer_2">
|
2022-10-11 22:33:09 +08:00
|
|
|
<property name="orientation">
|
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
|
</property>
|
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
|
<size>
|
|
|
|
<width>40</width>
|
|
|
|
<height>20</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2022-11-07 21:44:12 +08:00
|
|
|
<item>
|
|
|
|
<widget class="QCheckBox" name="chkAutoDetectFileEncoding">
|
|
|
|
<property name="text">
|
|
|
|
<string>Auto detect encoding when openning files</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2022-03-12 17:37:53 +08:00
|
|
|
<item>
|
|
|
|
<widget class="QGroupBox" name="groupBox_2">
|
|
|
|
<property name="title">
|
|
|
|
<string>Default file encoding</string>
|
|
|
|
</property>
|
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
|
|
<item>
|
|
|
|
<widget class="QComboBox" name="cbEncoding"/>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QComboBox" name="cbEncodingDetail"/>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<spacer name="horizontalSpacer">
|
|
|
|
<property name="orientation">
|
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
|
</property>
|
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
|
<size>
|
|
|
|
<width>40</width>
|
|
|
|
<height>20</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2021-08-30 17:10:46 +08:00
|
|
|
<item>
|
|
|
|
<widget class="QGroupBox" name="groupBox">
|
|
|
|
<property name="title">
|
|
|
|
<string>Default file type</string>
|
|
|
|
</property>
|
2022-12-16 01:03:57 +08:00
|
|
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
2021-08-30 17:10:46 +08:00
|
|
|
<item>
|
2022-12-16 01:03:57 +08:00
|
|
|
<widget class="QRadioButton" name="rbCFile">
|
2021-08-30 17:10:46 +08:00
|
|
|
<property name="text">
|
2022-12-16 01:03:57 +08:00
|
|
|
<string>C files</string>
|
2021-08-30 17:10:46 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2022-12-16 01:03:57 +08:00
|
|
|
<widget class="QRadioButton" name="rbCppFile">
|
2021-08-30 17:10:46 +08:00
|
|
|
<property name="text">
|
2022-12-16 01:03:57 +08:00
|
|
|
<string>C++ files</string>
|
2021-08-30 17:10:46 +08:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2022-12-16 01:03:57 +08:00
|
|
|
<item>
|
|
|
|
<spacer name="horizontalSpacer_3">
|
|
|
|
<property name="orientation">
|
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
|
</property>
|
|
|
|
<property name="sizeHint" stdset="0">
|
|
|
|
<size>
|
|
|
|
<width>40</width>
|
|
|
|
<height>20</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</item>
|
2021-08-30 17:10:46 +08:00
|
|
|
</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>117</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
2024-03-25 18:58:48 +08:00
|
|
|
<tabstops>
|
|
|
|
<tabstop>chkReadonlySystemHeaders</tabstop>
|
|
|
|
<tabstop>chkLoadLastFiles</tabstop>
|
|
|
|
<tabstop>chkParseTodos</tabstop>
|
|
|
|
<tabstop>spinMaxUndo</tabstop>
|
|
|
|
<tabstop>spinMaxUndoMemory</tabstop>
|
|
|
|
<tabstop>rbNone</tabstop>
|
|
|
|
<tabstop>rbAutoReformat</tabstop>
|
|
|
|
<tabstop>rbRemoveTrailingSpaces</tabstop>
|
|
|
|
<tabstop>chkAutoDetectFileEncoding</tabstop>
|
|
|
|
<tabstop>cbEncoding</tabstop>
|
|
|
|
<tabstop>cbEncodingDetail</tabstop>
|
|
|
|
<tabstop>rbCFile</tabstop>
|
|
|
|
<tabstop>rbCppFile</tabstop>
|
|
|
|
</tabstops>
|
2021-08-30 17:10:46 +08:00
|
|
|
<resources/>
|
|
|
|
<connections/>
|
|
|
|
</ui>
|