Path: blob/main/src/gui/dialogs/GUIDialog_HallOfFame.cpp
193905 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2026 German Aerospace Center (DLR) and others.3// This program and the accompanying materials are made available under the4// terms of the Eclipse Public License 2.0 which is available at5// https://www.eclipse.org/legal/epl-2.0/6// This Source Code may also be made available under the following Secondary7// Licenses when the conditions for such availability set forth in the Eclipse8// Public License 2.0 are satisfied: GNU General Public License, version 29// or later which is available at10// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later12/****************************************************************************/13/// @file GUIDialog_HallOfFame.cpp14/// @author Daniel Krajzewicz15/// @author Michael Behrisch16/// @author Angelo Banse17/// @date Thu, 15 Oct 202018///19// The SUMO User Conference "Hall of Fame" - dialog / easter egg20/****************************************************************************/21#include <config.h>2223#include <utils/common/MsgHandler.h>24#include <utils/common/StdDefs.h>25#include <utils/foxtools/MFXLinkLabel.h>26#include <utils/gui/images/GUIIconSubSys.h>27#include <utils/gui/div/GUIDesigns.h>28#include "GUIDialog_HallOfFame.h"293031// ===========================================================================32// method definitions33// ===========================================================================34GUIDialog_HallOfFame::GUIDialog_HallOfFame(FXWindow* parent) :35FXDialogBox(parent, "Conference Hall of Fame", GUIDesignDialogBox) {36// set dialog icon37setIcon(GUIIconSubSys::getIcon(GUIIcon::SUMO_MINI));3839// create frame for main info40FXHorizontalFrame* mainInfoFrame = new FXHorizontalFrame(this, GUIDesignAuxiliarHorizontalFrame);4142// main text43FXVerticalFrame* descriptionFrame = new FXVerticalFrame(mainInfoFrame, GUIDesignLabelAboutInfo);44myHeadlineFont = new FXFont(getApp(), "Arial", 12, FXFont::Bold);45(new FXLabel(descriptionFrame, "SUMO User Conference 2025 - Hall of Fame", nullptr, GUIDesignLabelAboutInfo))->setFont(myHeadlineFont);46new FXLabel(descriptionFrame, "", GUIIconSubSys::getIcon(GUIIcon::HALL_OF_FAME), GUIDesignLabelIcon);47new 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);4849// link to conference website50(new MFXLinkLabel(this, "Visit conference website", nullptr, GUIDesignLabel(JUSTIFY_NORMAL)))->setTipText("https://www.eclipse.dev/sumo/conference");5152// centered ok-button53FXHorizontalFrame* buttonFrame = new FXHorizontalFrame(this, GUIDesignHorizontalFrame);54new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);55GUIDesigns::buildFXButton(buttonFrame, TL("OK"), "", "", GUIIconSubSys::getIcon(GUIIcon::ACCEPT), this, ID_ACCEPT, GUIDesignButtonDialog);56new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);57}585960void61GUIDialog_HallOfFame::create() {62FXDialogBox::create();63}646566GUIDialog_HallOfFame::~GUIDialog_HallOfFame() {67delete myHeadlineFont;68}697071/****************************************************************************/727374