aboutsummaryrefslogtreecommitdiff
path: root/src/Workspace.hh
diff options
context:
space:
mode:
authorrathnor <rathnor>2002-12-01 13:42:15 (GMT)
committerrathnor <rathnor>2002-12-01 13:42:15 (GMT)
commit28b5c604490094e187494dcc566bd3d7a05a2c25 (patch)
tree8f78f5714a5cd055c10b067a2656fe7b2338e71a /src/Workspace.hh
parentb9134162f9633784d9097df18769a699a62650fe (diff)
downloadfluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.zip
fluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.tar.bz2
Indenting from tabs to emacs 4-space
Diffstat (limited to 'src/Workspace.hh')
-rw-r--r--src/Workspace.hh126
1 files changed, 63 insertions, 63 deletions
diff --git a/src/Workspace.hh b/src/Workspace.hh
index 75502a4..ae8f456 100644
--- a/src/Workspace.hh
+++ b/src/Workspace.hh
@@ -43,80 +43,80 @@ class FluxboxWindow;
43*/ 43*/
44class Workspace:private FbTk::NotCopyable { 44class Workspace:private FbTk::NotCopyable {
45public: 45public:
46 typedef std::vector<FluxboxWindow *> Windows; 46 typedef std::vector<FluxboxWindow *> Windows;
47 typedef std::vector<Window> Stack; 47 typedef std::vector<Window> Stack;
48 48
49 explicit Workspace(BScreen *screen, unsigned int workspaceid = 0); 49 explicit Workspace(BScreen *screen, unsigned int workspaceid = 0);
50 ~Workspace(); 50 ~Workspace();
51 51
52 void setLastFocusedWindow(FluxboxWindow *w); 52 void setLastFocusedWindow(FluxboxWindow *w);
53 /** 53 /**
54 Set workspace name 54 Set workspace name
55 */ 55 */
56 void setName(const std::string &name); 56 void setName(const std::string &name);
57 void showAll(); 57 void showAll();
58 void hideAll(); 58 void hideAll();
59 void removeAll(); 59 void removeAll();
60 void raiseWindow(FluxboxWindow *win); 60 void raiseWindow(FluxboxWindow *win);
61 void lowerWindow(FluxboxWindow *win); 61 void lowerWindow(FluxboxWindow *win);
62 void reconfigure(); 62 void reconfigure();
63 void update(); 63 void update();
64 void setCurrent(); 64 void setCurrent();
65 void shutdown(); 65 void shutdown();
66 int addWindow(FluxboxWindow *win, bool place = false); 66 int addWindow(FluxboxWindow *win, bool place = false);
67 int removeWindow(FluxboxWindow *win); 67 int removeWindow(FluxboxWindow *win);
68 BScreen *getScreen() { return screen; } 68 BScreen *getScreen() { return screen; }
69 FluxboxWindow *getLastFocusedWindow() { return lastfocus; } 69 FluxboxWindow *getLastFocusedWindow() { return lastfocus; }
70 70
71 const BScreen *getScreen() const { return screen; } 71 const BScreen *getScreen() const { return screen; }
72 const FluxboxWindow *getLastFocusedWindow() const { return lastfocus; } 72 const FluxboxWindow *getLastFocusedWindow() const { return lastfocus; }
73 Clientmenu &menu() { return m_clientmenu; } 73 Clientmenu &menu() { return m_clientmenu; }
74 /// client menu 74 /// client menu
75 inline const Clientmenu &menu() const { return m_clientmenu; } 75 inline const Clientmenu &menu() const { return m_clientmenu; }
76 /// name of this workspace 76 /// name of this workspace
77 inline const std::string &name() const { return m_name; } 77 inline const std::string &name() const { return m_name; }
78 /** 78 /**
79 @return the number of this workspace, note: obsolete, should be in BScreen 79 @return the number of this workspace, note: obsolete, should be in BScreen
80 */ 80 */
81 inline unsigned int workspaceID() const { return m_id; } 81 inline unsigned int workspaceID() const { return m_id; }
82 /** 82 /**
83 @param id the window id number 83 @param id the window id number
84 @return window that match the id, else 0 84 @return window that match the id, else 0
85 */ 85 */
86 FluxboxWindow *getWindow(unsigned int id); 86 FluxboxWindow *getWindow(unsigned int id);
87 const FluxboxWindow *getWindow(unsigned int id) const; 87 const FluxboxWindow *getWindow(unsigned int id) const;
88 const Windows &getWindowList() const { return m_windowlist; } 88 const Windows &getWindowList() const { return m_windowlist; }
89 Windows &getWindowList() { return m_windowlist; } 89 Windows &getWindowList() { return m_windowlist; }
90 90
91 bool isCurrent() const; 91 bool isCurrent() const;
92 bool isLastWindow(FluxboxWindow *window) const; 92 bool isLastWindow(FluxboxWindow *window) const;
93 int getCount() const; 93 int getCount() const;
94 void checkGrouping(FluxboxWindow &win); 94 void checkGrouping(FluxboxWindow &win);
95 static bool loadGroups(const std::string &filename); 95 static bool loadGroups(const std::string &filename);
96protected: 96protected:
97 void placeWindow(FluxboxWindow *win); 97 void placeWindow(FluxboxWindow *win);
98 98
99private: 99private:
100 100
101 void raiseAndFillStack(Stack::iterator &it, const FluxboxWindow &win); 101 void raiseAndFillStack(Stack::iterator &it, const FluxboxWindow &win);
102 void lowerAndFillStack(Stack::iterator &it, const FluxboxWindow &win); 102 void lowerAndFillStack(Stack::iterator &it, const FluxboxWindow &win);
103 103
104 BScreen *screen; 104 BScreen *screen;
105 FluxboxWindow *lastfocus; 105 FluxboxWindow *lastfocus;
106 Clientmenu m_clientmenu; 106 Clientmenu m_clientmenu;
107 107
108 typedef std::list<FluxboxWindow *> WindowStack; 108 typedef std::list<FluxboxWindow *> WindowStack;
109 typedef std::vector<std::string> Group; 109 typedef std::vector<std::string> Group;
110 typedef std::vector<Group> GroupList; 110 typedef std::vector<Group> GroupList;
111 111
112 static GroupList m_groups; ///< handle auto groupings 112 static GroupList m_groups; ///< handle auto groupings
113 113
114 WindowStack stackingList; 114 WindowStack stackingList;
115 Windows m_windowlist; 115 Windows m_windowlist;
116 116
117 std::string m_name; ///< name of this workspace 117 std::string m_name; ///< name of this workspace
118 unsigned int m_id; ///< id, obsolete, this should be in BScreen 118 unsigned int m_id; ///< id, obsolete, this should be in BScreen
119 int cascade_x, cascade_y; 119 int cascade_x, cascade_y;
120}; 120};
121 121
122 122