xoblite -> an alternative shell based on Blackbox for Windows
 Copyright  2002-2005 Karl-Henrik Henriksson [qwilk]
 Copyright  2001-2004 The Blackbox for Windows Development Team
 http://xoblite.net/ - #bb4win on irc.freenode.net

  Blackbox for Windows is free software, released under the
  GNU General Public License (GPL version 2 or later), with an extension
  that allows linking of proprietary modules under a controlled interface.
  What this means is that plugins etc. are allowed to be released
  under any license the author wishes. Please note, however, that the
  original Blackbox gradient math code used in Blackbox for Windows
  is available under the BSD license.


  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  GNU General Public License for more details.

  For additional license information, please read the included license.html


#pragma warning(disable: 4786) // STL naming warnings 


#include <windows.h> 
#include <vector> 
#include <string> 

using namespace std;


class Workspaces
        Workspaces(HINSTANCE hMainInstance);
        void DeskLeft();
        void DeskRight();
        void LastDesk();
        void DeskSwitch(int);
        void AddDesktop();
        void DelDesktop();
        void GatherWindows();
        void MoveWindowToSpecified(HWND window, int workspace);
        void MoveWindowToPrev(HWND window);
        void MoveWindowToNext(HWND window);
        void PrevWindow(int);
        void NextWindow(int);
        int getDesktopByRect(RECT r);
        void switchToDesktop(int desk);
        int getDesktop(HWND h);
        int getNextVW( int vw );        
        int getPrevVW( int vw );
        friend LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
        friend BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam);
        bool CheckWindow(HWND window);
        void flushNames();

        int currentScreen;

        typedef vector<string> DeskNameVector;
        typedef vector<string> StickyListVector;
        DeskNameVector deskNames;
        StickyListVector stickyList;
        HWND refToplevel;
        HWND hWorkWnd; // Workspaces window handle
        HINSTANCE inst;
        int ScreenWidth, ScreenHeight;
        int lastScreen;
        HDWP dwp;


#endif /* __BBWORKSPACES_H */ 

syntax highlighting by

w e b c p p
web c plus plus