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

CWindowManager Class Reference

#include <WindowManager.h>

List of all members.

Public Member Functions

 CWindowManager (CMDIFrameWnd *pParent=NULL)
virtual ~CWindowManager ()
void SetOwner (CMDIFrameWnd *pParent)
CChildWndGetActive () const
POSITION GetIterator () const
CChildWndGetNext (POSITION &pos) const
BOOL Check (CChildWnd *pChild) const
CChildWndFind (CRuntimeClass *pClass, CChildWnd *pAfter=NULL, CChildWnd *pExcept=NULL)
CChildWndOpen (CRuntimeClass *pClass, BOOL bToggle=FALSE, BOOL bFocus=TRUE)
CChildWndFindFromPoint (const CPoint &point) const
void Close ()
void AutoResize ()
void Cascade (BOOL bActiveOnly=FALSE)
void SetGUIMode (int nMode, BOOL bSaveState=TRUE)
void LoadWindowStates ()
void SaveWindowStates ()
BOOL LoadSearchWindows ()
void SaveSearchWindows ()
void OpenNewSearchWindow ()
void PostSkinChange ()
void PostSkinRemove ()

Public Attributes

CMDIFrameWnd * m_pParent
CPtrList m_pWindows
CRect m_rcSize
BOOL m_bIgnoreActivate
BOOL m_bClosing

Protected Member Functions

void Add (CChildWnd *pChild)
void Remove (CChildWnd *pChild)
void ActivateGrouped (CChildWnd *pExcept)
void CreateTabbedWindows ()
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnPaint ()

Friends

class CChildWnd
class CPluginWnd


Constructor & Destructor Documentation

CWindowManager::CWindowManager CMDIFrameWnd *  pParent = NULL  ) 
 

Definition at line 57 of file WindowManager.cpp.

CWindowManager::~CWindowManager  )  [virtual]
 

Definition at line 65 of file WindowManager.cpp.


Member Function Documentation

void CWindowManager::ActivateGrouped CChildWnd pExcept  )  [protected]
 

Definition at line 295 of file WindowManager.cpp.

References GetIterator(), GetNext(), CChildWnd::m_bGroupMode, m_bIgnoreActivate, CChildWnd::m_pGroupParent, CShareazaApp::m_pSection, and theApp.

void CWindowManager::Add CChildWnd pChild  )  [protected]
 

Definition at line 81 of file WindowManager.cpp.

References CShareazaApp::m_pSection, m_pWindows, NULL, and theApp.

void CWindowManager::AutoResize  ) 
 

Definition at line 215 of file WindowManager.cpp.

References CSettings::General, GUI_WINDOWED, CSettings::sGeneral::GUIMode, CChildWnd::m_bGroupMode, CChildWnd::m_bPanelMode, CChildWnd::m_nGroupSize, CChildWnd::m_pGroupParent, m_rcSize, and Settings.

Referenced by OnSize(), and SetGUIMode().

void CWindowManager::Cascade BOOL  bActiveOnly = FALSE  ) 
 

Definition at line 271 of file WindowManager.cpp.

References GetActive(), GetIterator(), GetNext(), CChildWnd::m_bPanelMode, CShareazaApp::m_pSection, NULL, and theApp.

Referenced by CMainWnd::OnWindowCascade().

BOOL CWindowManager::Check CChildWnd pChild  )  const
 

Definition at line 122 of file WindowManager.cpp.

References m_pWindows, and NULL.

Referenced by CShareazaApp::InternalURI(), CMainWnd::OnUpdateTabNetwork(), and CMainWnd::OnUpdateTabTransfers().

void CWindowManager::Close  ) 
 

Definition at line 195 of file WindowManager.cpp.

References GetIterator(), GetNext(), CShareazaApp::m_pSection, and theApp.

Referenced by CMainWnd::OnClose(), and SetGUIMode().

void CWindowManager::CreateTabbedWindows  )  [protected]
 

Definition at line 359 of file WindowManager.cpp.

References CSettings::General, GUI_BASIC, CSettings::sGeneral::GUIMode, CChildWnd::m_pGroupParent, and Settings.

Referenced by SetGUIMode().

CChildWnd * CWindowManager::Find CRuntimeClass *  pClass,
CChildWnd pAfter = NULL,
CChildWnd pExcept = NULL
 

Definition at line 130 of file WindowManager.cpp.

References GetIterator(), GetNext(), CShareazaApp::m_pSection, NULL, and theApp.

Referenced by CTrafficWnd::FindFreeUnique(), CDownloadMonitorDlg::OnContextMenu(), CMainWnd::OnDevModeChange(), CMainWnd::OnDisplayChange(), CMainWnd::OnLog(), CMainWnd::OnMediaKey(), CHandshake::OnPush(), CNetwork::OnQueryHits(), CNetwork::OnQuerySearch(), CMainWnd::OnUpdateTabMedia(), CMainWnd::OnUpdateViewDiscovery(), CMainWnd::OnUpdateViewDownloads(), CMainWnd::OnUpdateViewHelp(), CMainWnd::OnUpdateViewHosts(), CMainWnd::OnUpdateViewLibrary(), CMainWnd::OnUpdateViewMedia(), CMainWnd::OnUpdateViewNeighbours(), CMainWnd::OnUpdateViewPackets(), CMainWnd::OnUpdateViewResultsMonitor(), CMainWnd::OnUpdateViewSearchMonitor(), CMainWnd::OnUpdateViewSecurity(), CMainWnd::OnUpdateViewSystem(), CMainWnd::OnUpdateViewTraffic(), CMainWnd::OnUpdateViewUploads(), Open(), CNeighboursWnd::OpenPacketWnd(), CRemote::PageSearch(), and CPacket::SmartDump().

CChildWnd * CWindowManager::FindFromPoint const CPoint &  point  )  const
 

Definition at line 182 of file WindowManager.cpp.

References NULL.

CChildWnd * CWindowManager::GetActive  )  const
 

Definition at line 97 of file WindowManager.cpp.

References m_pParent, and NULL.

Referenced by Cascade(), CMainWnd::OnActivate(), CMainWnd::OnCommand(), CMainWnd::OnTabConnect(), CWndTabBar::OnUpdateCmdUI(), CMainWnd::OnUpdatePluginRange(), CMainWnd::OnUpdateTabHelp(), CMainWnd::OnUpdateTabHome(), CMainWnd::OnUpdateTabLibrary(), CMainWnd::OnUpdateTabMedia(), CMainWnd::OnUpdateTabNetwork(), CMainWnd::OnUpdateTabSearch(), CMainWnd::OnUpdateTabTransfers(), and Open().

POSITION CWindowManager::GetIterator  )  const
 

Definition at line 112 of file WindowManager.cpp.

References m_pWindows.

Referenced by ActivateGrouped(), Cascade(), Close(), Find(), CMainWnd::OnTimer(), CWndTabBar::OnUpdateCmdUI(), OpenNewSearchWindow(), PostSkinChange(), PostSkinRemove(), SaveSearchWindows(), and SaveWindowStates().

CChildWnd * CWindowManager::GetNext POSITION &  pos  )  const
 

Definition at line 117 of file WindowManager.cpp.

References m_pWindows.

Referenced by ActivateGrouped(), Cascade(), Close(), Find(), CMainWnd::OnTimer(), CWndTabBar::OnUpdateCmdUI(), OpenNewSearchWindow(), PostSkinChange(), PostSkinRemove(), SaveSearchWindows(), and SaveWindowStates().

BOOL CWindowManager::LoadSearchWindows  ) 
 

Definition at line 446 of file WindowManager.cpp.

References CSettings::General, GUI_WINDOWED, CSettings::sGeneral::GUIMode, Open(), CSearchWnd::Serialize(), Settings, and CSettings::sGeneral::UserPath.

Referenced by SetGUIMode().

void CWindowManager::LoadWindowStates  ) 
 

Definition at line 379 of file WindowManager.cpp.

References AfxClassForName(), CSettings::General, GUI_WINDOWED, CSettings::sGeneral::GUIMode, Open(), Settings, and theApp.

Referenced by SetGUIMode().

BOOL CWindowManager::OnEraseBkgnd CDC *  pDC  )  [protected]
 

Definition at line 569 of file WindowManager.cpp.

References CSettings::General, GUI_WINDOWED, CSettings::sGeneral::GUIMode, m_bClosing, and Settings.

void CWindowManager::OnPaint  )  [protected]
 

Definition at line 578 of file WindowManager.cpp.

void CWindowManager::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Definition at line 563 of file WindowManager.cpp.

References AutoResize().

CChildWnd * CWindowManager::Open CRuntimeClass *  pClass,
BOOL  bToggle = FALSE,
BOOL  bFocus = TRUE
 

Definition at line 150 of file WindowManager.cpp.

References Find(), GetActive(), CChildWnd::m_bTabMode, CShareazaApp::m_pSection, NULL, and theApp.

Referenced by CFileExecutor::GetLibraryWindow(), CFileExecutor::GetMediaWindow(), LoadSearchWindows(), LoadWindowStates(), CMetaPanel::OnClick(), CTorrentSeedDlg::OnDownload(), CUpgradeDlg::OnOK(), CMainWnd::OnTabConnect(), CMainWnd::OnTabHelp(), CMainWnd::OnTabHome(), CMainWnd::OnTabLibrary(), CMainWnd::OnTabMedia(), CMainWnd::OnTabNetwork(), CMainWnd::OnTabTransfers(), CMainWnd::OnToolsDownload(), CURLActionDlg::OnUrlDownload(), CMainWnd::OnViewDiscovery(), CMainWnd::OnViewDownloads(), CMainWnd::OnViewHelp(), CMainWnd::OnViewHosts(), CMainWnd::OnViewLibrary(), CMainWnd::OnViewMedia(), CMainWnd::OnViewNeighbours(), CMainWnd::OnViewPackets(), CMainWnd::OnViewResultsMonitor(), CMainWnd::OnViewSearchMonitor(), CMainWnd::OnViewSecurity(), CMainWnd::OnViewSystem(), CMainWnd::OnViewTraffic(), and CMainWnd::OnViewUploads().

void CWindowManager::OpenNewSearchWindow  ) 
 

Definition at line 508 of file WindowManager.cpp.

References GetIterator(), CSearchWnd::GetLastSearch(), GetNext(), and NULL.

Referenced by CMainWnd::OnNetworkSearch(), and CMainWnd::OnTabSearch().

void CWindowManager::PostSkinChange  ) 
 

Definition at line 531 of file WindowManager.cpp.

References GetIterator(), GetNext(), and CChildWnd::OnSkinChange().

Referenced by CMainWnd::OnSkinChanged().

void CWindowManager::PostSkinRemove  ) 
 

Definition at line 552 of file WindowManager.cpp.

References GetIterator(), GetNext(), and NULL.

Referenced by CMainWnd::OnSkinChanged().

void CWindowManager::Remove CChildWnd pChild  )  [protected]
 

Definition at line 87 of file WindowManager.cpp.

References CShareazaApp::m_pSection, m_pWindows, and theApp.

void CWindowManager::SaveSearchWindows  ) 
 

Definition at line 476 of file WindowManager.cpp.

References CSettings::General, GetIterator(), CSearchWnd::GetLastSearch(), GetNext(), CSearchWnd::Serialize(), Settings, and CSettings::sGeneral::UserPath.

Referenced by CMainWnd::OnClose(), and SetGUIMode().

void CWindowManager::SaveWindowStates  ) 
 

Definition at line 415 of file WindowManager.cpp.

References CSettings::General, GetIterator(), GetNext(), GUI_WINDOWED, CSettings::sGeneral::GUIMode, CTrafficWnd::m_nUnique, Settings, and theApp.

Referenced by CMainWnd::OnClose(), and SetGUIMode().

void CWindowManager::SetGUIMode int  nMode,
BOOL  bSaveState = TRUE
 

Definition at line 325 of file WindowManager.cpp.

References AutoResize(), Close(), CreateTabbedWindows(), CSettings::General, GUI_WINDOWED, CSettings::sGeneral::GUIMode, LoadSearchWindows(), LoadWindowStates(), SaveSearchWindows(), SaveWindowStates(), Settings, and theApp.

Referenced by CMainWnd::SetGUIMode().

void CWindowManager::SetOwner CMDIFrameWnd *  pParent  ) 
 

Definition at line 72 of file WindowManager.cpp.

References m_pParent.

Referenced by CMainWnd::OnCreate().


Friends And Related Function Documentation

friend class CChildWnd [friend]
 

Definition at line 84 of file WindowManager.h.

friend class CPluginWnd [friend]
 

Definition at line 85 of file WindowManager.h.


Member Data Documentation

BOOL CWindowManager::m_bClosing
 

Definition at line 43 of file WindowManager.h.

Referenced by CMainWnd::OnClose(), and OnEraseBkgnd().

BOOL CWindowManager::m_bIgnoreActivate
 

Definition at line 42 of file WindowManager.h.

Referenced by ActivateGrouped().

CMDIFrameWnd* CWindowManager::m_pParent
 

Definition at line 39 of file WindowManager.h.

Referenced by GetActive(), and SetOwner().

CPtrList CWindowManager::m_pWindows
 

Definition at line 40 of file WindowManager.h.

Referenced by Add(), Check(), GetIterator(), GetNext(), and Remove().

CRect CWindowManager::m_rcSize
 

Definition at line 41 of file WindowManager.h.

Referenced by AutoResize().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:14 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2