Eclipse SUMO - Simulation of Urban MObility
GUIDialog_Feedback.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-2023 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/****************************************************************************/
18// The application's "Feedback" dialog
19/****************************************************************************/
20#include <config.h>
21
27
28#include "GUIDialog_Feedback.h"
29
30
31// ===========================================================================
32// method definitions
33// ===========================================================================
34
36 FXDialogBox(parent, "Feedback", GUIDesignDialogBox) {
37 // set dialog icon
39 // create frame for main info
40 FXHorizontalFrame* mainInfoFrame = new FXHorizontalFrame(this, GUIDesignAuxiliarHorizontalFrame);
41 // SUMO Icon
42 new FXLabel(mainInfoFrame, "", GUIIconSubSys::getIcon(GUIIcon::SUMO_LOGO), GUIDesignLabelIcon);
43 // create frame for links
44 FXVerticalFrame* linksFrame = new FXVerticalFrame(mainInfoFrame, GUIDesignLabelAboutInfo);
45 // general problem solving
46 (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 new FXLabel(linksFrame, " ", nullptr, GUIDesignLabelAboutInfo);
49 // mailing list
50 (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 new FXLabel(linksFrame, " ", nullptr, GUIDesignLabelAboutInfo);
53 // link to Email page
54 (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 FXHorizontalFrame* buttonFrame = new FXHorizontalFrame(this, GUIDesignHorizontalFrame);
57 new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
58 new FXButton(buttonFrame, (TL("OK") + std::string("\t\t")).c_str(), GUIIconSubSys::getIcon(GUIIcon::ACCEPT), this, ID_ACCEPT, GUIDesignButtonOK);
59 new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
60}
61
62
63void
65 FXDialogBox::create();
66}
67
68/****************************************************************************/
#define GUIDesignLabelIcon
design for label with icon
Definition: GUIDesigns.h:265
#define GUIDesignLabelAboutInfo
label extended over frame without thick and with text justify to left
Definition: GUIDesigns.h:250
#define GUIDesignAuxiliarHorizontalFrame
design for auxiliar (Without borders) horizontal frame used to pack another frames
Definition: GUIDesigns.h:388
#define GUIDesignDialogBox
Definition: GUIDesigns.h:582
#define GUIDesignLabel(justify)
Definition: GUIDesigns.h:235
#define GUIDesignButtonOK
Definition: GUIDesigns.h:148
#define GUIDesignHorizontalFrame
Horizontal frame extended over frame parent.
Definition: GUIDesigns.h:320
#define TL(string)
Definition: MsgHandler.h:284
void create()
Creates the widget.
GUIDialog_Feedback(FXWindow *parent)
Constructor.
static FXIcon * getIcon(const GUIIcon which)
returns a icon previously defined in the enum GUIIcon