Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/gui/dialogs/GUIDialog_HallOfFame.cpp
193905 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2026 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
/****************************************************************************/
14
/// @file GUIDialog_HallOfFame.cpp
15
/// @author Daniel Krajzewicz
16
/// @author Michael Behrisch
17
/// @author Angelo Banse
18
/// @date Thu, 15 Oct 2020
19
///
20
// The SUMO User Conference "Hall of Fame" - dialog / easter egg
21
/****************************************************************************/
22
#include <config.h>
23
24
#include <utils/common/MsgHandler.h>
25
#include <utils/common/StdDefs.h>
26
#include <utils/foxtools/MFXLinkLabel.h>
27
#include <utils/gui/images/GUIIconSubSys.h>
28
#include <utils/gui/div/GUIDesigns.h>
29
#include "GUIDialog_HallOfFame.h"
30
31
32
// ===========================================================================
33
// method definitions
34
// ===========================================================================
35
GUIDialog_HallOfFame::GUIDialog_HallOfFame(FXWindow* parent) :
36
FXDialogBox(parent, "Conference Hall of Fame", GUIDesignDialogBox) {
37
// set dialog icon
38
setIcon(GUIIconSubSys::getIcon(GUIIcon::SUMO_MINI));
39
40
// create frame for main info
41
FXHorizontalFrame* mainInfoFrame = new FXHorizontalFrame(this, GUIDesignAuxiliarHorizontalFrame);
42
43
// main text
44
FXVerticalFrame* descriptionFrame = new FXVerticalFrame(mainInfoFrame, GUIDesignLabelAboutInfo);
45
myHeadlineFont = new FXFont(getApp(), "Arial", 12, FXFont::Bold);
46
(new FXLabel(descriptionFrame, "SUMO User Conference 2025 - Hall of Fame", nullptr, GUIDesignLabelAboutInfo))->setFont(myHeadlineFont);
47
new FXLabel(descriptionFrame, "", GUIIconSubSys::getIcon(GUIIcon::HALL_OF_FAME), GUIDesignLabelIcon);
48
new FXLabel(descriptionFrame, "Voted best presentation:\n\"Towards Improved Traffic Impact Assessments for Construction Sites\"\nRobert Hilbrich, Jürgen Besler, Natalie Dust, Heiner Kretzer and Bertram Monninkhoff\n", nullptr, GUIDesignLabelAboutInfo);
49
50
// link to conference website
51
(new MFXLinkLabel(this, "Visit conference website", nullptr, GUIDesignLabel(JUSTIFY_NORMAL)))->setTipText("https://www.eclipse.dev/sumo/conference");
52
53
// centered ok-button
54
FXHorizontalFrame* buttonFrame = new FXHorizontalFrame(this, GUIDesignHorizontalFrame);
55
new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
56
GUIDesigns::buildFXButton(buttonFrame, TL("OK"), "", "", GUIIconSubSys::getIcon(GUIIcon::ACCEPT), this, ID_ACCEPT, GUIDesignButtonDialog);
57
new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
58
}
59
60
61
void
62
GUIDialog_HallOfFame::create() {
63
FXDialogBox::create();
64
}
65
66
67
GUIDialog_HallOfFame::~GUIDialog_HallOfFame() {
68
delete myHeadlineFont;
69
}
70
71
72
/****************************************************************************/
73
74