Warning, /kdevelop/kdevelop/kdevplatform/shell/sourceformatterselectionedit.ui is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="UTF-8"?> 0002 <ui version="4.0"> 0003 <class>KDevelop::SourceFormatterSelectionEdit</class> 0004 <widget class="QWidget" name="KDevelop::SourceFormatterSelectionEdit"> 0005 <property name="geometry"> 0006 <rect> 0007 <x>0</x> 0008 <y>0</y> 0009 <width>509</width> 0010 <height>344</height> 0011 </rect> 0012 </property> 0013 <layout class="QGridLayout" name="mainLayout"> 0014 <property name="leftMargin"> 0015 <number>0</number> 0016 </property> 0017 <property name="topMargin"> 0018 <number>0</number> 0019 </property> 0020 <property name="rightMargin"> 0021 <number>0</number> 0022 </property> 0023 <property name="bottomMargin"> 0024 <number>0</number> 0025 </property> 0026 <item row="0" column="0"> 0027 <widget class="QLabel" name="label"> 0028 <property name="text"> 0029 <string comment="@label:listbox">Language:</string> 0030 </property> 0031 <property name="alignment"> 0032 <set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set> 0033 </property> 0034 <property name="margin"> 0035 <number>4</number> 0036 </property> 0037 </widget> 0038 </item> 0039 <item row="0" column="1"> 0040 <layout class="QHBoxLayout" name="horizontalLayout_2"> 0041 <item> 0042 <widget class="QToolButton" name="usageHelpButton"> 0043 <property name="toolTip"> 0044 <string>How to configure formatting styles</string> 0045 </property> 0046 <property name="whatsThis"> 0047 <string><p>Select languages you use one by one from the <i>Language</i> combobox below, pick the desired formatter and style for each. <i>Ctrl+Click</i> a selected style to unselect it.</p> 0048 <p>Configuring the right formatter and style for each used language is very important: not only explicit <i>Reformat Source</i>/<i>Line</i>/<i>Files...</i> actions are affected, but also the formatting of auto-generated, auto-refactored or auto-fixed code (for example, <i>Rename</i> context menu action).</p> 0049 <p>Note that KDevelop formats all <i>*.h</i> files with formatter and style configured for <i>C</i> language, even C++ headers that belong to a pure C++ project. This occurs because source formatter maps MIME types to languages.</p></string> 0050 </property> 0051 <property name="text"> 0052 <string/> 0053 </property> 0054 <property name="icon"> 0055 <iconset theme="dialog-question"/> 0056 </property> 0057 <property name="iconSize"> 0058 <size> 0059 <width>22</width> 0060 <height>22</height> 0061 </size> 0062 </property> 0063 </widget> 0064 </item> 0065 <item> 0066 <widget class="KComboBox" name="cbLanguages"/> 0067 </item> 0068 </layout> 0069 </item> 0070 <item row="0" column="2" rowspan="4"> 0071 <layout class="QVBoxLayout" name="verticalLayout" stretch="0,1"> 0072 <property name="spacing"> 0073 <number>12</number> 0074 </property> 0075 <item> 0076 <widget class="QLabel" name="descriptionLabel"> 0077 <property name="sizePolicy"> 0078 <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> 0079 <horstretch>0</horstretch> 0080 <verstretch>0</verstretch> 0081 </sizepolicy> 0082 </property> 0083 <property name="text"> 0084 <string/> 0085 </property> 0086 <property name="alignment"> 0087 <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set> 0088 </property> 0089 <property name="wordWrap"> 0090 <bool>true</bool> 0091 </property> 0092 </widget> 0093 </item> 0094 <item> 0095 <widget class="QWidget" name="previewArea" native="true"> 0096 <layout class="QVBoxLayout" name="verticalLayout_2"> 0097 <property name="leftMargin"> 0098 <number>0</number> 0099 </property> 0100 <property name="topMargin"> 0101 <number>0</number> 0102 </property> 0103 <property name="rightMargin"> 0104 <number>0</number> 0105 </property> 0106 <property name="bottomMargin"> 0107 <number>0</number> 0108 </property> 0109 <item> 0110 <widget class="QLabel" name="previewLabel"> 0111 <property name="text"> 0112 <string comment="@label">Preview:</string> 0113 </property> 0114 </widget> 0115 </item> 0116 <item> 0117 <widget class="QWidget" name="textEditor" native="true"> 0118 <property name="sizePolicy"> 0119 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> 0120 <horstretch>0</horstretch> 0121 <verstretch>0</verstretch> 0122 </sizepolicy> 0123 </property> 0124 </widget> 0125 </item> 0126 </layout> 0127 </widget> 0128 </item> 0129 </layout> 0130 </item> 0131 <item row="1" column="0"> 0132 <widget class="QLabel" name="label_4"> 0133 <property name="text"> 0134 <string comment="@label:listbox">Formatter:</string> 0135 </property> 0136 <property name="alignment"> 0137 <set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set> 0138 </property> 0139 <property name="margin"> 0140 <number>4</number> 0141 </property> 0142 </widget> 0143 </item> 0144 <item row="1" column="1"> 0145 <layout class="QHBoxLayout" name="horizontalLayout"> 0146 <item> 0147 <widget class="KComboBox" name="cbFormatters"/> 0148 </item> 0149 <item> 0150 <widget class="QToolButton" name="formatterDescriptionButton"> 0151 <property name="toolTip"> 0152 <string>Description of a selected formatter</string> 0153 </property> 0154 <property name="text"> 0155 <string/> 0156 </property> 0157 <property name="icon"> 0158 <iconset theme="dialog-information"/> 0159 </property> 0160 <property name="iconSize"> 0161 <size> 0162 <width>22</width> 0163 <height>22</height> 0164 </size> 0165 </property> 0166 </widget> 0167 </item> 0168 </layout> 0169 </item> 0170 <item row="2" column="1"> 0171 <widget class="QLabel" name="usageHintLabel"> 0172 <property name="text"> 0173 <string notr="true"><usage hint></string> 0174 </property> 0175 <property name="wordWrap"> 0176 <bool>true</bool> 0177 </property> 0178 </widget> 0179 </item> 0180 <item row="3" column="0"> 0181 <widget class="QLabel" name="label_2"> 0182 <property name="text"> 0183 <string comment="@label:listbox">Style:</string> 0184 </property> 0185 <property name="alignment"> 0186 <set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set> 0187 </property> 0188 <property name="margin"> 0189 <number>4</number> 0190 </property> 0191 <property name="indent"> 0192 <number>-1</number> 0193 </property> 0194 </widget> 0195 </item> 0196 <item row="3" column="1"> 0197 <layout class="QGridLayout" name="gridLayout"> 0198 <item row="0" column="0"> 0199 <widget class="QPushButton" name="btnNewStyle"> 0200 <property name="text"> 0201 <string comment="@action:button">New</string> 0202 </property> 0203 </widget> 0204 </item> 0205 <item row="0" column="1"> 0206 <widget class="QPushButton" name="btnEditStyle"> 0207 <property name="text"> 0208 <string comment="@action:button">Edit...</string> 0209 </property> 0210 </widget> 0211 </item> 0212 <item row="0" column="2"> 0213 <widget class="QPushButton" name="btnDelStyle"> 0214 <property name="text"> 0215 <string comment="@action:button">Delete</string> 0216 </property> 0217 </widget> 0218 </item> 0219 <item row="1" column="0" colspan="3"> 0220 <widget class="QListWidget" name="styleList"> 0221 <property name="selectionBehavior"> 0222 <enum>QAbstractItemView::SelectRows</enum> 0223 </property> 0224 <property name="sortingEnabled"> 0225 <bool>false</bool> 0226 </property> 0227 </widget> 0228 </item> 0229 </layout> 0230 </item> 0231 </layout> 0232 </widget> 0233 <customwidgets> 0234 <customwidget> 0235 <class>KComboBox</class> 0236 <extends>QComboBox</extends> 0237 <header>KComboBox</header> 0238 </customwidget> 0239 </customwidgets> 0240 <resources/> 0241 <connections/> 0242 </ui>