00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_SETTINGSDLG_H
00011 #define UI_SETTINGSDLG_H
00012
00013 #include <Qt3Support/Q3Header>
00014 #include <Qt3Support/Q3MimeSourceFactory>
00015 #include <Qt3Support/Q3Table>
00016 #include <QtCore/QVariant>
00017 #include <QtGui/QAction>
00018 #include <QtGui/QApplication>
00019 #include <QtGui/QButtonGroup>
00020 #include <QtGui/QDialog>
00021 #include <QtGui/QHBoxLayout>
00022 #include <QtGui/QHeaderView>
00023 #include <QtGui/QLabel>
00024 #include <QtGui/QLineEdit>
00025 #include <QtGui/QPushButton>
00026 #include <QtGui/QSpacerItem>
00027 #include <QtGui/QTabWidget>
00028 #include <QtGui/QVBoxLayout>
00029 #include <QtGui/QWidget>
00030
00031 QT_BEGIN_NAMESPACE
00032
00033 class Ui_SettingsDlgUI
00034 {
00035 public:
00036 QWidget *Layout9;
00037 QHBoxLayout *hboxLayout;
00038 QSpacerItem *spacerItem;
00039 QPushButton *okButton;
00040 QPushButton *cancelButton;
00041 QTabWidget *settingsTabs;
00042 QWidget *cofTab;
00043 QVBoxLayout *vboxLayout;
00044 QLabel *TextLabel1;
00045 Q3Table *staticFrictionTable;
00046 QLabel *TextLabel2;
00047 Q3Table *kineticFrictionTable;
00048 QWidget *dynamicsTab;
00049 QVBoxLayout *vboxLayout1;
00050 QHBoxLayout *hboxLayout1;
00051 QLabel *TextLabel3;
00052 QLineEdit *timeStepLine;
00053 QSpacerItem *spacerItem1;
00054 QSpacerItem *spacerItem2;
00055
00056 void setupUi(QDialog *SettingsDlgUI)
00057 {
00058 if (SettingsDlgUI->objectName().isEmpty())
00059 SettingsDlgUI->setObjectName(QString::fromUtf8("SettingsDlgUI"));
00060 SettingsDlgUI->resize(771, 523);
00061 Layout9 = new QWidget(SettingsDlgUI);
00062 Layout9->setObjectName(QString::fromUtf8("Layout9"));
00063 Layout9->setGeometry(QRect(11, 485, 749, 27));
00064 hboxLayout = new QHBoxLayout(Layout9);
00065 hboxLayout->setSpacing(6);
00066 hboxLayout->setContentsMargins(0, 0, 0, 0);
00067 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00068 hboxLayout->setContentsMargins(0, 0, 0, 0);
00069 spacerItem = new QSpacerItem(20, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
00070
00071 hboxLayout->addItem(spacerItem);
00072
00073 okButton = new QPushButton(Layout9);
00074 okButton->setObjectName(QString::fromUtf8("okButton"));
00075 okButton->setDefault(true);
00076
00077 hboxLayout->addWidget(okButton);
00078
00079 cancelButton = new QPushButton(Layout9);
00080 cancelButton->setObjectName(QString::fromUtf8("cancelButton"));
00081
00082 hboxLayout->addWidget(cancelButton);
00083
00084 settingsTabs = new QTabWidget(SettingsDlgUI);
00085 settingsTabs->setObjectName(QString::fromUtf8("settingsTabs"));
00086 settingsTabs->setGeometry(QRect(0, 10, 771, 470));
00087 cofTab = new QWidget();
00088 cofTab->setObjectName(QString::fromUtf8("cofTab"));
00089 vboxLayout = new QVBoxLayout(cofTab);
00090 vboxLayout->setSpacing(6);
00091 vboxLayout->setContentsMargins(11, 11, 11, 11);
00092 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00093 TextLabel1 = new QLabel(cofTab);
00094 TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
00095 TextLabel1->setWordWrap(false);
00096
00097 vboxLayout->addWidget(TextLabel1);
00098
00099 staticFrictionTable = new Q3Table(cofTab);
00100 staticFrictionTable->setObjectName(QString::fromUtf8("staticFrictionTable"));
00101 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(7));
00102 sizePolicy.setHorizontalStretch(0);
00103 sizePolicy.setVerticalStretch(0);
00104 sizePolicy.setHeightForWidth(staticFrictionTable->sizePolicy().hasHeightForWidth());
00105 staticFrictionTable->setSizePolicy(sizePolicy);
00106 staticFrictionTable->setNumRows(0);
00107 staticFrictionTable->setNumCols(0);
00108
00109 vboxLayout->addWidget(staticFrictionTable);
00110
00111 TextLabel2 = new QLabel(cofTab);
00112 TextLabel2->setObjectName(QString::fromUtf8("TextLabel2"));
00113 TextLabel2->setWordWrap(false);
00114
00115 vboxLayout->addWidget(TextLabel2);
00116
00117 kineticFrictionTable = new Q3Table(cofTab);
00118 kineticFrictionTable->setObjectName(QString::fromUtf8("kineticFrictionTable"));
00119 sizePolicy.setHeightForWidth(kineticFrictionTable->sizePolicy().hasHeightForWidth());
00120 kineticFrictionTable->setSizePolicy(sizePolicy);
00121 kineticFrictionTable->setNumRows(0);
00122 kineticFrictionTable->setNumCols(0);
00123
00124 vboxLayout->addWidget(kineticFrictionTable);
00125
00126 settingsTabs->addTab(cofTab, QString());
00127 dynamicsTab = new QWidget();
00128 dynamicsTab->setObjectName(QString::fromUtf8("dynamicsTab"));
00129 vboxLayout1 = new QVBoxLayout(dynamicsTab);
00130 vboxLayout1->setSpacing(6);
00131 vboxLayout1->setContentsMargins(11, 11, 11, 11);
00132 vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
00133 hboxLayout1 = new QHBoxLayout();
00134 hboxLayout1->setSpacing(6);
00135 hboxLayout1->setContentsMargins(0, 0, 0, 0);
00136 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00137 TextLabel3 = new QLabel(dynamicsTab);
00138 TextLabel3->setObjectName(QString::fromUtf8("TextLabel3"));
00139 TextLabel3->setWordWrap(false);
00140
00141 hboxLayout1->addWidget(TextLabel3);
00142
00143 timeStepLine = new QLineEdit(dynamicsTab);
00144 timeStepLine->setObjectName(QString::fromUtf8("timeStepLine"));
00145 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00146 sizePolicy1.setHorizontalStretch(0);
00147 sizePolicy1.setVerticalStretch(0);
00148 sizePolicy1.setHeightForWidth(timeStepLine->sizePolicy().hasHeightForWidth());
00149 timeStepLine->setSizePolicy(sizePolicy1);
00150
00151 hboxLayout1->addWidget(timeStepLine);
00152
00153 spacerItem1 = new QSpacerItem(520, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
00154
00155 hboxLayout1->addItem(spacerItem1);
00156
00157
00158 vboxLayout1->addLayout(hboxLayout1);
00159
00160 spacerItem2 = new QSpacerItem(0, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
00161
00162 vboxLayout1->addItem(spacerItem2);
00163
00164 settingsTabs->addTab(dynamicsTab, QString());
00165 QWidget::setTabOrder(settingsTabs, staticFrictionTable);
00166 QWidget::setTabOrder(staticFrictionTable, kineticFrictionTable);
00167 QWidget::setTabOrder(kineticFrictionTable, timeStepLine);
00168 QWidget::setTabOrder(timeStepLine, okButton);
00169 QWidget::setTabOrder(okButton, cancelButton);
00170
00171 retranslateUi(SettingsDlgUI);
00172 QObject::connect(cancelButton, SIGNAL(clicked()), SettingsDlgUI, SLOT(reject()));
00173 QObject::connect(staticFrictionTable, SIGNAL(currentChanged(int,int)), SettingsDlgUI, SLOT(saveCurrentCOF(int,int)));
00174 QObject::connect(staticFrictionTable, SIGNAL(valueChanged(int,int)), SettingsDlgUI, SLOT(checkCOFEntry(int,int)));
00175 QObject::connect(kineticFrictionTable, SIGNAL(currentChanged(int,int)), SettingsDlgUI, SLOT(saveCurrentKCOF(int,int)));
00176 QObject::connect(kineticFrictionTable, SIGNAL(valueChanged(int,int)), SettingsDlgUI, SLOT(checkKCOFEntry(int,int)));
00177 QObject::connect(okButton, SIGNAL(clicked()), SettingsDlgUI, SLOT(validateDlg()));
00178
00179 settingsTabs->setCurrentIndex(1);
00180
00181
00182 QMetaObject::connectSlotsByName(SettingsDlgUI);
00183 }
00184
00185 void retranslateUi(QDialog *SettingsDlgUI)
00186 {
00187 SettingsDlgUI->setWindowTitle(QApplication::translate("SettingsDlgUI", "Settings", 0, QApplication::UnicodeUTF8));
00188 okButton->setText(QApplication::translate("SettingsDlgUI", "OK", 0, QApplication::UnicodeUTF8));
00189 cancelButton->setText(QApplication::translate("SettingsDlgUI", "Cancel", 0, QApplication::UnicodeUTF8));
00190 TextLabel1->setText(QApplication::translate("SettingsDlgUI", "Coefficients of static friction", 0, QApplication::UnicodeUTF8));
00191 TextLabel2->setText(QApplication::translate("SettingsDlgUI", "Coefficients of kinetic friction", 0, QApplication::UnicodeUTF8));
00192 settingsTabs->setTabText(settingsTabs->indexOf(cofTab), QApplication::translate("SettingsDlgUI", "COF", 0, QApplication::UnicodeUTF8));
00193 TextLabel3->setText(QApplication::translate("SettingsDlgUI", "Default Timestep (msec):", 0, QApplication::UnicodeUTF8));
00194 settingsTabs->setTabText(settingsTabs->indexOf(dynamicsTab), QApplication::translate("SettingsDlgUI", "Dynamics", 0, QApplication::UnicodeUTF8));
00195 }
00196
00197 };
00198
00199 namespace Ui {
00200 class SettingsDlgUI: public Ui_SettingsDlgUI {};
00201 }
00202
00203 QT_END_NAMESPACE
00204
00205 #endif // UI_SETTINGSDLG_H