Version: 8.3.0
YACS::HMI::SubjectHPContainer Class Reference

#include <guiObservers.hxx>

Inheritance diagram for YACS::HMI::SubjectHPContainer:
Collaboration diagram for YACS::HMI::SubjectHPContainer:

Public Member Functions

 SubjectHPContainer (YACS::ENGINE::HomogeneousPoolContainer *container, Subject *parent)
 
void registerUndoDestroy ()
 
YACS::ENGINE::ContainergetContainer () const
 
std::string getLabelForHuman () const
 
- Public Member Functions inherited from YACS::HMI::SubjectContainerBase
 SubjectContainerBase (YACS::ENGINE::Container *container, Subject *parent)
 
virtual ~SubjectContainerBase ()
 
virtual std::string getName ()
 
virtual bool setName (std::string name)
 
virtual std::map< std::string,
std::string > 
getProperties ()
 
virtual bool setProperties (std::map< std::string, std::string > properties)
 
virtual SubjectReferenceattachComponent (SubjectComponent *component)
 
virtual void detachComponent (SubjectComponent *component)
 
virtual void moveComponent (SubjectReference *reference)
 
virtual void removeSubComponentFromSet (SubjectComponent *component)
 
virtual void notifyComponentsChange (GuiEvent event, int type, Subject *son)
 
virtual void clean (Command *command=0)
 
void localclean (Command *command=0)
 
bool isUsed ()
 
TypeOfElem getType ()
 
- Public Member Functions inherited from YACS::HMI::Subject
 Subject (Subject *parent=0)
 
virtual ~Subject ()
 
virtual void attach (GuiObserver *obs)
 
virtual void detach (GuiObserver *obs)
 
virtual void select (bool isSelected)
 
virtual void update (GuiEvent event, int type, Subject *son)
 
virtual std::vector< std::string > knownProperties ()
 
virtual SubjectgetParent ()
 
virtual void setParent (Subject *son)
 
virtual bool destroy (Subject *son)
 From user action in Ihm, destroy an object. More...
 
virtual void loadChildren ()
 
virtual void loadLinks ()
 
virtual void addSubjectReference (Subject *ref)
 
void localclean (Command *command=0)
 
void registerUndoDestroy ()
 
void askRegisterUndoDestroy ()
 
bool isDestructible ()
 
virtual void setProgress (std::string newProgress)
 
virtual std::string getProgress ()
 
- Public Member Functions inherited from YACS::ENGINE::Observer
virtual void notifyObserver (Node *object, const std::string &event)
 
virtual void notifyObserver2 (Node *object, const std::string &event, void *something)
 
virtual ~Observer ()
 

Additional Inherited Members

- Static Public Member Functions inherited from YACS::HMI::SubjectContainerBase
static SubjectContainerBaseNew (YACS::ENGINE::Container *container, Subject *parent)
 
- Protected Attributes inherited from YACS::HMI::SubjectContainerBase
YACS::ENGINE::Container_container
 
std::set< SubjectComponent * > _subComponentSet
 
std::map< SubjectComponent
*, SubjectReference * > 
_subReferenceMap
 

Detailed Description

Definition at line 450 of file guiObservers.hxx.

Constructor & Destructor Documentation

SubjectHPContainer::SubjectHPContainer ( YACS::ENGINE::HomogeneousPoolContainer container,
Subject parent 
)

Definition at line 4579 of file guiObservers.cxx.

4579  :SubjectContainerBase(container,parent)
4580 {
4581 }

Member Function Documentation

YACS::ENGINE::Container * SubjectHPContainer::getContainer ( ) const
virtual

Reimplemented from YACS::HMI::SubjectContainerBase.

Definition at line 4583 of file guiObservers.cxx.

References YACS::HMI::SubjectContainerBase::_container, and PMMLBasicsTestLauncher::ret.

4584 {
4585  if(!_container)
4586  return 0;
4587  else
4588  {
4589  YACS::ENGINE::HomogeneousPoolContainer *ret(dynamic_cast<YACS::ENGINE::HomogeneousPoolContainer *>(_container));
4590  if(!ret)
4591  throw Exception("Invalid container type in SubjectHPContainer !");
4592  return ret;
4593  }
4594 }
std::string YACS::HMI::SubjectHPContainer::getLabelForHuman ( ) const
inlinevirtual

Implements YACS::HMI::SubjectContainerBase.

Definition at line 456 of file guiObservers.hxx.

456 { return std::string("Salome Homogeneous Pool Container"); }
void SubjectHPContainer::registerUndoDestroy ( )

Definition at line 4596 of file guiObservers.cxx.

References YACS::HMI::Invocator::add(), DEBTRACE, YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getInvoc(), and YACS::HMI::SubjectContainerBase::getName().

4597 {
4598  DEBTRACE("SubjectHPContainer::registerUndoDestroy");
4599  Command *command = new CommandAddHPContainer(getName(),"");
4600  GuiContext::getCurrent()->getInvoc()->add(command);
4601 }

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