summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-24 20:13:14 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-07 03:13:54 +0300
commit3f84fc198131ff706e18c56f612e38ff147b0005 (patch)
treea723a9a9163498cd880bdc23c9752d0b4e9373ca /src/gui/widgets/textfield.h
parent64f4e1132355eaac4f5594bee516b56adb2ad083 (diff)
downloadmv-3f84fc198131ff706e18c56f612e38ff147b0005.tar.gz
mv-3f84fc198131ff706e18c56f612e38ff147b0005.tar.bz2
mv-3f84fc198131ff706e18c56f612e38ff147b0005.tar.xz
mv-3f84fc198131ff706e18c56f612e38ff147b0005.zip
Add support for copy text to clipboard (Ctrl+C).
In X enviroments used xsel to copy string to clipboard. In windows used native clipboard api. MacOSX not supported.
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r--src/gui/widgets/textfield.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h
index 79197bb7a..79790d83a 100644
--- a/src/gui/widgets/textfield.h
+++ b/src/gui/widgets/textfield.h
@@ -99,6 +99,8 @@ class TextField : public gcn::TextField
private:
void handlePaste();
+ void handleCopy();
+
static int instances;
static float mAlpha;
static ImageRect skin;