#ifndef _UIDOCUMENTCONTROLLER_H_ #define _UIDOCUMENTCONTROLLER_H_ #include "UIDocument.h" #include "QtDocument.h" #include namespace FD { class UIDocumentController : public QObject, public UIDocument { Q_OBJECT; public: UIDocumentController(const std::string &name, QtDocument *doc); //Inherited from UIDocument, must be reimplemented virtual UINetwork *newNetwork(const std::string &_name, UINetwork::Type type); virtual UINetwork *newNetwork(xmlNodePtr _net); void updateView(); private : QtDocument *m_QtDocument; }; } //namespace FD #endif