50 GBoxOptionsLayout->addWidget(GameSchemes, 0, 1); |
50 GBoxOptionsLayout->addWidget(GameSchemes, 0, 1); |
51 connect(GameSchemes, SIGNAL(currentIndexChanged(int)), this, SLOT(schemeChanged(int))); |
51 connect(GameSchemes, SIGNAL(currentIndexChanged(int)), this, SLOT(schemeChanged(int))); |
52 |
52 |
53 GBoxOptionsLayout->addWidget(new QLabel(QLabel::tr("Game scheme"), GBoxOptions), 0, 0); |
53 GBoxOptionsLayout->addWidget(new QLabel(QLabel::tr("Game scheme"), GBoxOptions), 0, 0); |
54 |
54 |
55 |
55 QPixmap pmEdit(":/res/edit.png"); |
|
56 |
56 QPushButton * goToSchemePage = new QPushButton(GBoxOptions); |
57 QPushButton * goToSchemePage = new QPushButton(GBoxOptions); |
57 goToSchemePage->setText(tr("Edit schemes")); |
58 //goToSchemePage->setText(tr("Edit schemes")); |
58 GBoxOptionsLayout->addWidget(goToSchemePage, 1, 0, 1, 2); |
59 goToSchemePage->setIconSize(pmEdit.size()); |
|
60 goToSchemePage->setIcon(pmEdit); |
|
61 goToSchemePage->setMaximumWidth(pmEdit.width() + 6); |
|
62 GBoxOptionsLayout->addWidget(goToSchemePage, 0, 2); |
59 connect(goToSchemePage, SIGNAL(clicked()), this, SIGNAL(goToSchemes())); |
63 connect(goToSchemePage, SIGNAL(clicked()), this, SIGNAL(goToSchemes())); |
60 |
64 |
61 GBoxOptionsLayout->addWidget(new QLabel(QLabel::tr("Weapons"), GBoxOptions), 2, 0); |
65 GBoxOptionsLayout->addWidget(new QLabel(QLabel::tr("Weapons"), GBoxOptions), 1, 0); |
62 |
66 |
63 WeaponsName = new QComboBox(GBoxOptions); |
67 WeaponsName = new QComboBox(GBoxOptions); |
64 GBoxOptionsLayout->addWidget(WeaponsName, 2, 1); |
68 GBoxOptionsLayout->addWidget(WeaponsName, 1, 1); |
65 |
69 |
66 connect(WeaponsName, SIGNAL(currentIndexChanged(int)), this, SLOT(ammoChanged(int))); |
70 connect(WeaponsName, SIGNAL(currentIndexChanged(int)), this, SLOT(ammoChanged(int))); |
67 |
71 |
68 QPushButton * goToWeaponPage = new QPushButton(GBoxOptions); |
72 QPushButton * goToWeaponPage = new QPushButton(GBoxOptions); |
69 goToWeaponPage->setText(tr("Edit weapons")); |
73 //goToWeaponPage->setText(tr("Edit weapons")); |
70 GBoxOptionsLayout->addWidget(goToWeaponPage, 3, 0, 1, 2); |
74 goToWeaponPage->setIconSize(pmEdit.size()); |
|
75 goToWeaponPage->setIcon(pmEdit); |
|
76 goToWeaponPage->setMaximumWidth(pmEdit.width() + 6); |
|
77 GBoxOptionsLayout->addWidget(goToWeaponPage, 1, 2); |
71 |
78 |
72 connect(goToWeaponPage, SIGNAL(clicked()), this, SLOT(jumpToWeapons())); |
79 connect(goToWeaponPage, SIGNAL(clicked()), this, SLOT(jumpToWeapons())); |
73 |
80 |
74 connect(pMapContainer, SIGNAL(seedChanged(const QString &)), this, SLOT(seedChanged(const QString &))); |
81 connect(pMapContainer, SIGNAL(seedChanged(const QString &)), this, SLOT(seedChanged(const QString &))); |
75 connect(pMapContainer, SIGNAL(mapChanged(const QString &)), this, SLOT(mapChanged(const QString &))); |
82 connect(pMapContainer, SIGNAL(mapChanged(const QString &)), this, SLOT(mapChanged(const QString &))); |