mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-26 11:52:54 +00:00
597 lines
19 KiB
XML
597 lines
19 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>AStylePreferences</class>
|
|
<widget class="QWidget" name="AStylePreferences">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>332</width>
|
|
<height>519</height>
|
|
</rect>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="KTabWidget" name="tabWidget">
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="tabIndentqtion">
|
|
<attribute name="title">
|
|
<string>Indentation</string>
|
|
</attribute>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<widget class="KComboBox" name="cbIndentType">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string comment="Indentation type">Tabs</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string comment="Indentation type">Force tabs</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string comment="Indentation type">Spaces</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="spacer13_3">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Minimum</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>18</width>
|
|
<height>21</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="inpNuberSpaces">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Number of spaces that will be converted to a tab.
|
|
The number of spaces per tab is controled by the editor.</string>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>4</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="chkConvertTabs">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Convert tabs to spaces.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Con&vert tabs into spaces</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="chkFillEmptyLines">
|
|
<property name="toolTip">
|
|
<string>Fill empty lines with the white space of their previous lines.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Fill empt&y lines</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout_3">
|
|
<item row="1" column="0">
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>10</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="lblIndentObjects">
|
|
<property name="text">
|
|
<string>Indent</string>
|
|
</property>
|
|
<property name="margin">
|
|
<number>5</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1" rowspan="2">
|
|
<widget class="KListWidget" name="listIdentObjects">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>Blocks</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Brackets</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Cases</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Class</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Labels</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Namespaces</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Preprocessor directives</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Switches</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout_4">
|
|
<item row="0" column="1">
|
|
<widget class="QSpinBox" name="inpMaxStatement">
|
|
<property name="toolTip">
|
|
<string>Indent a maximal # spaces in a continuous statement,
|
|
relative to the previous line.</string>
|
|
</property>
|
|
<property name="value">
|
|
<number>40</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="TextLabel3_2">
|
|
<property name="toolTip">
|
|
<string>Indent a minimal # spaces in a continuous conditional
|
|
belonging to a conditional header.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Minimum in conditional:</string>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QSpinBox" name="inpMinConditional">
|
|
<property name="toolTip">
|
|
<string>Indent a minimal # spaces in a continuous conditional
|
|
belonging to a conditional header.</string>
|
|
</property>
|
|
<property name="specialValueText">
|
|
<string>Twice current</string>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>-1</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>-1</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="TextLabel2_2">
|
|
<property name="toolTip">
|
|
<string>Indent a maximal # spaces in a continuous statement,
|
|
relative to the previous line.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Maximum in statement:</string>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>144</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="tabOther">
|
|
<attribute name="title">
|
|
<string>Other</string>
|
|
</attribute>
|
|
<layout class="QVBoxLayout" name="verticalLayout_8">
|
|
<item>
|
|
<widget class="QGroupBox" name="gpBrackets">
|
|
<property name="title">
|
|
<string>Brackets</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout_5">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="lblBrackets">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>Type</string>
|
|
</property>
|
|
<property name="margin">
|
|
<number>6</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0" colspan="2">
|
|
<widget class="QCheckBox" name="chkBracketsCloseHeaders">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Break brackets before closing headers (e.g. 'else', 'catch', ...)
|
|
from their immediately preceding closing brackets.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Brea&k closing headers</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="KComboBox" name="cbBrackets">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>No change</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Attach</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Break</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Linux</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Stroustrup</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Run-In</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="gpBlocks">
|
|
<property name="title">
|
|
<string>Blocks</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_5">
|
|
<item>
|
|
<widget class="QCheckBox" name="chkBlockBreak">
|
|
<property name="toolTip">
|
|
<string>Insert empty lines around unrelated blocks, labels, classes,...
|
|
Known problems:
|
|
|
|
1. If a statement is NOT part of a block,
|
|
the following statements are all double spaced.
|
|
Statements enclosed in a block are formatted
|
|
correctly.
|
|
|
|
2. Comments are broken from the block.
|
|
</string>
|
|
</property>
|
|
<property name="text">
|
|
<string comment="Means break unrelated blocks by a newline">&Break blocks</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="chkBlockBreakAll">
|
|
<property name="toolTip">
|
|
<string>Like --break-blocks, except also insert empty lines
|
|
around closing headers (e.g. 'else', 'catch', ...).
|
|
|
|
Known problems:
|
|
|
|
1. If a statement is NOT part of a block,
|
|
the following statements are all double spaced.
|
|
Statements enclosed in a block are formatted
|
|
correctly.
|
|
|
|
2. Comments are broken from the block.
|
|
</string>
|
|
</property>
|
|
<property name="text">
|
|
<string comment="Means break all blocks with a newline">Break all bl&ocks</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="chkBlockIfElse">
|
|
<property name="toolTip">
|
|
<string>Break 'else if()' statements into two different lines.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string comment="Means break else if() into separate lines">Break i&f-else</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="gpPadding">
|
|
<property name="title">
|
|
<string>Padding</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_6">
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout_6">
|
|
<item row="0" column="1">
|
|
<widget class="KComboBox" name="cbParenthesisPadding">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>No change</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Unpad</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Inside only</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Outside only</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Inside and outside</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0" colspan="2">
|
|
<widget class="QCheckBox" name="chkPadOperators">
|
|
<property name="toolTip">
|
|
<string>Insert space padding around operators.
|
|
Once padded, operators stay padded.
|
|
There is no unpad operator option.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Add spaces around operators</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="lblParenthesis">
|
|
<property name="text">
|
|
<string>Pad parenthesis</string>
|
|
</property>
|
|
<property name="margin">
|
|
<number>6</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0" colspan="2">
|
|
<widget class="QCheckBox" name="chkPadParenthesisHeader">
|
|
<property name="toolTip">
|
|
<string>Insert space padding after parenthesis headers (e.g. 'if', 'for', 'while', ...)</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Add spaces after parenthesis &headers</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="gpOneLiners">
|
|
<property name="title">
|
|
<string>One liners</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_7">
|
|
<item>
|
|
<widget class="QCheckBox" name="chkKeepStatements">
|
|
<property name="toolTip">
|
|
<string>Do not break lines containing multiple statements into
|
|
multiple single-statement lines.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Keep one-line statements</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="chkKeepBlocks">
|
|
<property name="toolTip">
|
|
<string>Do not break blocks residing completely on one line.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Keep o&ne-line blocks</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="gpOther">
|
|
<property name="title">
|
|
<string>Other</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout" columnstretch="0,1">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="lblPointerAlign">
|
|
<property name="text">
|
|
<string>Pointer Alignment</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QComboBox" name="cbPointerAlign">
|
|
<item>
|
|
<property name="text">
|
|
<string>No change</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Name</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Middle</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Type</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer_3">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>70</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>KListWidget</class>
|
|
<extends>QListWidget</extends>
|
|
<header>klistwidget.h</header>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>KComboBox</class>
|
|
<extends>QComboBox</extends>
|
|
<header>kcombobox.h</header>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>KTabWidget</class>
|
|
<extends>QTabWidget</extends>
|
|
<header>ktabwidget.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|