C++ main module for gpm Package
1.0
|
this class describes a window to display graph element properties More...
#include <GPMG_GraphElementWindow.h>
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_Graph * | getGraph () const |
get the graph More... | |
GPM_Graph * | getPatternGraph () const |
get the pattern graph More... | |
GPM_Graph * | getTransformerGraph () 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... | |
this class describes a window to display graph element properties
|
protected |
build a GPMG_GraphElementWindow
|
protectedvirtual |
destroy a GPMG_GraphElementWindow
|
virtual |
method called when a component are clicked on
Reimplemented in GPMG_VertexWindow, and GPMG_EdgeWindow.
References GPMG_Project::getClassFactory(), GPMG_Project::getGlobalFunctions(), GPMG_Project::getGlobalVariables(), getGraph(), getGraphType(), getPatternGraph(), getTransformerGraph(), isReadOnly(), CORE_Out::New(), GPM_ModelClassFactory::newRule(), null, CORE_Integer::parseInt(), GPMG_MainWindow::showGraphElement(), tFlag, CORE_Integer::toString(), and tString.
Referenced by GPMG_EdgeWindow::componentClicked(), and GPMG_VertexWindow::componentClicked().
|
protectedpure virtual |
create the components in special rows with id index
Implemented in GPMG_VertexWindow, and GPMG_EdgeWindow.
|
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().
|
inline |
get the graph
Referenced by componentClicked(), and GPMG_VertexWindow::updateValues().
|
inline |
get the graph element attached to the window
Referenced by GPMG_EdgeWindow::componentClicked(), and GPMG_EdgeWindow::updateValues().
|
inline |
|
inline |
|
inline |
|
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().
tBoolean GPMG_GraphElementWindow::isReadOnly | ( | ) | const |
return true if the graph element is read only
References null.
Referenced by componentClicked(), and setGraphElement().
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().
|
virtual |
how to load the object from a Meta Model class
|
virtual |
method called when a modal window is closed
|
protectedvirtual |
reset values
Reimplemented in GPMG_VertexWindow, and GPMG_EdgeWindow.
References null.
Referenced by GPMG_EdgeWindow::resetValues(), GPMG_VertexWindow::resetValues(), and updateValues().
|
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().
|
inlinevirtual |
Reimplemented in GPMG_VertexWindow.
Referenced by GPMG_VertexWindow::toDoAfterThisSetting().
|
inlineprotectedvirtual |
update trigger variables
Reimplemented in GPMG_VertexWindow.
Referenced by 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().