diff options
author | Eugene Sandulenko | 2016-02-05 19:33:30 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-14 17:13:03 +0100 |
commit | 3570e417c9ab4ab47be65b76d0481f6323e6e74e (patch) | |
tree | 432110500a9a1e4e86e47738c188b03c7797d6c9 /engines/wage | |
parent | e56d934836ab371563cae18fdb2fe8e5d89e2dbd (diff) | |
download | scummvm-rg350-3570e417c9ab4ab47be65b76d0481f6323e6e74e.tar.gz scummvm-rg350-3570e417c9ab4ab47be65b76d0481f6323e6e74e.tar.bz2 scummvm-rg350-3570e417c9ab4ab47be65b76d0481f6323e6e74e.zip |
WAGE: Implement Paste action
Diffstat (limited to 'engines/wage')
-rw-r--r-- | engines/wage/gui.cpp | 5 | ||||
-rw-r--r-- | engines/wage/gui.h | 1 | ||||
-rw-r--r-- | engines/wage/menu.cpp | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/engines/wage/gui.cpp b/engines/wage/gui.cpp index d90030cb20..cd4a62bc20 100644 --- a/engines/wage/gui.cpp +++ b/engines/wage/gui.cpp @@ -831,4 +831,9 @@ void Gui::actionCopy() { _menu->enableCommand(kMenuEdit, kMenuActionPaste, true); } +void Gui::actionPaste() { + _engine->_inputText = _clipboard; + drawInput(); +} + } // End of namespace Wage diff --git a/engines/wage/gui.h b/engines/wage/gui.h index 16421276be..7270a782ce 100644 --- a/engines/wage/gui.h +++ b/engines/wage/gui.h @@ -105,6 +105,7 @@ public: void popCursor(); void actionCopy(); + void actionPaste(); private: void paintBorder(Graphics::Surface *g, Common::Rect &r, WindowType windowType); diff --git a/engines/wage/menu.cpp b/engines/wage/menu.cpp index 42a095438e..2a1f6e62e4 100644 --- a/engines/wage/menu.cpp +++ b/engines/wage/menu.cpp @@ -523,6 +523,8 @@ void Menu::executeCommand(MenuSubItem *subitem) { _gui->actionCopy(); break; case kMenuActionPaste: + _gui->actionPaste(); + break; case kMenuActionClear: warning("STUB: Unhandled shortcut"); break; |