aboutsummaryrefslogtreecommitdiff
path: root/src/TooltipWindow.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-08 18:17:21 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-08 18:17:21 (GMT)
commit690d926ac444243611cd875fb84fabb4e6db2cf2 (patch)
treec8ef84056b295071f9a9207ffea5393c6cf4ad4d /src/TooltipWindow.hh
parent1e8fe2bc14856fa16508686a28a85e72cb0e422c (diff)
downloadfluxbox-690d926ac444243611cd875fb84fabb4e6db2cf2.zip
fluxbox-690d926ac444243611cd875fb84fabb4e6db2cf2.tar.bz2
introduced FbTk::BidiString
a 'BidiString' holds both the logical content and the visual reordered version of the content of a string. this helps to reduce the number of calls to reorder the string before drawing it (as introduced in the patch from Ken Bloom) and to be more consistent in menus and textboxes (drawing cursors and underlining text).
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