Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Friends | List of all members
iqtdoc::CMultiDocumentWorkspaceGuiComp Class Reference

This class is a Qt-based workspace implementation of a document manager. More...

#include <CMultiDocumentWorkspaceGuiComp.h>

Inheritance diagram for iqtdoc::CMultiDocumentWorkspaceGuiComp:
iqtdoc::TQtDocumentManagerWrap< idoc::CMultiDocumentManagerBase, iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMdiArea > > > ibase::ICommandsProvider idoc::CMultiDocumentManagerBase iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMdiArea > > istd::IChangeable idoc::CTmplBasedDocumentManagerBase iqtgui::TGuiComponentBase< QMdiArea > istd::IPolymorphic idoc::IDocumentManager iqtgui::CGuiComponentBase istd::IChangeable idoc::IDocumentTypesInfo ibase::TLocalizableWrap< icomp::CComponentBase > iqtgui::IGuiObject istd::IPolymorphic istd::IPolymorphic icomp::CComponentBase istd::IPolymorphic icomp::IComponent istd::IPolymorphic

Public Types

enum  GroupId { GI_WINDOW = 0x300, GI_DOCUMENT, GI_VIEW }
 
typedef
iqtdoc::TQtDocumentManagerWrap
< idoc::CMultiDocumentManagerBase,
iqtgui::TRestorableGuiWrap
< iqtgui::TGuiComponentBase
< QMdiArea > > > 
BaseClass
 
- Public Types inherited from iqtdoc::TQtDocumentManagerWrap< idoc::CMultiDocumentManagerBase, iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMdiArea > > >
typedef
idoc::CMultiDocumentManagerBase 
BaseClass
 
typedef BaseClass::Ids Ids
 
- Public Types inherited from idoc::CMultiDocumentManagerBase
enum  ModelId { MI_UNDO_MANAGER = 1, MI_DOCUMENT }
 
- Public Types inherited from idoc::IDocumentManager
enum  ChangeFlags {
  CF_DOCUMENT_RENAMED = 0x834d670, CF_DOCUMENT_CREATED, CF_DOCUMENT_REMOVED, CF_DOCUMENT_COUNT_CHANGED,
  CF_VIEW_ACTIVATION_CHANGED
}
 Possible changes in the mananger data model. More...
 
enum  OperationFlags {
  OF_FILE_NEW = 0x0001, OF_FILE_OPEN = 0x0002, OF_FILE_SAVE = 0x0004, OF_FILE_SAVE_AS = 0x0008,
  OF_KNOWN_PATH = 0x0010
}
 Flags describing possible operations. More...
 
typedef QMap< QString, QByteArray > FileToTypeMap
 Map from file path to ducument type ID's. More...
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 0, CF_ALL_DATA, CF_ANY, CF_DESTROYING,
  CF_DELEGATED, CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0, SO_OBSERVE = 1 << 0, SO_COPY = 1 << 1, SO_CLONE = 1 << 2,
  SO_COMPARE = 1 << 3, SO_RESET = 1 << 4
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT, CM_WITHOUT_REFS, CM_WITH_REFS, CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 
- Public Types inherited from idoc::IDocumentTypesInfo
enum  SupportedFeatures { SF_NEW_DOCUMENT = 0x0001, SF_EDIT_DOCUMENT = 0x0010, SF_DEFAULT = 0xffff }
 Enumeration for supported types of operation with the document. More...
 
typedef QVector< QByteArray > Ids
 
- Public Types inherited from iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMdiArea > >
typedef
iqtgui::TGuiComponentBase
< QMdiArea > 
BaseClass
 
- Public Types inherited from iqtgui::TGuiComponentBase< QMdiArea >
typedef CGuiComponentBase BaseClass
 
- Public Types inherited from iqtgui::CGuiComponentBase
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from ibase::ICommandsProvider
enum  ChangeFlags { CF_COMMANDS = 0x62b7e8 }
 

Public Member Functions

 CMultiDocumentWorkspaceGuiComp ()
 
virtual const
ibase::IHierarchicalCommand
GetCommands () const
 Get list of menu commands. More...
 
virtual void OnTryClose (bool *ignoredPtr=NULL)
 Called on trying to close application. More...
 
- Public Member Functions inherited from iqtdoc::TQtDocumentManagerWrap< idoc::CMultiDocumentManagerBase, iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMdiArea > > >
virtual QString GetSaveFilePath (const QByteArray &documentTypeId, const istd::IChangeable *dataObjectPtr, const QString &currentFilePath) const
 
- Public Member Functions inherited from idoc::CMultiDocumentManagerBase
 CMultiDocumentManagerBase ()
 Default constructor. More...
 
virtual idoc::IUndoManagerGetUndoManagerForDocument (const istd::IChangeable *documentPtr) const
 Return undo mananger for document documenPtr. More...
 
virtual int GetDocumentsCount () const
 Get number of opened documents. More...
 
virtual istd::IChangeableGetDocumentFromIndex (int index, DocumentInfo *documentInfoPtr=NULL) const
 Get document at specified index. More...
 
virtual int GetViewsCount (int documentIndex) const
 Get number of view for specified document. More...
 
virtual istd::IPolymorphicGetViewFromIndex (int documentIndex, int viewIndex) const
 Get single view using its and document indices. More...
 
virtual istd::IPolymorphicGetActiveView () const
 Return the active document. More...
 
virtual istd::IChangeableGetDocumentFromView (const istd::IPolymorphic &view, DocumentInfo *documentInfoPtr=NULL) const
 Return the document assigned to view. More...
 
virtual istd::IPolymorphicAddViewToDocument (const istd::IChangeable &document, const QByteArray &viewTypeId=QByteArray())
 Add a new view to the document. More...
 
virtual QByteArray GetDocumentTypeId (const istd::IChangeable &document) const
 Get ID of document type managed by this object. More...
 
virtual bool InsertNewDocument (const QByteArray &documentTypeId, bool createView=true, const QByteArray &viewTypeId="", istd::IChangeable **newDocumentPtr=NULL, bool beQuiet=false, bool *ignoredPtr=NULL)
 Creates a new document with the document ID documentTypeId. More...
 
virtual bool OpenDocument (const QByteArray *documentTypeIdPtr, const QString *fileNamePtr=NULL, bool createView=true, const QByteArray &viewTypeId="", istd::IChangeable **documentPtr=NULL, FileToTypeMap *loadedMapPtr=NULL, bool beQuiet=false, bool *ignoredPtr=NULL)
 Opens document(s) from the file list. More...
 
virtual bool SaveDocument (int documentIndex=-1, bool requestFileName=false, FileToTypeMap *savedMapPtr=NULL, bool beQuiet=false, bool *ignoredPtr=NULL)
 Save document. More...
 
virtual bool SaveDirtyDocuments (bool beQuiet=false, bool *ignoredPtr=NULL)
 Ask user (optional) and save all dirty (changed) documents. More...
 
virtual bool CloseDocument (int documentIndex=-1, bool beQuiet=false, bool *ignoredPtr=NULL)
 Close document and all its views. More...
 
virtual bool CloseView (istd::IPolymorphic *viewPtr=NULL, bool beQuiet=false, bool *ignoredPtr=NULL)
 Close view. More...
 
- Public Member Functions inherited from idoc::CTmplBasedDocumentManagerBase
 CTmplBasedDocumentManagerBase ()
 
virtual int GetAllowedOperationFlags (const istd::IPolymorphic *viewPtr=NULL) const
 Get flags of allowed operations. More...
 
virtual bool IsFeatureSupported (int featureFlags, const QByteArray &documentTypeId) const
 Return true, if the feature(s) is supported by this document template. More...
 
virtual Ids GetDocumentTypeIds () const
 Get list of supported document ID's can be created for specified file. More...
 
virtual QString GetDocumentTypeName (const QByteArray &documentTypeId) const
 Get human readable name of some document type ID. More...
 
virtual ifile::IFileTypeInfoGetDocumentFileTypeInfo (const QByteArray &documentTypeId) const
 Get file type information object for some selected document type. More...
 
virtual Ids GetDocumentTypeIdsForFile (const QString &filePath) const
 Get list of supported document ID's can be created for specified file. More...
 
virtual QString GetDefaultDirectory (const QString &sugestedDir="", const QByteArray *documentTypeIdPtr=NULL) const
 Return default directory for specified document type. More...
 
- Public Member Functions inherited from istd::IChangeable
virtual int GetSupportedOperations () const
 Get set of flags for supported operations. More...
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 Copy this object from another one. More...
 
virtual bool IsEqual (const IChangeable &object) const
 Compare this object with another object. More...
 
virtual IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object. More...
 
virtual bool ResetData (CompatibilityMode mode=CM_WITHOUT_REFS)
 Reset data to its default state. More...
 
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction. More...
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction. More...
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes. More...
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from iqtgui::TGuiComponentBase< QMdiArea >
 TGuiComponentBase ()
 
virtual QMdiArea * GetQtWidget () const
 
virtual QWidget * CreateQtWidget (QWidget *parentPtr)
 Create slave widget object. More...
 
- Public Member Functions inherited from iqtgui::CGuiComponentBase
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, IVisualStatus, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, istd::IChangeable, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, imod::IModel, ExtractVisualStatus)
 
 CGuiComponentBase ()
 
bool IsGuiShown () const
 
virtual bool IsGuiCreated () const
 Inform if GUI was initilized. More...
 
virtual QWidget * GetWidget () const
 Get access to internal QWidget object. More...
 
- Public Member Functions inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
 TLocalizableWrap ()
 
virtual void EnableLocalization (bool enableLocalization=true)
 If enabled, listen to the language change event from the application context. More...
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 

Protected Slots

void OnWindowActivated (QMdiSubWindow *window)
 
void OnCloseAllViews ()
 

Protected Member Functions

void UpdateAllTitles ()
 Update titles of views or all views of specified document. More...
 
iqtgui::IGuiObjectGetViewFromWidget (const QWidget &widget) const
 Find view object associated with specified Qt widget. More...
 
int GetDocumentIndexFromWidget (const QWidget &widget) const
 Find index of document associated with specified Qt widget. More...
 
virtual void CreateConnections ()
 Creates signal/slot connnections for the implementation. More...
 
void OnViewsCountChanged ()
 Called when number of windows changed. More...
 
virtual istd::IChangeableOpenSingleDocument (const QString &filePath, bool createView, const QByteArray &viewTypeId, QByteArray &documentTypeId, bool beQuiet, bool *ignoredPtr)
 Open single document using its file path. More...
 
virtual void SetActiveView (istd::IPolymorphic *viewPtr)
 Indicate that some view is active now. More...
 
virtual bool eventFilter (QObject *sourcePtr, QEvent *eventPtr)
 
virtual void OnRestoreSettings (const QSettings &settings)
 
virtual void OnSaveSettings (QSettings &settings) const
 
virtual void CloseAllDocuments ()
 
virtual QStringList GetOpenFilePaths (const QByteArray *documentTypeIdPtr=NULL) const
 Gets open file names. More...
 
virtual void OnViewRegistered (istd::IPolymorphic *viewPtr, const SingleDocumentData &documentData)
 Called after view is registered. More...
 
virtual void OnViewRemoved (istd::IPolymorphic *viewPtr)
 Called before view is removed. More...
 
virtual bool QueryDocumentSave (const SingleDocumentData &info, bool *ignoredPtr)
 Query user if this document should be saved. More...
 
virtual void OnGuiCreated ()
 Called just after GUI is initialized. More...
 
virtual void OnGuiDestroyed ()
 Called just before GUI is released. More...
 
virtual void OnRetranslate ()
 Called when non-GUI elements (like commands) should be retranslated. More...
 
virtual void OnGuiRetranslate ()
 Called from widget event filter when GUI should be retranslated. More...
 
virtual void OnComponentCreated ()
 
virtual void OnEndChanges (const ChangeSet &changeSet)
 Callback function for end change event. More...
 
- Protected Member Functions inherited from iqtdoc::TQtDocumentManagerWrap< idoc::CMultiDocumentManagerBase, iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMdiArea > > >
QStringList CreateFileDialogFilters (const QByteArray *documentTypeIdPtr, const istd::IChangeable *dataObjectPtr, int flags) const
 Creates the filter for the file selection dialog. More...
 
void UpdateLastDirectory (const QString &filePath) const
 
virtual QStringList GetOpenFilePathesFromDialog (const QByteArray *documentTypeIdPtr) const
 
- Protected Member Functions inherited from idoc::CMultiDocumentManagerBase
SingleDocumentDataGetSingleDocumentData (int index) const
 Get internal document data object. More...
 
SingleDocumentDataGetActiveDocumentInfo () const
 Get document info assigned to active view. More...
 
SingleDocumentDataGetDocumentInfoFromView (const istd::IPolymorphic &view) const
 Get document info assigned to specified view. More...
 
SingleDocumentDataGetDocumentInfoFromPath (const QString &filePath) const
 Get document info assigned to specified file. More...
 
int GetDocumentIndex (const SingleDocumentData &document) const
 Get position index of the given document in the document list. More...
 
virtual SingleDocumentDataCreateUnregisteredDocument (const QByteArray &documentTypeId, bool createView, const QByteArray &viewTypeId, bool initialize, bool beQuiet, bool *ignoredPtr) const
 Create instance of specified document without attaching to this manager. More...
 
bool RegisterDocument (SingleDocumentData *documentPtr)
 Register (attach) created document as new working document. More...
 
bool SerializeOpenDocumentList (iser::IArchive &archive)
 Serializes open documents information. More...
 
- Protected Member Functions inherited from idoc::CTmplBasedDocumentManagerBase
virtual const
idoc::IDocumentTemplate
GetDocumentTemplate () const
 
void SetDocumentTemplate (const idoc::IDocumentTemplate *documentTemplatePtr)
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges ()
 Callback function for begin change event. More...
 
- Protected Member Functions inherited from iqtgui::TRestorableGuiWrap< iqtgui::TGuiComponentBase< QMdiArea > >
virtual bool CreateGui (QWidget *parentPtr)
 
virtual bool DestroyGui ()
 
- Protected Member Functions inherited from iqtgui::CGuiComponentBase
virtual void OnGuiShown ()
 Called from widget event filter when slave widget is shown. More...
 
virtual void OnGuiHidden ()
 Called from widget event filter when slave widget is hidden. More...
 
virtual bool OnKeyPressed (QKeyEvent *event)
 Called from widget event filter when key is pressed. More...
 
void SetStatusIcon (const QIcon &icon)
 Set status icon;. More...
 
void SetStatusText (const QString &text)
 Set status text;. More...
 
virtual void OnLanguageChanged ()
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual void OnComponentDestroyed ()
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 

Friends

class imod::TModelWrap< DocumentSelectionInfo >
 

Additional Inherited Members

- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes. More...
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set. More...
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set. More...
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set. More...
 
- Protected Types inherited from idoc::CMultiDocumentManagerBase
typedef istd::TDelPtr
< istd::IChangeable
DocumentPtr
 
typedef istd::TDelPtr
< idoc::IUndoManager
UndoManagerPtr
 
typedef istd::TDelPtr
< istd::IPolymorphic
ViewPtr
 
typedef QList< ViewInfoViews
 
- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 
- Protected Attributes inherited from iqtgui::CGuiComponentBase
imod::TModelWrap< VisualStatusm_visualStatus
 

Detailed Description

This class is a Qt-based workspace implementation of a document manager.

Definition at line 34 of file CMultiDocumentWorkspaceGuiComp.h.

Member Typedef Documentation

Definition at line 47 of file CMultiDocumentWorkspaceGuiComp.h.

Member Enumeration Documentation

Enumerator
GI_WINDOW 
GI_DOCUMENT 
GI_VIEW 

Definition at line 66 of file CMultiDocumentWorkspaceGuiComp.h.

Constructor & Destructor Documentation

iqtdoc::CMultiDocumentWorkspaceGuiComp::CMultiDocumentWorkspaceGuiComp ( )

Member Function Documentation

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::CloseAllDocuments ( )
protectedvirtual

Reimplemented from idoc::CMultiDocumentManagerBase.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::CreateConnections ( )
protectedvirtual

Creates signal/slot connnections for the implementation.

virtual bool iqtdoc::CMultiDocumentWorkspaceGuiComp::eventFilter ( QObject *  sourcePtr,
QEvent *  eventPtr 
)
protectedvirtual

Reimplemented from iqtgui::CGuiComponentBase.

virtual const ibase::IHierarchicalCommand* iqtdoc::CMultiDocumentWorkspaceGuiComp::GetCommands ( ) const
virtual

Get list of menu commands.

These commands will be integrated in global menu system, independent from actual selected view. For support of normal pull down menu, depth of this tree structure should be at least 3.

Reimplemented from ibase::ICommandsProvider.

int iqtdoc::CMultiDocumentWorkspaceGuiComp::GetDocumentIndexFromWidget ( const QWidget &  widget) const
protected

Find index of document associated with specified Qt widget.

Parameters
widgetQt widget representing view.
Returns
index of document or negative value if nothing is found.
virtual QStringList iqtdoc::CMultiDocumentWorkspaceGuiComp::GetOpenFilePaths ( const QByteArray *  documentTypeIdPtr = NULL) const
protectedvirtual

Gets open file names.

Implements idoc::CMultiDocumentManagerBase.

iqtgui::IGuiObject* iqtdoc::CMultiDocumentWorkspaceGuiComp::GetViewFromWidget ( const QWidget &  widget) const
protected

Find view object associated with specified Qt widget.

Parameters
widgetQt widget representing view.
Returns
associated view or NULL if nothing is found.
void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnCloseAllViews ( )
protectedslot
virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnComponentCreated ( )
protectedvirtual

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnEndChanges ( const ChangeSet changeSet)
protectedvirtual

Callback function for end change event.

Reimplemented from istd::IChangeable.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnGuiCreated ( )
protectedvirtual

Called just after GUI is initialized.

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnGuiDestroyed ( )
protectedvirtual

Called just before GUI is released.

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnGuiRetranslate ( )
protectedvirtual

Called from widget event filter when GUI should be retranslated.

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnRestoreSettings ( const QSettings &  settings)
protectedvirtual
virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnRetranslate ( )
protectedvirtual

Called when non-GUI elements (like commands) should be retranslated.

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnSaveSettings ( QSettings &  settings) const
protectedvirtual
virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnTryClose ( bool *  ignoredPtr = NULL)
virtual

Called on trying to close application.

Parameters
ignoredPtrif it is not NULL, ignoring of close is allowed. In this case implementation should set pointed value to true.

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnViewRegistered ( istd::IPolymorphic viewPtr,
const SingleDocumentData documentData 
)
protectedvirtual

Called after view is registered.

Implements idoc::CMultiDocumentManagerBase.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnViewRemoved ( istd::IPolymorphic viewPtr)
protectedvirtual

Called before view is removed.

Implements idoc::CMultiDocumentManagerBase.

void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnViewsCountChanged ( )
protected

Called when number of windows changed.

void iqtdoc::CMultiDocumentWorkspaceGuiComp::OnWindowActivated ( QMdiSubWindow *  window)
protectedslot
virtual istd::IChangeable* iqtdoc::CMultiDocumentWorkspaceGuiComp::OpenSingleDocument ( const QString &  filePath,
bool  createView,
const QByteArray &  viewTypeId,
QByteArray &  documentTypeId,
bool  beQuiet,
bool *  ignoredPtr 
)
protectedvirtual

Open single document using its file path.

Parameters
filePathfile path.
createViewif true, instance of view will be created.
viewTypeIdoptional view type ID should be created.
documentTypeIdoutput parameter returning loaded ducument type ID.
Returns
instance of created document or NULL if error is occured.

Reimplemented from idoc::CMultiDocumentManagerBase.

virtual bool iqtdoc::CMultiDocumentWorkspaceGuiComp::QueryDocumentSave ( const SingleDocumentData info,
bool *  ignoredPtr 
)
protectedvirtual

Query user if this document should be saved.

Parameters
infodocument info of document will be closed.
ignoredPtroptional return flag indicating that user ignored this close operation.

Implements idoc::CMultiDocumentManagerBase.

virtual void iqtdoc::CMultiDocumentWorkspaceGuiComp::SetActiveView ( istd::IPolymorphic viewPtr)
protectedvirtual

Indicate that some view is active now.

Reimplemented from idoc::CMultiDocumentManagerBase.

void iqtdoc::CMultiDocumentWorkspaceGuiComp::UpdateAllTitles ( )
protected

Update titles of views or all views of specified document.

Parameters
optionaldocument object, if you want to update only views of single document.

Friends And Related Function Documentation

friend class imod::TModelWrap< DocumentSelectionInfo >
friend

Definition at line 183 of file CMultiDocumentWorkspaceGuiComp.h.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy