![]() |
SUMO - Simulation of Urban MObility
|
Some OS-dependant functions to ease cliboard manipulation. More...
#include <GUIUserIO.h>
Static Public Member Functions | |
static std::string | copyFromClipboard (const FXApp &app) |
Copies text from the clipboard. More... | |
static void | copyToClipboard (const FXApp &app, const std::string &text) |
Copies the given text to clipboard. More... | |
Static Public Attributes | |
static std::string | clipped = "" |
Some OS-dependant functions to ease cliboard manipulation.
This helper contains only one function by now. It is used to store a text snipplet 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 46 of file GUIUserIO.h.
|
static |
Copies text from the clipboard.
[in] | app | The application to use |
Definition at line 46 of file GUIUserIO.cpp.
Referenced by GNEPolygonFrame::GEOPOICreator::onCmdCreateGEOPOI().
|
static |
Copies the given text to clipboard.
[in] | app | The application to use |
[in] | text | The text to copy |
Definition at line 38 of file GUIUserIO.cpp.
References clipped.
Referenced by GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition(), GUIGLObjectPopupMenu::onCmdCopyCursorPosition(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIGLObjectPopupMenu::onCmdCopyName(), and GUIGLObjectPopupMenu::onCmdCopyTypedName().
|
static |
Definition at line 61 of file GUIUserIO.h.
Referenced by copyToClipboard(), GUIApplicationWindow::onClipboardRequest(), and GNEApplicationWindow::onClipboardRequest().