Preferences/ConfigurationPages/EditorHighlightingStylesPage.ui

branch
sub_styles
changeset 6864
7837ab17f079
parent 6862
6f4237ccf576
child 6878
79008f970902
--- a/Preferences/ConfigurationPages/EditorHighlightingStylesPage.ui	Sat Mar 16 14:11:43 2019 +0100
+++ b/Preferences/ConfigurationPages/EditorHighlightingStylesPage.ui	Sat Mar 16 18:38:01 2019 +0100
@@ -7,7 +7,7 @@
     <x>0</x>
     <y>0</y>
     <width>550</width>
-    <height>592</height>
+    <height>700</height>
    </rect>
   </property>
   <layout class="QVBoxLayout" name="verticalLayout">
@@ -67,180 +67,14 @@
       <string>Style Element</string>
      </property>
      <layout class="QGridLayout" name="gridLayout">
-      <item row="0" column="1">
-       <widget class="QPushButton" name="foregroundButton">
-        <property name="toolTip">
-         <string>Select the foreground colour.</string>
-        </property>
-        <property name="text">
-         <string>Foreground Colour</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="1">
-       <widget class="QPushButton" name="backgroundButton">
-        <property name="toolTip">
-         <string>Select the background colour.</string>
-        </property>
-        <property name="text">
-         <string>Background Colour</string>
-        </property>
-       </widget>
-      </item>
-      <item row="2" column="1">
-       <widget class="QPushButton" name="fontButton">
-        <property name="toolTip">
-         <string>Select the font.</string>
-        </property>
-        <property name="text">
-         <string>Font</string>
-        </property>
-       </widget>
-      </item>
-      <item row="3" column="1">
-       <widget class="QCheckBox" name="eolfillCheckBox">
-        <property name="toolTip">
-         <string>Select end of line fill.</string>
-        </property>
-        <property name="text">
-         <string>Fill to end of line</string>
-        </property>
-       </widget>
-      </item>
-      <item row="4" column="1">
-       <widget class="Line" name="line">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-       </widget>
-      </item>
-      <item row="5" column="1">
-       <widget class="QPushButton" name="defaultButton">
-        <property name="toolTip">
-         <string>Press to set the current style to its default values</string>
-        </property>
-        <property name="text">
-         <string>to Default</string>
-        </property>
-       </widget>
-      </item>
-      <item row="6" column="1">
-       <spacer name="spacer">
-        <property name="orientation">
-         <enum>Qt::Vertical</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>20</width>
-          <height>43</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item row="7" column="1">
-       <widget class="QPushButton" name="monospacedButton">
-        <property name="toolTip">
-         <string>Press to show only monospaced fonts</string>
-        </property>
-        <property name="text">
-         <string>Monospaced Fonts Only</string>
-        </property>
-        <property name="checkable">
-         <bool>true</bool>
-        </property>
-        <property name="checked">
-         <bool>true</bool>
+      <item row="0" column="0">
+       <widget class="QTreeWidget" name="styleElementList">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+          <horstretch>2</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
         </property>
-       </widget>
-      </item>
-      <item row="8" column="1">
-       <spacer>
-        <property name="orientation">
-         <enum>Qt::Vertical</enum>
-        </property>
-        <property name="sizeHint" stdset="0">
-         <size>
-          <width>20</width>
-          <height>38</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item row="9" column="1">
-       <widget class="QPushButton" name="allBackgroundColoursButton">
-        <property name="toolTip">
-         <string>Select the background colour for all styles</string>
-        </property>
-        <property name="text">
-         <string>All Background Colours</string>
-        </property>
-       </widget>
-      </item>
-      <item row="10" column="1">
-       <widget class="QPushButton" name="allFontsButton">
-        <property name="toolTip">
-         <string>Select the font for all styles.</string>
-        </property>
-        <property name="text">
-         <string>All Fonts</string>
-        </property>
-       </widget>
-      </item>
-      <item row="11" column="1">
-       <widget class="QPushButton" name="allEolFillButton">
-        <property name="toolTip">
-         <string>Select the eol fill for all styles</string>
-        </property>
-        <property name="text">
-         <string>All Fill to end of line</string>
-        </property>
-       </widget>
-      </item>
-      <item row="12" column="1">
-       <widget class="Line" name="line_2">
-        <property name="orientation">
-         <enum>Qt::Horizontal</enum>
-        </property>
-       </widget>
-      </item>
-      <item row="13" column="1">
-       <widget class="QPushButton" name="allDefaultButton">
-        <property name="toolTip">
-         <string>Press to set all styles to their default values</string>
-        </property>
-        <property name="text">
-         <string>All to Default</string>
-        </property>
-       </widget>
-      </item>
-      <item row="14" column="0" colspan="2">
-       <widget class="QLineEdit" name="sampleText">
-        <property name="focusPolicy">
-         <enum>Qt::NoFocus</enum>
-        </property>
-        <property name="text">
-         <string>Sample Text</string>
-        </property>
-        <property name="alignment">
-         <set>Qt::AlignHCenter</set>
-        </property>
-        <property name="readOnly">
-         <bool>true</bool>
-        </property>
-       </widget>
-      </item>
-      <item row="15" column="0" colspan="2">
-       <widget class="QLabel" name="label">
-        <property name="text">
-         <string>&lt;b&gt;Note:&lt;/b&gt; The tick in the list above indicates the entrie's 'fill to end of line' setting.</string>
-        </property>
-        <property name="wordWrap">
-         <bool>true</bool>
-        </property>
-       </widget>
-      </item>
-      <item row="0" column="0" rowspan="14">
-       <widget class="QTreeWidget" name="styleElementList">
         <property name="selectionMode">
          <enum>QAbstractItemView::ExtendedSelection</enum>
         </property>
@@ -260,6 +94,247 @@
         </column>
        </widget>
       </item>
+      <item row="0" column="1">
+       <layout class="QVBoxLayout" name="verticalLayout_2">
+        <item>
+         <layout class="QHBoxLayout" name="horizontalLayout_2">
+          <item>
+           <spacer name="horizontalSpacer">
+            <property name="orientation">
+             <enum>Qt::Horizontal</enum>
+            </property>
+            <property name="sizeHint" stdset="0">
+             <size>
+              <width>13</width>
+              <height>20</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
+          <item>
+           <widget class="QToolButton" name="addSubstyleButton">
+            <property name="toolTip">
+             <string>Press to add a sub-style to the selected style</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QToolButton" name="deleteSubstyleButton">
+            <property name="toolTip">
+             <string>Press to to delete the selected sub-style</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QToolButton" name="editSubstyleButton">
+            <property name="toolTip">
+             <string>Press to edit the selected sub-style</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QToolButton" name="copySubstyleButton">
+            <property name="toolTip">
+             <string>Press to copy the selected sub-style</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <spacer name="horizontalSpacer_2">
+            <property name="orientation">
+             <enum>Qt::Horizontal</enum>
+            </property>
+            <property name="sizeHint" stdset="0">
+             <size>
+              <width>13</width>
+              <height>20</height>
+             </size>
+            </property>
+           </spacer>
+          </item>
+         </layout>
+        </item>
+        <item>
+         <widget class="Line" name="line_3">
+          <property name="orientation">
+           <enum>Qt::Horizontal</enum>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="foregroundButton">
+          <property name="toolTip">
+           <string>Select the foreground colour.</string>
+          </property>
+          <property name="text">
+           <string>Foreground Colour</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="backgroundButton">
+          <property name="toolTip">
+           <string>Select the background colour.</string>
+          </property>
+          <property name="text">
+           <string>Background Colour</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="fontButton">
+          <property name="toolTip">
+           <string>Select the font.</string>
+          </property>
+          <property name="text">
+           <string>Font</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QCheckBox" name="eolfillCheckBox">
+          <property name="toolTip">
+           <string>Select end of line fill.</string>
+          </property>
+          <property name="text">
+           <string>Fill to end of line</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="Line" name="line">
+          <property name="orientation">
+           <enum>Qt::Horizontal</enum>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="defaultButton">
+          <property name="toolTip">
+           <string>Press to set the current style to its default values</string>
+          </property>
+          <property name="text">
+           <string>to Default</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <spacer name="spacer">
+          <property name="orientation">
+           <enum>Qt::Vertical</enum>
+          </property>
+          <property name="sizeHint" stdset="0">
+           <size>
+            <width>20</width>
+            <height>43</height>
+           </size>
+          </property>
+         </spacer>
+        </item>
+        <item>
+         <widget class="QPushButton" name="monospacedButton">
+          <property name="toolTip">
+           <string>Press to show only monospaced fonts</string>
+          </property>
+          <property name="text">
+           <string>Monospaced Fonts Only</string>
+          </property>
+          <property name="checkable">
+           <bool>true</bool>
+          </property>
+          <property name="checked">
+           <bool>true</bool>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <spacer>
+          <property name="orientation">
+           <enum>Qt::Vertical</enum>
+          </property>
+          <property name="sizeHint" stdset="0">
+           <size>
+            <width>20</width>
+            <height>38</height>
+           </size>
+          </property>
+         </spacer>
+        </item>
+        <item>
+         <widget class="QPushButton" name="allBackgroundColoursButton">
+          <property name="toolTip">
+           <string>Select the background colour for all styles</string>
+          </property>
+          <property name="text">
+           <string>All Background Colours</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="allFontsButton">
+          <property name="toolTip">
+           <string>Select the font for all styles.</string>
+          </property>
+          <property name="text">
+           <string>All Fonts</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="allEolFillButton">
+          <property name="toolTip">
+           <string>Select the eol fill for all styles</string>
+          </property>
+          <property name="text">
+           <string>All Fill to end of line</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="Line" name="line_2">
+          <property name="orientation">
+           <enum>Qt::Horizontal</enum>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="allDefaultButton">
+          <property name="toolTip">
+           <string>Press to set all styles to their default values</string>
+          </property>
+          <property name="text">
+           <string>All to Default</string>
+          </property>
+         </widget>
+        </item>
+       </layout>
+      </item>
+      <item row="1" column="0" colspan="2">
+       <widget class="QLineEdit" name="sampleText">
+        <property name="focusPolicy">
+         <enum>Qt::NoFocus</enum>
+        </property>
+        <property name="text">
+         <string>Sample Text</string>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignHCenter</set>
+        </property>
+        <property name="readOnly">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0" colspan="2">
+       <widget class="QLabel" name="label">
+        <property name="text">
+         <string>&lt;b&gt;Note:&lt;/b&gt; The tick in the list above indicates the entrie's 'fill to end of line' setting.</string>
+        </property>
+        <property name="wordWrap">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>
@@ -318,6 +393,10 @@
  <tabstops>
   <tabstop>lexerLanguageComboBox</tabstop>
   <tabstop>styleElementList</tabstop>
+  <tabstop>addSubstyleButton</tabstop>
+  <tabstop>deleteSubstyleButton</tabstop>
+  <tabstop>editSubstyleButton</tabstop>
+  <tabstop>copySubstyleButton</tabstop>
   <tabstop>foregroundButton</tabstop>
   <tabstop>backgroundButton</tabstop>
   <tabstop>fontButton</tabstop>

eric ide

mercurial