44 #ifdef CHECK_MEMORY_LEAKS
46 #endif // CHECK_MEMORY_LEAKS
58 :
FXMainWindow(a,
"SUMO-gui main window", NULL, NULL, DECOR_ALL, 20, 20, 600, 400),
59 myGLVisual(
new FXGLVisual(a, VISUAL_DOUBLEBUFFER)),
60 myAmGaming(false), myListInternal(false) {
63 getApp()->getNormalFont()->getFontDesc(fdesc);
64 fdesc.weight = FXFont::Bold;
67 myTopDock =
new FXDockSite(
this, LAYOUT_SIDE_TOP | LAYOUT_FILL_X);
68 myBottomDock =
new FXDockSite(
this, LAYOUT_SIDE_BOTTOM | LAYOUT_FILL_X);
69 myLeftDock =
new FXDockSite(
this, LAYOUT_SIDE_LEFT | LAYOUT_FILL_Y);
70 myRightDock =
new FXDockSite(
this, LAYOUT_SIDE_RIGHT | LAYOUT_FILL_Y);
121 std::vector<std::string>
123 std::vector<std::string> ret;
125 ret.push_back((*i)->getTitle().text());
134 if (std::string((*i)->getTitle().text()) ==
id) {
184 throw ProcessError(
"A GUIMainWindow instance was not yet constructed.");
std::vector< FXMainWindow * > myTrackerWindows
FXLabel * myGeoCoordinate
FXFont * myBoldFont
Font used for popup-menu titles.
FXGLVisual * myGLVisual
The gl-visual used.
FXMDIChild * getViewByID(const std::string &id) const
FXLabel & getCartesianLabel()
std::vector< FXMDIChild * > mySubWindows
void addChild(FXMDIChild *child, bool updateOnSimStep=true)
Adds a further child window to the list.
static GUIMainWindow * getInstance()
A Simulation step was performed.
static GUIMainWindow * myInstance
the singleton window instance
FXGLVisual * getGLVisual() const
void removeChild(FXMDIChild *child)
removes the given child window from the list
void unlock()
release mutex lock
FXLabel * myCartesianCoordinate
Labels for the current cartesian and geo-coordinate.
FXDockSite * myBottomDock
MFXMutex myTrackerLock
A lock to make the removal and addition of trackers secure.
FXMDIClient * myMDIClient
The multi view panel.
std::vector< std::string > getViewIDs() const