From c6bf844769902c2eda1cb0789dd5872fe9d962ac Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Sun, 13 Jun 2010 15:44:02 +0000 Subject: PPJoy settings dialog added. First try. git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@12 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/GeneratedFiles/qrc_FaceTrackNoIR.cpp | 2 +- .../GeneratedFiles/ui_FTNoIR_ppjoycontrols.h | 148 +++++++++++++++++++++ FaceTrackNoIR/GeneratedFiles/ui_FaceTrackNoIR.h | 12 +- 3 files changed, 160 insertions(+), 2 deletions(-) create mode 100644 FaceTrackNoIR/GeneratedFiles/ui_FTNoIR_ppjoycontrols.h (limited to 'FaceTrackNoIR/GeneratedFiles') diff --git a/FaceTrackNoIR/GeneratedFiles/qrc_FaceTrackNoIR.cpp b/FaceTrackNoIR/GeneratedFiles/qrc_FaceTrackNoIR.cpp index cc294b4b..f14c187b 100644 --- a/FaceTrackNoIR/GeneratedFiles/qrc_FaceTrackNoIR.cpp +++ b/FaceTrackNoIR/GeneratedFiles/qrc_FaceTrackNoIR.cpp @@ -1,7 +1,7 @@ /**************************************************************************** ** Resource object code ** -** Created: Tue 8. Jun 22:08:02 2010 +** Created: Sun 13. Jun 15:55:11 2010 ** by: The Resource Compiler for Qt version 4.6.2 ** ** WARNING! All changes made in this file will be lost! diff --git a/FaceTrackNoIR/GeneratedFiles/ui_FTNoIR_ppjoycontrols.h b/FaceTrackNoIR/GeneratedFiles/ui_FTNoIR_ppjoycontrols.h new file mode 100644 index 00000000..d1759ec4 --- /dev/null +++ b/FaceTrackNoIR/GeneratedFiles/ui_FTNoIR_ppjoycontrols.h @@ -0,0 +1,148 @@ +/******************************************************************************** +** Form generated from reading UI file 'FTNoIR_ppjoycontrols.ui' +** +** Created: Sun 13. Jun 17:29:36 2010 +** by: Qt User Interface Compiler version 4.6.2 +** +** WARNING! All changes made in this file will be lost when recompiling UI file! +********************************************************************************/ + +#ifndef UI_FTNOIR_PPJOYCONTROLS_H +#define UI_FTNOIR_PPJOYCONTROLS_H + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +QT_BEGIN_NAMESPACE + +class Ui_UICPPJoyControls +{ +public: + QVBoxLayout *_vertical_layout; + QHBoxLayout *hboxLayout; + QLabel *textLabel2; + QLabel *_engine_state_label; + QSpacerItem *verticalSpacer; + QHBoxLayout *horizontalLayout; + QSpacerItem *horizontalSpacer_2; + QHBoxLayout *horizontalLayout_2; + QPushButton *btnOK; + QPushButton *btnCancel; + QSpacerItem *horizontalSpacer; + + void setupUi(QWidget *UICPPJoyControls) + { + if (UICPPJoyControls->objectName().isEmpty()) + UICPPJoyControls->setObjectName(QString::fromUtf8("UICPPJoyControls")); + UICPPJoyControls->resize(346, 180); + QIcon icon; + icon.addFile(QString::fromUtf8(":/Icons/sm_api_qt_icon.png"), QSize(), QIcon::Normal, QIcon::Off); + UICPPJoyControls->setWindowIcon(icon); + UICPPJoyControls->setLayoutDirection(Qt::LeftToRight); + UICPPJoyControls->setAutoFillBackground(false); + _vertical_layout = new QVBoxLayout(UICPPJoyControls); + _vertical_layout->setObjectName(QString::fromUtf8("_vertical_layout")); + hboxLayout = new QHBoxLayout(); + hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); + textLabel2 = new QLabel(UICPPJoyControls); + textLabel2->setObjectName(QString::fromUtf8("textLabel2")); + QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); + sizePolicy.setHorizontalStretch(0); + sizePolicy.setVerticalStretch(0); + sizePolicy.setHeightForWidth(textLabel2->sizePolicy().hasHeightForWidth()); + textLabel2->setSizePolicy(sizePolicy); + textLabel2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); + textLabel2->setWordWrap(false); + + hboxLayout->addWidget(textLabel2); + + _engine_state_label = new QLabel(UICPPJoyControls); + _engine_state_label->setObjectName(QString::fromUtf8("_engine_state_label")); + QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed); + sizePolicy1.setHorizontalStretch(0); + sizePolicy1.setVerticalStretch(0); + sizePolicy1.setHeightForWidth(_engine_state_label->sizePolicy().hasHeightForWidth()); + _engine_state_label->setSizePolicy(sizePolicy1); + _engine_state_label->setFrameShape(QFrame::Panel); + _engine_state_label->setFrameShadow(QFrame::Sunken); + _engine_state_label->setWordWrap(false); + + hboxLayout->addWidget(_engine_state_label); + + + _vertical_layout->addLayout(hboxLayout); + + verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding); + + _vertical_layout->addItem(verticalSpacer); + + horizontalLayout = new QHBoxLayout(); + horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); + horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); + + horizontalLayout->addItem(horizontalSpacer_2); + + horizontalLayout_2 = new QHBoxLayout(); + horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2")); + horizontalLayout_2->setSizeConstraint(QLayout::SetDefaultConstraint); + btnOK = new QPushButton(UICPPJoyControls); + btnOK->setObjectName(QString::fromUtf8("btnOK")); + sizePolicy1.setHeightForWidth(btnOK->sizePolicy().hasHeightForWidth()); + btnOK->setSizePolicy(sizePolicy1); + btnOK->setMinimumSize(QSize(100, 0)); + btnOK->setMaximumSize(QSize(100, 16777215)); + + horizontalLayout_2->addWidget(btnOK); + + btnCancel = new QPushButton(UICPPJoyControls); + btnCancel->setObjectName(QString::fromUtf8("btnCancel")); + sizePolicy1.setHeightForWidth(btnCancel->sizePolicy().hasHeightForWidth()); + btnCancel->setSizePolicy(sizePolicy1); + btnCancel->setMinimumSize(QSize(100, 0)); + btnCancel->setMaximumSize(QSize(100, 16777215)); + + horizontalLayout_2->addWidget(btnCancel); + + + horizontalLayout->addLayout(horizontalLayout_2); + + horizontalSpacer = new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum); + + horizontalLayout->addItem(horizontalSpacer); + + + _vertical_layout->addLayout(horizontalLayout); + + + retranslateUi(UICPPJoyControls); + + QMetaObject::connectSlotsByName(UICPPJoyControls); + } // setupUi + + void retranslateUi(QWidget *UICPPJoyControls) + { + UICPPJoyControls->setWindowTitle(QApplication::translate("UICPPJoyControls", "Engine Controls", 0, QApplication::UnicodeUTF8)); + textLabel2->setText(QApplication::translate("UICPPJoyControls", "Virtual Joystick number:", 0, QApplication::UnicodeUTF8)); + _engine_state_label->setText(QApplication::translate("UICPPJoyControls", "TERMINATED", 0, QApplication::UnicodeUTF8)); + btnOK->setText(QApplication::translate("UICPPJoyControls", "OK", 0, QApplication::UnicodeUTF8)); + btnCancel->setText(QApplication::translate("UICPPJoyControls", "Cancel", 0, QApplication::UnicodeUTF8)); + } // retranslateUi + +}; + +namespace Ui { + class UICPPJoyControls: public Ui_UICPPJoyControls {}; +} // namespace Ui + +QT_END_NAMESPACE + +#endif // UI_FTNOIR_PPJOYCONTROLS_H diff --git a/FaceTrackNoIR/GeneratedFiles/ui_FaceTrackNoIR.h b/FaceTrackNoIR/GeneratedFiles/ui_FaceTrackNoIR.h index e6a0fa02..03e07ccb 100644 --- a/FaceTrackNoIR/GeneratedFiles/ui_FaceTrackNoIR.h +++ b/FaceTrackNoIR/GeneratedFiles/ui_FaceTrackNoIR.h @@ -1,7 +1,7 @@ /******************************************************************************** ** Form generated from reading UI file 'FaceTrackNoIR.ui' ** -** Created: Tue 8. Jun 22:08:00 2010 +** Created: Sun 13. Jun 16:10:04 2010 ** by: Qt User Interface Compiler version 4.6.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! @@ -87,6 +87,7 @@ public: QPushButton *btnStopTracker; QGroupBox *groupGameProtocol; QComboBox *iconcomboBox; + QPushButton *btnShowServerControls; QGridLayout *gridLayout_2; QLabel *lblSensYaw_3; QSlider *slideSmoothing; @@ -522,6 +523,11 @@ public: iconcomboBox->setGeometry(QRect(10, 20, 151, 22)); iconcomboBox->setStyleSheet(QString::fromUtf8("")); iconcomboBox->setMaxVisibleItems(3); + btnShowServerControls = new QPushButton(groupGameProtocol); + btnShowServerControls->setObjectName(QString::fromUtf8("btnShowServerControls")); + btnShowServerControls->setEnabled(true); + btnShowServerControls->setGeometry(QRect(10, 80, 161, 23)); + btnShowServerControls->setStyleSheet(QString::fromUtf8("")); horizontalLayout_3->addWidget(groupGameProtocol); @@ -1218,6 +1224,10 @@ public: #endif // QT_NO_TOOLTIP btnStopTracker->setText(QApplication::translate("FaceTrackNoIRClass", "Stop", 0, QApplication::UnicodeUTF8)); groupGameProtocol->setTitle(QApplication::translate("FaceTrackNoIRClass", "Game protocol", 0, QApplication::UnicodeUTF8)); +#ifndef QT_NO_TOOLTIP + btnShowServerControls->setToolTip(QApplication::translate("FaceTrackNoIRClass", "Change tracker settings", 0, QApplication::UnicodeUTF8)); +#endif // QT_NO_TOOLTIP + btnShowServerControls->setText(QApplication::translate("FaceTrackNoIRClass", "Settings", 0, QApplication::UnicodeUTF8)); lblSensYaw_3->setText(QApplication::translate("FaceTrackNoIRClass", "Global settings", 0, QApplication::UnicodeUTF8)); chkUseEWMA->setText(QString()); lblSensYaw_5->setText(QApplication::translate("FaceTrackNoIRClass", "Use EWMA filtering:", 0, QApplication::UnicodeUTF8)); -- cgit v1.2.3