down = new QPushButton("v");
add = new QPushButton("+");
remove = new QPushButton("-");
+ play = new QPushButton(">");
editor = new EditorWidget(parent);
list->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
buttonBox->addWidget(down);
buttonBox->addWidget(add);
buttonBox->addWidget(remove);
+ buttonBox->addWidget(play);
listBox->addWidget(list);
listBox->addLayout(buttonBox);
connect(down, SIGNAL(clicked()), this, SLOT(MoveLevelDown()));
connect(add, SIGNAL(clicked()), this, SLOT(AddLevel()));
connect(remove, SIGNAL(clicked()), this, SLOT(DeleteLevel()));
+ connect(play, SIGNAL(clicked()), this, SLOT(PlayLevel()));
}
SetEditorLevel(currentRow);
}
+
+void EditorWindow::PlayLevel(void)
+{
+ emit SetupLevel(&(editor->levelStorage[editor->currentLevel]));
+}
+