SUMO - Simulation of Urban MObility
GNEDialog_About.cpp
Go to the documentation of this file.
1 /****************************************************************************/
7 // The "About" - dialog for NETEDIT, (adapted from GUIDialog_AboutSUMO)
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #ifdef _MSC_VER
26 #include <windows_config.h>
27 #else
28 #include <config.h>
29 #endif
30 
31 #ifdef HAVE_VERSION_H
32 #include <version.h>
33 #endif
34 
35 #include <utils/common/StdDefs.h>
39 #include "GNEDialog_About.h"
40 
41 #ifdef CHECK_MEMORY_LEAKS
42 #include <foreign/nvwa/debug_new.h>
43 #endif // CHECK_MEMORY_LEAKS
44 
45 
46 // ===========================================================================
47 // method definitions
48 // ===========================================================================
50  FXDialogBox(parent, "About NETEDIT", 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  // "NETEDIT <VERSION>"
58  FXVerticalFrame* f4 = new FXVerticalFrame(f2, GUIDesignAboutFrame3);
59  myHeadlineFont = new FXFont(getApp(), "Arial", 18, FXFont::Bold);
61  FXLabel* l = new FXLabel(f4, "NETEDIT " VERSION_STRING, 0, GUIDesignAboutLabelDescription);
62  l->setFont(myHeadlineFont);
63  new FXLabel(f4, "Network editor for SUMO, the 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, "Part of SUMO, the Simulation of Urban MObility.", 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 /****************************************************************************/
void create()
Creates the widget.
#define GUIDesignAboutFrame1
Definition: GUIDesigns.h:296
#define GUIDesignAboutLabelDescription
design for label with description (centered, between two icons)
Definition: GUIDesigns.h:308
FXFont * myHeadlineFont
Font for the widget.
#define GUIDesignAboutFrame2
design for Frame 2
Definition: GUIDesigns.h:299
GNEDialog_About(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
#define GUIDesignAboutFrame3
design for Frame 3
Definition: GUIDesigns.h:302
#define GUIDesignButtonOK
Definition: GUIDesigns.h:101
~GNEDialog_About()
Destructor.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon