summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-11-18 20:05:11 +0100
committerStanislaw Halik <sthalik@misaki.pl>2016-11-18 20:05:11 +0100
commit93a1bfcdd795b436cb41d419a1aa8064b9f2987d (patch)
tree7ca2f5ab153a5ee72b6ff7ba30df3c6d00bef466 /gui
parentd26048617d78396cc6381eaf06f19fee484d811c (diff)
gui, modules: add more translatable strings
Diffstat (limited to 'gui')
-rw-r--r--gui/main-window.ui24
-rw-r--r--gui/new_file_dialog.h3
-rw-r--r--gui/options-dialog.cpp1
-rw-r--r--gui/options-dialog.ui18
4 files changed, 30 insertions, 16 deletions
diff --git a/gui/main-window.ui b/gui/main-window.ui
index 8bf78efd..33ee99d3 100644
--- a/gui/main-window.ui
+++ b/gui/main-window.ui
@@ -342,7 +342,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>TZ</string>
+ <string>Z</string>
</property>
</widget>
</item>
@@ -358,7 +358,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>pitch</string>
+ <string>Pitch</string>
</property>
</widget>
</item>
@@ -411,7 +411,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>TY</string>
+ <string>Y</string>
</property>
</widget>
</item>
@@ -427,7 +427,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>TX</string>
+ <string>X</string>
</property>
</widget>
</item>
@@ -474,7 +474,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>roll</string>
+ <string>Roll</string>
</property>
</widget>
</item>
@@ -490,7 +490,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>yaw</string>
+ <string>Yaw</string>
</property>
</widget>
</item>
@@ -704,7 +704,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>TX</string>
+ <string>X</string>
</property>
</widget>
</item>
@@ -726,7 +726,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>TY</string>
+ <string>Y</string>
</property>
</widget>
</item>
@@ -767,7 +767,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>pitch</string>
+ <string>Pitch</string>
</property>
</widget>
</item>
@@ -783,7 +783,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>roll</string>
+ <string>Roll</string>
</property>
</widget>
</item>
@@ -799,7 +799,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>yaw</string>
+ <string>Yaw</string>
</property>
</widget>
</item>
@@ -821,7 +821,7 @@
<enum>QFrame::Raised</enum>
</property>
<property name="text">
- <string>TZ</string>
+ <string>Z</string>
</property>
</widget>
</item>
diff --git a/gui/new_file_dialog.h b/gui/new_file_dialog.h
index 6ba3ede3..cd5ca528 100644
--- a/gui/new_file_dialog.h
+++ b/gui/new_file_dialog.h
@@ -39,7 +39,8 @@ private slots:
if (text == "" || text == ".ini" || QFile(options::group::ini_directory() + "/" + text).exists())
{
QMessageBox::warning(this,
- "File exists", "This file already exists. Pick another name.",
+ tr("File exists"),
+ tr("This file already exists. Pick another name."),
QMessageBox::Ok, QMessageBox::NoButton);
return;
}
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp
index a0d26b8a..8cf67e6d 100644
--- a/gui/options-dialog.cpp
+++ b/gui/options-dialog.cpp
@@ -142,6 +142,7 @@ void OptionsDialog::bind_key(key_opts& kopts, QLabel* label)
d.setLayout(&l);
d.setFixedSize(QSize(500, 300));
d.setWindowFlags(Qt::Dialog);
+ setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | windowFlags());
d.setWindowModality(Qt::ApplicationModal);
connect(&k,
&KeyboardListener::key_pressed,
diff --git a/gui/options-dialog.ui b/gui/options-dialog.ui
index 471bd712..f23dd63f 100644
--- a/gui/options-dialog.ui
+++ b/gui/options-dialog.ui
@@ -6,10 +6,16 @@
<rect>
<x>0</x>
<y>0</y>
- <width>525</width>
- <height>603</height>
+ <width>450</width>
+ <height>599</height>
</rect>
</property>
+ <property name="minimumSize">
+ <size>
+ <width>450</width>
+ <height>0</height>
+ </size>
+ </property>
<property name="windowTitle">
<string>Options</string>
</property>
@@ -465,6 +471,12 @@
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_17">
+ <property name="minimumSize">
+ <size>
+ <width>300</width>
+ <height>0</height>
+ </size>
+ </property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Specify an angle to rotate position tracking. It lets the tracker avoid moving on the X and Y axes when zooming, since camera isn't mounted perfectly in front of the model, but above or below.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
@@ -865,7 +877,7 @@
<item>
<widget class="QGroupBox" name="groupBox_">
<property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Maximum">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>