Project/TranslationPropertiesDialog.ui

changeset 4582
3a1d1d4c6f4f
parent 3670
f0cb7579c0b4
diff -r 76999ca7bbf1 -r 3a1d1d4c6f4f Project/TranslationPropertiesDialog.ui
--- a/Project/TranslationPropertiesDialog.ui	Sat Nov 28 19:47:23 2015 +0100
+++ b/Project/TranslationPropertiesDialog.ui	Sat Nov 28 19:48:11 2015 +0100
@@ -16,78 +16,70 @@
   <property name="sizeGripEnabled">
    <bool>true</bool>
   </property>
-  <layout class="QVBoxLayout" name="_2">
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <widget class="QLabel" name="textLabel1_3">
+     <property name="text">
+      <string>&amp;Translation Path Pattern:
+(Use '%language%' where the language code should be inserted, e.g. i18n/eric6_%language%.ts)</string>
+     </property>
+     <property name="wordWrap">
+      <bool>true</bool>
+     </property>
+     <property name="buddy">
+      <cstring>transPatternPicker</cstring>
+     </property>
+    </widget>
+   </item>
    <item>
-    <layout class="QGridLayout" name="_3">
-     <item row="3" column="0">
-      <widget class="QLineEdit" name="transBinPathEdit">
-       <property name="toolTip">
-        <string>Enter the path for the binary translation files (*.qm)</string>
-       </property>
-       <property name="whatsThis">
-        <string>&lt;b&gt;Binary Translations Path&lt;/b&gt;
-&lt;p&gt;Enter the directory for the binary translation files (*.qm). Leave it empty to store them together with the *.ts files.&lt;/p&gt;</string>
-       </property>
-      </widget>
-     </item>
-     <item row="2" column="0" colspan="2">
-      <widget class="QLabel" name="label">
-       <property name="text">
-        <string>&amp;Binary Translations Path:</string>
-       </property>
-       <property name="buddy">
-        <cstring>transBinPathEdit</cstring>
-       </property>
-      </widget>
-     </item>
-     <item row="1" column="0">
-      <widget class="QLineEdit" name="transPatternEdit">
-       <property name="toolTip">
-        <string>Enter the path pattern for the translation files</string>
-       </property>
-       <property name="whatsThis">
-        <string>&lt;b&gt;Translation Pattern&lt;/b&gt;
+    <widget class="E5PathPicker" name="transPatternPicker" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="focusPolicy">
+      <enum>Qt::StrongFocus</enum>
+     </property>
+     <property name="toolTip">
+      <string>Enter the path pattern for the translation files</string>
+     </property>
+     <property name="whatsThis">
+      <string>&lt;b&gt;Translation Pattern&lt;/b&gt;
 &lt;p&gt;Enter the path pattern for the translation files using %language% at the place of the language code (e.g. /path_to_eric/i18n/eric6_%language%.ts). This will result in translation files like /path_to_eric/i18n/eric6_de.ts.&lt;/p&gt;</string>
-       </property>
-      </widget>
-     </item>
-     <item row="0" column="0" colspan="2">
-      <widget class="QLabel" name="textLabel1_3">
-       <property name="text">
-        <string>&amp;Translation Path Pattern:
-(Use '%language%' where the language code should be inserted, e.g. i18n/eric6_%language%.ts)</string>
-       </property>
-       <property name="wordWrap">
-        <bool>true</bool>
-       </property>
-       <property name="buddy">
-        <cstring>transPatternEdit</cstring>
-       </property>
-      </widget>
-     </item>
-     <item row="1" column="1">
-      <widget class="QToolButton" name="transPatternButton">
-       <property name="toolTip">
-        <string>Show directory selection dialog</string>
-       </property>
-       <property name="whatsThis">
-        <string>&lt;b&gt;Translation Pattern&lt;/b&gt;
-&lt;p&gt;Select a translation file via a file selection dialog.&lt;/p&gt;</string>
-       </property>
-      </widget>
-     </item>
-     <item row="3" column="1">
-      <widget class="QToolButton" name="transBinPathButton">
-       <property name="toolTip">
-        <string>Show directory selection dialog</string>
-       </property>
-       <property name="whatsThis">
-        <string>&lt;b&gt;Binary Translations Path&lt;/b&gt;
-&lt;p&gt;Select the directory for the binary translations via a directory selection dialog.&lt;/p&gt;</string>
-       </property>
-      </widget>
-     </item>
-    </layout>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QLabel" name="label">
+     <property name="text">
+      <string>&amp;Binary Translations Path:</string>
+     </property>
+     <property name="buddy">
+      <cstring>transBinPathPicker</cstring>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="E5PathPicker" name="transBinPathPicker" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="focusPolicy">
+      <enum>Qt::StrongFocus</enum>
+     </property>
+     <property name="toolTip">
+      <string>Enter the path for the binary translation files (*.qm)</string>
+     </property>
+     <property name="whatsThis">
+      <string>&lt;b&gt;Binary Translations Path&lt;/b&gt;
+&lt;p&gt;Enter the directory for the binary translation files (*.qm). Leave it empty to store them together with the *.ts files.&lt;/p&gt;</string>
+     </property>
+    </widget>
    </item>
    <item>
     <widget class="QGroupBox" name="exceptionsGroup">
@@ -176,11 +168,17 @@
    </item>
   </layout>
  </widget>
+ <customwidgets>
+  <customwidget>
+   <class>E5PathPicker</class>
+   <extends>QWidget</extends>
+   <header>E5Gui/E5PathPicker.h</header>
+   <container>1</container>
+  </customwidget>
+ </customwidgets>
  <tabstops>
-  <tabstop>transPatternEdit</tabstop>
-  <tabstop>transPatternButton</tabstop>
-  <tabstop>transBinPathEdit</tabstop>
-  <tabstop>transBinPathButton</tabstop>
+  <tabstop>transPatternPicker</tabstop>
+  <tabstop>transBinPathPicker</tabstop>
   <tabstop>exceptionsList</tabstop>
   <tabstop>exceptionEdit</tabstop>
   <tabstop>deleteExceptionButton</tabstop>

eric ide

mercurial