Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEAboutDialog.cpp
Go to the documentation of this file.
1/****************************************************************************/
2// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4// This program and the accompanying materials are made available under the
5// terms of the Eclipse Public License 2.0 which is available at
6// https://www.eclipse.org/legal/epl-2.0/
7// This Source Code may also be made available under the following Secondary
8// Licenses when the conditions for such availability set forth in the Eclipse
9// Public License 2.0 are satisfied: GNU General Public License, version 2
10// or later which is available at
11// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13/****************************************************************************/
18// The "About" - dialog for netedit, (adapted from GUIDialog_AboutSUMO)
19/****************************************************************************/
20
25
26#ifdef HAVE_VERSION_H
27#include <version.h>
28#endif
29
30#include "GNEAboutDialog.h"
31
32// ===========================================================================
33// method definitions
34// ===========================================================================
35
37 GNEDialog(applicationWindow, TL("About Eclipse SUMO netedit"), GUIIcon::NETEDIT_MINI,
39 // Netedit icon
41 // "SUMO <VERSION>"
42 FXVerticalFrame* descriptionFrame = new FXVerticalFrame(myContentFrame, GUIDesignLabelAboutInfo);
43 myHeadlineFont = new FXFont(getApp(), "Arial", 18, FXFont::Bold);
44 FXLabel* neteditLabel = new FXLabel(descriptionFrame, "SUMO netedit " VERSION_STRING, nullptr, GUIDesignLabelAboutInfo);
45 neteditLabel->setFont(myHeadlineFont);
46 new FXLabel(descriptionFrame, TL("Network editor for Eclipse SUMO, the Simulation of Urban MObility"), nullptr, GUIDesignLabelAboutInfo);
47 new FXLabel(descriptionFrame, TL("Graphical editor for road networks and infrastructure."), nullptr, GUIDesignLabelAboutInfo);
48 // show modules
49 new FXLabel(descriptionFrame, HAVE_ENABLED, nullptr, GUIDesignLabelAboutInfo);
50 // write HAVE_ENABLED with the current modules (except Windows) in debug mode
51 std::string modules(HAVE_ENABLED);
52 while ((modules.size() > 0) && (modules.front() != ' ')) {
53 modules.erase(modules.begin());
54 }
55 // SUMO_HOME
56 new FXLabel(descriptionFrame, std::string("SUMO_HOME: " + std::string(getenv("SUMO_HOME"))).c_str(), nullptr, GUIDesignLabelAboutInfo);
57 // copyright notice
58 new FXLabel(myContentFrame, "Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.", nullptr, GUIDesignLabelAboutInfo);
59 new FXLabel(myContentFrame, TL("This application is based on code provided by the Eclipse SUMO project."), nullptr, GUIDesignLabelAboutInfo);
60 new FXLabel(myContentFrame, TL("These core components are available under the conditions of the Eclipse Public License v2."), nullptr, GUIDesignLabelAboutInfo);
61 (new MFXLinkLabel(myContentFrame, "SPDX-License-Identifier: EPL-2.0", nullptr, GUIDesignLabelAboutInfo))->setTipText("https://www.eclipse.org/legal/epl-v20.html");
62 // link to homepage
63 (new MFXLinkLabel(myContentFrame, "https://www.eclipse.dev/sumo", nullptr, GUIDesignLabel(JUSTIFY_NORMAL)))->setTipText("https://www.eclipse.dev/sumo");
64 // open modal dialog
65 openDialog();
66}
67
68
72
73
74void
76 // nothing to do
77}
78
79/****************************************************************************/
#define GUIDesignLabelIcon
design for label with icon
Definition GUIDesigns.h:275
#define GUIDesignLabelAboutInfo
label extended over frame without thick and with text justify to left
Definition GUIDesigns.h:260
#define GUIDesignLabel(justify)
Definition GUIDesigns.h:245
GUIIcon
An enumeration of icons used by the gui applications.
Definition GUIIcons.h:33
@ NETEDIT_MINI
#define TL(string)
Definition MsgHandler.h:305
void runInternalTest(const InternalTestStep::DialogArgument *dialogArgument)
run internal test
FXFont * myHeadlineFont
Font for the widget.
~GNEAboutDialog()
Destructor.
GNEAboutDialog(GNEApplicationWindow *applicationWindow)
Constructor.
The main window of Netedit.
FXVerticalFrame * myContentFrame
content frame
Definition GNEDialog.h:135
void openDialog(FXWindow *focusableElement=nullptr)
open dialog
OpenType
Open dialog type.
Definition GNEDialog.h:55
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon
dialog arguments, used for certain modal dialogs that can not be edited using tab