Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEPlanCreatorLegend.cpp
Go to the documentation of this file.
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/****************************************************************************/
18// Frame for path legends
19/****************************************************************************/
20#include <config.h>
21
22#include <netedit/GNEViewNet.h>
25
27
28
29// ===========================================================================
30// method definitions
31// ===========================================================================
32
34 MFXGroupBoxModule(frameParent, TL("Information")) {
35 // declare label
36 FXLabel* legendLabel = nullptr;
37 // edge candidate
38 legendLabel = new FXLabel(getCollapsableFrame(), TL(" Valid element"), 0, GUIDesignLabel(JUSTIFY_LEFT));
39 legendLabel->setBackColor(MFXUtils::getFXColor(RGBColor::ORANGE));
40 // last edge selected
41 legendLabel = new FXLabel(getCollapsableFrame(), TL(" From element"), 0, GUIDesignLabel(JUSTIFY_LEFT));
42 legendLabel->setBackColor(MFXUtils::getFXColor(RGBColor::GREEN));
43 // edge selected
44 legendLabel = new FXLabel(getCollapsableFrame(), TL(" To element"), 0, GUIDesignLabel(JUSTIFY_LEFT));
45 legendLabel->setBackColor(MFXUtils::getFXColor(RGBColor::MAGENTA));
46}
47
48
50
51
52void
56
57void
61
62/****************************************************************************/
#define GUIDesignLabel(justify)
Definition GUIDesigns.h:249
#define TL(string)
Definition MsgHandler.h:315
void showPlanCreatorLegend()
show plan creator legend
void hidePlanCreatorLegend()
hide Legend modul
GNEPlanCreatorLegend(GNEFrame *frameParent)
constructor
MFXGroupBoxModule (based on FXGroupBox)
FXVerticalFrame * getCollapsableFrame()
get collapsable frame (used by all elements that will be collapsed if button is toggled)
static FXColor getFXColor(const RGBColor &col)
converts FXColor to RGBColor
Definition MFXUtils.cpp:112
static const RGBColor ORANGE
Definition RGBColor.h:191
static const RGBColor GREEN
Definition RGBColor.h:186
static const RGBColor MAGENTA
Definition RGBColor.h:190