Path: blob/main/src/gui/dialogs/GUIDialog_GLObjChooser.cpp
193716 views
/****************************************************************************/1// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2// Copyright (C) 2001-2026 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 GUIDialog_GLObjChooser.cpp14/// @author Daniel Krajzewicz15/// @author Jakob Erdmann16/// @author Michael Behrisch17/// @date Sept 200218///19// Class for the window that allows to choose a street, junction or vehicle20/****************************************************************************/21#include <config.h>2223#include <string>24#include <vector>25#include <fxkeys.h>26#include <utils/gui/windows/GUIAppEnum.h>27#include <utils/gui/windows/GUIGlChildWindow.h>28#include <utils/gui/windows/GUIMainWindow.h>29#include <utils/gui/globjects/GUIGlObject.h>30#include <utils/gui/globjects/GUIGlObjectStorage.h>31#include <utils/gui/images/GUIIconSubSys.h>32#include <utils/gui/div/GUIGlobalSelection.h>33#include <utils/gui/div/GUIDesigns.h>34#include <utils/gui/globjects/GUIGlObject_AbstractAdd.h>35#include <gui/GUISUMOViewParent.h>36#include "GUIDialog_GLObjChooser.h"373839// ===========================================================================40// method definitions41// ===========================================================================42GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(GUISUMOViewParent* SUMOViewParent, int messageId,43FXIcon* icon, const FXString& title, const std::vector<GUIGlID>& ids, GUIGlObjectStorage& glStorage) :44GUIDialog_ChooserAbstract(SUMOViewParent, messageId, icon, title, ids, glStorage),45mySUMOViewParent(SUMOViewParent) {46}474849GUIDialog_GLObjChooser::~GUIDialog_GLObjChooser() {50mySUMOViewParent->eraseGLObjChooser(this);51}5253/****************************************************************************/545556