1 /******************************************************************************** 2 ** Form generated from reading UI file 'default.ui' 3 ** 4 ** Created by: Qt User Interface Compiler version 4.8.5 5 ** 6 ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 ********************************************************************************/ 8 9 #ifndef DEFAULT_H 10 #define DEFAULT_H 11 12 #include <QtCore/QVariant> 13 #include <QtGui/QAction> 14 #include <QtGui/QApplication> 15 #include <QtGui/QButtonGroup> 16 #include <QtGui/QCheckBox> 17 #include <QtGui/QComboBox> 18 #include <QtGui/QDialogButtonBox> 19 #include <QtGui/QGridLayout> 20 #include <QtGui/QHeaderView> 21 #include <QtGui/QLabel> 22 #include <QtGui/QLineEdit> 23 #include <QtGui/QListWidget> 24 #include <QtGui/QMainWindow> 25 #include <QtGui/QMenu> 26 #include <QtGui/QMenuBar> 27 #include <QtGui/QRadioButton> 28 #include <QtGui/QSpacerItem> 29 #include <QtGui/QSpinBox> 30 #include <QtGui/QStatusBar> 31 #include <QtGui/QWidget> 32 33 QT_BEGIN_NAMESPACE 34 35 class Ui_MainWindow 36 { 37 public: 38 QAction *exitAction; 39 QAction *aboutQtAction; 40 QAction *editStyleAction; 41 QAction *aboutAction; 42 QWidget *centralwidget; 43 QGridLayout *gridLayout; 44 QLabel *nameLabel; 45 QComboBox *nameCombo; 46 QSpacerItem *spacerItem; 47 QRadioButton *femaleRadioButton; 48 QCheckBox *agreeCheckBox; 49 QRadioButton *maleRadioButton; 50 QLabel *genderLabel; 51 QSpinBox *ageSpinBox; 52 QDialogButtonBox *buttonBox; 53 QLabel *ageLabel; 54 QLabel *passwordLabel; 55 QLineEdit *passwordEdit; 56 QLabel *label; 57 QLabel *countryLabel; 58 QListWidget *professionList; 59 QComboBox *countryCombo; 60 QMenuBar *menubar; 61 QMenu *menu_File; 62 QMenu *menu_Help; 63 QStatusBar *statusbar; 64 setupUi(QMainWindow * MainWindow)65 void setupUi(QMainWindow *MainWindow) 66 { 67 if (MainWindow->objectName().isEmpty()) 68 MainWindow->setObjectName(QString::fromUtf8("MainWindow")); 69 MainWindow->resize(388, 413); 70 exitAction = new QAction(MainWindow); 71 exitAction->setObjectName(QString::fromUtf8("exitAction")); 72 aboutQtAction = new QAction(MainWindow); 73 aboutQtAction->setObjectName(QString::fromUtf8("aboutQtAction")); 74 editStyleAction = new QAction(MainWindow); 75 editStyleAction->setObjectName(QString::fromUtf8("editStyleAction")); 76 aboutAction = new QAction(MainWindow); 77 aboutAction->setObjectName(QString::fromUtf8("aboutAction")); 78 centralwidget = new QWidget(MainWindow); 79 centralwidget->setObjectName(QString::fromUtf8("centralwidget")); 80 gridLayout = new QGridLayout(centralwidget); 81 #ifndef Q_OS_MAC 82 gridLayout->setSpacing(6); 83 #endif 84 #ifndef Q_OS_MAC 85 gridLayout->setContentsMargins(9, 9, 9, 9); 86 #endif 87 gridLayout->setObjectName(QString::fromUtf8("gridLayout")); 88 nameLabel = new QLabel(centralwidget); 89 nameLabel->setObjectName(QString::fromUtf8("nameLabel")); 90 91 gridLayout->addWidget(nameLabel, 0, 0, 1, 1); 92 93 nameCombo = new QComboBox(centralwidget); 94 nameCombo->setObjectName(QString::fromUtf8("nameCombo")); 95 nameCombo->setEditable(true); 96 97 gridLayout->addWidget(nameCombo, 0, 1, 1, 3); 98 99 spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); 100 101 gridLayout->addItem(spacerItem, 1, 3, 1, 1); 102 103 femaleRadioButton = new QRadioButton(centralwidget); 104 femaleRadioButton->setObjectName(QString::fromUtf8("femaleRadioButton")); 105 106 gridLayout->addWidget(femaleRadioButton, 1, 2, 1, 1); 107 108 agreeCheckBox = new QCheckBox(centralwidget); 109 agreeCheckBox->setObjectName(QString::fromUtf8("agreeCheckBox")); 110 111 gridLayout->addWidget(agreeCheckBox, 6, 0, 1, 4); 112 113 maleRadioButton = new QRadioButton(centralwidget); 114 maleRadioButton->setObjectName(QString::fromUtf8("maleRadioButton")); 115 116 gridLayout->addWidget(maleRadioButton, 1, 1, 1, 1); 117 118 genderLabel = new QLabel(centralwidget); 119 genderLabel->setObjectName(QString::fromUtf8("genderLabel")); 120 121 gridLayout->addWidget(genderLabel, 1, 0, 1, 1); 122 123 ageSpinBox = new QSpinBox(centralwidget); 124 ageSpinBox->setObjectName(QString::fromUtf8("ageSpinBox")); 125 ageSpinBox->setMinimum(12); 126 ageSpinBox->setValue(22); 127 128 gridLayout->addWidget(ageSpinBox, 2, 1, 1, 3); 129 130 buttonBox = new QDialogButtonBox(centralwidget); 131 buttonBox->setObjectName(QString::fromUtf8("buttonBox")); 132 buttonBox->setOrientation(Qt::Horizontal); 133 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok); 134 135 gridLayout->addWidget(buttonBox, 7, 2, 1, 2); 136 137 ageLabel = new QLabel(centralwidget); 138 ageLabel->setObjectName(QString::fromUtf8("ageLabel")); 139 140 gridLayout->addWidget(ageLabel, 2, 0, 1, 1); 141 142 passwordLabel = new QLabel(centralwidget); 143 passwordLabel->setObjectName(QString::fromUtf8("passwordLabel")); 144 145 gridLayout->addWidget(passwordLabel, 3, 0, 1, 1); 146 147 passwordEdit = new QLineEdit(centralwidget); 148 passwordEdit->setObjectName(QString::fromUtf8("passwordEdit")); 149 passwordEdit->setEchoMode(QLineEdit::Password); 150 151 gridLayout->addWidget(passwordEdit, 3, 1, 1, 3); 152 153 label = new QLabel(centralwidget); 154 label->setObjectName(QString::fromUtf8("label")); 155 156 gridLayout->addWidget(label, 5, 0, 1, 1); 157 158 countryLabel = new QLabel(centralwidget); 159 countryLabel->setObjectName(QString::fromUtf8("countryLabel")); 160 161 gridLayout->addWidget(countryLabel, 4, 0, 1, 1); 162 163 professionList = new QListWidget(centralwidget); 164 new QListWidgetItem(professionList); 165 new QListWidgetItem(professionList); 166 new QListWidgetItem(professionList); 167 professionList->setObjectName(QString::fromUtf8("professionList")); 168 169 gridLayout->addWidget(professionList, 5, 1, 1, 3); 170 171 countryCombo = new QComboBox(centralwidget); 172 countryCombo->setObjectName(QString::fromUtf8("countryCombo")); 173 174 gridLayout->addWidget(countryCombo, 4, 1, 1, 3); 175 176 MainWindow->setCentralWidget(centralwidget); 177 menubar = new QMenuBar(MainWindow); 178 menubar->setObjectName(QString::fromUtf8("menubar")); 179 menubar->setGeometry(QRect(0, 0, 388, 21)); 180 menu_File = new QMenu(menubar); 181 menu_File->setObjectName(QString::fromUtf8("menu_File")); 182 menu_Help = new QMenu(menubar); 183 menu_Help->setObjectName(QString::fromUtf8("menu_Help")); 184 MainWindow->setMenuBar(menubar); 185 statusbar = new QStatusBar(MainWindow); 186 statusbar->setObjectName(QString::fromUtf8("statusbar")); 187 MainWindow->setStatusBar(statusbar); 188 #ifndef QT_NO_SHORTCUT 189 nameLabel->setBuddy(nameCombo); 190 ageLabel->setBuddy(ageSpinBox); 191 passwordLabel->setBuddy(passwordEdit); 192 label->setBuddy(professionList); 193 countryLabel->setBuddy(professionList); 194 #endif // QT_NO_SHORTCUT 195 QWidget::setTabOrder(maleRadioButton, femaleRadioButton); 196 QWidget::setTabOrder(femaleRadioButton, ageSpinBox); 197 QWidget::setTabOrder(ageSpinBox, passwordEdit); 198 QWidget::setTabOrder(passwordEdit, professionList); 199 QWidget::setTabOrder(professionList, agreeCheckBox); 200 201 menubar->addAction(menu_File->menuAction()); 202 menubar->addAction(menu_Help->menuAction()); 203 menu_File->addAction(editStyleAction); 204 menu_File->addSeparator(); 205 menu_File->addAction(exitAction); 206 menu_Help->addAction(aboutAction); 207 menu_Help->addSeparator(); 208 menu_Help->addAction(aboutQtAction); 209 210 retranslateUi(MainWindow); 211 212 nameCombo->setCurrentIndex(-1); 213 professionList->setCurrentRow(1); 214 countryCombo->setCurrentIndex(2); 215 216 217 QMetaObject::connectSlotsByName(MainWindow); 218 } // setupUi 219 retranslateUi(QMainWindow * MainWindow)220 void retranslateUi(QMainWindow *MainWindow) 221 { 222 MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0, QApplication::UnicodeUTF8)); 223 exitAction->setText(QApplication::translate("MainWindow", "&Exit", 0, QApplication::UnicodeUTF8)); 224 aboutQtAction->setText(QApplication::translate("MainWindow", "About Qt", 0, QApplication::UnicodeUTF8)); 225 editStyleAction->setText(QApplication::translate("MainWindow", "Edit &Style", 0, QApplication::UnicodeUTF8)); 226 aboutAction->setText(QApplication::translate("MainWindow", "About", 0, QApplication::UnicodeUTF8)); 227 nameLabel->setText(QApplication::translate("MainWindow", "&Name:", 0, QApplication::UnicodeUTF8)); 228 nameCombo->clear(); 229 nameCombo->insertItems(0, QStringList() 230 << QApplication::translate("MainWindow", "Girish", 0, QApplication::UnicodeUTF8) 231 << QApplication::translate("MainWindow", "Jasmin", 0, QApplication::UnicodeUTF8) 232 << QApplication::translate("MainWindow", "Simon", 0, QApplication::UnicodeUTF8) 233 << QApplication::translate("MainWindow", "Zack", 0, QApplication::UnicodeUTF8) 234 ); 235 #ifndef QT_NO_TOOLTIP 236 nameCombo->setToolTip(QApplication::translate("MainWindow", "Specify your name", 0, QApplication::UnicodeUTF8)); 237 #endif // QT_NO_TOOLTIP 238 #ifndef QT_NO_TOOLTIP 239 femaleRadioButton->setToolTip(QApplication::translate("MainWindow", "Check this if you are female", 0, QApplication::UnicodeUTF8)); 240 #endif // QT_NO_TOOLTIP 241 femaleRadioButton->setText(QApplication::translate("MainWindow", "&Female", 0, QApplication::UnicodeUTF8)); 242 #ifndef QT_NO_TOOLTIP 243 agreeCheckBox->setToolTip(QApplication::translate("MainWindow", "Please read the license before checking this", 0, QApplication::UnicodeUTF8)); 244 #endif // QT_NO_TOOLTIP 245 agreeCheckBox->setText(QApplication::translate("MainWindow", "I &accept the terms and conditions", 0, QApplication::UnicodeUTF8)); 246 #ifndef QT_NO_TOOLTIP 247 maleRadioButton->setToolTip(QApplication::translate("MainWindow", "Check this if you are male", 0, QApplication::UnicodeUTF8)); 248 #endif // QT_NO_TOOLTIP 249 maleRadioButton->setText(QApplication::translate("MainWindow", "&Male", 0, QApplication::UnicodeUTF8)); 250 genderLabel->setText(QApplication::translate("MainWindow", "Gender:", 0, QApplication::UnicodeUTF8)); 251 #ifndef QT_NO_TOOLTIP 252 ageSpinBox->setToolTip(QApplication::translate("MainWindow", "Specify your age", 0, QApplication::UnicodeUTF8)); 253 #endif // QT_NO_TOOLTIP 254 #ifndef QT_NO_STATUSTIP 255 ageSpinBox->setStatusTip(QApplication::translate("MainWindow", "Specify your age here", 0, QApplication::UnicodeUTF8)); 256 #endif // QT_NO_STATUSTIP 257 ageLabel->setText(QApplication::translate("MainWindow", "&Age:", 0, QApplication::UnicodeUTF8)); 258 passwordLabel->setText(QApplication::translate("MainWindow", "&Password:", 0, QApplication::UnicodeUTF8)); 259 #ifndef QT_NO_TOOLTIP 260 passwordEdit->setToolTip(QApplication::translate("MainWindow", "Specify your password", 0, QApplication::UnicodeUTF8)); 261 #endif // QT_NO_TOOLTIP 262 #ifndef QT_NO_STATUSTIP 263 passwordEdit->setStatusTip(QApplication::translate("MainWindow", "Specify your password here", 0, QApplication::UnicodeUTF8)); 264 #endif // QT_NO_STATUSTIP 265 passwordEdit->setText(QApplication::translate("MainWindow", "Password", 0, QApplication::UnicodeUTF8)); 266 label->setText(QApplication::translate("MainWindow", "Profession", 0, QApplication::UnicodeUTF8)); 267 countryLabel->setText(QApplication::translate("MainWindow", "&Country", 0, QApplication::UnicodeUTF8)); 268 269 const bool __sortingEnabled = professionList->isSortingEnabled(); 270 professionList->setSortingEnabled(false); 271 QListWidgetItem *___qlistwidgetitem = professionList->item(0); 272 ___qlistwidgetitem->setText(QApplication::translate("MainWindow", "Developer", 0, QApplication::UnicodeUTF8)); 273 QListWidgetItem *___qlistwidgetitem1 = professionList->item(1); 274 ___qlistwidgetitem1->setText(QApplication::translate("MainWindow", "Student", 0, QApplication::UnicodeUTF8)); 275 QListWidgetItem *___qlistwidgetitem2 = professionList->item(2); 276 ___qlistwidgetitem2->setText(QApplication::translate("MainWindow", "Fisherman", 0, QApplication::UnicodeUTF8)); 277 professionList->setSortingEnabled(__sortingEnabled); 278 279 #ifndef QT_NO_TOOLTIP 280 professionList->setToolTip(QApplication::translate("MainWindow", "Select your profession", 0, QApplication::UnicodeUTF8)); 281 #endif // QT_NO_TOOLTIP 282 #ifndef QT_NO_STATUSTIP 283 professionList->setStatusTip(QApplication::translate("MainWindow", "Select your profession", 0, QApplication::UnicodeUTF8)); 284 #endif // QT_NO_STATUSTIP 285 #ifndef QT_NO_WHATSTHIS 286 professionList->setWhatsThis(QApplication::translate("MainWindow", "Select your profession", 0, QApplication::UnicodeUTF8)); 287 #endif // QT_NO_WHATSTHIS 288 countryCombo->clear(); 289 countryCombo->insertItems(0, QStringList() 290 << QApplication::translate("MainWindow", "Germany", 0, QApplication::UnicodeUTF8) 291 << QApplication::translate("MainWindow", "India", 0, QApplication::UnicodeUTF8) 292 << QApplication::translate("MainWindow", "Norway", 0, QApplication::UnicodeUTF8) 293 << QApplication::translate("MainWindow", "United States Of America", 0, QApplication::UnicodeUTF8) 294 << QApplication::translate("MainWindow", "United Kingdom", 0, QApplication::UnicodeUTF8) 295 ); 296 #ifndef QT_NO_TOOLTIP 297 countryCombo->setToolTip(QApplication::translate("MainWindow", "Specify your country", 0, QApplication::UnicodeUTF8)); 298 #endif // QT_NO_TOOLTIP 299 #ifndef QT_NO_STATUSTIP 300 countryCombo->setStatusTip(QApplication::translate("MainWindow", "Specify your country here", 0, QApplication::UnicodeUTF8)); 301 #endif // QT_NO_STATUSTIP 302 menu_File->setTitle(QApplication::translate("MainWindow", "&File", 0, QApplication::UnicodeUTF8)); 303 menu_Help->setTitle(QApplication::translate("MainWindow", "&Help", 0, QApplication::UnicodeUTF8)); 304 } // retranslateUi 305 306 }; 307 308 namespace Ui { 309 class MainWindow: public Ui_MainWindow {}; 310 } // namespace Ui 311 312 QT_END_NAMESPACE 313 314 #endif // DEFAULT_H 315