Path: blob/main/src/netedit/dialogs/GNEACChooserDialog.h
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 GNEACChooserDialog.h14/// @author Pablo Alvarez Lopez15/// @date Apr 201816///17// Class for the window that allows to choose a street, junction or vehicle18/****************************************************************************/19#pragma once20#include <config.h>2122#include <utils/gui/windows/GUIDialog_ChooserAbstract.h>2324// ===========================================================================25// class declarations26// ===========================================================================2728class GNEAttributeCarrier;29class GNEViewParent;3031// ===========================================================================32// class definition33// ===========================================================================3435class GNEACChooserDialog : public GUIDialog_ChooserAbstract {3637public:38/** @brief Constructor39* @param[in] viewParent GNEViewParent of Netedit40* @param[in] icon The icon to use41* @param[in] title The title to use42* @param[in] ACs map with choosen ACs sorted by IDs43*/44GNEACChooserDialog(GNEViewParent* viewParent, int messageId, FXIcon* icon, const std::string& title,45const std::map<std::string, GNEAttributeCarrier*>& ACs);4647/// @brief Destructor48~GNEACChooserDialog();4950protected:51FOX_CONSTRUCTOR(GNEACChooserDialog)5253/// @brief toggle selection54void toggleSelection(int listIndex) override;5556/// @brief set selection (handled differently in netedit)57void select(int listIndex) override;5859/// @brief unset selection (handled differently in netedit)60void deselect(int listIndex) override;6162/// @brief filter ACs63void filterACs(const std::vector<GUIGlID>& GLIDs) override;6465/// @brief retrieve name for the given object (special case for TLS)66std::string getObjectName(GUIGlObject* o) const override;6768private:69/// @brief pointer to view parent70GNEViewParent* myViewParent;7172/// @brief list of displayed ACs73std::vector<GNEAttributeCarrier*> myACs;7475/// @brief list of filtered ACs76std::vector<GNEAttributeCarrier*> myFilteredACs;7778/// @brief whether the current locator is for TLS79bool myLocateTLS;8081/// @brief Invalidated copy constructor.82GNEACChooserDialog(const GNEACChooserDialog&) = delete;8384/// @brief Invalidated assignment operator85GNEACChooserDialog& operator=(const GNEACChooserDialog& src) = delete;86};878889