Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

WindowManager.h

Go to the documentation of this file.
00001 //
00002 // WindowManager.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_WINDOWMANAGER_H__5598C2BE_CE10_4AEC_A807_B8157C41F12C__INCLUDED_)
00023 #define AFX_WINDOWMANAGER_H__5598C2BE_CE10_4AEC_A807_B8157C41F12C__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "WndChild.h"
00028 
00029 
00030 class CWindowManager : public CWnd
00031 {
00032 // Construction
00033 public:
00034         CWindowManager(CMDIFrameWnd* pParent = NULL);
00035         virtual ~CWindowManager();
00036 
00037 // Attributes
00038 public:
00039         CMDIFrameWnd*           m_pParent;
00040         CPtrList                        m_pWindows;
00041         CRect                           m_rcSize;
00042         BOOL                            m_bIgnoreActivate;
00043         BOOL                            m_bClosing;
00044 
00045 // Operations
00046 public:
00047         void            SetOwner(CMDIFrameWnd* pParent);
00048         CChildWnd*      GetActive() const;
00049         POSITION        GetIterator() const;
00050         CChildWnd*      GetNext(POSITION& pos) const;
00051         BOOL            Check(CChildWnd* pChild) const;
00052         CChildWnd*      Find(CRuntimeClass* pClass, CChildWnd* pAfter = NULL, CChildWnd* pExcept = NULL);
00053         CChildWnd*      Open(CRuntimeClass* pClass, BOOL bToggle = FALSE, BOOL bFocus = TRUE);
00054         CChildWnd*      FindFromPoint(const CPoint& point) const;
00055 public:
00056         void            Close();
00057         void            AutoResize();
00058         void            Cascade(BOOL bActiveOnly = FALSE);
00059         void            SetGUIMode(int nMode, BOOL bSaveState = TRUE);
00060 public:
00061         void            LoadWindowStates();
00062         void            SaveWindowStates();
00063         BOOL            LoadSearchWindows();
00064         void            SaveSearchWindows();
00065         void            OpenNewSearchWindow();
00066         void            PostSkinChange();
00067         void            PostSkinRemove();
00068 protected:
00069         void            Add(CChildWnd* pChild);
00070         void            Remove(CChildWnd* pChild);
00071         void            ActivateGrouped(CChildWnd* pExcept);
00072         void            CreateTabbedWindows();
00073 
00074 // Message Map
00075 protected:
00076         //{{AFX_MSG(CWindowManager)
00077         afx_msg void OnSize(UINT nType, int cx, int cy);
00078         afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00079         afx_msg void OnPaint();
00080         //}}AFX_MSG
00081 
00082         DECLARE_MESSAGE_MAP()
00083 
00084         friend class CChildWnd;
00085         friend class CPluginWnd;
00086 };
00087 
00088 #endif // !defined(AFX_WINDOWMANAGER_H__5598C2BE_CE10_4AEC_A807_B8157C41F12C__INCLUDED_)

Generated on Thu Dec 15 10:39:51 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2