C++ main module for gpm Package
1.0
|
this class describes the root panel of the graph window More...
#include <GPMG_GraphPanel.h>
Public Member Functions | |
virtual void | toDoAfterThisSetting () |
virtual SP::GPMG_DrawPanel | NewGraphDrawPanel () const =0 |
create the draw panel More... | |
void | setIsReadOnly (const tBoolean &isReadOnly) |
set true if the graph is read only More... | |
void | setSelectedVertex (SP::GPM_Vertex obj) |
set the selected vertex More... | |
void | resetSelectedVertex () |
reset the selected vertex More... | |
void | setSelectedEdge (SP::GPM_Edge obj) |
set the selected edge More... | |
void | resetSelectedEdge () |
reset the selected edge More... | |
tBoolean | isReadOnly () const |
get if the graph is read only More... | |
const GPMG_DrawPanel * | getDrawPanel () const |
GPMG_DrawPanel * | getDrawPanel () |
void | updateEnvironments (const GPMG_Project *project) |
update the environments from a graph More... | |
void | updateEnvironments (const map< tString, SP::GPM_Variable > &nodeEnv, const map< tString, SP::GPM_Variable > &portEnv, const map< tString, SP::GPM_Variable > &edgeEnv) |
update the environment from a list More... | |
virtual void | updateValues () |
method called for updating values of the panel More... | |
virtual void | componentClicked (GUI_ActionComponent &compo) |
method called when a panel's component is 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... | |
Protected Member Functions | |
GPMG_GraphPanel () | |
build a GPMG_GraphPanel More... | |
virtual | ~GPMG_GraphPanel (void) |
destroy a GPMG_GraphPanel More... | |
virtual void | initComponents (const tBoolean &isReadOnlyShown, const tBoolean &isGraphElementShownEnabled) |
init the components More... | |
this class describes the root panel of the graph window
|
protected |
build a GPMG_GraphPanel
|
protectedvirtual |
destroy a GPMG_GraphPanel
|
virtual |
method called when a panel's component is clicked on
Reimplemented in GPMG_RuleGraphPanel, GPMG_ShowGraphPanel, and GPMG_MovieGraphPanel.
References CORE_Integer::parseInt(), CORE_String::string2Boolean(), tFlag, and tString.
Referenced by GPMG_MovieGraphPanel::componentClicked(), GPMG_ShowGraphPanel::componentClicked(), and GPMG_RuleGraphPanel::componentClicked().
|
inline |
the draw panel
Referenced by GPMG_RuleGraphPanel::clearGraphs(), GPMG_MovieGraphPanel::componentClicked(), GPMG_MovieGraphWindow::getDrawPanel(), GPMG_ShowGraphWindow::getDrawPanel(), GPMG_RuleGraphWindow::getDrawPanel(), loadFromUIClass(), saveToUIClass(), GPMG_ShowGraphPanel::showGraph(), and GPMG_RuleGraphPanel::showRule().
|
inline |
the draw panel
|
protectedvirtual |
init the components
References NewGraphDrawPanel().
Referenced by GPMG_MovieGraphPanel::initComponents(), GPMG_ShowGraphPanel::toDoAfterThisSetting(), and GPMG_RuleGraphPanel::toDoAfterThisSetting().
tBoolean GPMG_GraphPanel::isReadOnly | ( | ) | const |
get if the graph is read only
References null.
Referenced by setIsReadOnly().
|
virtual |
how to load the object from a Meta Model class
Reimplemented in GPMG_RuleGraphPanel, GPMG_ShowGraphPanel, and GPMG_MovieGraphPanel.
References getDrawPanel(), GPMG_DrawPanel::loadFromUIClass(), null, and tString.
Referenced by GPMG_MovieGraphPanel::loadFromUIClass(), GPMG_ShowGraphPanel::loadFromUIClass(), and GPMG_RuleGraphPanel::loadFromUIClass().
|
pure virtual |
create the draw panel
Implemented in GPMG_MovieGraphPanel, GPMG_ShowGraphPanel, and GPMG_RuleGraphPanel.
Referenced by initComponents().
|
inline |
reset the selected edge
Referenced by GPMG_ShowGraphWindow::resetSelectedEdge(), and GPMG_RuleGraphWindow::resetSelectedEdge().
|
inline |
reset the selected vertex
Referenced by GPMG_ShowGraphWindow::resetSelectedVertex(), and GPMG_RuleGraphWindow::resetSelectedVertex().
|
virtual |
how to save the object from a mate model class
Reimplemented in GPMG_RuleGraphPanel, GPMG_ShowGraphPanel, and GPMG_MovieGraphPanel.
References getDrawPanel(), null, and GPMG_DrawPanel::saveToUIClass().
Referenced by GPMG_MovieGraphPanel::saveToUIClass(), GPMG_ShowGraphPanel::saveToUIClass(), and GPMG_RuleGraphPanel::saveToUIClass().
void GPMG_GraphPanel::setIsReadOnly | ( | const tBoolean & | isReadOnly | ) |
set true if the graph is read only
References isReadOnly(), and null.
Referenced by GPMG_DrawPanel::setIsMovingEnabled().
|
inline |
set the selected edge
Referenced by GPMG_ShowGraphWindow::setSelectedEdge(), and GPMG_RuleGraphWindow::setSelectedEdge().
|
inline |
set the selected vertex
Referenced by GPMG_ShowGraphWindow::setSelectedVertex(), and GPMG_RuleGraphWindow::setSelectedVertex().
|
inlinevirtual |
Reimplemented in GPMG_MovieGraphPanel, GPMG_RuleGraphPanel, and GPMG_ShowGraphPanel.
Referenced by GPMG_RuleGraphPanel::toDoAfterThisSetting(), GPMG_ShowGraphPanel::toDoAfterThisSetting(), and GPMG_MovieGraphPanel::toDoAfterThisSetting().
void GPMG_GraphPanel::updateEnvironments | ( | const GPMG_Project * | project | ) |
update the environments from a graph
References GPMG_Project::EDGE_ENVIRONMENT, GPMG_Project::getEnvironment(), GPMG_Project::NODE_ENVIRONMENT, null, and GPMG_Project::PORT_ENVIRONMENT.
Referenced by GPMG_ShowGraphPanel::showGraph(), GPMG_MovieGraphWindow::showGraphFiles(), GPMG_RuleGraphPanel::showRule(), GPMG_ShowGraphWindow::updateEnvironments(), and GPMG_RuleGraphWindow::updateEnvironments().
void GPMG_GraphPanel::updateEnvironments | ( | const map< tString, SP::GPM_Variable > & | nodeEnv, |
const map< tString, SP::GPM_Variable > & | portEnv, | ||
const map< tString, SP::GPM_Variable > & | edgeEnv | ||
) |
update the environment from a list
References GPM_Variable::STRING, and tString.
|
virtual |
method called for updating values of the panel
Reimplemented in GPMG_RuleGraphPanel, GPMG_ShowGraphPanel, and GPMG_MovieGraphPanel.
Referenced by GPMG_MovieGraphPanel::updateValues(), GPMG_ShowGraphPanel::updateValues(), and GPMG_RuleGraphPanel::updateValues().