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 // ===========================================================================
43 // method definitions
44 // ===========================================================================
46  FXDialogBox(parent, "About SUMO", 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  // "SUMO <VERSION>"
57  FXVerticalFrame* descriptionFrame = new FXVerticalFrame(mainInfoFrame, GUIDesignLabelAboutInfo);
58  myHeadlineFont = new FXFont(getApp(), "Arial", 18, FXFont::Bold);
59  FXLabel* neteditLabel = new FXLabel(descriptionFrame, "SUMO " VERSION_STRING, 0, GUIDesignLabelAboutInfo);
60  neteditLabel->setFont(myHeadlineFont);
61  new FXLabel(descriptionFrame, "Simulation of Urban MObility", 0, GUIDesignLabelAboutInfo);
62  new FXLabel(descriptionFrame, HAVE_ENABLED, 0, GUIDesignLabelAboutInfo);
63 
64  // Netedit icon
65  new FXLabel(mainInfoFrame, "", GUIIconSubSys::getIcon(ICON_SUMO), GUIDesignLabelIcon64x64noSpacing);
66 
67  // copyright notice
68  new FXLabel(this, "A microscopic, multi-modal, open source road traffic simulation.", 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 
95 /****************************************************************************/
96 
#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
~GUIDialog_AboutSUMO()
Destructor.
FXFont * myHeadlineFont
Font for the widget.
GUIDialog_AboutSUMO(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
void create()
Creates the widget.
#define GUIDesignButtonOK
Definition: GUIDesigns.h:98
static FXIcon * getIcon(GUIIcon which)
returns a icon previously defined in the enum GUIIcon