1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00
OpenMW/apps/opencs/editor.hpp

45 lines
931 B
C++
Raw Normal View History

2012-11-22 13:30:02 +01:00
#ifndef CS_EDITOR_H
#define CS_EDITOR_H
2012-11-23 14:05:49 +01:00
#include <QObject>
2012-11-22 13:30:02 +01:00
#include "model/doc/documentmanager.hpp"
2013-02-02 16:14:58 +01:00
2012-11-22 13:30:02 +01:00
#include "view/doc/viewmanager.hpp"
2013-02-02 16:14:58 +01:00
#include "view/doc/startup.hpp"
#include "view/doc/opendialog.hpp"
2012-11-22 13:30:02 +01:00
namespace CS
{
2012-11-23 14:05:49 +01:00
class Editor : public QObject
2012-11-22 13:30:02 +01:00
{
2012-11-23 14:05:49 +01:00
Q_OBJECT
int mNewDocumentIndex; ///< \todo remove when the proper new document dialogue is implemented.
2012-11-22 13:30:02 +01:00
CSMDoc::DocumentManager mDocumentManager;
CSVDoc::ViewManager mViewManager;
2013-02-02 16:14:58 +01:00
CSVDoc::StartupDialogue mStartup;
OpenDialog mOpenDialog;
2012-11-22 13:30:02 +01:00
// not implemented
Editor (const Editor&);
Editor& operator= (const Editor&);
public:
Editor();
int run();
///< \return error status
2012-11-23 14:05:49 +01:00
2013-02-02 16:14:58 +01:00
private slots:
2012-11-23 14:05:49 +01:00
void createDocument();
2013-02-02 16:14:58 +01:00
void loadDocument();
void openFiles();
2012-11-22 13:30:02 +01:00
};
}
#endif