summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-12 14:27:09 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-12 14:27:09 +0300
commit36027fc87b99b8f048265f6ac470227a1c32d481 (patch)
tree617b39aaf314fa9660b02fd849d994fde19f7959 /src/gui/gui.h
parentd0c97c8a12b0904c00a492acd129aebffd7816c8 (diff)
downloadmv-36027fc87b99b8f048265f6ac470227a1c32d481.tar.gz
mv-36027fc87b99b8f048265f6ac470227a1c32d481.tar.bz2
mv-36027fc87b99b8f048265f6ac470227a1c32d481.tar.xz
mv-36027fc87b99b8f048265f6ac470227a1c32d481.zip
add option for enable/disable double click support.
New option: setup / misc / other / Enable double clicks
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h
index 129dedfce..0b4b4a292 100644
--- a/src/gui/gui.h
+++ b/src/gui/gui.h
@@ -134,6 +134,9 @@ class Gui final : public gcn::Gui
void setCursorType(const int index)
{ mCursorType = index; }
+ void setDoubleClick(const bool b)
+ { mDoubleClick = b; }
+
void updateFonts();
bool handleInput();
@@ -159,6 +162,8 @@ class Gui final : public gcn::Gui
void handleMouseReleased(const gcn::MouseInput &mouseInput);
+ void handleMousePressed(const gcn::MouseInput &mouseInput);
+
void handleMouseInput();
void distributeMouseEvent(gcn::Widget* source, int type, int button,
@@ -186,6 +191,7 @@ class Gui final : public gcn::Gui
gcn::Color mForegroundColor;
gcn::Color mForegroundColor2;
bool mCustomCursor; /**< Show custom cursor */
+ bool mDoubleClick;
};
extern Gui *gui; /**< The GUI system */