Abdelrazak Younes wrote:
Jürgen Spitzmüller wrote:
Abdelrazak Younes wrote:
To mitigate this problem I think we should only offer a view of the
symbols in current category. That's what MSWord and OO Writer do AFAIK.

We already have that. It doesn't help, though, since the categories need to be calculated nevertheless (the combo is still needed).

By the way, I think I'd prefer a side list widget instead of combo at the top for the category selection.

Something like the attached (only a mockup, no actual code).

Warning: I am notoriously bad Qt designer.

Abdel.

<<attachment: gui_symbols.png>>

Index: SymbolsUi.ui
===================================================================
--- SymbolsUi.ui        (revision 22855)
+++ SymbolsUi.ui        (working copy)
@@ -5,12 +5,14 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>486</width>
+    <width>497</width>
     <height>338</height>
    </rect>
   </property>
   <property name="sizePolicy" >
-   <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+   <sizepolicy>
+    <hsizetype>0</hsizetype>
+    <vsizetype>0</vsizetype>
     <horstretch>0</horstretch>
     <verstretch>0</verstretch>
    </sizepolicy>
@@ -34,50 +36,18 @@
    <bool>true</bool>
   </property>
   <layout class="QGridLayout" >
-   <item row="0" column="0" >
-    <layout class="QHBoxLayout" >
-     <item>
-      <widget class="QLabel" name="categoryLA" >
-       <property name="text" >
-        <string>Ca&amp;tegory:</string>
-       </property>
-       <property name="buddy" >
-        <cstring>categoryCO</cstring>
-       </property>
-      </widget>
-     </item>
-     <item>
-      <widget class="QComboBox" name="categoryCO" />
-     </item>
-    </layout>
-   </item>
-   <item row="0" column="1" >
-    <spacer>
-     <property name="orientation" >
-      <enum>Qt::Horizontal</enum>
-     </property>
-     <property name="sizeHint" >
-      <size>
-       <width>81</width>
-       <height>31</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-   <item row="0" column="2" >
-    <widget class="QCheckBox" name="categoryFilterCB" >
-     <property name="toolTip" >
-      <string>Select this to display all available characters at once</string>
-     </property>
-     <property name="text" >
-      <string>&amp;Display all</string>
-     </property>
-    </widget>
-   </item>
-   <item row="1" column="0" colspan="3" >
+   <property name="margin" >
+    <number>9</number>
+   </property>
+   <property name="spacing" >
+    <number>6</number>
+   </property>
+   <item row="1" column="1" >
     <widget class="QListWidget" name="symbolsLW" >
      <property name="sizePolicy" >
-      <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+      <sizepolicy>
+       <hsizetype>0</hsizetype>
+       <vsizetype>0</vsizetype>
        <horstretch>0</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
@@ -114,15 +84,47 @@
      </property>
     </widget>
    </item>
-   <item row="2" column="0" colspan="3" >
-    <widget class="QLineEdit" name="chosenLE" >
-     <property name="readOnly" >
-      <bool>false</bool>
+   <item row="0" column="1" >
+    <layout class="QHBoxLayout" >
+     <property name="margin" >
+      <number>0</number>
      </property>
-    </widget>
+     <property name="spacing" >
+      <number>6</number>
+     </property>
+     <item>
+      <spacer>
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" >
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QCheckBox" name="categoryFilterCB" >
+       <property name="toolTip" >
+        <string>Select this to display all available characters at 
once</string>
+       </property>
+       <property name="text" >
+        <string>&amp;Display all</string>
+       </property>
+      </widget>
+     </item>
+    </layout>
    </item>
-   <item row="3" column="0" colspan="3" >
+   <item row="3" column="1" >
     <layout class="QHBoxLayout" >
+     <property name="margin" >
+      <number>9</number>
+     </property>
+     <property name="spacing" >
+      <number>6</number>
+     </property>
      <item>
       <spacer>
        <property name="orientation" >
@@ -149,7 +151,9 @@
      <item>
       <widget class="QPushButton" name="applyPB" >
        <property name="sizePolicy" >
-        <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
+        <sizepolicy>
+         <hsizetype>0</hsizetype>
+         <vsizetype>0</vsizetype>
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
@@ -165,7 +169,9 @@
      <item>
       <widget class="QPushButton" name="closePB" >
        <property name="sizePolicy" >
-        <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
+        <sizepolicy>
+         <hsizetype>0</hsizetype>
+         <vsizetype>0</vsizetype>
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
@@ -177,6 +183,33 @@
      </item>
     </layout>
    </item>
+   <item row="2" column="0" colspan="2" >
+    <widget class="QLineEdit" name="chosenLE" >
+     <property name="readOnly" >
+      <bool>false</bool>
+     </property>
+    </widget>
+   </item>
+   <item rowspan="2" row="0" column="0" >
+    <layout class="QGridLayout" >
+     <property name="margin" >
+      <number>0</number>
+     </property>
+     <property name="spacing" >
+      <number>6</number>
+     </property>
+     <item row="0" column="0" >
+      <widget class="QLabel" name="categoryLA" >
+       <property name="text" >
+        <string>Ca&amp;tegory:</string>
+       </property>
+      </widget>
+     </item>
+     <item row="1" column="0" >
+      <widget class="QListView" name="categoryLV" />
+     </item>
+    </layout>
+   </item>
   </layout>
  </widget>
  <layoutdefault spacing="6" margin="9" />

Reply via email to