1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 00:45:31 +00:00
openmw-tes3mp/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();
}