From 68aeecad1dcb59a5197d9a678b71347a73652eeb Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 15 Nov 2002 12:17:03 +0000 Subject: comments --- src/Window.hh | 14 +++++++------- src/Workspace.hh | 16 +++++++--------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/Window.hh b/src/Window.hh index 943ad35..06a901c 100644 --- a/src/Window.hh +++ b/src/Window.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.hh,v 1.35 2002/10/22 14:41:13 fluxgen Exp $ +// $Id: Window.hh,v 1.36 2002/11/15 12:14:39 fluxgen Exp $ #ifndef WINDOW_HH #define WINDOW_HH @@ -47,6 +47,7 @@ class Tab; + /** Creates the window frame and handles any window event for it TODO: this is to huge! @@ -232,19 +233,18 @@ private: // state and hint signals WinSubject m_hintsig, m_statesig, m_workspacesig; - BImageControl *image_ctrl; //image control for rendering + BImageControl *image_ctrl; /// image control for rendering - // got from WM_CLASS - std::string m_instance_name; - std::string m_class_name; + std::string m_instance_name; /// instance name from WM_CLASS + std::string m_class_name; /// class name from WM_CLASS //Window state bool moving, resizing, shaded, maximized, visible, iconic, transient, focused, stuck, modal, send_focus_message, managed; - BScreen *screen; + BScreen *screen; /// screen on which this window exist BTimer timer; - Display *display; + Display *display; /// display connection (obsolete by BaseDisplay singleton) BaseDisplay::BlackboxAttributes blackbox_attrib; Time lastButtonPressTime; diff --git a/src/Workspace.hh b/src/Workspace.hh index 61abe9c..48698ab 100644 --- a/src/Workspace.hh +++ b/src/Workspace.hh @@ -25,16 +25,18 @@ #ifndef WORKSPACE_HH #define WORKSPACE_HH + #include "Clientmenu.hh" -#include "Window.hh" #include "NotCopyable.hh" #include + #include #include #include class BScreen; +class FluxboxWindow; /** Handles a single workspace @@ -68,14 +70,10 @@ public: const BScreen *getScreen() const { return screen; } const FluxboxWindow *getLastFocusedWindow() const { return lastfocus; } - Clientmenu *menu() { return &m_clientmenu; } - /** - @return client menu - */ - inline const Clientmenu *menu() const { return &m_clientmenu; } - /** - @return name of this workspace - */ + Clientmenu &menu() { return m_clientmenu; } + /// client menu + inline const Clientmenu &menu() const { return m_clientmenu; } + /// name of this workspace inline const std::string &name() const { return m_name; } /** @return the number of this workspace, note: obsolete, should be in BScreen -- cgit v0.11.2