diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-30 00:50:55 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-30 00:50:55 -0400 |
| commit | dd34e949dc86f26b77809c6b0a0c06593da4e8e3 (patch) | |
| tree | d64e18aae835ad8a289e01b37d1c460de2a556ab /sigmodr/widgets/mapeditor/MapEditor.cpp | |
| parent | 9dfbc2522932964957013b844325bf3a9402cad4 (diff) | |
Connect up the UI for setting walkable area view
Diffstat (limited to 'sigmodr/widgets/mapeditor/MapEditor.cpp')
| -rw-r--r-- | sigmodr/widgets/mapeditor/MapEditor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sigmodr/widgets/mapeditor/MapEditor.cpp b/sigmodr/widgets/mapeditor/MapEditor.cpp index ea129233..535f673a 100644 --- a/sigmodr/widgets/mapeditor/MapEditor.cpp +++ b/sigmodr/widgets/mapeditor/MapEditor.cpp @@ -68,6 +68,7 @@ MapEditor::MapEditor(Map* map, QWidget* parent) : ui_showTiles = formWidget->findChild<QCheckBox*>("varShowTiles"); ui_showTrainers = formWidget->findChild<QCheckBox*>("varShowTrainers"); ui_showWarps = formWidget->findChild<QCheckBox*>("varShowWarps"); + ui_drawMask = formWidget->findChild<QCheckBox*>("varDrawMask"); ui_buttonAdd->setIcon(KIcon("list-add")); ui_buttonRemove->setIcon(KIcon("list-remove")); ui_buttonTop->setIcon(KIcon("arrow-up-double")); @@ -106,6 +107,7 @@ void MapEditor::reset() ui_width->setValue(m_map->width()); ui_height->setValue(m_map->height()); m_rect->setGridSize(ui_gridSize->value()); + ui_drawMask->setChecked(false); makeConnections(); } @@ -146,4 +148,5 @@ void MapEditor::makeConnections() connect(ui_showTiles, SIGNAL(stateChanged(int)), m_scene, SLOT(showTiles(int))); connect(ui_showTrainers, SIGNAL(stateChanged(int)), m_scene, SLOT(showTrainers(int))); connect(ui_showWarps, SIGNAL(stateChanged(int)), m_scene, SLOT(showWarps(int))); + connect(ui_drawMask, SIGNAL(toggled(bool)), m_scene, SIGNAL(maskTiles(bool))); } |
