Path: blob/main/src/netedit/frames/GNEPlanCreatorLegend.cpp
169678 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2025 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 GNEPlanCreatorLegend.cpp14/// @author Pablo Alvarez Lopez15/// @date Mar 202216///17// Frame for path legends18/****************************************************************************/1920#include <netedit/GNEViewNet.h>21#include <netedit/frames/common/GNEInspectorFrame.h>22#include <utils/gui/div/GUIDesigns.h>2324#include "GNEPlanCreatorLegend.h"2526// ===========================================================================27// method definitions28// ===========================================================================2930GNEPlanCreatorLegend::GNEPlanCreatorLegend(GNEFrame* frameParent) :31MFXGroupBoxModule(frameParent, TL("Information")) {32// declare label33FXLabel* legendLabel = nullptr;34// edge candidate35legendLabel = new FXLabel(getCollapsableFrame(), TL(" Valid element"), 0, GUIDesignLabel(JUSTIFY_LEFT));36legendLabel->setBackColor(MFXUtils::getFXColor(RGBColor::ORANGE));37// last edge selected38legendLabel = new FXLabel(getCollapsableFrame(), TL(" From element"), 0, GUIDesignLabel(JUSTIFY_LEFT));39legendLabel->setBackColor(MFXUtils::getFXColor(RGBColor::GREEN));40// edge selected41legendLabel = new FXLabel(getCollapsableFrame(), TL(" To element"), 0, GUIDesignLabel(JUSTIFY_LEFT));42legendLabel->setBackColor(MFXUtils::getFXColor(RGBColor::MAGENTA));43}444546GNEPlanCreatorLegend::~GNEPlanCreatorLegend() {}474849void50GNEPlanCreatorLegend::showPlanCreatorLegend() {51show();52}5354void55GNEPlanCreatorLegend::hidePlanCreatorLegend() {56hide();57}5859/****************************************************************************/606162