1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00
OpenMW/apps/opencs/editor.cpp

21 lines
337 B
C++
Raw Normal View History

2012-11-22 12:30:02 +00:00
#include "editor.hpp"
#include <QtGui/QApplication>
2012-11-22 13:10:23 +00:00
CS::Editor::Editor() : mViewManager (mDocumentManager)
2012-11-22 12:30:02 +00:00
{
}
void CS::Editor::createDocument()
{
CSMDoc::Document *document = mDocumentManager.addDocument();
mViewManager.addView (document);
}
int CS::Editor::run()
{
createDocument();
return QApplication::exec();
}