30 QPushButton * pbUndo = addButton(tr("Undo"), pageLayout, 0, 0); |
30 QPushButton * pbUndo = addButton(tr("Undo"), pageLayout, 0, 0); |
31 QPushButton * pbClear = addButton(tr("Clear"), pageLayout, 1, 0); |
31 QPushButton * pbClear = addButton(tr("Clear"), pageLayout, 1, 0); |
32 QPushButton * pbLoad = addButton(tr("Load"), pageLayout, 2, 0); |
32 QPushButton * pbLoad = addButton(tr("Load"), pageLayout, 2, 0); |
33 QPushButton * pbSave = addButton(tr("Save"), pageLayout, 3, 0); |
33 QPushButton * pbSave = addButton(tr("Save"), pageLayout, 3, 0); |
34 |
34 |
|
35 |
35 BtnBack = addButton(":/res/Exit.png", pageLayout, 5, 0, true); |
36 BtnBack = addButton(":/res/Exit.png", pageLayout, 5, 0, true); |
|
37 connect(BtnBack, SIGNAL(clicked()), this, SIGNAL(goBack())); |
|
38 |
36 |
39 |
37 drawMapWidget = new DrawMapWidget(this); |
40 drawMapWidget = new DrawMapWidget(this); |
38 pageLayout->addWidget(drawMapWidget, 0, 1, 5, 1); |
41 pageLayout->addWidget(drawMapWidget, 0, 1, 5, 1); |
39 |
42 |
40 connect(pbUndo, SIGNAL(clicked()), drawMapWidget, SLOT(undo())); |
43 connect(pbUndo, SIGNAL(clicked()), drawMapWidget, SLOT(undo())); |