RedPanda-CPP/RedPandaIDE/settingsdialog/editorfontwidget.ui

708 lines
21 KiB
Plaintext
Raw Permalink Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>EditorFontWidget</class>
<widget class="QWidget" name="EditorFontWidget">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>876</width>
2024-03-13 20:48:08 +08:00
<height>870</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupFontFamilies">
<property name="title">
<string>Font</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="0">
<widget class="QListView" name="lstFontList"/>
</item>
<item row="1" column="1">
<layout class="QGridLayout" name="layoutFontListActions">
<item row="1" column="0">
<widget class="QToolButton" name="btnRemoveFont">
2024-03-13 20:48:08 +08:00
<property name="toolTip">
<string>Remove</string>
</property>
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QToolButton" name="btnModifyFont">
2024-03-13 20:48:08 +08:00
<property name="toolTip">
<string>Modify</string>
2024-03-13 20:48:08 +08:00
</property>
<property name="text">
<string>Modify</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QToolButton" name="btnResetFonts">
2024-03-13 20:48:08 +08:00
<property name="toolTip">
<string>Reset</string>
2024-03-13 20:48:08 +08:00
</property>
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QToolButton" name="btnAddFont">
2024-03-13 20:48:08 +08:00
<property name="toolTip">
<string>Add</string>
2024-03-13 20:48:08 +08:00
</property>
<property name="text">
<string>Add</string>
</property>
</widget>
</item>
<item row="4" column="0">
<spacer name="verticalSpacer_2">
<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 row="2" column="1">
<widget class="QToolButton" name="btnMoveFontDown">
<property name="toolTip">
<string>Move down</string>
</property>
<property name="text">
<string>Move down</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QToolButton" name="btnMoveFontUp">
<property name="toolTip">
<string>Move up</string>
</property>
<property name="text">
<string>Move up</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QToolButton" name="btnMoveFontToTop">
<property name="toolTip">
<string>Move to top</string>
</property>
<property name="text">
<string>Move to top</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QToolButton" name="btnMoveFontToBottom">
<property name="toolTip">
<string>Move to bottom</string>
</property>
<property name="text">
<string>Move to bottom</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="widget" native="true">
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<item row="5" column="0" colspan="2">
<widget class="QWidget" name="widget_11" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_12">
<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>
<item>
<widget class="QCheckBox" name="chkLigature">
<property name="text">
<string>Enable ligatures support</string>
</property>
2024-02-28 11:51:02 +08:00
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkForceFixedFontWidth">
<property name="text">
<string>Force fixed width</string>
</property>
</widget>
</item>
2024-02-28 11:51:02 +08:00
<item>
<spacer name="horizontalSpacer_11">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
2024-02-28 11:51:02 +08:00
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
2024-02-28 11:51:02 +08:00
<item row="2" column="0">
<widget class="QLabel" name="label_9">
2024-02-28 11:51:02 +08:00
<property name="text">
<string>Line Spacing:</string>
2024-02-28 11:51:02 +08:00
</property>
</widget>
</item>
<item row="1" column="0">
2024-02-28 11:51:02 +08:00
<widget class="QLabel" name="label_2">
<property name="text">
<string>Size:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QWidget" name="widget_3" 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>
<item>
<widget class="QSpinBox" name="spinFontSize">
<property name="minimum">
<number>2</number>
</property>
</widget>
</item>
2024-02-28 11:51:02 +08:00
<item>
<spacer name="horizontalSpacer_2">
<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>
<item row="2" column="1">
2024-02-28 11:51:02 +08:00
<widget class="QWidget" name="widget_10" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_8">
<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>
<item>
2024-02-28 11:51:02 +08:00
<widget class="QDoubleSpinBox" name="spinLineSpacing">
<property name="decimals">
<number>1</number>
</property>
2024-02-28 11:51:02 +08:00
<property name="minimum">
<double>1.000000000000000</double>
</property>
<property name="maximum">
<double>3.000000000000000</double>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property>
2024-02-26 18:22:02 +08:00
</widget>
</item>
<item>
2024-02-28 11:51:02 +08:00
<spacer name="horizontalSpacer_8">
2024-02-26 18:22:02 +08:00
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
2024-02-26 18:22:02 +08:00
<property name="sizeHint" stdset="0">
<size>
2024-02-28 11:51:02 +08:00
<width>563</width>
2024-02-26 18:22:02 +08:00
<height>20</height>
</size>
</property>
2024-02-26 18:22:02 +08:00
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Show whitespaces</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QCheckBox" name="chkLeadingSpaces">
<property name="text">
<string>Leading</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkInnerSpaces">
<property name="text">
<string>Inner</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkTrailingSpaces">
<property name="text">
<string>Trailing</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkLineBreaks">
<property name="text">
<string>Line break</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Gutter</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>7</number>
</property>
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<item>
<widget class="QCheckBox" name="chkGutterVisible">
<property name="text">
<string>Gutter is visible</string>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_8" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_6">
<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>
<item>
<widget class="QLabel" name="label_6">
<property name="text">
<string>Left Offset</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinGutterLeftOffset">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999</number>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_7">
<property name="text">
<string>Right Offset</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinGutterRightOffset">
<property name="minimum">
<number>0</number>
</property>
<property name="maximum">
<number>999</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<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>
<item>
<widget class="QGroupBox" name="grpGutterShowLineNumbers">
<property name="title">
<string>Show Line Numbers</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>7</number>
</property>
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<item>
<widget class="QCheckBox" name="chkAddLeadingZeros">
<property name="text">
<string>Add leading zeros to line numbers</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkLineNumbersStartsZero">
<property name="text">
<string>Line numbers starts at zero</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkAutoSizeGutter">
<property name="text">
<string>Auto calculate the digit count of line number</string>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_4" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_5">
<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>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Digit count</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinGutterDigitsCount">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>999</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<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>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="grpUseCustomFont">
<property name="title">
<string>Use Custom Font</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<property name="horizontalSpacing">
<number>7</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_5">
<property name="text">
<string>Font:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Size:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QWidget" name="widget_6" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_4">
<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>
<item>
<widget class="QSpinBox" name="spinGutterFontSize">
<property name="minimum">
<number>2</number>
</property>
</widget>
</item>
<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>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QWidget" name="widget_5" native="true">
<layout class="QGridLayout" name="gridLayout_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>
<item row="0" column="3">
<widget class="QWidget" name="widget_7" 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>
<item>
<widget class="QFontComboBox" name="cbGutterFont">
<property name="editable">
<bool>false</bool>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
<property name="fontFilters">
<set>QFontComboBox::AllFonts</set>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkGutterOnlyMonospacedFonts">
<property name="text">
<string>Show only monospaced fonts</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<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>
</layout>
</widget>
</item>
</layout>
</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>
</layout>
</widget>
<tabstops>
<tabstop>lstFontList</tabstop>
<tabstop>btnAddFont</tabstop>
<tabstop>btnMoveFontToTop</tabstop>
<tabstop>btnRemoveFont</tabstop>
<tabstop>btnMoveFontUp</tabstop>
<tabstop>btnModifyFont</tabstop>
<tabstop>btnMoveFontDown</tabstop>
<tabstop>btnResetFonts</tabstop>
<tabstop>btnMoveFontToBottom</tabstop>
<tabstop>spinFontSize</tabstop>
<tabstop>spinLineSpacing</tabstop>
<tabstop>chkLigature</tabstop>
<tabstop>chkForceFixedFontWidth</tabstop>
<tabstop>chkLeadingSpaces</tabstop>
<tabstop>chkInnerSpaces</tabstop>
<tabstop>chkTrailingSpaces</tabstop>
<tabstop>chkLineBreaks</tabstop>
<tabstop>chkGutterVisible</tabstop>
<tabstop>spinGutterLeftOffset</tabstop>
<tabstop>spinGutterRightOffset</tabstop>
<tabstop>grpGutterShowLineNumbers</tabstop>
<tabstop>chkAddLeadingZeros</tabstop>
<tabstop>chkLineNumbersStartsZero</tabstop>
<tabstop>chkAutoSizeGutter</tabstop>
<tabstop>spinGutterDigitsCount</tabstop>
<tabstop>grpUseCustomFont</tabstop>
<tabstop>cbGutterFont</tabstop>
<tabstop>chkGutterOnlyMonospacedFonts</tabstop>
<tabstop>spinGutterFontSize</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>