Line data Source code
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 : /****************************************************************************/
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 0 : GUIDialog_HallOfFame::GUIDialog_HallOfFame(FXWindow* parent) :
36 0 : FXDialogBox(parent, "Conference Hall of Fame", GUIDesignDialogBox) {
37 : // set dialog icon
38 0 : setIcon(GUIIconSubSys::getIcon(GUIIcon::SUMO_MINI));
39 :
40 : // create frame for main info
41 0 : FXHorizontalFrame* mainInfoFrame = new FXHorizontalFrame(this, GUIDesignAuxiliarHorizontalFrame);
42 :
43 : // main text
44 0 : FXVerticalFrame* descriptionFrame = new FXVerticalFrame(mainInfoFrame, GUIDesignLabelAboutInfo);
45 0 : myHeadlineFont = new FXFont(getApp(), "Arial", 12, FXFont::Bold);
46 0 : (new FXLabel(descriptionFrame, "SUMO User Conference 2024 - Hall of Fame", nullptr, GUIDesignLabelAboutInfo))->setFont(myHeadlineFont);
47 0 : new FXLabel(descriptionFrame, "", GUIIconSubSys::getIcon(GUIIcon::HALL_OF_FAME), GUIDesignLabelIcon);
48 0 : 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 0 : (new MFXLinkLabel(this, "Visit conference website", nullptr, GUIDesignLabel(JUSTIFY_NORMAL)))->setTipText("https://www.eclipse.dev/sumo/conference");
52 :
53 : // centered ok-button
54 0 : FXHorizontalFrame* buttonFrame = new FXHorizontalFrame(this, GUIDesignHorizontalFrame);
55 0 : new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
56 0 : GUIDesigns::buildFXButton(buttonFrame, TL("OK"), "", "", GUIIconSubSys::getIcon(GUIIcon::ACCEPT), this, ID_ACCEPT, GUIDesignButtonOK);
57 0 : new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
58 0 : }
59 :
60 :
61 : void
62 0 : GUIDialog_HallOfFame::create() {
63 0 : FXDialogBox::create();
64 0 : }
65 :
66 :
67 0 : GUIDialog_HallOfFame::~GUIDialog_HallOfFame() {
68 0 : delete myHeadlineFont;
69 0 : }
70 :
71 :
72 : /****************************************************************************/
|