Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GUIUserIO Class Reference

Some OS-dependant functions to ease clipboard manipulation. More...

#include <GUIUserIO.h>

Static Public Member Functions

static std::string copyFromClipboard (const FXApp &app)
 Copies text from the clipboard.
 
static void copyToClipboard (const FXApp &app, const std::string &text)
 Copies the given text to clipboard.
 

Static Public Attributes

static std::string clipped = ""
 

Detailed Description

Some OS-dependant functions to ease clipboard manipulation.

This helper contains only one function by now. It is used to store a text snippet permanently within Windows-clipboard. This method is necessary, because FOX only implements the Linux/UNIX-text copying scheme where a marked text is copied. This does not work as soon as the widget with the marked text is destroyed or when the selection is lost. Because this scheme differs very much from the way the clipboard is handled in windows, is is implemented "from scratch" herein.

Definition at line 43 of file GUIUserIO.h.

Member Function Documentation

◆ copyFromClipboard()

std::string GUIUserIO::copyFromClipboard ( const FXApp &  app)
static

Copies text from the clipboard.

Parameters
[in]appThe application to use

Definition at line 44 of file GUIUserIO.cpp.

Referenced by GNEShapeFrame::GEOPOICreator::onCmdCreateGEOPOI().

Here is the caller graph for this function:

◆ copyToClipboard()

void GUIUserIO::copyToClipboard ( const FXApp &  app,
const std::string &  text 
)
static

Copies the given text to clipboard.

Parameters
[in]appThe application to use
[in]textThe text to copy

Definition at line 36 of file GUIUserIO.cpp.

References clipped.

Referenced by GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition(), GUIGLObjectPopupMenu::onCmdCopyCursorPosition(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIGLObjectPopupMenu::onCmdCopyName(), GUIGLObjectPopupMenu::onCmdCopyTestCoordinates(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), and GUIGLObjectPopupMenu::onCmdCopyViewGeoBoundary().

Here is the caller graph for this function:

Field Documentation

◆ clipped

std::string GUIUserIO::clipped = ""
static

The documentation for this class was generated from the following files: