From 54c93958a91b1b166eadb8ad66bf5c06084add8a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 9 Aug 2016 15:08:57 +0200 Subject: gui: only rename options widget --- gui/options-dialog.hpp | 6 +- gui/options-dialog.ui | 1405 ++++++++++++++++++++++++++++++++++++++++++++++++ gui/settings.ui | 1405 ------------------------------------------------ 3 files changed, 1408 insertions(+), 1408 deletions(-) create mode 100644 gui/options-dialog.ui delete mode 100644 gui/settings.ui (limited to 'gui') diff --git a/gui/options-dialog.hpp b/gui/options-dialog.hpp index f84ee8f6..1e8faa1c 100644 --- a/gui/options-dialog.hpp +++ b/gui/options-dialog.hpp @@ -1,12 +1,12 @@ #pragma once -#include "ui_settings.h" +#include "ui_options-dialog.h" #include "opentrack-logic/shortcuts.h" #include #include #include -class OptionsDialog: public QWidget +class OptionsDialog : public QWidget { Q_OBJECT signals: @@ -18,7 +18,7 @@ public slots: private: main_settings main; std::function pause_keybindings; - Ui::UI_Settings ui; + Ui::options_dialog ui; void closeEvent(QCloseEvent *) override { doCancel(); } private slots: void doOK(); diff --git a/gui/options-dialog.ui b/gui/options-dialog.ui new file mode 100644 index 00000000..31337799 --- /dev/null +++ b/gui/options-dialog.ui @@ -0,0 +1,1405 @@ + + + options_dialog + + + + 0 + 0 + 468 + 622 + + + + Options + + + + images/facetracknoir.pngimages/facetracknoir.png + + + Qt::LeftToRight + + + false + + + + + + + 0 + 0 + + + + 0 + + + + Shortcuts + + + + + + Global shortcuts + + + + + + + 0 + 0 + + + + <html><head/><body><p><span style=" font-weight:600;">Center</span> - use current pose as looking perfectly forward.<br/><span style=" font-weight:600;">Toggle</span> - keep looking at same spot until next toggle keypress.<br/><span style=" font-weight:600;">Zero</span> - keep looking forward until next zero keypress.<br/></p></body></html> + + + true + + + + + + + QGroupBox { border: 0; } + + + + + + Bind + + + + + + + Toggle tracking + + + false + + + + + + + Toggle while held + + + + + + + + + + + + + + Bind + + + + + + + Bind + + + + + + + + + + + + + + Start tracking + + + false + + + + + + + + + + + + + + Bind + + + + + + + Stop tracking + + + false + + + + + + + + + + + + + + Center + + + false + + + + + + + + + + + + + + + + + + + + + Zero + + + false + + + + + + + Zero while held + + + + + + + Bind + + + + + + + Toggle + + + false + + + + + + + Bind + + + + + + + Bind + + + + + + + + + + + + + + Bind + + + + + + + + + + + + + + Restart tracking + + + false + + + + + + + + + + + + + + Bind + + + + + + + + + + + + + Center at startup + + + + + + + Minimize to tray + + + + + + + Qt::Vertical + + + QSizePolicy::MinimumExpanding + + + + 20 + 0 + + + + + + + + + Camera + + + + + + Camera offset + + + + + + <html><head/><body><p>Specify an angle for off-center camera as a basis for which direction is which, avoiding axis interconnect. Also see <a href="https://github.com/opentrack/opentrack/wiki/choosing-camera-offset"><span style=" text-decoration: underline; color:#0000ff;">description on wiki</span></a>.</p></body></html> + + + Qt::AlignJustify|Qt::AlignVCenter + + + true + + + 2 + + + true + + + + + + + Use camera center as translation offset + + + + + + + This option is experimental. Please report your findings on the github issue tracker. +It won't work properly with translation compensation enabled. + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + + + + + + + QGroupBox +{ + border: 0; +} + + + + 2 + + + 2 + + + + + Roll + + + + + + + + 80 + 0 + + + + -180 + + + 180 + + + + + + + + 80 + 0 + + + + -180 + + + 180 + + + + + + + Pitch + + + + + + + + 80 + 0 + + + + -180 + + + 180 + + + + + + + Yaw + + + + + + + + + + + 0 + 0 + + + + 1 + + + + + + + + + + Center pose offset + + + + + + Alter the centered position sent to games by a fixed amount. + + + true + + + 2 + + + + + + + QGroupBox { + border: 0; +} + + + + + + Qt::AlignCenter + + + false + + + false + + + + + + deg. + + + 3 + + + -180.000000000000000 + + + 180.000000000000000 + + + + + + + cm + + + 3 + + + -100.000000000000000 + + + 100.000000000000000 + + + + + + + TX + + + + + + + cm + + + 3 + + + -100.000000000000000 + + + 100.000000000000000 + + + + + + + RY + + + + + + + TY + + + + + + + deg. + + + 3 + + + -180.000000000000000 + + + 180.000000000000000 + + + + + + + TZ + + + + + + + RZ + + + + + + + cm + + + 3 + + + -100.000000000000000 + + + 100.000000000000000 + + + + + + + RX + + + + + + + deg. + + + 3 + + + -180.000000000000000 + + + 180.000000000000000 + + + + + + + + + + + + + Centering method + + + + + + + 2 + 0 + + + + Method + + + + + + + + 3 + 0 + + + + + Relative (inertial device) + + + + + Absolute (camera device) + + + + + + + + Try changing this if centering doesn't perform correctly for your input device. + + + true + + + + + + + + + + Qt::Vertical + + + QSizePolicy::MinimumExpanding + + + + 20 + 0 + + + + + + + + + Output + + + + + + + 0 + 0 + + + + + + + Translation compensation + + + false + + + + + + With compensation on, translation is applied after rotation. For example, rotating +180 degrees yaw and moving backwards results in moving forward as a result of that rotation. + + + Qt::AlignJustify|Qt::AlignVCenter + + + true + + + 2 + + + + + + + + + + Enable + + + + + + + + + + Disable Z axis compensation + + + + + + + + + + + 65536 + 65536 + + + + + true + + + + Output remap + + + Qt::AlignCenter + + + false + + + false + + + + QLayout::SetMinAndMaxSize + + + 6 + + + + + Assign input axis to output axis. + + + Qt::AlignJustify|Qt::AlignVCenter + + + true + + + + + + + QGroupBox +{ + border: 0; +} + + + + + + + + + + + + + Roll + + + + + + + X + + + + + + + Invert + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + Pitch + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + + + + + + + + Y + + + + + + + Destination + + + + + + + + + + + + + + Yaw + + + + + + + + + + + + + + Source + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + Z + + + + + + + + X + + + + + Y + + + + + Z + + + + + Yaw + + + + + Pitch + + + + + Roll + + + + + Disabled + + + + + + + + + + + + + label_15 + label_13 + label_14 + src_yaw + invert_yaw + label_7 + src_pitch + label_8 + invert_pitch + label_9 + src_roll + invert_roll + label_10 + src_x + invert_x + label_11 + src_y + invert_y + label_12 + src_z + invert_z + + + + + + + + + + 0 + 0 + + + + + 0 + 20 + + + + Data Logging + + + + 0 + + + + + + 0 + 0 + + + + Record pose data in a csv file. WARNING: overwrites file contents without warning every time the tracker is started. + + + true + + + + + + + Enable + + + + + + + + 0 + + + 1 + + + + + Select File ... + + + + + + + false + + + true + + + + + + + + + true + + + + + + + + + + + + + Qt::Vertical + + + QSizePolicy::MinimumExpanding + + + + 20 + 0 + + + + + + + + + Game detection + + + + + + + 0 + 0 + + + + Game detection + + + + + + + + + + 0 + 0 + + + + Start tracking automatically when a game starts with selected profile, and stop when the game exits. + + + true + + + + + + + + + + + + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + process_detector + QWidget +
process_detector.h
+
+
+ + tabWidget + center_at_startup + trayp + camera_yaw + camera_pitch + camera_roll + pos_rx + pos_ry + pos_rz + pos_tx + pos_ty + pos_tz + tcomp_enable + tcomp_rz + src_yaw + invert_yaw + src_pitch + invert_pitch + src_roll + invert_roll + src_x + invert_x + src_y + invert_y + src_z + invert_z + + + + + startEngineClicked() + stopEngineClicked() + cameraSettingsClicked() + +
diff --git a/gui/settings.ui b/gui/settings.ui deleted file mode 100644 index 13741910..00000000 --- a/gui/settings.ui +++ /dev/null @@ -1,1405 +0,0 @@ - - - UI_Settings - - - - 0 - 0 - 468 - 622 - - - - Options - - - - images/facetracknoir.pngimages/facetracknoir.png - - - Qt::LeftToRight - - - false - - - - - - - 0 - 0 - - - - 0 - - - - Shortcuts - - - - - - Global shortcuts - - - - - - - 0 - 0 - - - - <html><head/><body><p><span style=" font-weight:600;">Center</span> - use current pose as looking perfectly forward.<br/><span style=" font-weight:600;">Toggle</span> - keep looking at same spot until next toggle keypress.<br/><span style=" font-weight:600;">Zero</span> - keep looking forward until next zero keypress.<br/></p></body></html> - - - true - - - - - - - QGroupBox { border: 0; } - - - - - - Bind - - - - - - - Toggle tracking - - - false - - - - - - - Toggle while held - - - - - - - - - - - - - - Bind - - - - - - - Bind - - - - - - - - - - - - - - Start tracking - - - false - - - - - - - - - - - - - - Bind - - - - - - - Stop tracking - - - false - - - - - - - - - - - - - - Center - - - false - - - - - - - - - - - - - - - - - - - - - Zero - - - false - - - - - - - Zero while held - - - - - - - Bind - - - - - - - Toggle - - - false - - - - - - - Bind - - - - - - - Bind - - - - - - - - - - - - - - Bind - - - - - - - - - - - - - - Restart tracking - - - false - - - - - - - - - - - - - - Bind - - - - - - - - - - - - - Center at startup - - - - - - - Minimize to tray - - - - - - - Qt::Vertical - - - QSizePolicy::MinimumExpanding - - - - 20 - 0 - - - - - - - - - Camera - - - - - - Camera offset - - - - - - <html><head/><body><p>Specify an angle for off-center camera as a basis for which direction is which, avoiding axis interconnect. Also see <a href="https://github.com/opentrack/opentrack/wiki/choosing-camera-offset"><span style=" text-decoration: underline; color:#0000ff;">description on wiki</span></a>.</p></body></html> - - - Qt::AlignJustify|Qt::AlignVCenter - - - true - - - 2 - - - true - - - - - - - Use camera center as translation offset - - - - - - - This option is experimental. Please report your findings on the github issue tracker. -It won't work properly with translation compensation enabled. - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - true - - - - - - - QGroupBox -{ - border: 0; -} - - - - 2 - - - 2 - - - - - Roll - - - - - - - - 80 - 0 - - - - -180 - - - 180 - - - - - - - - 80 - 0 - - - - -180 - - - 180 - - - - - - - Pitch - - - - - - - - 80 - 0 - - - - -180 - - - 180 - - - - - - - Yaw - - - - - - - - - - - 0 - 0 - - - - 1 - - - - - - - - - - Center pose offset - - - - - - Alter the centered position sent to games by a fixed amount. - - - true - - - 2 - - - - - - - QGroupBox { - border: 0; -} - - - - - - Qt::AlignCenter - - - false - - - false - - - - - - deg. - - - 3 - - - -180.000000000000000 - - - 180.000000000000000 - - - - - - - cm - - - 3 - - - -100.000000000000000 - - - 100.000000000000000 - - - - - - - TX - - - - - - - cm - - - 3 - - - -100.000000000000000 - - - 100.000000000000000 - - - - - - - RY - - - - - - - TY - - - - - - - deg. - - - 3 - - - -180.000000000000000 - - - 180.000000000000000 - - - - - - - TZ - - - - - - - RZ - - - - - - - cm - - - 3 - - - -100.000000000000000 - - - 100.000000000000000 - - - - - - - RX - - - - - - - deg. - - - 3 - - - -180.000000000000000 - - - 180.000000000000000 - - - - - - - - - - - - - Centering method - - - - - - - 2 - 0 - - - - Method - - - - - - - - 3 - 0 - - - - - Relative (inertial device) - - - - - Absolute (camera device) - - - - - - - - Try changing this if centering doesn't perform correctly for your input device. - - - true - - - - - - - - - - Qt::Vertical - - - QSizePolicy::MinimumExpanding - - - - 20 - 0 - - - - - - - - - Output - - - - - - - 0 - 0 - - - - - - - Translation compensation - - - false - - - - - - With compensation on, translation is applied after rotation. For example, rotating +180 degrees yaw and moving backwards results in moving forward as a result of that rotation. - - - Qt::AlignJustify|Qt::AlignVCenter - - - true - - - 2 - - - - - - - - - - Enable - - - - - - - - - - Disable Z axis compensation - - - - - - - - - - - 65536 - 65536 - - - - - true - - - - Output remap - - - Qt::AlignCenter - - - false - - - false - - - - QLayout::SetMinAndMaxSize - - - 6 - - - - - Assign input axis to output axis. - - - Qt::AlignJustify|Qt::AlignVCenter - - - true - - - - - - - QGroupBox -{ - border: 0; -} - - - - - - - - - - - - - Roll - - - - - - - X - - - - - - - Invert - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - Pitch - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - - - - - - - - Y - - - - - - - Destination - - - - - - - - - - - - - - Yaw - - - - - - - - - - - - - - Source - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - Z - - - - - - - - X - - - - - Y - - - - - Z - - - - - Yaw - - - - - Pitch - - - - - Roll - - - - - Disabled - - - - - - - - - - - - - label_15 - label_13 - label_14 - src_yaw - invert_yaw - label_7 - src_pitch - label_8 - invert_pitch - label_9 - src_roll - invert_roll - label_10 - src_x - invert_x - label_11 - src_y - invert_y - label_12 - src_z - invert_z - - - - - - - - - - 0 - 0 - - - - - 0 - 20 - - - - Data Logging - - - - 0 - - - - - - 0 - 0 - - - - Record pose data in a csv file. WARNING: overwrites file contents without warning every time the tracker is started. - - - true - - - - - - - Enable - - - - - - - - 0 - - - 1 - - - - - Select File ... - - - - - - - false - - - true - - - - - - - - - true - - - - - - - - - - - - - Qt::Vertical - - - QSizePolicy::MinimumExpanding - - - - 20 - 0 - - - - - - - - - Game detection - - - - - - - 0 - 0 - - - - Game detection - - - - - - - - - - 0 - 0 - - - - Start tracking automatically when a game starts with selected profile, and stop when the game exits. - - - true - - - - - - - - - - - - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - process_detector - QWidget -
process_detector.h
-
-
- - tabWidget - center_at_startup - trayp - camera_yaw - camera_pitch - camera_roll - pos_rx - pos_ry - pos_rz - pos_tx - pos_ty - pos_tz - tcomp_enable - tcomp_rz - src_yaw - invert_yaw - src_pitch - invert_pitch - src_roll - invert_roll - src_x - invert_x - src_y - invert_y - src_z - invert_z - - - - - startEngineClicked() - stopEngineClicked() - cameraSettingsClicked() - -
-- cgit v1.2.3