aboutsummaryrefslogtreecommitdiff
path: root/src/Window.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-12-13 20:35:36 (GMT)
committerfluxgen <fluxgen>2002-12-13 20:35:36 (GMT)
commitf018f1f99eb444e4e2089ad8d3d072225f978ccd (patch)
treef9aef78652de919d008143cb14919f9617d2a577 /src/Window.hh
parentbce4606b15f05fb846b92d0dfd94122825df792e (diff)
downloadfluxbox-f018f1f99eb444e4e2089ad8d3d072225f978ccd.zip
fluxbox-f018f1f99eb444e4e2089ad8d3d072225f978ccd.tar.bz2
added a few comments
Diffstat (limited to 'src/Window.hh')
-rw-r--r--src/Window.hh72
1 files changed, 37 insertions, 35 deletions
diff --git a/src/Window.hh b/src/Window.hh
index d4a0c4e..4c9829c 100644
--- a/src/Window.hh
+++ b/src/Window.hh
@@ -1,8 +1,8 @@
1// Window.hh for Fluxbox Window Manager 1// Window.hh for Fluxbox Window Manager
2// Copyright (c) 2001-2002 Henrik Kinnunen (fluxgen@linuxmail.org) 2// Copyright (c) 2001-2002 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3// 3//
4// Window.hh for Blackbox - an X11 Window manager 4// Window.hh for Blackbox - an X11 Window manager
5// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) 5// Copyright (c) 1997 - 2000 Brad Hughes (bhughes at tcac.net)
6// 6//
7// Permission is hereby granted, free of charge, to any person obtaining a 7// Permission is hereby granted, free of charge, to any person obtaining a
8// copy of this software and associated documentation files (the "Software"), 8// copy of this software and associated documentation files (the "Software"),
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.hh,v 1.38 2002/12/01 13:42:05 rathnor Exp $ 25// $Id: Window.hh,v 1.39 2002/12/13 20:35:36 fluxgen Exp $
26 26
27#ifndef WINDOW_HH 27#ifndef WINDOW_HH
28#define WINDOW_HH 28#define WINDOW_HH
@@ -48,48 +48,50 @@
48class Tab; 48class Tab;
49 49
50 50
51/** 51/// Creates the window frame and handles any window event for it
52 Creates the window frame and handles any window event for it
53 TODO: this is to huge!
54*/
55class FluxboxWindow : public TimeoutHandler { 52class FluxboxWindow : public TimeoutHandler {
56public: 53public:
57 54 /// layer bits
58 enum WinLayer { 55 enum WinLayer {
59 LAYER_BOTTOM = 0x01, 56 LAYER_BOTTOM = 0x01, ///< bottom layer
60 LAYER_BELOW = 0x02, 57 LAYER_BELOW = 0x02, ///< below normal layer but above bottom
61 LAYER_NORMAL = 0x04, 58 LAYER_NORMAL = 0x04, ///< normal layer
62 LAYER_TOP = 0x08 59 LAYER_TOP = 0x08 ///< top layer
60 };
61 /// decoration bit
62 enum Decoration {
63 DECOR_NONE=0, ///< no decor at all
64 DECOR_NORMAL, ///< normal normal
65 DECOR_TINY, ///< tiny decoration
66 DECOR_TOOL ///< decor tool
63 }; 67 };
64 68
65 enum Decoration {DECOR_NONE=0, DECOR_NORMAL, DECOR_TINY, DECOR_TOOL}; 69 /// Motif wm Hints
66
67 //Motif wm Hints
68 enum { 70 enum {
69 MwmHintsFunctions = (1l << 0), 71 MwmHintsFunctions = (1l << 0), ///< use motif wm functions
70 MwmHintsDecorations = (1l << 1) 72 MwmHintsDecorations = (1l << 1) ///< use motif wm decorations
71 }; 73 };
72 74
73 //Motif wm functions 75 /// Motif wm functions
74 enum MwmFunc{ 76 enum MwmFunc{
75 MwmFuncAll = (1l << 0), 77 MwmFuncAll = (1l << 0), ///< all motif wm functions
76 MwmFuncResize = (1l << 1), 78 MwmFuncResize = (1l << 1), ///< resize
77 MwmFuncMove = (1l << 2), 79 MwmFuncMove = (1l << 2), ///< move
78 MwmFuncIconify = (1l << 3), 80 MwmFuncIconify = (1l << 3), ///< iconify
79 MwmFuncMaximize = (1l << 4), 81 MwmFuncMaximize = (1l << 4), ///< maximize
80 MwmFuncClose = (1l << 5) 82 MwmFuncClose = (1l << 5) ///< close
81 }; 83 };
82 //Motif wm decorations 84 /// Motif wm decorations
83 enum MwmDecor { 85 enum MwmDecor {
84 MwmDecorAll = (1l << 0), 86 MwmDecorAll = (1l << 0), /// all decorations
85 MwmDecorBorder = (1l << 1), 87 MwmDecorBorder = (1l << 1), /// border
86 MwmDecorHandle = (1l << 2), 88 MwmDecorHandle = (1l << 2), /// handle
87 MwmDecorTitle = (1l << 3), 89 MwmDecorTitle = (1l << 3), /// title
88 MwmDecorMenu = (1l << 4), 90 MwmDecorMenu = (1l << 4), /// menu
89 MwmDecorIconify = (1l << 5), 91 MwmDecorIconify = (1l << 5), /// iconify
90 MwmDecorMaximize = (1l << 6) 92 MwmDecorMaximize = (1l << 6) /// maximize
91 }; 93 };
92 94 /// create fluxbox window with parent win and screen connection
93 explicit FluxboxWindow(Window win, BScreen *scr = 0); 95 explicit FluxboxWindow(Window win, BScreen *scr = 0);
94 virtual ~FluxboxWindow(); 96 virtual ~FluxboxWindow();
95 /** 97 /**
@@ -148,15 +150,15 @@ public:
148 bool isLowerTab() const; 150 bool isLowerTab() const;
149 /** 151 /**
150 @name signals 152 @name signals
153 @{
151 */ 154 */
152 //@{
153 FbTk::Subject &stateSig() { return m_statesig; } 155 FbTk::Subject &stateSig() { return m_statesig; }
154 const FbTk::Subject &stateSig() const { return m_statesig; } 156 const FbTk::Subject &stateSig() const { return m_statesig; }
155 FbTk::Subject &hintSig() { return m_hintsig; } 157 FbTk::Subject &hintSig() { return m_hintsig; }
156 const FbTk::Subject &hintSig() const { return m_hintsig; } 158 const FbTk::Subject &hintSig() const { return m_hintsig; }
157 FbTk::Subject &workspaceSig() { return m_workspacesig; } 159 FbTk::Subject &workspaceSig() { return m_workspacesig; }
158 const FbTk::Subject &workspaceSig() const { return m_workspacesig; } 160 const FbTk::Subject &workspaceSig() const { return m_workspacesig; }
159 //@} 161 /** @} */ // end group signals
160 162
161 //@} 163 //@}
162 164