45 #ifdef CHECK_MEMORY_LEAKS
47 #endif // CHECK_MEMORY_LEAKS
59 : FXMainWindow(a,
"SUMO-gui main window", NULL, NULL, DECOR_ALL, 20, 20, 600, 400),
60 myGLVisual(
new FXGLVisual(a, VISUAL_DOUBLEBUFFER)),
61 myAmGaming(false), myListInternal(false) {
64 getApp()->getNormalFont()->getFontDesc(fdesc);
65 fdesc.weight = FXFont::Bold;
68 myTopDock =
new FXDockSite(
this, LAYOUT_SIDE_TOP | LAYOUT_FILL_X);
69 myBottomDock =
new FXDockSite(
this, LAYOUT_SIDE_BOTTOM | LAYOUT_FILL_X);
70 myLeftDock =
new FXDockSite(
this, LAYOUT_SIDE_LEFT | LAYOUT_FILL_Y);
71 myRightDock =
new FXDockSite(
this, LAYOUT_SIDE_RIGHT | LAYOUT_FILL_Y);
122 std::vector<std::string>
124 std::vector<std::string> ret;
126 ret.push_back((*i)->getTitle().text());
135 if (std::string((*i)->getTitle().text()) ==
id) {
185 throw ProcessError(
"A GUIMainWindow instance was not yet constructed.");
std::vector< FXMainWindow * > myTrackerWindows
FXLabel * myGeoCoordinate
GUISUMOAbstractView * getView() const
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.
GUISUMOAbstractView * getActiveView() const
get the active view or 0
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