changed place on public and private, added getWindowList
This commit is contained in:
parent
ef969ea966
commit
18931280a7
1 changed files with 25 additions and 20 deletions
|
@ -34,26 +34,9 @@ class FluxboxWindow;
|
||||||
|
|
||||||
|
|
||||||
class Workspace {
|
class Workspace {
|
||||||
private:
|
public:
|
||||||
BScreen *screen;
|
|
||||||
FluxboxWindow *lastfocus;
|
|
||||||
Clientmenu *clientmenu;
|
|
||||||
|
|
||||||
typedef std::list<FluxboxWindow *> WindowStack;
|
|
||||||
typedef std::vector<FluxboxWindow *> Windows;
|
typedef std::vector<FluxboxWindow *> Windows;
|
||||||
|
|
||||||
WindowStack stackingList;
|
|
||||||
Windows windowList;
|
|
||||||
|
|
||||||
std::string name;
|
|
||||||
int id, cascade_x, cascade_y;
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void placeWindow(FluxboxWindow *);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
|
||||||
Workspace(BScreen *, int = 0);
|
Workspace(BScreen *, int = 0);
|
||||||
~Workspace(void);
|
~Workspace(void);
|
||||||
|
|
||||||
|
@ -70,6 +53,7 @@ public:
|
||||||
inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; }
|
inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; }
|
||||||
|
|
||||||
FluxboxWindow *getWindow(int);
|
FluxboxWindow *getWindow(int);
|
||||||
|
inline Windows &getWindowList() { return windowList; }
|
||||||
|
|
||||||
bool isCurrent(void);
|
bool isCurrent(void);
|
||||||
bool isLastWindow(FluxboxWindow *);
|
bool isLastWindow(FluxboxWindow *);
|
||||||
|
@ -88,6 +72,27 @@ public:
|
||||||
void setCurrent(void);
|
void setCurrent(void);
|
||||||
void setName(char *);
|
void setName(char *);
|
||||||
void shutdown(void);
|
void shutdown(void);
|
||||||
|
|
||||||
|
private:
|
||||||
|
BScreen *screen;
|
||||||
|
FluxboxWindow *lastfocus;
|
||||||
|
Clientmenu *clientmenu;
|
||||||
|
|
||||||
|
typedef std::list<FluxboxWindow *> WindowStack;
|
||||||
|
|
||||||
|
|
||||||
|
WindowStack stackingList;
|
||||||
|
Windows windowList;
|
||||||
|
|
||||||
|
std::string name;
|
||||||
|
int id, cascade_x, cascade_y;
|
||||||
|
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void placeWindow(FluxboxWindow *);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue