/****************************************************************************/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 GUIUserIO.h14/// @author Daniel Krajzewicz15/// @author Michael Behrisch16/// @date Sept 200617///18// Some OS-dependant functions to ease clipboard manipulation19/****************************************************************************/20#pragma once21#include <config.h>2223#include <string>24#include <utils/foxtools/fxheader.h>252627// ===========================================================================28// class definitions29// ===========================================================================30/**31* @class GUIUserIO32* @brief Some OS-dependant functions to ease clipboard manipulation33*34* This helper contains only one function by now. It is used to store a text35* snippet permanently within Windows-clipboard. This method is necessary,36* because FOX only implements the Linux/UNIX-text copying scheme where37* a marked text is copied. This does not work as soon as the widget with38* the marked text is destroyed or when the selection is lost. Because this39* scheme differs very much from the way the clipboard is handled in windows,40* is is implemented "from scratch" herein.41*/42class GUIUserIO {43public:44/** @brief Copies the given text to clipboard45*46* @param[in] app The application to use47* @param[in] text The text to copy48*/49static void copyToClipboard(const FXApp& app, const std::string& text);5051/** @brief Copies text from the clipboard52*53* @param[in] app The application to use54*/55static std::string copyFromClipboard(const FXApp& app);5657static std::string clipped;5859};606162