6#include <QtCore/QtGlobal>
7#if QT_VERSION >= 0x050000
8#include <QtWidgets/QWidget>
10#include <QtGui/QWidget>
92 idoc::CSingleDocumentManagerBase,
93 iqtgui::TRestorableGuiWrap<
94 iqtgui::TGuiComponentBase<QWidget> > >
106 I_ASSIGN(m_defaultDocumentTitleAttrPtr,
"DefaultDocumentTitle",
"Name of the untitled document",
true,
"<no name>");
107 I_ASSIGN(m_documentTemplateCompPtr,
"DocumentTemplate",
"Document template",
true,
"DocumentTemplate");
108 I_ASSIGN(m_rememberOpenDocumentParamPtr,
"RememberOpenDocumentOnExit",
"If enabled, restores open document from previous session",
false,
"RememberOpenDocumentOnExit");
Basic implementation of a template-based single document manager.
Provide set of user actions needed to manage documents in MVC (Model View Controller) concept.
Common interface for a document template.
Interface for objects which can be enabled/disabled.
Qt-based workspace implementation of a single document manager.
virtual void OnDocumentClosed() override
Called before document is closed.
iqtgui::IGuiObject * m_lastViewPtr
CSingleDocumentWorkspaceGuiComp()
virtual void OnRestoreSettings(const QSettings &settings) override
virtual void OnViewRemoved(istd::IPolymorphic *viewPtr) override
Called before view is removed.
virtual void OnDocumentRegistered() override
Called after document is registered.
virtual void SetActiveView(istd::IPolymorphic *viewPtr) override
Indicate that some view is active now.
virtual void OnGuiDestroyed() override
Called just before GUI is released.
I_TEXTATTR(m_defaultDocumentTitleAttrPtr)
virtual bool QueryDocumentSave(bool *ignoredPtr) override
Query user if this document can be closed.
virtual void OnGuiCreated() override
Called just after GUI is initialized.
QString m_organizationName
virtual void OnTryClose(bool *ignoredPtr=NULL) override
Called when the application is attempting to close.
virtual void UpdateTitle()
Update titles of views or all views of specified document.
virtual void OnEndChanges(const ChangeSet &changeSet) override
Callback function for end change event.
virtual QString GenerateDocumentTitle() const
Generate the title of the current document.
virtual void OnComponentCreated() override
iqtdoc::TQtDocumentManagerWrap< idoc::CSingleDocumentManagerBase, iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QWidget > > > BaseClass
virtual QString GetOpenFilePath(const QByteArray *documentTypeIdPtr=NULL) const override
Gets open file names.
virtual void OnViewRegistered(istd::IPolymorphic *viewPtr) override
Called after view is registered.
QString m_applicationName
Wrapper for general functionality of a Qt based document workspace.
Common interface for GUI objects used in ACF component context.
Base class for all Qt GUI componentes.
A wrapper for saving/restoring of GUI component states in the application settings.
Set of change flags (its IDs).
Base interface for all used interfaces and implementations.
This package contains Qt implementations related to Document/View concept.