1 #ifndef GPMG_Application_H
2 #define GPMG_Application_H
7 #include "GUI_Application.h"
56 inline static SP::GPMG_Application
New(
int& argc,
char *argv[],SP::GUI_EngineClassFactory cf) {
58 GPMG_Application::Delete());
76 const tString& transformerColor,
79 const tString& connectionsColor) {
80 mPatternGraphColor=patternColor;
81 mTransformerGraphColor=transformerColor;
82 mDeleteGraphColor=deleteColor;
83 mKeepGraphColor=keepColor;
84 mConnectionGraphColor=connectionsColor;
95 tString& connectionColor)
const {
96 patternColor=mPatternGraphColor;
97 transformerColor=mTransformerGraphColor;
98 deleteColor=mDeleteGraphColor;
99 keepColor=mKeepGraphColor;
100 connectionColor=mConnectionGraphColor;
virtual SP::GUI_RootWindow NewRootWindowInstance() const
create a root window instance
Definition: GPMG_Application.h:117
virtual void loadModelFile(const tString &projectFile)
load the model
Definition: GPMG_Application.cpp:64
virtual tString saveModelFile(const tString &projectFile)
save the model
Definition: GPMG_Application.cpp:85
void getRuleGraphColors(tString &patternColor, tString &transformerColor, tString &deleteColor, tString &keepColor, tString &connectionColor) const
get the colors of rules graph
Definition: GPMG_Application.h:91
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object to a meta model class
Definition: GPMG_Application.cpp:103
static SP::GPMG_Application New(int &argc, char *argv[], SP::GUI_EngineClassFactory cf)
Definition: GPMG_Application.h:56
static SP::GPMG_ClassFactory New()
create a class factory
Definition: GPMG_ClassFactory.h:50
virtual SP::GUI_ClassFactory newClassFactoryInstance() const
return the loading class factory
Definition: GPMG_Application.h:67
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a meta model class
Definition: GPMG_Application.cpp:113
virtual ~GPMG_Application(void)
destroy a GPMG_Application
Definition: GPMG_Application.cpp:42
DEFINE_SPTR(GPMG_Application)
this class is the main class of the Dynsys GUI Interface
Definition: GPMG_Application.h:17
static SP::GPMG_MainWindow New()
Definition: GPMG_MainWindow.h:61
#define tString
Definition: types.h:36
virtual void run()
initialize the application
Definition: GPMG_Application.cpp:97
void setRuleGraphColors(const tString &patternColor, const tString &transformerColor, const tString &deleteColor, const tString &keepColor, const tString &connectionsColor)
set the colors of rules graph
Definition: GPMG_Application.h:75
GPMG_Application(int &argc, char *argv[], SP::GUI_EngineClassFactory cf)
build a GPMG_Application
Definition: GPMG_Application.cpp:9