indentation

This commit is contained in:
fluxgen 2002-02-26 08:56:50 +00:00
parent 6135f4eff3
commit bdb0d00f2f

View file

@ -19,8 +19,10 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
#ifndef WORKSPACE_HH #ifndef WORKSPACE_HH
#define WORKSPACE_HH #define WORKSPACE_HH
#include "Window.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <string> #include <string>
@ -30,66 +32,58 @@
class BScreen; class BScreen;
class Clientmenu; class Clientmenu;
class Workspace; class Workspace;
class FluxboxWindow;
class Workspace { class Workspace {
public: public:
typedef std::vector<FluxboxWindow *> Windows; typedef std::vector<FluxboxWindow *> Windows;
Workspace(BScreen *, int = 0); Workspace(BScreen *, int = 0);
~Workspace(void); ~Workspace(void);
inline BScreen *getScreen(void) { return screen; } inline BScreen *getScreen(void) { return screen; }
inline FluxboxWindow *getLastFocusedWindow(void) { return lastfocus; }
inline FluxboxWindow *getLastFocusedWindow(void) { return lastfocus; } inline Clientmenu *getMenu(void) { return clientmenu; }
inline const char *getName(void) const { return name.c_str(); }
inline Clientmenu *getMenu(void) { return clientmenu; } inline const int &getWorkspaceID(void) const { return id; }
inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; }
inline const char *getName(void) const { return name.c_str(); } FluxboxWindow *getWindow(int);
inline Windows &getWindowList() { return windowList; }
inline const int &getWorkspaceID(void) const { return id; } bool isCurrent(void);
bool isLastWindow(FluxboxWindow *);
inline void setLastFocusedWindow(FluxboxWindow *w) { lastfocus = w; } const int addWindow(FluxboxWindow *, Bool = False);
const int removeWindow(FluxboxWindow *);
FluxboxWindow *getWindow(int); const int getCount(void);
inline Windows &getWindowList() { return windowList; }
bool isCurrent(void);
bool isLastWindow(FluxboxWindow *);
const int addWindow(FluxboxWindow *, Bool = False);
const int removeWindow(FluxboxWindow *);
const int getCount(void);
void showAll(void); void showAll(void);
void hideAll(void); void hideAll(void);
void removeAll(void); void removeAll(void);
void raiseWindow(FluxboxWindow *); void raiseWindow(FluxboxWindow *);
void lowerWindow(FluxboxWindow *); void lowerWindow(FluxboxWindow *);
void reconfigure(); void reconfigure();
void update(); void update();
void setCurrent(void); void setCurrent(void);
void setName(char *); void setName(char *);
void shutdown(void); void shutdown(void);
private: private:
BScreen *screen; BScreen *screen;
FluxboxWindow *lastfocus; FluxboxWindow *lastfocus;
Clientmenu *clientmenu; Clientmenu *clientmenu;
typedef std::list<FluxboxWindow *> WindowStack; typedef std::list<FluxboxWindow *> WindowStack;
WindowStack stackingList; WindowStack stackingList;
Windows windowList; Windows windowList;
std::string name; std::string name;
int id, cascade_x, cascade_y; int id, cascade_x, cascade_y;
protected: protected:
void placeWindow(FluxboxWindow *); void placeWindow(FluxboxWindow *);