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_Feedback.cpp 15 : /// @author Pablo Alvarez Lopez 16 : /// @date Feb 2023 17 : /// 18 : // The application's "Feedback" dialog 19 : /****************************************************************************/ 20 : #include <config.h> 21 : 22 : #include <utils/common/MsgHandler.h> 23 : #include <utils/common/StdDefs.h> 24 : #include <utils/foxtools/MFXLinkLabel.h> 25 : #include <utils/gui/images/GUIIconSubSys.h> 26 : #include <utils/gui/div/GUIDesigns.h> 27 : 28 : #include "GUIDialog_Feedback.h" 29 : 30 : 31 : // =========================================================================== 32 : // method definitions 33 : // =========================================================================== 34 : 35 0 : GUIDialog_Feedback::GUIDialog_Feedback(FXWindow* parent) : 36 0 : FXDialogBox(parent, "Feedback", GUIDesignDialogBox) { 37 : // set dialog icon 38 0 : setIcon(GUIIconSubSys::getIcon(GUIIcon::SUMO_MINI)); 39 : // create frame for main info 40 0 : FXHorizontalFrame* mainInfoFrame = new FXHorizontalFrame(this, GUIDesignAuxiliarHorizontalFrame); 41 : // SUMO Icon 42 0 : new FXLabel(mainInfoFrame, "", GUIIconSubSys::getIcon(GUIIcon::SUMO_LOGO), GUIDesignLabelIcon); 43 : // create frame for links 44 0 : FXVerticalFrame* linksFrame = new FXVerticalFrame(mainInfoFrame, GUIDesignLabelAboutInfo); 45 : // general problem solving 46 0 : (new MFXLinkLabel(linksFrame, TL("- General problem solving"), nullptr, GUIDesignLabel(JUSTIFY_LEFT)))->setTipText("https://sumo.dlr.de/docs/FAQ.html#general_problem_solving"); 47 : // empty label 48 0 : new FXLabel(linksFrame, " ", nullptr, GUIDesignLabelAboutInfo); 49 : // mailing list 50 0 : (new MFXLinkLabel(linksFrame, TL("- Sumo-user mailing list"), nullptr, GUIDesignLabel(JUSTIFY_LEFT)))->setTipText("https://accounts.eclipse.org/mailing-list/sumo-user"); 51 : // empty label 52 0 : new FXLabel(linksFrame, " ", nullptr, GUIDesignLabelAboutInfo); 53 : // link to Email page 54 0 : (new MFXLinkLabel(linksFrame, TL("- Send us an Email"), nullptr, GUIDesignLabel(JUSTIFY_LEFT)))->setTipText("https://www.dlr.de/ts/en/desktopdefault.aspx/tabid-1231/mailcontact-30303/"); 55 : // centered ok-button 56 0 : FXHorizontalFrame* buttonFrame = new FXHorizontalFrame(this, GUIDesignHorizontalFrame); 57 0 : new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame); 58 0 : GUIDesigns::buildFXButton(buttonFrame, TL("OK"), "", "", GUIIconSubSys::getIcon(GUIIcon::ACCEPT), this, ID_ACCEPT, GUIDesignButtonOK); 59 0 : new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame); 60 0 : } 61 : 62 : 63 : void 64 0 : GUIDialog_Feedback::create() { 65 0 : FXDialogBox::create(); 66 0 : } 67 : 68 : /****************************************************************************/