eric7/Plugins/UiExtensionPlugins/Translator/ConfigurationPage/TranslatorPage.ui

branch
eric7
changeset 9148
b31f0d894b55
parent 9145
520a70c5437f
diff -r bbf3af40c223 -r b31f0d894b55 eric7/Plugins/UiExtensionPlugins/Translator/ConfigurationPage/TranslatorPage.ui
--- a/eric7/Plugins/UiExtensionPlugins/Translator/ConfigurationPage/TranslatorPage.ui	Sun Jun 12 16:05:27 2022 +0200
+++ b/eric7/Plugins/UiExtensionPlugins/Translator/ConfigurationPage/TranslatorPage.ui	Mon Jun 13 16:39:53 2022 +0200
@@ -143,6 +143,9 @@
         <property name="toolTip">
          <string>Enter your DeepL Pro or DeepL Free API key</string>
         </property>
+        <property name="clearButtonEnabled">
+         <bool>true</bool>
+        </property>
        </widget>
       </item>
       <item row="1" column="0" colspan="2">
@@ -198,6 +201,9 @@
         <property name="toolTip">
          <string>Enter your Google Translate key</string>
         </property>
+        <property name="clearButtonEnabled">
+         <bool>true</bool>
+        </property>
        </widget>
       </item>
       <item row="1" column="0" colspan="2">
@@ -234,6 +240,9 @@
         <property name="toolTip">
          <string>Enter your IBM Watson Translator URL</string>
         </property>
+        <property name="clearButtonEnabled">
+         <bool>true</bool>
+        </property>
        </widget>
       </item>
       <item row="1" column="0">
@@ -248,6 +257,9 @@
         <property name="toolTip">
          <string>Enter your IBM Watson Translator API key</string>
         </property>
+        <property name="clearButtonEnabled">
+         <bool>true</bool>
+        </property>
        </widget>
       </item>
       <item row="2" column="0" colspan="2">
@@ -272,6 +284,13 @@
       <string>Microsoft Azure</string>
      </property>
      <layout class="QGridLayout" name="gridLayout_4">
+      <item row="1" column="0">
+       <widget class="QLabel" name="label_9">
+        <property name="text">
+         <string>Subscription Region:</string>
+        </property>
+       </widget>
+      </item>
       <item row="0" column="0">
        <widget class="QLabel" name="label_5">
         <property name="text">
@@ -279,14 +298,7 @@
         </property>
        </widget>
       </item>
-      <item row="0" column="1">
-       <widget class="QLineEdit" name="msSubscriptionKeyEdit">
-        <property name="toolTip">
-         <string>Enter the subscription key of the text translator service</string>
-        </property>
-       </widget>
-      </item>
-      <item row="1" column="0" colspan="2">
+      <item row="2" column="0" colspan="3">
        <widget class="QLabel" name="msLabel">
         <property name="wordWrap">
          <bool>true</bool>
@@ -296,6 +308,26 @@
         </property>
        </widget>
       </item>
+      <item row="0" column="2">
+       <widget class="QLineEdit" name="msSubscriptionKeyEdit">
+        <property name="toolTip">
+         <string>Enter the subscription key of the text translator service</string>
+        </property>
+        <property name="clearButtonEnabled">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="2">
+       <widget class="QLineEdit" name="msSubscriptionRegionEdit">
+        <property name="toolTip">
+         <string>Enter the subscription region of the text translator service</string>
+        </property>
+        <property name="clearButtonEnabled">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
      </layout>
     </widget>
    </item>
@@ -317,6 +349,9 @@
         <property name="toolTip">
          <string>Enter email address to be sent with each request (optional)</string>
         </property>
+        <property name="clearButtonEnabled">
+         <bool>true</bool>
+        </property>
        </widget>
       </item>
       <item row="1" column="0">
@@ -331,6 +366,9 @@
         <property name="toolTip">
          <string>Enter your MyMemory key</string>
         </property>
+        <property name="clearButtonEnabled">
+         <bool>true</bool>
+        </property>
        </widget>
       </item>
       <item row="2" column="0" colspan="2">
@@ -367,6 +405,9 @@
         <property name="toolTip">
          <string>Enter your Yandex key</string>
         </property>
+        <property name="clearButtonEnabled">
+         <bool>true</bool>
+        </property>
        </widget>
       </item>
       <item row="1" column="0" colspan="2">
@@ -397,6 +438,7 @@
   <tabstop>ibmUrlEdit</tabstop>
   <tabstop>ibmKeyEdit</tabstop>
   <tabstop>msSubscriptionKeyEdit</tabstop>
+  <tabstop>msSubscriptionRegionEdit</tabstop>
   <tabstop>mymemoryEmailEdit</tabstop>
   <tabstop>mymemoryKeyEdit</tabstop>
   <tabstop>yandexKeyEdit</tabstop>

eric ide

mercurial