aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.hh
diff options
context:
space:
mode:
authorMatteo Galiazzo <matteo@maltesenarrazioni.it>2008-05-05 12:05:52 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-05-05 12:05:52 (GMT)
commit4a3be045b28edac4953be9f195640654f8b5a1a1 (patch)
tree4b2e6466b54a5fb4bb6406ff9cf38c420be032df /src/Screen.hh
parentba604ac821b7c1c89d10b0e8c9f85fde948856ef (diff)
downloadfluxbox-4a3be045b28edac4953be9f195640654f8b5a1a1.zip
fluxbox-4a3be045b28edac4953be9f195640654f8b5a1a1.tar.bz2
add tooltips for iconbar buttons when title is too long to fit
Diffstat (limited to 'src/Screen.hh')
-rw-r--r--src/Screen.hh9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Screen.hh b/src/Screen.hh
index d42fea0..cf8bf1f 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -30,7 +30,7 @@
30#include "RootTheme.hh" 30#include "RootTheme.hh"
31#include "WinButtonTheme.hh" 31#include "WinButtonTheme.hh"
32#include "FbWinFrameTheme.hh" 32#include "FbWinFrameTheme.hh"
33#include "OSDWindow.hh" 33#include "TooltipWindow.hh"
34 34
35#include "FbTk/MenuTheme.hh" 35#include "FbTk/MenuTheme.hh"
36#include "FbTk/EventHandler.hh" 36#include "FbTk/EventHandler.hh"
@@ -389,6 +389,9 @@ public:
389 /// show geomentry with "width x height"-text, not size of window 389 /// show geomentry with "width x height"-text, not size of window
390 void showGeometry(int width, int height); 390 void showGeometry(int width, int height);
391 void hideGeometry(); 391 void hideGeometry();
392
393 void showTooltip(const std::string &text);
394 void hideTooltip();
392 395
393 void setLayer(FbTk::XLayerItem &item, int layernum); 396 void setLayer(FbTk::XLayerItem &item, int layernum);
394 // remove? no, items are never removed from their layer until they die 397 // remove? no, items are never removed from their layer until they die
@@ -536,6 +539,7 @@ private:
536 539
537 FbRootWindow m_root_window; 540 FbRootWindow m_root_window;
538 OSDWindow m_geom_window, m_pos_window; 541 OSDWindow m_geom_window, m_pos_window;
542 TooltipWindow m_tooltip_window;
539 FbTk::FbWindow m_dummy_window; 543 FbTk::FbWindow m_dummy_window;
540 544
541 struct ScreenResource { 545 struct ScreenResource {
@@ -554,7 +558,8 @@ private:
554 FbTk::Resource<FollowModel> follow_model, user_follow_model; 558 FbTk::Resource<FollowModel> follow_model, user_follow_model;
555 bool ordered_dither; 559 bool ordered_dither;
556 FbTk::Resource<int> workspaces, edge_snap_threshold, focused_alpha, 560 FbTk::Resource<int> workspaces, edge_snap_threshold, focused_alpha,
557 unfocused_alpha, menu_alpha, menu_delay, menu_delay_close, tab_width; 561 unfocused_alpha, menu_alpha, menu_delay, menu_delay_close,
562 tab_width, tooltip_delay;
558 FbTk::Resource<FbTk::MenuTheme::MenuMode> menu_mode; 563 FbTk::Resource<FbTk::MenuTheme::MenuMode> menu_mode;
559 564
560 FbTk::Resource<int> gc_line_width; 565 FbTk::Resource<int> gc_line_width;