diff options
author | Eugene Sandulenko | 2010-06-15 10:52:35 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-06-15 10:52:35 +0000 |
commit | 01f9006ee7e8d0fd153f42fb00afbc25c4804d2b (patch) | |
tree | 774725290301c00c9e362a38fd917ea9b28db978 /gui/GuiManager.h | |
parent | ea7405d7ef177a547d840424497d2f7ffd72626b (diff) | |
download | scummvm-rg350-01f9006ee7e8d0fd153f42fb00afbc25c4804d2b.tar.gz scummvm-rg350-01f9006ee7e8d0fd153f42fb00afbc25c4804d2b.tar.bz2 scummvm-rg350-01f9006ee7e8d0fd153f42fb00afbc25c4804d2b.zip |
GUI: Implement tooltips. FR #2821513.
FR #2821513: "GUI: add tooltips".
Added tooltips for Add Game button, clear field buttons and couple
other.
Current problem: Only first call correctly restores text. I could
not find where restore information gets lost.
svn-id: r49774
Diffstat (limited to 'gui/GuiManager.h')
-rw-r--r-- | gui/GuiManager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/GuiManager.h b/gui/GuiManager.h index 3187a0ba73..2591838416 100644 --- a/gui/GuiManager.h +++ b/gui/GuiManager.h @@ -60,6 +60,7 @@ typedef Common::FixedStack<Dialog *> DialogStack; */ class GuiManager : public Common::Singleton<GuiManager> { friend class Dialog; + friend class Tooltip; friend class Common::Singleton<SingletonBaseType>; GuiManager(); ~GuiManager(); @@ -91,6 +92,9 @@ public: * @return true if the a screen change indeed occurred, false otherwise */ bool checkScreenChange(); + + Tooltip *getTooltip() { return _tooltip; } + protected: enum RedrawStatus { kRedrawDisabled = 0, @@ -114,6 +118,8 @@ protected: bool _useStdCursor; + Tooltip *_tooltip; + // position and time of last mouse click (used to detect double clicks) struct { int16 x, y; // Position of mouse when the click occured |