aboutsummaryrefslogtreecommitdiff
path: root/src/TooltipWindow.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/TooltipWindow.hh')
-rw-r--r--src/TooltipWindow.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/TooltipWindow.hh b/src/TooltipWindow.hh
index 401e442..4d028b5 100644
--- a/src/TooltipWindow.hh
+++ b/src/TooltipWindow.hh
@@ -27,6 +27,7 @@
27#include "FbTk/RefCount.hh" 27#include "FbTk/RefCount.hh"
28#include "FbTk/Timer.hh" 28#include "FbTk/Timer.hh"
29#include "FbTk/SimpleCommand.hh" 29#include "FbTk/SimpleCommand.hh"
30#include "FbTk/FbString.hh"
30 31
31/** 32/**
32 * Displays a tooltip window 33 * Displays a tooltip window
@@ -39,9 +40,9 @@ public:
39 * Sets the text in the window and starts the display timer. 40 * Sets the text in the window and starts the display timer.
40 * @param text the text to show in the window. 41 * @param text the text to show in the window.
41 */ 42 */
42 void showText(const std::string &text); 43 void showText(const FbTk::BiDiString& text);
43 /// updates the text directly without any delay 44 /// updates the text directly without any delay
44 void updateText(const std::string &text); 45 void updateText(const FbTk::BiDiString& text);
45 46
46 /// Sets the delay before the window pops up 47 /// Sets the delay before the window pops up
47 void setDelay(int delay) { 48 void setDelay(int delay) {
@@ -56,10 +57,9 @@ private:
56 void raiseTooltip(); 57 void raiseTooltip();
57 void show(); 58 void show();
58 int m_delay; ///< delay time for the timer 59 int m_delay; ///< delay time for the timer
59 std::string m_lastText; ///< last text to be displayed 60 FbTk::BiDiString m_lastText; ///< last text to be displayed
60 FbTk::Timer m_timer; ///< delay timer before the tooltip will show 61 FbTk::Timer m_timer; ///< delay timer before the tooltip will show
61}; 62};
62 63
63
64
65#endif // TOOLTIPWINDOW_HH_ 64#endif // TOOLTIPWINDOW_HH_
65