From b9126a18d673dd51bc3bcce8dc97973bddacfc45 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 24 Oct 2013 15:57:51 +0200 Subject: ft proto: fun with layouts Signed-off-by: Stanislaw Halik --- ftnoir_protocol_ft/ftnoir_ftcontrols.ui | 457 +++++++++-------------- ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp | 4 +- 2 files changed, 176 insertions(+), 285 deletions(-) diff --git a/ftnoir_protocol_ft/ftnoir_ftcontrols.ui b/ftnoir_protocol_ft/ftnoir_ftcontrols.ui index 1b78efab..f4d94ee8 100644 --- a/ftnoir_protocol_ft/ftnoir_ftcontrols.ui +++ b/ftnoir_protocol_ft/ftnoir_ftcontrols.ui @@ -12,8 +12,8 @@ 0 0 - 412 - 328 + 407 + 347 @@ -41,287 +41,178 @@ false - - - true - - - - 320 - 300 - 80 - 23 - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 100 - 16777215 - - - - Cancel - - - - - true - - - - 230 - 300 - 80 - 23 - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 100 - 16777215 - - - - OK - - - - - - 10 - 6 - 401 - 70 - - - - - 0 - 70 - - - - TIRViews - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - 30 - 40 - 78 - 19 - - - - Qt::RightToLeft - - - TRViews - - - - - - 120 - 30 - 281 - 41 - - - - Only for very old and buggy old games such as CFS3. - - - false - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - true - - - - - - - 10 - 68 - 401 - 70 - - - - - 0 - 70 - - - - TrackIR.exe - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - 8 - 30 - 100 - 19 - - - - Qt::RightToLeft - - - Using EZCA - - - - - - 120 - 23 - 250 - 51 - - - - Spawn a useless "dummy" process called TrackIR.exe in order to fool EZCA. - - - true - - - - - - - 10 - 144 - 401 - 70 - - - - - 0 - 70 - - - - Select interface - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - 120 - 23 - 275 - 41 - - - - Disable one of the protocols if games are confused by presence of both at the same time. - - - true - - - - - - 10 - 30 - 95 - 23 - - - - - - - - 10 - 220 - 401 - 70 - - - - - 0 - 70 - - - - Repair NPClient location - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - - - 120 - 23 - 278 - 51 - - - - Replace the registry entry if you want to use other software with the TrackIR protocol and it doesn't work automatically. - - - true - - - - - - 8 - 23 - 93 - 23 - - - - Locate DLL - - - + + + + + + 0 + 0 + + + + TIRViews + + + Qt::AlignJustify|Qt::AlignTop + + + false + + + + + + Qt::RightToLeft + + + TRViews + + + + + + + Only for very old and buggy old games such as CFS3. + + + false + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + true + + + + + + + + + + + 0 + 0 + + + + TrackIR.exe + + + Qt::AlignJustify|Qt::AlignTop + + + false + + + + + + Qt::RightToLeft + + + Using EZCA + + + + + + + Spawn a useless "dummy" process called TrackIR.exe in order to fool EZCA. + + + true + + + + + + + + + + + 0 + 0 + + + + Select interface + + + Qt::AlignJustify|Qt::AlignTop + + + false + + + + QFormLayout::ExpandingFieldsGrow + + + + + + + + Disable one of the protocols if games are confused by presence of both at the same time. + + + true + + + + + + + + + + + 0 + 0 + + + + Repair NPClient location + + + Qt::AlignJustify|Qt::AlignTop + + + false + + + + + + Locate DLL + + + + + + + Replace the registry entry if you want to use other software with the TrackIR protocol and it doesn't work automatically. + + + true + + + + + + + + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp index b59d3637..df13a6dc 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft_dialog.cpp @@ -41,8 +41,8 @@ QWidget() ui.setupUi( this ); // Connect Qt signals to member-functions - connect(ui.btnOK, SIGNAL(clicked()), this, SLOT(doOK())); - connect(ui.btnCancel, SIGNAL(clicked()), this, SLOT(doCancel())); + connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK())); + connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); connect(ui.bntLocateNPClient, SIGNAL(clicked()), this, SLOT(selectDLL())); connect(ui.chkTIRViews, SIGNAL(stateChanged(int)), this, SLOT(settingChanged())); connect(ui.chkStartDummy, SIGNAL(stateChanged(int)), this, SLOT(settingChanged())); -- cgit v1.2.3