SUMO - Simulation of Urban MObility
GUIDialog_AboutSUMO.cpp
Go to the documentation of this file.
1 /****************************************************************************/
8 // The application's "About" - dialog
9 /****************************************************************************/
10 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
11 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
12 /****************************************************************************/
13 //
14 // This file is part of SUMO.
15 // SUMO is free software: you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation, either version 3 of the License, or
18 // (at your option) any later version.
19 //
20 /****************************************************************************/
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #ifdef HAVE_VERSION_H
33 #include <version.h>
34 #endif
35 
36 #include "GUIDialog_AboutSUMO.h"
38 #include <utils/common/StdDefs.h>
41 
42 #ifdef CHECK_MEMORY_LEAKS
43 #include <foreign/nvwa/debug_new.h>
44 #endif // CHECK_MEMORY_LEAKS
45 
46 // ===========================================================================
47 // method definitions
48 // ===========================================================================
50  FXDialogBox(parent, "About SUMO", GUIDesignDialogBox) {
51  FXVerticalFrame* f1 = new FXVerticalFrame(this, GUIDesignAboutFrame1);
52 
53  // DLR Icon
54  FXHorizontalFrame* f2 = new FXHorizontalFrame(f1, GUIDesignAboutFrame2);
55  new FXLabel(f2, "\tDLR\t.", GUIIconSubSys::getIcon(ICON_DLR), GUIDesignAboutLabelIcon);
56 
57  // "SUMO <VERSION>"
58  FXVerticalFrame* f4 = new FXVerticalFrame(f2, GUIDesignAboutFrame3);
59  myHeadlineFont = new FXFont(getApp(), "Arial", 18, FXFont::Bold);
61  FXLabel* l = new FXLabel(f4, "SUMO " VERSION_STRING, 0, GUIDesignAboutLabelDescription);
62  l->setFont(myHeadlineFont);
63  new FXLabel(f4, "Simulation of Urban MObility", 0, GUIDesignAboutLabelDescription);
64  new FXLabel(f4, HAVE_ENABLED, 0, GUIDesignAboutLabelDescription);
65 
66  // additional infos
67  FXVerticalFrame* f3 = new FXVerticalFrame(f1, GUIDesignAboutFrame3);
68 
69  // copyright notice
70  new FXLabel(f3, "A microscopic, multi-modal, open source road traffic simulation.", 0, GUIDesignAboutLabelInformation);
71  new FXLabel(f3, "Copyright (C) 2001-2017 DLR / Institute of Transportation Systems", 0, GUIDesignAboutLabelInformation);
72 
73  FXLinkLabel* link = new FXLinkLabel(f3, "http://sumo.dlr.de", 0, GUIDesignAboutLinkLabel);
74  link->setTipText("http://sumo.dlr.de");
75 
76  // ok-button
77  new FXButton(f1, "OK\t\t", GUIIconSubSys::getIcon(ICON_ACCEPT), this, ID_ACCEPT, GUIDesignButtonOK);
79 }
80 
81 
82 void
84  FXDialogBox::create();
85 }
86 
87 
89  delete myHeadlineFont;
90 }
91 
92 
93 
94 /****************************************************************************/
95 
~GUIDialog_AboutSUMO()
Destructor.
FXFont * myHeadlineFont
Font for the widget.
#define GUIDesignAboutFrame1
Definition: GUIDesigns.h:296
#define GUIDesignAboutLabelDescription
design for label with description (centered, between two icons)
Definition: GUIDesigns.h:308
#define GUIDesignAboutFrame2
design for Frame 2
Definition: GUIDesigns.h:299
GUIDialog_AboutSUMO(FXWindow *parent)
Constructor.
#define GUIDesignAboutLinkLabel
design for label with link to DLR&#39;s webpage
Definition: GUIDesigns.h:314
#define HAVE_ENABLED
Definition: config.h:29
#define GUIDesignAboutLabelIcon
design for label with icon
Definition: GUIDesigns.h:305
#define VERSION_STRING
Definition: version.h:1
#define GUIDesignAboutLabelInformation
design for label with information (for example, copyright)
Definition: GUIDesigns.h:311
#define GUIDesignDialogBox
Definition: GUIDesigns.h:407
void create()
Creates the widget.
#define GUIDesignAboutFrame3
design for Frame 3
Definition: GUIDesigns.h:302
#define GUIDesignButtonOK
Definition: GUIDesigns.h:101
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon