1: /*
     2:  ============================================================================
     3:  xoblite™ -> an advanced "extended shell" for Microsoft® Windows® 11
     4:  Copyright © 2002-2026 Karl Henrik Henriksson [qwilk/@xoblite]
     5:  Copyright © 2001-2004 The Blackbox for Windows Development Team
     6:  http://xoblite.net/ + https://github.com/xoblite/
     7:  ============================================================================
     8: 
     9:   Blackbox for Windows is free software, released under the
    10:   GNU General Public License (GPL version 2 or later), with an extension
    11:   that allows linking of proprietary modules under a controlled interface.
    12:   What this means is that plugins etc. are allowed to be released
    13:   under any license the author wishes. Please note, however, that the
    14:   original Blackbox gradient math code used in Blackbox for Windows
    15:   is available under the BSD license.
    16: 
    17:   http://www.fsf.org/licenses/gpl.html
    18:   http://www.fsf.org/licenses/gpl-faq.html#LinkingOverControlledInterface
    19:   http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5
    20: 
    21:   This program is distributed in the hope that it will be useful,
    22:   but WITHOUT ANY WARRANTY; without even the implied warranty of
    23:   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    24:   GNU General Public License for more details.
    25: 
    26:   For additional license information, please read the included license.html.
    27: 
    28:  ============================================================================
    29: */
    30: 
    31: #ifndef __WORKSPACESMENU_H 
    32: #define __WORKSPACESMENU_H 
    33: 
    34: #include "..\Menu\Menu.h" 
    35: #include "..\Menu\FolderItem.h" 
    36: 
    37: //===========================================================================
    38: 
    39: class WorkspacesMenu : public Menu
    40: {
    41: public:
    42:     WorkspacesMenu(const char *pszTitle);
    43:     virtual ~WorkspacesMenu();
    44:     void OnShow(bool fShow);
    45:     bool OnUser(int nMessage, WPARAM wParam, LPARAM lParam, LRESULT &lResult);
    46:     void UpdateFolder();
    47: };
    48: 
    49: //===========================================================================
    50: 
    51: class WorkspacesMenuItem : public FolderItem
    52: {
    53: public:
    54:     WorkspacesMenuItem(char* pszTitleANSI, wchar_t* pszTitleUnicode, int nDesktop);
    55:     virtual ~WorkspacesMenuItem();
    56: 
    57:     bool Active(bool bActivate);
    58:     void UpdateFolder();
    59:     void Invoke();
    60:     void AddWindow(HWND hWnd);
    61:     void Attached(Menu* pMenu);
    62:     void Timer(int nTimer);
    63:     friend BOOL CALLBACK CheckTaskEnumProc(HWND hwnd, LPARAM lParam);
    64: 
    65:     int m_nDesktop;
    66:     int m_nTimer;
    67:     int numberOfTasksOnThisWorkspace;
    68: };
    69: 
    70: //===========================================================================
    71: 
    72: #endif /* __WORKSPACESMENU_H */ 
    73: