00001 #include <kdialog.h>
00002 #include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef UI_NAMEDIALOG_H
00014 #define UI_NAMEDIALOG_H
00015
00016 #include <QtCore/QVariant>
00017 #include <QtGui/QAction>
00018 #include <QtGui/QApplication>
00019 #include <QtGui/QButtonGroup>
00020 #include <QtGui/QDialog>
00021 #include <QtGui/QGridLayout>
00022 #include <QtGui/QGroupBox>
00023 #include <QtGui/QHBoxLayout>
00024 #include <QtGui/QLabel>
00025 #include <QtGui/QLineEdit>
00026 #include <QtGui/QPushButton>
00027 #include <QtGui/QSpacerItem>
00028 #include <QtGui/QVBoxLayout>
00029
00030 class Ui_NameDialog
00031 {
00032 public:
00033 QVBoxLayout *vboxLayout;
00034 QGroupBox *groupBox;
00035 QGridLayout *gridLayout;
00036 QLineEdit *editPlayer2;
00037 QLineEdit *editPlayer1;
00038 QLabel *label_1;
00039 QLabel *label_2;
00040 QHBoxLayout *hboxLayout;
00041 QPushButton *okButton;
00042 QPushButton *cancelButton;
00043
00044 void setupUi(QDialog *NameDialog)
00045 {
00046 if (NameDialog->objectName().isEmpty())
00047 NameDialog->setObjectName(QString::fromUtf8("NameDialog"));
00048 QSize size(239, 184);
00049 size = size.expandedTo(NameDialog->minimumSizeHint());
00050 NameDialog->resize(size);
00051 vboxLayout = new QVBoxLayout(NameDialog);
00052 #ifndef UI_Q_OS_MAC
00053 vboxLayout->setSpacing(6);
00054 #endif
00055 #ifndef UI_Q_OS_MAC
00056 vboxLayout->setMargin(9);
00057 #endif
00058 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00059 groupBox = new QGroupBox(NameDialog);
00060 groupBox->setObjectName(QString::fromUtf8("groupBox"));
00061 gridLayout = new QGridLayout(groupBox);
00062 #ifndef UI_Q_OS_MAC
00063 gridLayout->setSpacing(6);
00064 #endif
00065 #ifndef UI_Q_OS_MAC
00066 gridLayout->setMargin(9);
00067 #endif
00068 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00069 editPlayer2 = new QLineEdit(groupBox);
00070 editPlayer2->setObjectName(QString::fromUtf8("editPlayer2"));
00071
00072 gridLayout->addWidget(editPlayer2, 1, 1, 1, 1);
00073
00074 editPlayer1 = new QLineEdit(groupBox);
00075 editPlayer1->setObjectName(QString::fromUtf8("editPlayer1"));
00076
00077 gridLayout->addWidget(editPlayer1, 0, 1, 1, 1);
00078
00079 label_1 = new QLabel(groupBox);
00080 label_1->setObjectName(QString::fromUtf8("label_1"));
00081
00082 gridLayout->addWidget(label_1, 0, 0, 1, 1);
00083
00084 label_2 = new QLabel(groupBox);
00085 label_2->setObjectName(QString::fromUtf8("label_2"));
00086
00087 gridLayout->addWidget(label_2, 1, 0, 1, 1);
00088
00089
00090 vboxLayout->addWidget(groupBox);
00091
00092 hboxLayout = new QHBoxLayout();
00093 #ifndef UI_Q_OS_MAC
00094 hboxLayout->setSpacing(6);
00095 #endif
00096 hboxLayout->setMargin(0);
00097 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00098
00099 hboxLayout->addItem(new QSpacerItem(31, 31, QSizePolicy::Expanding, QSizePolicy::Minimum));
00100
00101 okButton = new QPushButton(NameDialog);
00102 okButton->setObjectName(QString::fromUtf8("okButton"));
00103
00104 hboxLayout->addWidget(okButton);
00105
00106 cancelButton = new QPushButton(NameDialog);
00107 cancelButton->setObjectName(QString::fromUtf8("cancelButton"));
00108
00109 hboxLayout->addWidget(cancelButton);
00110
00111
00112 vboxLayout->addLayout(hboxLayout);
00113
00114
00115 retranslateUi(NameDialog);
00116 QObject::connect(okButton, SIGNAL(clicked()), NameDialog, SLOT(accept()));
00117 QObject::connect(cancelButton, SIGNAL(clicked()), NameDialog, SLOT(reject()));
00118
00119 QMetaObject::connectSlotsByName(NameDialog);
00120 }
00121
00122 void retranslateUi(QDialog *NameDialog)
00123 {
00124 NameDialog->setWindowTitle(tr2i18n("Configure Names", 0));
00125 groupBox->setTitle(tr2i18n("PlayerNames", 0));
00126 label_1->setText(tr2i18n("Player 1", 0));
00127 label_2->setText(tr2i18n("Player 2", 0));
00128 okButton->setText(tr2i18n("OK", 0));
00129 cancelButton->setText(tr2i18n("Cancel", 0));
00130 Q_UNUSED(NameDialog);
00131 }
00132
00133 };
00134
00135 namespace Ui {
00136 class NameDialog: public Ui_NameDialog {};
00137 }
00138
00139 #endif // NAMEDIALOG_H
00140