aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.h
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-07-11 00:14:28 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commit39e74b027e372dcaed33ffa1b18f0de4abf82eb1 (patch)
tree0c430da6aad4b88036d5c025525e39ad1f7db92e /gui/widget.h
parentf78fc85f3a0c92245802098327425d21670d9479 (diff)
downloadscummvm-rg350-39e74b027e372dcaed33ffa1b18f0de4abf82eb1.tar.gz
scummvm-rg350-39e74b027e372dcaed33ffa1b18f0de4abf82eb1.tar.bz2
scummvm-rg350-39e74b027e372dcaed33ffa1b18f0de4abf82eb1.zip
TTS: Add part of linux TTS
Diffstat (limited to 'gui/widget.h')
-rw-r--r--gui/widget.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/widget.h b/gui/widget.h
index f87816b2e3..bcab3b4fa6 100644
--- a/gui/widget.h
+++ b/gui/widget.h
@@ -31,6 +31,8 @@
#include "graphics/surface.h"
#include "gui/object.h"
#include "gui/ThemeEngine.h"
+#include "common/text-to-speech.h"
+#include "common/system.h"
namespace GUI {
@@ -218,7 +220,7 @@ public:
void handleMouseUp(int x, int y, int button, int clickCount);
void handleMouseDown(int x, int y, int button, int clickCount);
- void handleMouseEntered(int button) { if (_duringPress) { setFlags(WIDGET_PRESSED); } else { setFlags(WIDGET_HILITED); } markAsDirty(); }
+ void handleMouseEntered(int button) { g_system->getTextToSpeechManager()->say(_label); if (_duringPress) { setFlags(WIDGET_PRESSED); } else { setFlags(WIDGET_HILITED); } markAsDirty(); }
void handleMouseLeft(int button) { clearFlags(WIDGET_HILITED | WIDGET_PRESSED); markAsDirty(); }
void setHighLighted(bool enable);