Advertisement
Guest User

ui_creategamedialog.h

a guest
Aug 23rd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /********************************************************************************
  2. ** Form generated from reading UI file 'creategamedialog.ui'
  3. **
  4. ** Created by: Qt User Interface Compiler version 5.3.2
  5. **
  6. ** WARNING! All changes made in this file will be lost when recompiling UI file!
  7. ********************************************************************************/
  8.  
  9. #ifndef UI_CREATEGAMEDIALOG_H
  10. #define UI_CREATEGAMEDIALOG_H
  11.  
  12. #include <QtCore/QVariant>
  13. #include <QtWidgets/QAction>
  14. #include <QtWidgets/QApplication>
  15. #include <QtWidgets/QButtonGroup>
  16. #include <QtWidgets/QCheckBox>
  17. #include <QtWidgets/QDialog>
  18. #include <QtWidgets/QFrame>
  19. #include <QtWidgets/QGridLayout>
  20. #include <QtWidgets/QHBoxLayout>
  21. #include <QtWidgets/QHeaderView>
  22. #include <QtWidgets/QLabel>
  23. #include <QtWidgets/QLineEdit>
  24. #include <QtWidgets/QPushButton>
  25. #include <QtWidgets/QRadioButton>
  26. #include <QtWidgets/QSpacerItem>
  27. #include <QtWidgets/QSpinBox>
  28. #include <QtWidgets/QVBoxLayout>
  29. #include "selectplayericonwidget.h"
  30.  
  31. QT_BEGIN_NAMESPACE
  32.  
  33. class Ui_CreateGameDialog
  34. {
  35. public:
  36.     QGridLayout *gridLayout;
  37.     QHBoxLayout *horizontalLayout;
  38.     QSpinBox *spinBoxMinPlayers;
  39.     QLabel *label_4;
  40.     QSpinBox *spinBoxMaxPlayers;
  41.     QVBoxLayout *verticalLayout;
  42.     QRadioButton *radioButtonOrderChronological;
  43.     QRadioButton *radioButtonOrderRandom;
  44.     QSpacerItem *horizontalSpacer;
  45.     QLabel *label;
  46.     QLineEdit *lineEditGameName;
  47.     QLabel *label_2;
  48.     QLineEdit *lineEditGameDescription;
  49.     QLabel *label_3;
  50.     QLineEdit *lineEditGamePasswordPlayers;
  51.     QLineEdit *lineEditPlayerName;
  52.     QPushButton *pushButtonCreate;
  53.     QPushButton *pushButtonCancel;
  54.     QLabel *label_8;
  55.     QSpinBox *spinBoxAIPlayers;
  56.     QLabel *label_7;
  57.     QLabel *label_9;
  58.     client::SelectPlayerIconWidget *selectPlayerIconWidget;
  59.     QLineEdit *lineEditPlayerPassword;
  60.     QFrame *line_2;
  61.     QLabel *label_11;
  62.     QLineEdit *lineEditGamePasswordSpectators;
  63.     QSpinBox *spinBoxMaxSpectators;
  64.     QLabel *label_6;
  65.     QLabel *label_12;
  66.     QSpinBox *spinBoxCharacterNumber;
  67.     QLabel *labelCharacterNumber;
  68.     QCheckBox *checkBoxEnableCharacterChoice;
  69.     QLabel *labelEnableCharacterChoice;
  70.     QFrame *line;
  71.     QLabel *label_5;
  72.  
  73.     void setupUi(QDialog *CreateGameDialog)
  74.     {
  75.         if (CreateGameDialog->objectName().isEmpty())
  76.             CreateGameDialog->setObjectName(QStringLiteral("CreateGameDialog"));
  77.         CreateGameDialog->resize(374, 369);
  78.         QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
  79.         sizePolicy.setHorizontalStretch(0);
  80.         sizePolicy.setVerticalStretch(0);
  81.         sizePolicy.setHeightForWidth(CreateGameDialog->sizePolicy().hasHeightForWidth());
  82.         CreateGameDialog->setSizePolicy(sizePolicy);
  83.         gridLayout = new QGridLayout(CreateGameDialog);
  84.         gridLayout->setObjectName(QStringLiteral("gridLayout"));
  85.         horizontalLayout = new QHBoxLayout();
  86.         horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
  87.         spinBoxMinPlayers = new QSpinBox(CreateGameDialog);
  88.         spinBoxMinPlayers->setObjectName(QStringLiteral("spinBoxMinPlayers"));
  89.  
  90.         horizontalLayout->addWidget(spinBoxMinPlayers);
  91.  
  92.         label_4 = new QLabel(CreateGameDialog);
  93.         label_4->setObjectName(QStringLiteral("label_4"));
  94.         label_4->setMaximumSize(QSize(16, 16777215));
  95.         label_4->setAlignment(Qt::AlignCenter);
  96.  
  97.         horizontalLayout->addWidget(label_4);
  98.  
  99.         spinBoxMaxPlayers = new QSpinBox(CreateGameDialog);
  100.         spinBoxMaxPlayers->setObjectName(QStringLiteral("spinBoxMaxPlayers"));
  101.  
  102.         horizontalLayout->addWidget(spinBoxMaxPlayers);
  103.  
  104.  
  105.         gridLayout->addLayout(horizontalLayout, 2, 2, 1, 4);
  106.  
  107.         verticalLayout = new QVBoxLayout();
  108.         verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
  109.         radioButtonOrderChronological = new QRadioButton(CreateGameDialog);
  110.         radioButtonOrderChronological->setObjectName(QStringLiteral("radioButtonOrderChronological"));
  111.         radioButtonOrderChronological->setChecked(true);
  112.  
  113.         verticalLayout->addWidget(radioButtonOrderChronological);
  114.  
  115.         radioButtonOrderRandom = new QRadioButton(CreateGameDialog);
  116.         radioButtonOrderRandom->setObjectName(QStringLiteral("radioButtonOrderRandom"));
  117.  
  118.         verticalLayout->addWidget(radioButtonOrderRandom);
  119.  
  120.  
  121.         gridLayout->addLayout(verticalLayout, 8, 2, 1, 4);
  122.  
  123.         horizontalSpacer = new QSpacerItem(213, 28, QSizePolicy::Preferred, QSizePolicy::Minimum);
  124.  
  125.         gridLayout->addItem(horizontalSpacer, 14, 0, 1, 3);
  126.  
  127.         label = new QLabel(CreateGameDialog);
  128.         label->setObjectName(QStringLiteral("label"));
  129.  
  130.         gridLayout->addWidget(label, 0, 0, 1, 2);
  131.  
  132.         lineEditGameName = new QLineEdit(CreateGameDialog);
  133.         lineEditGameName->setObjectName(QStringLiteral("lineEditGameName"));
  134.         QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
  135.         sizePolicy1.setHorizontalStretch(0);
  136.         sizePolicy1.setVerticalStretch(0);
  137.         sizePolicy1.setHeightForWidth(lineEditGameName->sizePolicy().hasHeightForWidth());
  138.         lineEditGameName->setSizePolicy(sizePolicy1);
  139.  
  140.         gridLayout->addWidget(lineEditGameName, 0, 2, 1, 4);
  141.  
  142.         label_2 = new QLabel(CreateGameDialog);
  143.         label_2->setObjectName(QStringLiteral("label_2"));
  144.  
  145.         gridLayout->addWidget(label_2, 1, 0, 1, 2);
  146.  
  147.         lineEditGameDescription = new QLineEdit(CreateGameDialog);
  148.         lineEditGameDescription->setObjectName(QStringLiteral("lineEditGameDescription"));
  149.         sizePolicy1.setHeightForWidth(lineEditGameDescription->sizePolicy().hasHeightForWidth());
  150.         lineEditGameDescription->setSizePolicy(sizePolicy1);
  151.  
  152.         gridLayout->addWidget(lineEditGameDescription, 1, 2, 1, 4);
  153.  
  154.         label_3 = new QLabel(CreateGameDialog);
  155.         label_3->setObjectName(QStringLiteral("label_3"));
  156.  
  157.         gridLayout->addWidget(label_3, 2, 0, 1, 2);
  158.  
  159.         lineEditGamePasswordPlayers = new QLineEdit(CreateGameDialog);
  160.         lineEditGamePasswordPlayers->setObjectName(QStringLiteral("lineEditGamePasswordPlayers"));
  161.         sizePolicy1.setHeightForWidth(lineEditGamePasswordPlayers->sizePolicy().hasHeightForWidth());
  162.         lineEditGamePasswordPlayers->setSizePolicy(sizePolicy1);
  163.  
  164.         gridLayout->addWidget(lineEditGamePasswordPlayers, 5, 2, 2, 4);
  165.  
  166.         lineEditPlayerName = new QLineEdit(CreateGameDialog);
  167.         lineEditPlayerName->setObjectName(QStringLiteral("lineEditPlayerName"));
  168.  
  169.         gridLayout->addWidget(lineEditPlayerName, 10, 1, 1, 4);
  170.  
  171.         pushButtonCreate = new QPushButton(CreateGameDialog);
  172.         pushButtonCreate->setObjectName(QStringLiteral("pushButtonCreate"));
  173.  
  174.         gridLayout->addWidget(pushButtonCreate, 14, 3, 1, 1);
  175.  
  176.         pushButtonCancel = new QPushButton(CreateGameDialog);
  177.         pushButtonCancel->setObjectName(QStringLiteral("pushButtonCancel"));
  178.  
  179.         gridLayout->addWidget(pushButtonCancel, 14, 4, 1, 2);
  180.  
  181.         label_8 = new QLabel(CreateGameDialog);
  182.         label_8->setObjectName(QStringLiteral("label_8"));
  183.  
  184.         gridLayout->addWidget(label_8, 3, 0, 1, 2);
  185.  
  186.         spinBoxAIPlayers = new QSpinBox(CreateGameDialog);
  187.         spinBoxAIPlayers->setObjectName(QStringLiteral("spinBoxAIPlayers"));
  188.  
  189.         gridLayout->addWidget(spinBoxAIPlayers, 3, 2, 1, 4);
  190.  
  191.         label_7 = new QLabel(CreateGameDialog);
  192.         label_7->setObjectName(QStringLiteral("label_7"));
  193.         QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Preferred);
  194.         sizePolicy2.setHorizontalStretch(0);
  195.         sizePolicy2.setVerticalStretch(0);
  196.         sizePolicy2.setHeightForWidth(label_7->sizePolicy().hasHeightForWidth());
  197.         label_7->setSizePolicy(sizePolicy2);
  198.  
  199.         gridLayout->addWidget(label_7, 10, 0, 1, 1);
  200.  
  201.         label_9 = new QLabel(CreateGameDialog);
  202.         label_9->setObjectName(QStringLiteral("label_9"));
  203.  
  204.         gridLayout->addWidget(label_9, 12, 0, 1, 1);
  205.  
  206.         selectPlayerIconWidget = new client::SelectPlayerIconWidget(CreateGameDialog);
  207.         selectPlayerIconWidget->setObjectName(QStringLiteral("selectPlayerIconWidget"));
  208.         selectPlayerIconWidget->setFrameShape(QFrame::Box);
  209.         selectPlayerIconWidget->setFrameShadow(QFrame::Raised);
  210.  
  211.         gridLayout->addWidget(selectPlayerIconWidget, 10, 5, 3, 1);
  212.  
  213.         lineEditPlayerPassword = new QLineEdit(CreateGameDialog);
  214.         lineEditPlayerPassword->setObjectName(QStringLiteral("lineEditPlayerPassword"));
  215.  
  216.         gridLayout->addWidget(lineEditPlayerPassword, 14, 1, 1, 4);
  217.  
  218.         line_2 = new QFrame(CreateGameDialog);
  219.         line_2->setObjectName(QStringLiteral("line_2"));
  220.         line_2->setFrameShape(QFrame::HLine);
  221.         line_2->setFrameShadow(QFrame::Sunken);
  222.  
  223.         gridLayout->addWidget(line_2, 15, 0, 1, 6);
  224.  
  225.         label_11 = new QLabel(CreateGameDialog);
  226.         label_11->setObjectName(QStringLiteral("label_11"));
  227.  
  228.         gridLayout->addWidget(label_11, 9, 0, 1, 2);
  229.  
  230.         lineEditGamePasswordSpectators = new QLineEdit(CreateGameDialog);
  231.         lineEditGamePasswordSpectators->setObjectName(QStringLiteral("lineEditGamePasswordSpectators"));
  232.         lineEditGamePasswordSpectators->setEnabled(false);
  233.         sizePolicy1.setHeightForWidth(lineEditGamePasswordSpectators->sizePolicy().hasHeightForWidth());
  234.         lineEditGamePasswordSpectators->setSizePolicy(sizePolicy1);
  235.  
  236.         gridLayout->addWidget(lineEditGamePasswordSpectators, 9, 2, 1, 4);
  237.  
  238.         spinBoxMaxSpectators = new QSpinBox(CreateGameDialog);
  239.         spinBoxMaxSpectators->setObjectName(QStringLiteral("spinBoxMaxSpectators"));
  240.         spinBoxMaxSpectators->setEnabled(false);
  241.         spinBoxMaxSpectators->setMinimum(-1);
  242.  
  243.         gridLayout->addWidget(spinBoxMaxSpectators, 4, 2, 1, 4);
  244.  
  245.         label_6 = new QLabel(CreateGameDialog);
  246.         label_6->setObjectName(QStringLiteral("label_6"));
  247.  
  248.         gridLayout->addWidget(label_6, 10, 0, 1, 2);
  249.  
  250.         label_12 = new QLabel(CreateGameDialog);
  251.         label_12->setObjectName(QStringLiteral("label_12"));
  252.  
  253.         gridLayout->addWidget(label_12, 4, 0, 1, 2);
  254.  
  255.         spinBoxCharacterNumber = new QSpinBox(CreateGameDialog);
  256.         spinBoxCharacterNumber->setObjectName(QStringLiteral("spinBoxCharacterNumber"));
  257.  
  258.         gridLayout->addWidget(spinBoxCharacterNumber, 5, 2, 1, 2);
  259.  
  260.         labelCharacterNumber = new QLabel(CreateGameDialog);
  261.         labelCharacterNumber->setObjectName(QStringLiteral("labelCharacterNumber"));
  262.  
  263.         gridLayout->addWidget(labelCharacterNumber, 5, 0, 1, 2);
  264.  
  265.         checkBoxEnableCharacterChoice = new QCheckBox(CreateGameDialog);
  266.         checkBoxEnableCharacterChoice->setObjectName(QStringLiteral("checkBoxEnableCharacterChoice"));
  267.  
  268.         gridLayout->addWidget(checkBoxEnableCharacterChoice, 6, 2, 1, 2);
  269.  
  270.         labelEnableCharacterChoice = new QLabel(CreateGameDialog);
  271.         labelEnableCharacterChoice->setObjectName(QStringLiteral("labelEnableCharacterChoice"));
  272.  
  273.         gridLayout->addWidget(labelEnableCharacterChoice, 6, 0, 1, 2);
  274.  
  275.         line = new QFrame(CreateGameDialog);
  276.         line->setObjectName(QStringLiteral("line"));
  277.         line->setFrameShape(QFrame::HLine);
  278.         line->setFrameShadow(QFrame::Sunken);
  279.  
  280.         gridLayout->addWidget(line, 11, 0, 1, 6);
  281.  
  282.         label_5 = new QLabel(CreateGameDialog);
  283.         label_5->setObjectName(QStringLiteral("label_5"));
  284.  
  285.         gridLayout->addWidget(label_5, 7, 0, 2, 2);
  286.  
  287. #ifndef QT_NO_SHORTCUT
  288.         label_4->setBuddy(spinBoxMaxPlayers);
  289.         label->setBuddy(lineEditGameName);
  290.         label_2->setBuddy(lineEditGameDescription);
  291.         label_3->setBuddy(spinBoxMinPlayers);
  292.         label_8->setBuddy(spinBoxAIPlayers);
  293.         label_7->setBuddy(lineEditPlayerName);
  294.         label_9->setBuddy(lineEditPlayerPassword);
  295.         label_11->setBuddy(lineEditGamePasswordSpectators);
  296.         label_6->setBuddy(radioButtonOrderChronological);
  297.         label_12->setBuddy(spinBoxMaxSpectators);
  298.         labelCharacterNumber->setBuddy(spinBoxCharacterNumber);
  299.         labelEnableCharacterChoice->setBuddy(checkBoxEnableCharacterChoice);
  300.         label_5->setBuddy(lineEditGamePasswordPlayers);
  301. #endif // QT_NO_SHORTCUT
  302.         QWidget::setTabOrder(lineEditGameName, lineEditGameDescription);
  303.         QWidget::setTabOrder(lineEditGameDescription, spinBoxMinPlayers);
  304.         QWidget::setTabOrder(spinBoxMinPlayers, spinBoxMaxPlayers);
  305.         QWidget::setTabOrder(spinBoxMaxPlayers, spinBoxAIPlayers);
  306.         QWidget::setTabOrder(spinBoxAIPlayers, spinBoxMaxSpectators);
  307.         QWidget::setTabOrder(spinBoxMaxSpectators, spinBoxCharacterNumber);
  308.         QWidget::setTabOrder(spinBoxCharacterNumber, checkBoxEnableCharacterChoice);
  309.         QWidget::setTabOrder(checkBoxEnableCharacterChoice, lineEditGamePasswordPlayers);
  310.         QWidget::setTabOrder(lineEditGamePasswordPlayers, lineEditGamePasswordSpectators);
  311.         QWidget::setTabOrder(lineEditGamePasswordSpectators, radioButtonOrderChronological);
  312.         QWidget::setTabOrder(radioButtonOrderChronological, radioButtonOrderRandom);
  313.         QWidget::setTabOrder(radioButtonOrderRandom, lineEditPlayerName);
  314.         QWidget::setTabOrder(lineEditPlayerName, lineEditPlayerPassword);
  315.         QWidget::setTabOrder(lineEditPlayerPassword, pushButtonCreate);
  316.         QWidget::setTabOrder(pushButtonCreate, pushButtonCancel);
  317.  
  318.         retranslateUi(CreateGameDialog);
  319.         QObject::connect(pushButtonCancel, SIGNAL(clicked()), CreateGameDialog, SLOT(close()));
  320.  
  321.         QMetaObject::connectSlotsByName(CreateGameDialog);
  322.     } // setupUi
  323.  
  324.     void retranslateUi(QDialog *CreateGameDialog)
  325.     {
  326.         CreateGameDialog->setWindowTitle(QApplication::translate("CreateGameDialog", "Create a game", 0));
  327.         label_4->setText(QApplication::translate("CreateGameDialog", "-", 0));
  328.         radioButtonOrderChronological->setText(QApplication::translate("CreateGameDialog", "Chronological", 0));
  329.         radioButtonOrderRandom->setText(QApplication::translate("CreateGameDialog", "Random", 0));
  330. #ifndef QT_NO_TOOLTIP
  331.         label->setToolTip(QString());
  332. #endif // QT_NO_TOOLTIP
  333.         label->setText(QApplication::translate("CreateGameDialog", "Game Name", 0));
  334.         label_2->setText(QApplication::translate("CreateGameDialog", "Game Description", 0));
  335.         label_3->setText(QApplication::translate("CreateGameDialog", "Number of Players", 0));
  336.         pushButtonCreate->setText(QApplication::translate("CreateGameDialog", "Create", 0));
  337.         pushButtonCancel->setText(QApplication::translate("CreateGameDialog", "Cancel", 0));
  338.         label_8->setText(QApplication::translate("CreateGameDialog", "Number of AI Players", 0));
  339.         label_7->setText(QApplication::translate("CreateGameDialog", "Player Name", 0));
  340. #ifndef QT_NO_TOOLTIP
  341.         label_9->setToolTip(QApplication::translate("CreateGameDialog", "You can set your password here. This password will be required to reconnect to your player in case of disconnection.", 0));
  342. #endif // QT_NO_TOOLTIP
  343.         label_9->setText(QApplication::translate("CreateGameDialog", "Player Password", 0));
  344.         selectPlayerIconWidget->setText(QApplication::translate("CreateGameDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
  345. "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
  346. "p, li { white-space: pre-wrap; }\n"
  347. "</style></head><body style=\" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
  348. "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Avatar</span></p></body></html>", 0));
  349. #ifndef QT_NO_TOOLTIP
  350.         label_11->setToolTip(QApplication::translate("CreateGameDialog", "This is the password that is required to join the game as a spectator.", 0));
  351. #endif // QT_NO_TOOLTIP
  352.         label_11->setText(QApplication::translate("CreateGameDialog", "Password for Spectators", 0));
  353.         spinBoxMaxSpectators->setSpecialValueText(QApplication::translate("CreateGameDialog", "Infinity", 0));
  354.         label_6->setText(QApplication::translate("CreateGameDialog", "Order of Players", 0));
  355.         label_12->setText(QApplication::translate("CreateGameDialog", "Max. Number of Spectators", 0));
  356.         labelCharacterNumber->setText(QApplication::translate("CreateGameDialog", "Number of characters of a player", 0));
  357.         labelEnableCharacterChoice->setText(QApplication::translate("CreateGameDialog", "Enable character choice", 0));
  358. #ifndef QT_NO_TOOLTIP
  359.         label_5->setToolTip(QApplication::translate("CreateGameDialog", "This is the password that is required to join the game as a player.", 0));
  360. #endif // QT_NO_TOOLTIP
  361.         label_5->setText(QApplication::translate("CreateGameDialog", "Password for Players", 0));
  362.     } // retranslateUi
  363.  
  364. };
  365.  
  366. namespace Ui {
  367.     class CreateGameDialog: public Ui_CreateGameDialog {};
  368. } // namespace Ui
  369.  
  370. QT_END_NAMESPACE
  371.  
  372. #endif // UI_CREATEGAMEDIALOG_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement