Eclipse SUMO - Simulation of Urban MObility
|
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 = "" |
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.
|
static |
Copies text from the clipboard.
[in] | app | The application to use |
Definition at line 44 of file GUIUserIO.cpp.
Referenced by GNEShapeFrame::GEOPOICreator::onCmdCreateGEOPOI().
|
static |
Copies the given text to clipboard.
[in] | app | The application to use |
[in] | text | The 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().
|
static |
Definition at line 58 of file GUIUserIO.h.
Referenced by copyToClipboard(), GUIApplicationWindow::onClipboardRequest(), and GNEApplicationWindow::onClipboardRequest().