Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/gui/dialogs/GUIDialog_Feedback.cpp
193728 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2026 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
GUIDialog_Feedback::GUIDialog_Feedback(FXWindow* parent) :
36
FXDialogBox(parent, "Feedback", GUIDesignDialogBox) {
37
// set dialog icon
38
setIcon(GUIIconSubSys::getIcon(GUIIcon::SUMO_MINI));
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
GUIDesigns::buildFXButton(buttonFrame, TL("OK"), "", "", GUIIconSubSys::getIcon(GUIIcon::ACCEPT), this, ID_ACCEPT, GUIDesignButtonDialog);
59
new FXHorizontalFrame(buttonFrame, GUIDesignAuxiliarHorizontalFrame);
60
}
61
62
63
void
64
GUIDialog_Feedback::create() {
65
FXDialogBox::create();
66
}
67
68
/****************************************************************************/
69
70