summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-05-12 20:56:40 +0000
committerDana Jansens <danakj@orodu.net>2002-05-12 20:56:40 +0000
commit4969c1b08453a4048c94f207f0c02287bdbc1d0c (patch)
treea5a12a1487b1847caa2d8722cc4b30820becfa53
parent30b899fc025e7fee283be7170bd642b509f5c7b5 (diff)
move some typedefs into class scope
-rw-r--r--src/Screen.h9
-rw-r--r--src/Workspace.h5
2 files changed, 7 insertions, 7 deletions
diff --git a/src/Screen.h b/src/Screen.h
index c59a2e95..15f83a22 100644
--- a/src/Screen.h
+++ b/src/Screen.h
@@ -55,10 +55,6 @@
#include <list>
#include <vector>
-typedef std::list<Rootmenu *> menuList;
-typedef std::list<Netizen *> netList;
-typedef std::vector<Workspace *> wkspList;
-typedef std::vector<std::string> wkspNameList;
// forward declaration
class BScreen;
@@ -116,8 +112,11 @@ private:
Iconmenu *iconmenu;
Rootmenu *rootmenu;
+ typedef std::list<Rootmenu *> menuList;
menuList rootmenuList;
+ typedef std::list<Netizen *> netList;
netList netizenList;
+ typedef std::list<OpenboxWindow *> winList;
winList iconList; // winList is declared in Workspace.h
#ifdef SLIT
@@ -131,7 +130,9 @@ private:
unsigned int geom_w, geom_h;
unsigned long event_mask;
+ typedef std::vector<std::string> wkspNameList;
wkspNameList workspaceNames;
+ typedef std::vector<Workspace *> wkspList;
wkspList workspacesList;
struct resource {
diff --git a/src/Workspace.h b/src/Workspace.h
index 9b7aba10..1f2483af 100644
--- a/src/Workspace.h
+++ b/src/Workspace.h
@@ -35,16 +35,15 @@ class OpenboxWindow;
class Size;
class Rect;
-typedef std::vector<OpenboxWindow *> winVect;
-typedef std::list<OpenboxWindow *> winList;
-
class Workspace {
private:
BScreen &screen;
OpenboxWindow *lastfocus;
Clientmenu *clientmenu;
+ typedef std::vector<OpenboxWindow *> winVect;
winVect _windows;
+ typedef std::list<OpenboxWindow *> winList;
winList _zorder;
char *name;