Eclipse SUMO - Simulation of Urban MObility
GUIDialog_HallOfFame.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-2023 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/****************************************************************************/
20// The SUMO User Conference "Hall of Fame" - dialog / easter egg
21/****************************************************************************/
22#include <config.h>
23
30
31
32// ===========================================================================
33// method definitions
34// ===========================================================================
36 FXDialogBox(parent, "Conference Hall of Fame", GUIDesignDialogBox) {
37 // set dialog icon
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 2023 - 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:\nComparing Measured Driver Behavior Distributions to Results from Car-Following Models using SUMO and Real-World Vehicle Trajectories from Radar\n(Maxwell Schrader, Mahdi Al Abdraboh and Joshua Bittle)\n", nullptr, GUIDesignLabelAboutInfo);
49 new FXLabel(descriptionFrame, "Voted best poster:\nOpen-Source Framework for Modeling Emission Concentrations in Urban Areas\n(Mario Ilic, Seyed M. Saghaeiannejad, Sasan Amini and Klaus Bogenberger)\n", nullptr, GUIDesignLabelAboutInfo);
50
51 // link to conference website
52 (new MFXLinkLabel(this, "Visit conference website", nullptr, GUIDesignLabel(JUSTIFY_NORMAL)))->setTipText("https://www.eclipse.dev/sumo/conference");
53
54 // centered ok-button
55 FXHorizontalFrame* buttonFrame = new FXHorizontalFrame(this, GUIDesignHorizontalFrame);
56 new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
57 new FXButton(buttonFrame, (TL("OK") + std::string("\t\t")).c_str(), GUIIconSubSys::getIcon(GUIIcon::ACCEPT), this, ID_ACCEPT, GUIDesignButtonOK);
58 new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
59}
60
61
62void
64 FXDialogBox::create();
65}
66
67
69 delete myHeadlineFont;
70}
71
72
73/****************************************************************************/
#define GUIDesignLabelIcon
design for label with icon
Definition: GUIDesigns.h:268
#define GUIDesignLabelAboutInfo
label extended over frame without thick and with text justify to left
Definition: GUIDesigns.h:253
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
Definition: GUIDesigns.h:394
#define GUIDesignDialogBox
Definition: GUIDesigns.h:588
#define GUIDesignLabel(justify)
Definition: GUIDesigns.h:238
#define GUIDesignButtonOK
Definition: GUIDesigns.h:148
#define GUIDesignHorizontalFrame
Horizontal frame extended over frame parent with padding and spacing.
Definition: GUIDesigns.h:323
@ HALL_OF_FAME
#define TL(string)
Definition: MsgHandler.h:287
FXFont * myHeadlineFont
Font for the widget.
void create()
Creates the widget.
GUIDialog_HallOfFame(FXWindow *parent)
Constructor.
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon