/****************************************************************************/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.cpp14/// @author Daniel Krajzewicz15/// @author Michael Behrisch16/// @date 2006-10-1217///18// Some OS-dependant functions to ease clipboard manipulation19/****************************************************************************/20#include <config.h>2122#include "GUIUserIO.h"232425// ===========================================================================26// static member definitions27// ===========================================================================28std::string GUIUserIO::clipped = "";293031// ===========================================================================32// method definitions33// ===========================================================================34void35GUIUserIO::copyToClipboard(const FXApp& app, const std::string& text) {36FXDragType types[] = {FXWindow::stringType, FXWindow::textType};37if (app.getActiveWindow()->acquireClipboard(types, 2)) {38clipped = text;39}40}4142std::string43GUIUserIO::copyFromClipboard(const FXApp& app) {44FXString string;45if (app.getActiveWindow()->getDNDData(FROM_CLIPBOARD, FXWindow::utf8Type, string)) {46return string.text();47};48return string.text();49}505152/****************************************************************************/535455