Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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-2024 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 2024 - 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:\nCalibrating Car-Following Models using SUMO-in-the-loop and Vehicle Trajectories from Roadside Radar\n(Maxwell Schrader, Arya Karnik, Alexander Hainen and Joshua Bittle)\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, GUIDesignButtonOK);
57 new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
58}
59
60
61void
63 FXDialogBox::create();
64}
65
66
70
71
72/****************************************************************************/
#define GUIDesignLabelIcon
design for label with icon
Definition GUIDesigns.h:279
#define GUIDesignLabelAboutInfo
label extended over frame without thick and with text justify to left
Definition GUIDesigns.h:264
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
Definition GUIDesigns.h:405
#define GUIDesignDialogBox
Definition GUIDesigns.h:602
#define GUIDesignLabel(justify)
Definition GUIDesigns.h:249
#define GUIDesignButtonOK
Definition GUIDesigns.h:159
#define GUIDesignHorizontalFrame
Horizontal frame extended over frame parent with padding and spacing.
Definition GUIDesigns.h:334
@ HALL_OF_FAME
#define TL(string)
Definition MsgHandler.h:315
static FXButton * buildFXButton(FXComposite *p, const std::string &text, const std::string &tip, const std::string &help, FXIcon *ic, FXObject *tgt, FXSelector sel, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
build button
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