1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 11:15:36 +00:00
openmw/apps/opencs/view/world/genericcreator.cpp

29 lines
649 B
C++
Raw Normal View History

2013-07-26 19:09:23 +00:00
#include "genericcreator.hpp"
#include <QHBoxLayout>
#include <QPushButton>
#include <QLineEdit>
CSVWorld::GenericCreator::GenericCreator (CSMWorld::Data& data, QUndoStack& undoStack)
2013-07-26 19:09:23 +00: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()
{
}