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>
|
|
|
|
|
2012-11-22 12:30:02 +00:00
|
|
|
#include "model/doc/documentmanager.hpp"
|
|
|
|
#include "view/doc/viewmanager.hpp"
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
int mNewDocumentIndex; ///< \todo remove when the proper new document dialogue is implemented.
|
|
|
|
|
2012-11-22 12:30:02 +00:00
|
|
|
CSMDoc::DocumentManager mDocumentManager;
|
|
|
|
CSVDoc::ViewManager mViewManager;
|
|
|
|
|
|
|
|
// not implemented
|
|
|
|
Editor (const Editor&);
|
|
|
|
Editor& operator= (const Editor&);
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Editor();
|
|
|
|
|
|
|
|
int run();
|
|
|
|
///< \return error status
|
2012-11-23 13:05:49 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
void createDocument();
|
2012-11-22 12:30:02 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|