--- a/QTfrontend/pages.cpp Tue Dec 21 15:12:06 2010 -0500
+++ b/QTfrontend/pages.cpp Tue Dec 21 21:56:34 2010 +0100
@@ -1107,23 +1107,25 @@
QGridLayout * pageLayout = new QGridLayout(this);
pWeapons = new SelWeaponWidget(cAmmoNumber, this);
- pageLayout->addWidget(pWeapons, 0, 0, 1, 6);
+ pageLayout->addWidget(pWeapons, 0, 0, 1, 5);
- BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, true);
- BtnDefault = addButton(tr("Default"), pageLayout, 1, 2);
- BtnNew = addButton(tr("New"), pageLayout, 1, 3);
- BtnDelete = addButton(tr("Delete"), pageLayout, 1, 4);
- BtnSave = addButton(":/res/Save.png", pageLayout, 1, 5, true);
+ BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, 2, 1, true);
+ BtnDefault = addButton(tr("Default"), pageLayout, 1, 3);
+ BtnNew = addButton(tr("New"), pageLayout, 1, 2);
+ BtnCopy = addButton(tr("Copy"), pageLayout, 2, 2);
+ BtnDelete = addButton(tr("Delete"), pageLayout, 2, 3);
+ BtnSave = addButton(":/res/Save.png", pageLayout, 1, 4, 2, 1, true);
BtnSave->setStyleSheet("QPushButton{margin: 24px 0px 0px 0px;}");
BtnBack->setFixedHeight(BtnSave->height());
BtnBack->setStyleSheet("QPushButton{margin-top: 31px;}");
selectWeaponSet = new QComboBox(this);
- pageLayout->addWidget(selectWeaponSet, 1, 1);
+ pageLayout->addWidget(selectWeaponSet, 1, 1, 2, 1);
connect(BtnDefault, SIGNAL(clicked()), pWeapons, SLOT(setDefault()));
connect(BtnSave, SIGNAL(clicked()), pWeapons, SLOT(save()));
connect(BtnNew, SIGNAL(clicked()), pWeapons, SLOT(newWeaponsName()));
+ connect(BtnCopy, SIGNAL(clicked()), pWeapons, SLOT(copy()));
connect(selectWeaponSet, SIGNAL(currentIndexChanged(const QString&)), pWeapons, SLOT(setWeaponsName(const QString&)));
}