C++ main module for gpm Package  1.0
Public Member Functions | Protected Member Functions | List of all members
GPMG_GraphElementWindow Class Referenceabstract

this class describes a window to display graph element properties More...

#include <GPMG_GraphElementWindow.h>

Inheritance diagram for GPMG_GraphElementWindow:
Inheritance graph
[legend]
Collaboration diagram for GPMG_GraphElementWindow:
Collaboration graph
[legend]

Public Member Functions

virtual void toDoAfterThisSetting ()
 
void setGraphElement (GPM_Graph *pGraph, GPM_Graph *tGraph, const tFlag &graphType, GPM_Graph *graph, SP::GPM_GraphElement item)
 set the graph element properties More...
 
SP::GPM_GraphElement getWorkingGraphElement ()
 get the working graph element attached to the window More...
 
SPC::GPM_GraphElement getGraphElement () const
 get the graph element attached to the window More...
 
tFlag getGraphType () const
 get the graph type More...
 
GPM_GraphgetGraph () const
 get the graph More...
 
GPM_GraphgetPatternGraph () const
 get the pattern graph More...
 
GPM_GraphgetTransformerGraph () const
 get the graph More...
 
tBoolean isReadOnly () const
 return true if the graph element is read only More...
 
tBoolean isShown () const
 return true if the graph element has to be shown More...
 
virtual void componentClicked (GUI_ActionComponent &compo)
 method called when a component are clicked on More...
 
virtual void loadFromUIClass (const UI_Class &mclass)
 how to load the object from a Meta Model class More...
 
virtual void saveToUIClass (UI_Class &mclass) const
 how to save the object from a mate model class More...
 
virtual void modalWindowClosed (const tFlag &id, const CORE_Object *value)
 method called when a modal window is closed More...
 
virtual void enableComponents (const tBoolean &isReadOnly)
 enable the components More...
 
virtual void updateValues ()
 update the components values put the values of model object to gui components re-copy the graph element into working graph element More...
 

Protected Member Functions

 GPMG_GraphElementWindow ()
 build a GPMG_GraphElementWindow More...
 
virtual ~GPMG_GraphElementWindow (void)
 destroy a GPMG_GraphElementWindow More...
 
virtual void createComponentsInLayout (const int &index, GUI_VBoxLayout &hlayout)=0
 create the components in special rows with id index More...
 
virtual void resetValues ()
 reset values More...
 
virtual void updateTriggerVariables (const tString &letter, GUI_ComboBox &cb)
 update trigger variables More...
 

Detailed Description

this class describes a window to display graph element properties

Constructor & Destructor Documentation

GPMG_GraphElementWindow::GPMG_GraphElementWindow ( )
protected
GPMG_GraphElementWindow::~GPMG_GraphElementWindow ( void  )
protectedvirtual

Member Function Documentation

void GPMG_GraphElementWindow::componentClicked ( GUI_ActionComponent &  compo)
virtual
virtual void GPMG_GraphElementWindow::createComponentsInLayout ( const int &  index,
GUI_VBoxLayout &  hlayout 
)
protectedpure virtual

create the components in special rows with id index

Implemented in GPMG_VertexWindow, and GPMG_EdgeWindow.

void GPMG_GraphElementWindow::enableComponents ( const tBoolean isReadOnly)
virtual

enable the components

Reimplemented in GPMG_VertexWindow, and GPMG_EdgeWindow.

References null, GPMG_Project::PATTERN_GRAPH, GPMG_Project::PT_CONNECTION, and GPMG_Project::TRANSFORMER_GRAPH.

Referenced by GPMG_EdgeWindow::enableComponents(), and GPMG_VertexWindow::enableComponents().

Here is the caller graph for this function:

GPM_Graph* GPMG_GraphElementWindow::getGraph ( ) const
inline

get the graph

Referenced by componentClicked(), and GPMG_VertexWindow::updateValues().

Here is the caller graph for this function:

SPC::GPM_GraphElement GPMG_GraphElementWindow::getGraphElement ( ) const
inline

get the graph element attached to the window

Referenced by GPMG_EdgeWindow::componentClicked(), and GPMG_EdgeWindow::updateValues().

Here is the caller graph for this function:

tFlag GPMG_GraphElementWindow::getGraphType ( ) const
inline

get the graph type

Referenced by componentClicked().

Here is the caller graph for this function:

GPM_Graph* GPMG_GraphElementWindow::getPatternGraph ( ) const
inline

get the pattern graph

Referenced by componentClicked().

Here is the caller graph for this function:

GPM_Graph* GPMG_GraphElementWindow::getTransformerGraph ( ) const
inline

get the graph

Referenced by componentClicked().

Here is the caller graph for this function:

SP::GPM_GraphElement GPMG_GraphElementWindow::getWorkingGraphElement ( )
inline

get the working graph element attached to the window

Referenced by GPMG_VertexWindow::componentClicked(), GPMG_VertexWindow::enableComponents(), GPMG_VertexWindow::updateTriggerVariables(), and GPMG_VertexWindow::updateValues().

Here is the caller graph for this function:

tBoolean GPMG_GraphElementWindow::isReadOnly ( ) const

return true if the graph element is read only

References null.

Referenced by componentClicked(), and setGraphElement().

Here is the caller graph for this function:

tBoolean GPMG_GraphElementWindow::isShown ( ) const

return true if the graph element has to be shown

References null.

Referenced by GPMG_MainWindow::showEdge(), and GPMG_MainWindow::showVertex().

Here is the caller graph for this function:

void GPMG_GraphElementWindow::loadFromUIClass ( const UI_Class &  mclass)
virtual

how to load the object from a Meta Model class

void GPMG_GraphElementWindow::modalWindowClosed ( const tFlag id,
const CORE_Object value 
)
virtual

method called when a modal window is closed

void GPMG_GraphElementWindow::resetValues ( )
protectedvirtual

reset values

Reimplemented in GPMG_VertexWindow, and GPMG_EdgeWindow.

References null.

Referenced by GPMG_EdgeWindow::resetValues(), GPMG_VertexWindow::resetValues(), and updateValues().

Here is the caller graph for this function:

void GPMG_GraphElementWindow::saveToUIClass ( UI_Class &  mclass) const
virtual

how to save the object from a mate model class

void GPMG_GraphElementWindow::setGraphElement ( GPM_Graph pGraph,
GPM_Graph tGraph,
const tFlag graphType,
GPM_Graph graph,
SP::GPM_GraphElement  item 
)

set the graph element properties

References CORE_Object::getSharedPointer(), isReadOnly(), null, and updateValues().

Referenced by GPMG_EdgeWindow::setEdge(), and GPMG_VertexWindow::setNode().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void GPMG_GraphElementWindow::toDoAfterThisSetting ( )
inlinevirtual

Reimplemented in GPMG_VertexWindow.

Referenced by GPMG_VertexWindow::toDoAfterThisSetting().

Here is the caller graph for this function:

virtual void GPMG_GraphElementWindow::updateTriggerVariables ( const tString letter,
GUI_ComboBox &  cb 
)
inlineprotectedvirtual

update trigger variables

Reimplemented in GPMG_VertexWindow.

Referenced by updateValues().

Here is the caller graph for this function:

void GPMG_GraphElementWindow::updateValues ( )
virtual

update the components values put the values of model object to gui components re-copy the graph element into working graph element

Reimplemented in GPMG_VertexWindow, and GPMG_EdgeWindow.

References null, GPM_ModelFunction::parseVarName(), GPMG_Project::PATTERN_GRAPH, GPMG_Project::PT_CONNECTION, resetValues(), CORE_Integer::toString(), GPMG_Project::TRANSFORMER_GRAPH, tString, updateTriggerVariables(), and GPM_ModelFunction::varNameToString().

Referenced by setGraphElement(), GPMG_EdgeWindow::updateValues(), and GPMG_VertexWindow::updateValues().

Here is the call graph for this function:

Here is the caller graph for this function:


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