00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_BODYPROPDLG_H
00011 #define UI_BODYPROPDLG_H
00012
00013 #include <Qt3Support/Q3MimeSourceFactory>
00014 #include <QtCore/QVariant>
00015 #include <QtGui/QAction>
00016 #include <QtGui/QApplication>
00017 #include <QtGui/QButtonGroup>
00018 #include <QtGui/QCheckBox>
00019 #include <QtGui/QComboBox>
00020 #include <QtGui/QDialog>
00021 #include <QtGui/QFrame>
00022 #include <QtGui/QHBoxLayout>
00023 #include <QtGui/QHeaderView>
00024 #include <QtGui/QLabel>
00025 #include <QtGui/QLineEdit>
00026 #include <QtGui/QPushButton>
00027 #include <QtGui/QSlider>
00028 #include <QtGui/QSpacerItem>
00029 #include <QtGui/QSpinBox>
00030 #include <QtGui/QWidget>
00031 #include <vector>
00032
00033 QT_BEGIN_NAMESPACE
00034
00035 class Ui_BodyPropDlgUI
00036 {
00037 public:
00038 QComboBox *materialComboBox;
00039 QLabel *TextLabel4;
00040 QLabel *TextLabel2;
00041 QCheckBox *axesCheckBox;
00042 QCheckBox *dynamicForcesCheckBox;
00043 QLineEdit *massLineEdit;
00044 QLabel *TextLabel1;
00045 QWidget *widget;
00046 QHBoxLayout *hboxLayout;
00047 QSpacerItem *spacerItem;
00048 QPushButton *OKButton;
00049 QPushButton *cancelButton;
00050 QLabel *TextLabel3_2;
00051 QLabel *TextLabel3;
00052 QWidget *widget1;
00053 QHBoxLayout *hboxLayout1;
00054 QFrame *line2;
00055 QCheckBox *dynamicCheckBox;
00056 QFrame *line1;
00057 QCheckBox *fcCheckBox;
00058 QSlider *transparencySlider;
00059 QCheckBox *boundingCheckBox;
00060 QSpinBox *boundingSpinBox;
00061
00062 void setupUi(QDialog *BodyPropDlgUI)
00063 {
00064 if (BodyPropDlgUI->objectName().isEmpty())
00065 BodyPropDlgUI->setObjectName(QString::fromUtf8("BodyPropDlgUI"));
00066 BodyPropDlgUI->resize(345, 299);
00067 materialComboBox = new QComboBox(BodyPropDlgUI);
00068 materialComboBox->setObjectName(QString::fromUtf8("materialComboBox"));
00069 materialComboBox->setGeometry(QRect(55, 11, 156, 18));
00070 TextLabel4 = new QLabel(BodyPropDlgUI);
00071 TextLabel4->setObjectName(QString::fromUtf8("TextLabel4"));
00072 TextLabel4->setGeometry(QRect(11, 11, 38, 18));
00073 TextLabel4->setWordWrap(false);
00074 TextLabel2 = new QLabel(BodyPropDlgUI);
00075 TextLabel2->setObjectName(QString::fromUtf8("TextLabel2"));
00076 TextLabel2->setGeometry(QRect(11, 59, 77, 43));
00077 TextLabel2->setWordWrap(false);
00078 axesCheckBox = new QCheckBox(BodyPropDlgUI);
00079 axesCheckBox->setObjectName(QString::fromUtf8("axesCheckBox"));
00080 axesCheckBox->setGeometry(QRect(10, 180, 77, 18));
00081 dynamicForcesCheckBox = new QCheckBox(BodyPropDlgUI);
00082 dynamicForcesCheckBox->setObjectName(QString::fromUtf8("dynamicForcesCheckBox"));
00083 dynamicForcesCheckBox->setGeometry(QRect(10, 210, 323, 18));
00084 massLineEdit = new QLineEdit(BodyPropDlgUI);
00085 massLineEdit->setObjectName(QString::fromUtf8("massLineEdit"));
00086 massLineEdit->setGeometry(QRect(90, 230, 117, 18));
00087 TextLabel1 = new QLabel(BodyPropDlgUI);
00088 TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
00089 TextLabel1->setGeometry(QRect(10, 230, 77, 20));
00090 TextLabel1->setWordWrap(false);
00091 widget = new QWidget(BodyPropDlgUI);
00092 widget->setObjectName(QString::fromUtf8("widget"));
00093 widget->setGeometry(QRect(10, 260, 323, 27));
00094 hboxLayout = new QHBoxLayout(widget);
00095 hboxLayout->setSpacing(6);
00096 hboxLayout->setContentsMargins(0, 0, 0, 0);
00097 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00098 hboxLayout->setContentsMargins(0, 0, 0, 0);
00099 spacerItem = new QSpacerItem(310, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
00100
00101 hboxLayout->addItem(spacerItem);
00102
00103 OKButton = new QPushButton(widget);
00104 OKButton->setObjectName(QString::fromUtf8("OKButton"));
00105
00106 hboxLayout->addWidget(OKButton);
00107
00108 cancelButton = new QPushButton(widget);
00109 cancelButton->setObjectName(QString::fromUtf8("cancelButton"));
00110 cancelButton->setAutoDefault(false);
00111
00112 hboxLayout->addWidget(cancelButton);
00113
00114 TextLabel3_2 = new QLabel(BodyPropDlgUI);
00115 TextLabel3_2->setObjectName(QString::fromUtf8("TextLabel3_2"));
00116 TextLabel3_2->setGeometry(QRect(217, 60, 116, 16));
00117 QFont font;
00118 font.setFamily(QString::fromUtf8("MS Shell Dlg 2"));
00119 font.setPointSize(8);
00120 font.setBold(false);
00121 font.setItalic(false);
00122 font.setUnderline(false);
00123 font.setWeight(50);
00124 font.setStrikeOut(false);
00125 TextLabel3_2->setFont(font);
00126 TextLabel3_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
00127 TextLabel3_2->setWordWrap(false);
00128 TextLabel3 = new QLabel(BodyPropDlgUI);
00129 TextLabel3->setObjectName(QString::fromUtf8("TextLabel3"));
00130 TextLabel3->setGeometry(QRect(95, 60, 116, 16));
00131 TextLabel3->setFont(font);
00132 TextLabel3->setWordWrap(false);
00133 widget1 = new QWidget(BodyPropDlgUI);
00134 widget1->setObjectName(QString::fromUtf8("widget1"));
00135 widget1->setGeometry(QRect(10, 140, 323, 42));
00136 hboxLayout1 = new QHBoxLayout(widget1);
00137 hboxLayout1->setSpacing(6);
00138 hboxLayout1->setContentsMargins(11, 11, 11, 11);
00139 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00140 hboxLayout1->setContentsMargins(0, 0, 0, 0);
00141 line2 = new QFrame(widget1);
00142 line2->setObjectName(QString::fromUtf8("line2"));
00143 line2->setFrameShape(QFrame::HLine);
00144 line2->setFrameShadow(QFrame::Sunken);
00145 line2->setFrameShape(QFrame::HLine);
00146
00147 hboxLayout1->addWidget(line2);
00148
00149 dynamicCheckBox = new QCheckBox(widget1);
00150 dynamicCheckBox->setObjectName(QString::fromUtf8("dynamicCheckBox"));
00151 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00152 sizePolicy.setHorizontalStretch(0);
00153 sizePolicy.setVerticalStretch(0);
00154 sizePolicy.setHeightForWidth(dynamicCheckBox->sizePolicy().hasHeightForWidth());
00155 dynamicCheckBox->setSizePolicy(sizePolicy);
00156
00157 hboxLayout1->addWidget(dynamicCheckBox);
00158
00159 line1 = new QFrame(widget1);
00160 line1->setObjectName(QString::fromUtf8("line1"));
00161 line1->setFrameShape(QFrame::HLine);
00162 line1->setFrameShadow(QFrame::Sunken);
00163 line1->setFrameShape(QFrame::HLine);
00164
00165 hboxLayout1->addWidget(line1);
00166
00167 fcCheckBox = new QCheckBox(BodyPropDlgUI);
00168 fcCheckBox->setObjectName(QString::fromUtf8("fcCheckBox"));
00169 fcCheckBox->setGeometry(QRect(11, 35, 323, 18));
00170 transparencySlider = new QSlider(BodyPropDlgUI);
00171 transparencySlider->setObjectName(QString::fromUtf8("transparencySlider"));
00172 transparencySlider->setGeometry(QRect(95, 80, 238, 21));
00173 transparencySlider->setMaximum(100);
00174 transparencySlider->setOrientation(Qt::Horizontal);
00175 boundingCheckBox = new QCheckBox(BodyPropDlgUI);
00176 boundingCheckBox->setObjectName(QString::fromUtf8("boundingCheckBox"));
00177 boundingCheckBox->setGeometry(QRect(10, 110, 181, 18));
00178 boundingSpinBox = new QSpinBox(BodyPropDlgUI);
00179 boundingSpinBox->setObjectName(QString::fromUtf8("boundingSpinBox"));
00180 boundingSpinBox->setGeometry(QRect(196, 108, 44, 22));
00181
00182 retranslateUi(BodyPropDlgUI);
00183 QObject::connect(OKButton, SIGNAL(clicked()), BodyPropDlgUI, SLOT(accept()));
00184 QObject::connect(cancelButton, SIGNAL(clicked()), BodyPropDlgUI, SLOT(revertAndClose()));
00185 QObject::connect(transparencySlider, SIGNAL(valueChanged(int)), BodyPropDlgUI, SLOT(setTransparency(int)));
00186 QObject::connect(axesCheckBox, SIGNAL(stateChanged(int)), BodyPropDlgUI, SLOT(setShowAxes(int)));
00187 QObject::connect(fcCheckBox, SIGNAL(stateChanged(int)), BodyPropDlgUI, SLOT(setShowFC(int)));
00188 QObject::connect(dynamicForcesCheckBox, SIGNAL(stateChanged(int)), BodyPropDlgUI, SLOT(setShowDynContactForces(int)));
00189 QObject::connect(dynamicCheckBox, SIGNAL(stateChanged(int)), BodyPropDlgUI, SLOT(setDynamic(int)));
00190 QObject::connect(materialComboBox, SIGNAL(activated(int)), BodyPropDlgUI, SLOT(setMaterial(int)));
00191
00192 QMetaObject::connectSlotsByName(BodyPropDlgUI);
00193 }
00194
00195 void retranslateUi(QDialog *BodyPropDlgUI)
00196 {
00197 BodyPropDlgUI->setWindowTitle(QApplication::translate("BodyPropDlgUI", "Body Properties", 0, QApplication::UnicodeUTF8));
00198 TextLabel4->setText(QApplication::translate("BodyPropDlgUI", "Material", 0, QApplication::UnicodeUTF8));
00199 TextLabel2->setText(QApplication::translate("BodyPropDlgUI", "Transparency", 0, QApplication::UnicodeUTF8));
00200 axesCheckBox->setText(QApplication::translate("BodyPropDlgUI", "Show Axes", 0, QApplication::UnicodeUTF8));
00201 dynamicForcesCheckBox->setText(QApplication::translate("BodyPropDlgUI", "Show Dynamic Contact Forces", 0, QApplication::UnicodeUTF8));
00202 TextLabel1->setText(QApplication::translate("BodyPropDlgUI", "Mass (g)", 0, QApplication::UnicodeUTF8));
00203 OKButton->setText(QApplication::translate("BodyPropDlgUI", "OK", 0, QApplication::UnicodeUTF8));
00204 cancelButton->setText(QApplication::translate("BodyPropDlgUI", "Cancel", 0, QApplication::UnicodeUTF8));
00205 TextLabel3_2->setText(QApplication::translate("BodyPropDlgUI", "Transparent", 0, QApplication::UnicodeUTF8));
00206 TextLabel3->setText(QApplication::translate("BodyPropDlgUI", "Opaque", 0, QApplication::UnicodeUTF8));
00207 dynamicCheckBox->setText(QApplication::translate("BodyPropDlgUI", "Dynamic", 0, QApplication::UnicodeUTF8));
00208 fcCheckBox->setText(QApplication::translate("BodyPropDlgUI", "Show Friction Cones", 0, QApplication::UnicodeUTF8));
00209 boundingCheckBox->setText(QApplication::translate("BodyPropDlgUI", "Show bounding volumes at depth", 0, QApplication::UnicodeUTF8));
00210 }
00211
00212 };
00213
00214 namespace Ui {
00215 class BodyPropDlgUI: public Ui_BodyPropDlgUI {};
00216 }
00217
00218 QT_END_NAMESPACE
00219
00220 #endif // UI_BODYPROPDLG_H