diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
commit | e169d33552c8e7070aa6e13da0187f2013b4cfc3 (patch) | |
tree | ae9e92c7e885791c7f47645184070cbcd441ab94 /src/SendToMenu.hh | |
parent | c82e7c0080f8a5c14dcf95ec92dc42f59ea9dd8b (diff) | |
parent | 91ca3bc5c8e2b892a9a81b18246f72aba7deebfd (diff) | |
download | fluxbox_lack-e169d33552c8e7070aa6e13da0187f2013b4cfc3.zip fluxbox_lack-e169d33552c8e7070aa6e13da0187f2013b4cfc3.tar.bz2 |
Merge branch 'master' into to_push
Diffstat (limited to 'src/SendToMenu.hh')
-rw-r--r-- | src/SendToMenu.hh | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/SendToMenu.hh b/src/SendToMenu.hh index 7754987..0f668a9 100644 --- a/src/SendToMenu.hh +++ b/src/SendToMenu.hh | |||
@@ -1,5 +1,5 @@ | |||
1 | // SendToMenu.hh for Fluxbox | 1 | // SendToMenu.hh for Fluxbox |
2 | // Copyright (c) 2003 - 2006 Henrik Kinnunen (fluxgen at fluxbox dot org) | 2 | // Copyright (c) 2003 - 2008 Henrik Kinnunen (fluxgen at fluxbox dot org) |
3 | // and Simon Bowden (rathnor at users.sourceforge.net) | 3 | // and Simon Bowden (rathnor at users.sourceforge.net) |
4 | // | 4 | // |
5 | // Permission is hereby granted, free of charge, to any person obtaining a | 5 | // Permission is hereby granted, free of charge, to any person obtaining a |
@@ -25,15 +25,28 @@ | |||
25 | 25 | ||
26 | #include "FbMenu.hh" | 26 | #include "FbMenu.hh" |
27 | 27 | ||
28 | namespace FbTk { | ||
29 | class Observer; | ||
30 | } | ||
31 | |||
28 | class BScreen; | 32 | class BScreen; |
29 | 33 | ||
34 | /** | ||
35 | * Creates the "send to menu". | ||
36 | * Displays all the workspaces for which the current window can be sent to. | ||
37 | */ | ||
30 | class SendToMenu:public FbMenu { | 38 | class SendToMenu:public FbMenu { |
31 | public: | 39 | public: |
32 | explicit SendToMenu(BScreen &win); | 40 | /// @param screen the screen on which this menu should be created on. |
33 | virtual ~SendToMenu() { } | 41 | explicit SendToMenu(BScreen &screen); |
42 | virtual ~SendToMenu(); | ||
43 | /// @see FbTk::Menu | ||
34 | void show(); | 44 | void show(); |
35 | protected: | 45 | private: |
36 | void update(FbTk::Subject *subj); | 46 | /// Rebuild the menu from scratch. |
47 | void rebuildMenu(); | ||
48 | /// listens to signals that makes this instance need to rebuild menu | ||
49 | FbTk::Observer *m_rebuildObs; | ||
37 | }; | 50 | }; |
38 | 51 | ||
39 | #endif // SENDTOMENU_HH | 52 | #endif // SENDTOMENU_HH |