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.org/sumo
3 // Copyright (C) 2001-2020 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 
24 #include "GUIDialog_HallOfFame.h"
26 #include <utils/common/StdDefs.h>
29 
30 // ===========================================================================
31 // method definitions
32 // ===========================================================================
34  FXDialogBox(parent, "Conference Hall of Fame", GUIDesignDialogBox) {
35  // set dialog icon
37 
38  // create frame for main info
39  FXHorizontalFrame* mainInfoFrame = new FXHorizontalFrame(this, GUIDesignAuxiliarHorizontalFrame);
40 
41  // main text
42  FXVerticalFrame* descriptionFrame = new FXVerticalFrame(mainInfoFrame, GUIDesignLabelAboutInfo);
43  myHeadlineFont = new FXFont(getApp(), "Arial", 12, FXFont::Bold);
44  (new FXLabel(descriptionFrame, "SUMO User Conference 2020 - Hall of Fame", nullptr, GUIDesignLabelAboutInfo))->setFont(myHeadlineFont);
45  new FXLabel(descriptionFrame, "", GUIIconSubSys::getIcon(GUIIcon::HALL_OF_FAME), GUIDesignLabelIcon);
46  new FXLabel(descriptionFrame, "SUMO guru of the year: m-kro", nullptr, GUIDesignLabelAboutInfo);
47  new FXLabel(descriptionFrame, "Voted best presentation: Georg Merz (AI-based Disposition using a Reinforcement Learning Approach)", nullptr, GUIDesignLabelAboutInfo);
48 
49  // link to conference website
50  (new FXLinkLabel(this, "Visit conference website", nullptr, GUIDesignLabelCenter))->setTipText("https://www.eclipse.org/sumo/conference");
51 
52  // centered ok-button
53  FXHorizontalFrame* buttonFrame = new FXHorizontalFrame(this, GUIDesignHorizontalFrame);
54  new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
55  new FXButton(buttonFrame, "OK\t\t", GUIIconSubSys::getIcon(GUIIcon::ACCEPT), this, ID_ACCEPT, GUIDesignButtonOK);
56  new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
57 }
58 
59 
60 void
62  FXDialogBox::create();
63 }
64 
65 
67  delete myHeadlineFont;
68 }
69 
70 
71 /****************************************************************************/
#define GUIDesignLabelIcon
design for label with icon
Definition: GUIDesigns.h:217
#define GUIDesignLabelCenter
label extended over frame without thick and with text justify to center
Definition: GUIDesigns.h:181
#define GUIDesignLabelAboutInfo
label extended over frame without thick and with text justify to left
Definition: GUIDesigns.h:205
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
Definition: GUIDesigns.h:313
#define GUIDesignDialogBox
Definition: GUIDesigns.h:494
#define GUIDesignButtonOK
Definition: GUIDesigns.h:115
#define GUIDesignHorizontalFrame
Definition: GUIDesigns.h:263
@ HALL_OF_FAME
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