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

51 lines
1021 B
C++
Raw Normal View History

2012-11-22 12:30:02 +00:00
#ifndef CS_EDITOR_H
#define CS_EDITOR_H
2012-11-23 13:05:49 +00:00
#include <QObject>
#ifndef Q_MOC_RUN
#include <components/files/configurationmanager.hpp>
#endif
2012-11-22 12:30:02 +00:00
#include "model/doc/documentmanager.hpp"
2013-02-02 15:14:58 +00:00
2012-11-22 12:30:02 +00:00
#include "view/doc/viewmanager.hpp"
2013-02-02 15:14:58 +00:00
#include "view/doc/startup.hpp"
#include "view/doc/filedialog.hpp"
2012-11-22 12:30:02 +00:00
namespace CS
{
2012-11-23 13:05:49 +00:00
class Editor : public QObject
2012-11-22 12:30:02 +00:00
{
2012-11-23 13:05:49 +00:00
Q_OBJECT
2012-11-22 12:30:02 +00:00
CSMDoc::DocumentManager mDocumentManager;
CSVDoc::ViewManager mViewManager;
2013-02-02 15:14:58 +00:00
CSVDoc::StartupDialogue mStartup;
FileDialog mFileDialog;
Files::ConfigurationManager mCfgMgr;
void setupDataFiles();
2012-11-22 12:30:02 +00:00
// not implemented
Editor (const Editor&);
Editor& operator= (const Editor&);
public:
Editor();
int run();
///< \return error status
2012-11-23 13:05:49 +00:00
2013-02-02 15:14:58 +00:00
private slots:
2012-11-23 13:05:49 +00:00
void createDocument();
2013-02-02 15:14:58 +00:00
void loadDocument();
void openFiles();
void createNewFile();
2012-11-22 12:30:02 +00:00
};
}
#endif