2011-04-27 10:05:43 +00:00
|
|
|
/********************************************************************************
|
|
|
|
** Form generated from reading UI file 'default.ui'
|
|
|
|
**
|
2012-12-13 12:48:18 +00:00
|
|
|
** Created by: Qt User Interface Compiler version 5.0.0
|
2011-04-27 10:05:43 +00:00
|
|
|
**
|
|
|
|
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
|
|
|
********************************************************************************/
|
|
|
|
|
|
|
|
#ifndef DEFAULT_H
|
|
|
|
#define DEFAULT_H
|
|
|
|
|
|
|
|
#include <QtCore/QVariant>
|
2011-09-22 13:09:37 +00:00
|
|
|
#include <QtWidgets/QAction>
|
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
#include <QtWidgets/QButtonGroup>
|
|
|
|
#include <QtWidgets/QCheckBox>
|
|
|
|
#include <QtWidgets/QComboBox>
|
|
|
|
#include <QtWidgets/QDialogButtonBox>
|
|
|
|
#include <QtWidgets/QGridLayout>
|
|
|
|
#include <QtWidgets/QHeaderView>
|
|
|
|
#include <QtWidgets/QLabel>
|
|
|
|
#include <QtWidgets/QLineEdit>
|
|
|
|
#include <QtWidgets/QListWidget>
|
|
|
|
#include <QtWidgets/QMainWindow>
|
|
|
|
#include <QtWidgets/QMenu>
|
|
|
|
#include <QtWidgets/QMenuBar>
|
|
|
|
#include <QtWidgets/QRadioButton>
|
|
|
|
#include <QtWidgets/QSpacerItem>
|
|
|
|
#include <QtWidgets/QSpinBox>
|
|
|
|
#include <QtWidgets/QStatusBar>
|
|
|
|
#include <QtWidgets/QWidget>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class Ui_MainWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QAction *exitAction;
|
|
|
|
QAction *aboutQtAction;
|
|
|
|
QAction *editStyleAction;
|
|
|
|
QAction *aboutAction;
|
|
|
|
QWidget *centralwidget;
|
|
|
|
QGridLayout *gridLayout;
|
|
|
|
QLabel *nameLabel;
|
|
|
|
QComboBox *nameCombo;
|
|
|
|
QSpacerItem *spacerItem;
|
|
|
|
QRadioButton *femaleRadioButton;
|
|
|
|
QCheckBox *agreeCheckBox;
|
|
|
|
QRadioButton *maleRadioButton;
|
|
|
|
QLabel *genderLabel;
|
|
|
|
QSpinBox *ageSpinBox;
|
|
|
|
QDialogButtonBox *buttonBox;
|
|
|
|
QLabel *ageLabel;
|
|
|
|
QLabel *passwordLabel;
|
|
|
|
QLineEdit *passwordEdit;
|
|
|
|
QLabel *label;
|
|
|
|
QLabel *countryLabel;
|
|
|
|
QListWidget *professionList;
|
|
|
|
QComboBox *countryCombo;
|
|
|
|
QMenuBar *menubar;
|
|
|
|
QMenu *menu_File;
|
|
|
|
QMenu *menu_Help;
|
|
|
|
QStatusBar *statusbar;
|
|
|
|
|
|
|
|
void setupUi(QMainWindow *MainWindow)
|
|
|
|
{
|
|
|
|
if (MainWindow->objectName().isEmpty())
|
2011-12-11 15:55:01 +00:00
|
|
|
MainWindow->setObjectName(QStringLiteral("MainWindow"));
|
2011-04-27 10:05:43 +00:00
|
|
|
MainWindow->resize(388, 413);
|
|
|
|
exitAction = new QAction(MainWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
exitAction->setObjectName(QStringLiteral("exitAction"));
|
2011-04-27 10:05:43 +00:00
|
|
|
aboutQtAction = new QAction(MainWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
aboutQtAction->setObjectName(QStringLiteral("aboutQtAction"));
|
2011-04-27 10:05:43 +00:00
|
|
|
editStyleAction = new QAction(MainWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
editStyleAction->setObjectName(QStringLiteral("editStyleAction"));
|
2011-04-27 10:05:43 +00:00
|
|
|
aboutAction = new QAction(MainWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
aboutAction->setObjectName(QStringLiteral("aboutAction"));
|
2011-04-27 10:05:43 +00:00
|
|
|
centralwidget = new QWidget(MainWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
centralwidget->setObjectName(QStringLiteral("centralwidget"));
|
2011-04-27 10:05:43 +00:00
|
|
|
gridLayout = new QGridLayout(centralwidget);
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
gridLayout->setSpacing(6);
|
|
|
|
#endif
|
|
|
|
#ifndef Q_OS_MAC
|
|
|
|
gridLayout->setContentsMargins(9, 9, 9, 9);
|
|
|
|
#endif
|
2011-12-11 15:55:01 +00:00
|
|
|
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
2011-04-27 10:05:43 +00:00
|
|
|
nameLabel = new QLabel(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
nameLabel->setObjectName(QStringLiteral("nameLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(nameLabel, 0, 0, 1, 1);
|
|
|
|
|
|
|
|
nameCombo = new QComboBox(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
nameCombo->setObjectName(QStringLiteral("nameCombo"));
|
2011-04-27 10:05:43 +00:00
|
|
|
nameCombo->setEditable(true);
|
|
|
|
|
|
|
|
gridLayout->addWidget(nameCombo, 0, 1, 1, 3);
|
|
|
|
|
|
|
|
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
|
|
|
|
|
|
|
gridLayout->addItem(spacerItem, 1, 3, 1, 1);
|
|
|
|
|
|
|
|
femaleRadioButton = new QRadioButton(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
femaleRadioButton->setObjectName(QStringLiteral("femaleRadioButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(femaleRadioButton, 1, 2, 1, 1);
|
|
|
|
|
|
|
|
agreeCheckBox = new QCheckBox(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
agreeCheckBox->setObjectName(QStringLiteral("agreeCheckBox"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(agreeCheckBox, 6, 0, 1, 4);
|
|
|
|
|
|
|
|
maleRadioButton = new QRadioButton(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
maleRadioButton->setObjectName(QStringLiteral("maleRadioButton"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(maleRadioButton, 1, 1, 1, 1);
|
|
|
|
|
|
|
|
genderLabel = new QLabel(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
genderLabel->setObjectName(QStringLiteral("genderLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(genderLabel, 1, 0, 1, 1);
|
|
|
|
|
|
|
|
ageSpinBox = new QSpinBox(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
ageSpinBox->setObjectName(QStringLiteral("ageSpinBox"));
|
2011-04-27 10:05:43 +00:00
|
|
|
ageSpinBox->setMinimum(12);
|
|
|
|
ageSpinBox->setValue(22);
|
|
|
|
|
|
|
|
gridLayout->addWidget(ageSpinBox, 2, 1, 1, 3);
|
|
|
|
|
|
|
|
buttonBox = new QDialogButtonBox(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
buttonBox->setObjectName(QStringLiteral("buttonBox"));
|
2011-04-27 10:05:43 +00:00
|
|
|
buttonBox->setOrientation(Qt::Horizontal);
|
|
|
|
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
|
|
|
|
|
|
|
|
gridLayout->addWidget(buttonBox, 7, 2, 1, 2);
|
|
|
|
|
|
|
|
ageLabel = new QLabel(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
ageLabel->setObjectName(QStringLiteral("ageLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(ageLabel, 2, 0, 1, 1);
|
|
|
|
|
|
|
|
passwordLabel = new QLabel(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
passwordLabel->setObjectName(QStringLiteral("passwordLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(passwordLabel, 3, 0, 1, 1);
|
|
|
|
|
|
|
|
passwordEdit = new QLineEdit(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
passwordEdit->setObjectName(QStringLiteral("passwordEdit"));
|
2011-04-27 10:05:43 +00:00
|
|
|
passwordEdit->setEchoMode(QLineEdit::Password);
|
|
|
|
|
|
|
|
gridLayout->addWidget(passwordEdit, 3, 1, 1, 3);
|
|
|
|
|
|
|
|
label = new QLabel(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
label->setObjectName(QStringLiteral("label"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(label, 5, 0, 1, 1);
|
|
|
|
|
|
|
|
countryLabel = new QLabel(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
countryLabel->setObjectName(QStringLiteral("countryLabel"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(countryLabel, 4, 0, 1, 1);
|
|
|
|
|
|
|
|
professionList = new QListWidget(centralwidget);
|
|
|
|
new QListWidgetItem(professionList);
|
|
|
|
new QListWidgetItem(professionList);
|
|
|
|
new QListWidgetItem(professionList);
|
2011-12-11 15:55:01 +00:00
|
|
|
professionList->setObjectName(QStringLiteral("professionList"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(professionList, 5, 1, 1, 3);
|
|
|
|
|
|
|
|
countryCombo = new QComboBox(centralwidget);
|
2011-12-11 15:55:01 +00:00
|
|
|
countryCombo->setObjectName(QStringLiteral("countryCombo"));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
gridLayout->addWidget(countryCombo, 4, 1, 1, 3);
|
|
|
|
|
|
|
|
MainWindow->setCentralWidget(centralwidget);
|
|
|
|
menubar = new QMenuBar(MainWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
menubar->setObjectName(QStringLiteral("menubar"));
|
2011-04-27 10:05:43 +00:00
|
|
|
menubar->setGeometry(QRect(0, 0, 388, 21));
|
|
|
|
menu_File = new QMenu(menubar);
|
2011-12-11 15:55:01 +00:00
|
|
|
menu_File->setObjectName(QStringLiteral("menu_File"));
|
2011-04-27 10:05:43 +00:00
|
|
|
menu_Help = new QMenu(menubar);
|
2011-12-11 15:55:01 +00:00
|
|
|
menu_Help->setObjectName(QStringLiteral("menu_Help"));
|
2011-04-27 10:05:43 +00:00
|
|
|
MainWindow->setMenuBar(menubar);
|
|
|
|
statusbar = new QStatusBar(MainWindow);
|
2011-12-11 15:55:01 +00:00
|
|
|
statusbar->setObjectName(QStringLiteral("statusbar"));
|
2011-04-27 10:05:43 +00:00
|
|
|
MainWindow->setStatusBar(statusbar);
|
|
|
|
#ifndef QT_NO_SHORTCUT
|
|
|
|
nameLabel->setBuddy(nameCombo);
|
|
|
|
ageLabel->setBuddy(ageSpinBox);
|
|
|
|
passwordLabel->setBuddy(passwordEdit);
|
|
|
|
label->setBuddy(professionList);
|
|
|
|
countryLabel->setBuddy(professionList);
|
|
|
|
#endif // QT_NO_SHORTCUT
|
|
|
|
QWidget::setTabOrder(maleRadioButton, femaleRadioButton);
|
|
|
|
QWidget::setTabOrder(femaleRadioButton, ageSpinBox);
|
|
|
|
QWidget::setTabOrder(ageSpinBox, passwordEdit);
|
|
|
|
QWidget::setTabOrder(passwordEdit, professionList);
|
|
|
|
QWidget::setTabOrder(professionList, agreeCheckBox);
|
|
|
|
|
|
|
|
menubar->addAction(menu_File->menuAction());
|
|
|
|
menubar->addAction(menu_Help->menuAction());
|
|
|
|
menu_File->addAction(editStyleAction);
|
|
|
|
menu_File->addSeparator();
|
|
|
|
menu_File->addAction(exitAction);
|
|
|
|
menu_Help->addAction(aboutAction);
|
|
|
|
menu_Help->addSeparator();
|
|
|
|
menu_Help->addAction(aboutQtAction);
|
|
|
|
|
|
|
|
retranslateUi(MainWindow);
|
|
|
|
|
|
|
|
nameCombo->setCurrentIndex(-1);
|
|
|
|
professionList->setCurrentRow(1);
|
|
|
|
countryCombo->setCurrentIndex(2);
|
|
|
|
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(MainWindow);
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
void retranslateUi(QMainWindow *MainWindow)
|
|
|
|
{
|
2012-05-17 00:37:23 +00:00
|
|
|
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0));
|
|
|
|
exitAction->setText(QApplication::translate("MainWindow", "&Exit", 0));
|
|
|
|
aboutQtAction->setText(QApplication::translate("MainWindow", "About Qt", 0));
|
|
|
|
editStyleAction->setText(QApplication::translate("MainWindow", "Edit &Style", 0));
|
|
|
|
aboutAction->setText(QApplication::translate("MainWindow", "About", 0));
|
|
|
|
nameLabel->setText(QApplication::translate("MainWindow", "&Name:", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
nameCombo->clear();
|
|
|
|
nameCombo->insertItems(0, QStringList()
|
2012-05-17 00:37:23 +00:00
|
|
|
<< QApplication::translate("MainWindow", "Girish", 0)
|
|
|
|
<< QApplication::translate("MainWindow", "Jasmin", 0)
|
|
|
|
<< QApplication::translate("MainWindow", "Simon", 0)
|
|
|
|
<< QApplication::translate("MainWindow", "Zack", 0)
|
2011-04-27 10:05:43 +00:00
|
|
|
);
|
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
nameCombo->setToolTip(QApplication::translate("MainWindow", "Specify your name", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
femaleRadioButton->setToolTip(QApplication::translate("MainWindow", "Check this if you are female", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
femaleRadioButton->setText(QApplication::translate("MainWindow", "&Female", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
agreeCheckBox->setToolTip(QApplication::translate("MainWindow", "Please read the license before checking this", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
agreeCheckBox->setText(QApplication::translate("MainWindow", "I &accept the terms and conditions", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
maleRadioButton->setToolTip(QApplication::translate("MainWindow", "Check this if you are male", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
maleRadioButton->setText(QApplication::translate("MainWindow", "&Male", 0));
|
|
|
|
genderLabel->setText(QApplication::translate("MainWindow", "Gender:", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
ageSpinBox->setToolTip(QApplication::translate("MainWindow", "Specify your age", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_STATUSTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
ageSpinBox->setStatusTip(QApplication::translate("MainWindow", "Specify your age here", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_STATUSTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
ageLabel->setText(QApplication::translate("MainWindow", "&Age:", 0));
|
|
|
|
passwordLabel->setText(QApplication::translate("MainWindow", "&Password:", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
passwordEdit->setToolTip(QApplication::translate("MainWindow", "Specify your password", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_STATUSTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
passwordEdit->setStatusTip(QApplication::translate("MainWindow", "Specify your password here", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_STATUSTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
passwordEdit->setText(QApplication::translate("MainWindow", "Password", 0));
|
|
|
|
label->setText(QApplication::translate("MainWindow", "Profession", 0));
|
|
|
|
countryLabel->setText(QApplication::translate("MainWindow", "&Country", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
const bool __sortingEnabled = professionList->isSortingEnabled();
|
|
|
|
professionList->setSortingEnabled(false);
|
|
|
|
QListWidgetItem *___qlistwidgetitem = professionList->item(0);
|
2012-05-17 00:37:23 +00:00
|
|
|
___qlistwidgetitem->setText(QApplication::translate("MainWindow", "Developer", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
QListWidgetItem *___qlistwidgetitem1 = professionList->item(1);
|
2012-05-17 00:37:23 +00:00
|
|
|
___qlistwidgetitem1->setText(QApplication::translate("MainWindow", "Student", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
QListWidgetItem *___qlistwidgetitem2 = professionList->item(2);
|
2012-05-17 00:37:23 +00:00
|
|
|
___qlistwidgetitem2->setText(QApplication::translate("MainWindow", "Fisherman", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
professionList->setSortingEnabled(__sortingEnabled);
|
|
|
|
|
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
professionList->setToolTip(QApplication::translate("MainWindow", "Select your profession", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_STATUSTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
professionList->setStatusTip(QApplication::translate("MainWindow", "Select your profession", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_STATUSTIP
|
|
|
|
#ifndef QT_NO_WHATSTHIS
|
2012-05-17 00:37:23 +00:00
|
|
|
professionList->setWhatsThis(QApplication::translate("MainWindow", "Select your profession", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_WHATSTHIS
|
|
|
|
countryCombo->clear();
|
|
|
|
countryCombo->insertItems(0, QStringList()
|
2012-05-17 00:37:23 +00:00
|
|
|
<< QApplication::translate("MainWindow", "Germany", 0)
|
|
|
|
<< QApplication::translate("MainWindow", "India", 0)
|
|
|
|
<< QApplication::translate("MainWindow", "Norway", 0)
|
|
|
|
<< QApplication::translate("MainWindow", "United States Of America", 0)
|
|
|
|
<< QApplication::translate("MainWindow", "United Kingdom", 0)
|
2011-04-27 10:05:43 +00:00
|
|
|
);
|
|
|
|
#ifndef QT_NO_TOOLTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
countryCombo->setToolTip(QApplication::translate("MainWindow", "Specify your country", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_TOOLTIP
|
|
|
|
#ifndef QT_NO_STATUSTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
countryCombo->setStatusTip(QApplication::translate("MainWindow", "Specify your country here", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
#endif // QT_NO_STATUSTIP
|
2012-05-17 00:37:23 +00:00
|
|
|
menu_File->setTitle(QApplication::translate("MainWindow", "&File", 0));
|
|
|
|
menu_Help->setTitle(QApplication::translate("MainWindow", "&Help", 0));
|
2011-04-27 10:05:43 +00:00
|
|
|
} // retranslateUi
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow: public Ui_MainWindow {};
|
|
|
|
} // namespace Ui
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // DEFAULT_H
|