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 
42 // ===========================================================================
43 // method definitions
44 // ===========================================================================
46  FXDialogBox(parent, "About NETEDIT", GUIDesignDialogBox) {
47  // set dialog icon
49 
50  // create frame for main info
51  FXHorizontalFrame* mainInfoFrame = new FXHorizontalFrame(this, GUIDesignAuxiliarHorizontalFrame);
52 
53  // DLR Icon
54  new FXLabel(mainInfoFrame, "", GUIIconSubSys::getIcon(ICON_DLR), GUIDesignLabelIcon64x64noSpacing);
55 
56  // "NETEDIT <VERSION>"
57  FXVerticalFrame* descriptionFrame = new FXVerticalFrame(mainInfoFrame, GUIDesignLabelAboutInfo);
58  myHeadlineFont = new FXFont(getApp(), "Arial", 18, FXFont::Bold);
59  FXLabel* neteditLabel = new FXLabel(descriptionFrame, "NETEDIT " VERSION_STRING, 0, GUIDesignLabelAboutInfo);
60  neteditLabel->setFont(myHeadlineFont);
61  new FXLabel(descriptionFrame, "Network editor for SUMO, the Simulation of Urban MObility", 0, GUIDesignLabelAboutInfo);
62  new FXLabel(descriptionFrame, HAVE_ENABLED, 0, GUIDesignLabelAboutInfo);
63 
64  // Netedit icon
66 
67  // copyright notice
68  new FXLabel(this, "Part of SUMO, the Simulation of Urban MObility.", 0, GUIDesignLabelAboutInfo);
69  new FXLabel(this, "Copyright (C) 2001-2017 DLR / Institute of Transportation Systems", 0, GUIDesignLabelAboutInfo);
70 
71  // link to homepage
72  FXLinkLabel* link = new FXLinkLabel(this, "http://sumo.dlr.de", 0, GUIDesignLabelCenter);
73  link->setTipText("http://sumo.dlr.de");
74 
75  // centered ok-button
76  FXHorizontalFrame* buttonFrame = new FXHorizontalFrame(this, GUIDesignHorizontalFrame);
77  new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
78  new FXButton(buttonFrame, "OK\t\t", GUIIconSubSys::getIcon(ICON_ACCEPT), this, ID_ACCEPT, GUIDesignButtonOK);
79  new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
80 }
81 
82 
83 void
85  FXDialogBox::create();
86 }
87 
88 
90  delete myHeadlineFont;
91 }
92 
93 
94 /****************************************************************************/
#define GUIDesignLabelAboutInfo
label extended over over frame without thickand with text justify to center and withouht vertical spa...
Definition: GUIDesigns.h:168
#define GUIDesignHorizontalFrame
Definition: GUIDesigns.h:204
void create()
Creates the widget.
FXFont * myHeadlineFont
Font for the widget.
GNEDialog_About(FXWindow *parent)
Constructor.
#define HAVE_ENABLED
Definition: config.h:26
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames ...
Definition: GUIDesigns.h:244
#define GUIDesignLabelCenter
label extended over frame without thickand with text justify to center
Definition: GUIDesigns.h:150
#define VERSION_STRING
Definition: config.h:210
#define GUIDesignLabelIcon64x64noSpacing
design for label with icon of 64x64 px
Definition: GUIDesigns.h:177
#define GUIDesignDialogBox
Definition: GUIDesigns.h:393
#define GUIDesignButtonOK
Definition: GUIDesigns.h:98
~GNEDialog_About()
Destructor.
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon