summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-30 16:00:06 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-30 16:00:06 +0300
commit6e5d8181b830694a90bba7ad5651fa0b726e4a75 (patch)
tree27c2cc174c5b327a75604c1c99a270143879be7c /src/gui/popupmenu.h
parent8a24c37deef374bf138569d50221e34fbc97ee98 (diff)
downloadplus-6e5d8181b830694a90bba7ad5651fa0b726e4a75.tar.gz
plus-6e5d8181b830694a90bba7ad5651fa0b726e4a75.tar.bz2
plus-6e5d8181b830694a90bba7ad5651fa0b726e4a75.tar.xz
plus-6e5d8181b830694a90bba7ad5651fa0b726e4a75.zip
Add popup menu for text fields.
This menu allow copy/paste text to/from clipboard.
Diffstat (limited to 'src/gui/popupmenu.h')
-rw-r--r--src/gui/popupmenu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/popupmenu.h b/src/gui/popupmenu.h
index 95cc3f65c..e2397d7db 100644
--- a/src/gui/popupmenu.h
+++ b/src/gui/popupmenu.h
@@ -43,6 +43,7 @@ class ItemShortcut;
class MapItem;
class TextCommand;
class TextDialog;
+class TextField;
class ProgressBar;
class Window;
@@ -168,6 +169,8 @@ class PopupMenu final : public Popup, public LinkHandler
void showPopup(const int x, const int y, gcn::ListModel *model);
+ void showTextFieldPopup(int x, int y, TextField *input);
+
/**
* Handles link action.
*/
@@ -207,6 +210,7 @@ class PopupMenu final : public Popup, public LinkHandler
TextDialog *mDialog;
Button *mButton;
std::string mNick;
+ TextField *mTextField;
int mType;
int mX;
int mY;