VPTissue Reference Manual
SimShell::Gui::HasUnsavedChangesDummy Class Reference

Dummy UnsavedChanges class. More...

#include <HasUnsavedChanges.h>

Inheritance diagram for SimShell::Gui::HasUnsavedChangesDummy:
Inheritance graph
Collaboration diagram for SimShell::Gui::HasUnsavedChangesDummy:
Collaboration graph

Public Member Functions

virtual bool IsOpened () const
 
void SetChildren (ChildrenType &&c)
 
- Public Member Functions inherited from SimShell::Gui::HasUnsavedChanges
 HasUnsavedChanges (std::string &&title)
 
virtual ~HasUnsavedChanges ()
 Virtual destructor.
 
ChildrenType::iterator begin ()
 Get iterator to first child.
 
ChildrenType::const_iterator begin () const
 Get iterator to first child.
 
ChildrenType::iterator end ()
 Get iterator to one position after last child.
 
ChildrenType::const_iterator end () const
 Get iterator to one position after last child.
 
void ForceClose ()
 Force this object and its children to go back to unopened state so it can be safely deleted.
 
const std::string & GetTitle ()
 Get title of this object.
 
bool IsClean () const
 
bool Save ()
 Try to save this widget's (and its children's) changes. More...
 
bool SaveAndClose ()
 Try to save this object (and its children) and, if successful, close them all.
 

Protected Member Functions

virtual void InternalForceClose ()
 Implementation should only close THIS widget, not its children.
 
virtual bool InternalIsClean () const
 The result should be true only if THIS widget is in clean state.
 
virtual bool InternalSave ()
 Implementation should only save THIS widget. More...
 
- Protected Member Functions inherited from SimShell::Gui::HasUnsavedChanges
void AddChild (ChildrenType::value_type &&v)
 Add child.
 
virtual void InternalPreForceClose ()
 Additional things to do before closing children of this widget.
 
void SetChildren (ChildrenType &&c)
 Set children.
 

Additional Inherited Members

- Public Types inherited from SimShell::Gui::HasUnsavedChanges
typedef std::vector< HasUnsavedChanges * > ChildrenType
 

Detailed Description

Dummy UnsavedChanges class.

Definition at line 109 of file HasUnsavedChanges.h.

Member Function Documentation

virtual bool SimShell::Gui::HasUnsavedChangesDummy::InternalSave ( )
inlineprotectedvirtual

Implementation should only save THIS widget.

The result should be true only if THIS widget is in clean state.

Implements SimShell::Gui::HasUnsavedChanges.

Definition at line 121 of file HasUnsavedChanges.h.

virtual bool SimShell::Gui::HasUnsavedChangesDummy::IsOpened ( ) const
inlinevirtual
Returns
Whether this widget (ignoring its children) is in opened state.

Implements SimShell::Gui::HasUnsavedChanges.

Definition at line 116 of file HasUnsavedChanges.h.


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