10#include <QtCore/QtGlobal>
11#include <QtWidgets/QWidget>
34 idoc::CSingleDocumentManagerBase,
35 istdgui::TRestorableGuiWrap<
36 istdgui::TGuiComponentBase<QWidget> > >
48 I_ASSIGN(m_documentTemplateCompPtr,
"DocumentTemplate",
"Document template",
true,
"DocumentTemplate");
49 I_ASSIGN(m_rememberOpenDocumentParamPtr,
"RememberOpenDocumentOnExit",
"If enabled, restores open document from previous session",
false,
"RememberOpenDocumentOnExit");
79 QString
GetOpenFilePath(
const QByteArray* documentTypeIdPtr =
nullptr)
const override;
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.
Qt-based workspace implementation of a single document manager.
void OnEndChanges(const ChangeSet &changeSet) override
Callback function for end change event.
CSingleDocumentWorkspaceGuiComp()
QString m_applicationName
istdgui::IGuiObject * m_lastViewPtr
bool QueryDocumentSave(bool *ignoredPtr) override
Query user if this document can be closed.
void OnViewRemoved(istd::IPolymorphic *viewPtr) override
Called before view is removed.
void OnTryClose(bool *ignoredPtr=nullptr) override
Called on trying to close application.
void OnRestoreSettings(const QSettings &settings) override
void SetActiveView(istd::IPolymorphic *viewPtr) override
Indicate that some view is active now.
void OnGuiDestroyed() override
Called just before GUI is released.
virtual void UpdateTitle()
Update titles of views or all views of specified document.
QString GetOpenFilePath(const QByteArray *documentTypeIdPtr=nullptr) const override
Gets open file names.
void OnComponentCreated() override
void OnGuiCreated() override
Called just after GUI is initialized.
idocgui::TQtDocumentManagerWrap< idoc::CSingleDocumentManagerBase, istdgui::TRestorableGuiWrap< istdgui::TGuiComponentBase< QWidget > > > BaseClass
QString m_organizationName
virtual QString GenerateDocumentTitle() const
Generate the title of the current document.
void OnViewRegistered(istd::IPolymorphic *viewPtr) override
Called after view is registered.
Wrapper for general functionality of a Qt based document workspace.
Interface for objects which can be enabled/disabled.
Set of change flags (its IDs).
Common interface for GUI objects using in component context.
Base class for all Qt GUI componentes.
A wrapper for saving/restoring of GUI component states in the application settings.
This package contains Qt implementations related to Document/View concept.