1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00
OpenMW/apps/opencs/view/world/genericcreator.cpp

29 lines
649 B
C++
Raw Normal View History

2013-07-26 21:09:23 +02:00
#include "genericcreator.hpp"
#include <QHBoxLayout>
#include <QPushButton>
#include <QLineEdit>
CSVWorld::GenericCreator::GenericCreator (CSMWorld::Data& data, QUndoStack& undoStack)
2013-07-26 21:09:23 +02:00
{
QHBoxLayout *layout = new QHBoxLayout;
QLineEdit *name = new QLineEdit;
layout->addWidget (name, 1);
QPushButton *createButton = new QPushButton ("Create");
layout->addWidget (createButton);
QPushButton *cancelButton = new QPushButton ("Cancel");
layout->addWidget (cancelButton);
connect (cancelButton, SIGNAL (clicked (bool)), this, SIGNAL (done()));
setLayout (layout);
}
void CSVWorld::GenericCreator::reset()
{
}