CSitesWnd Class Reference

#include <SitesWnd.h>

Inheritance diagram for CSitesWnd:

CListCtrlEx

List of all members.

Public Member Functions

 CSitesWnd ()
void ApplyLanguage ()
void ApplyLanguageToMenu (CMenu *menu)
void SaveAll ()
afx_msg void OnSitesAdd ()
void SaveSites ()
void LoadSites ()
BOOL Create (CWnd *pWndParent)
virtual ~CSitesWnd ()

Static Public Member Functions

static HMENU Plugin_GetViewMenu ()
static HMENU Plugin_GetMainMenu ()
static void Plugin_SetLanguage (wgLanguage, HMENU hMenuMain, HMENU)
static void Plugin_GetPluginNames (LPCSTR *ppszLong, LPCSTR *ppszShort)
static void Plugin_GetMenuViewItems (wgMenuViewItem **ppItems, int *cItems)
static void Plugin_GetMenuImages (fsSetImage **ppImages, int *pcImages)
static void Plugin_GetToolBarInfo (wgTButtonInfo **ppButtons, int *pcButtons)
static HWND Plugin_CreateMainWindow (HWND hWndParent)

Protected Member Functions

afx_msg LRESULT OnInsert (WPARAM, LPARAM)
afx_msg void OnSitesListShowCol (UINT uCmd)
void UpdateSitesListColMenu (CMenu *menu)
afx_msg LRESULT OnUpdateMenuView (WPARAM, LPARAM lp)
void ApplyLanguageToMenuView (CMenu *menu)
afx_msg LRESULT OnUpdateToolBar (WPARAM wp, LPARAM)
afx_msg LRESULT OnUpdateMenu (WPARAM, LPARAM lp)
afx_msg LRESULT OnAppQueryExit (WPARAM, LPARAM)
afx_msg LRESULT OnAppExit (WPARAM, LPARAM)
int UpdateToolBar (UINT nID)
void OnForceUpdate ()
void CalcCoordsForCurSel ()
void OnKeyDown (WORD wVK)
void UpdateSite (fsSiteInfo *pSite)
void AddSiteToList (fsSiteInfo *pSite)
void OnRClick ()
void UpdateMenu (CMenu *pMenu)
afx_msg void OnRButtonDown (UINT nFlags, CPoint point)
afx_msg void OnDrawItem (int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
afx_msg void OnMeasureItem (int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
afx_msg void OnSitesDelete ()
afx_msg void OnSitesProperties ()
afx_msg void OnSitesTemprorary ()
afx_msg void OnLButtonDblClk (UINT nFlags, CPoint point)

Static Protected Member Functions

static void _SitesMgrEvents (fsSitesMgrEvent ev, fsSiteInfo *site, LPVOID lp)

Protected Attributes

BOOL m_bSelectedIsTemp
CPoint m_rbPt
fsODMenu m_odmenu
CImageList m_images
CImageList m_selImages


Detailed Description

Definition at line 18 of file SitesWnd.h.


Constructor & Destructor Documentation

CSitesWnd::CSitesWnd (  ) 

Definition at line 27 of file SitesWnd.cpp.

References _SitesMgr, _SitesMgrEvents(), and fsSitesMgr::SetEventsFunc().

CSitesWnd::~CSitesWnd (  )  [virtual]

Definition at line 32 of file SitesWnd.cpp.


Member Function Documentation

HMENU CSitesWnd::Plugin_GetViewMenu (  )  [static]

Definition at line 619 of file SitesWnd.cpp.

References IDM_SITES_VIEW.

Referenced by fsPluginMgr::LoadBuiltIn().

HMENU CSitesWnd::Plugin_GetMainMenu (  )  [static]

Definition at line 614 of file SitesWnd.cpp.

References IDM_SITES.

Referenced by fsPluginMgr::LoadBuiltIn().

void CSitesWnd::Plugin_SetLanguage ( wgLanguage  ,
HMENU  hMenuMain,
HMENU  hMenuView 
) [static]

Definition at line 554 of file SitesWnd.cpp.

References ApplyLanguage(), ApplyLanguageToMenu(), and ApplyLanguageToMenuView().

Referenced by fsPluginMgr::LoadBuiltIn().

void CSitesWnd::Plugin_GetPluginNames ( LPCSTR ppszLong,
LPCSTR ppszShort 
) [static]

Definition at line 483 of file SitesWnd.cpp.

References L_SITESMGR, and LSNP.

Referenced by fsPluginMgr::LoadBuiltIn().

void CSitesWnd::Plugin_GetMenuViewItems ( wgMenuViewItem **  ppItems,
int *  cItems 
) [static]

Definition at line 472 of file SitesWnd.cpp.

References NULL.

Referenced by fsPluginMgr::LoadBuiltIn().

void CSitesWnd::Plugin_GetMenuImages ( fsSetImage **  ppImages,
int *  pcImages 
) [static]

Definition at line 120 of file SitesWnd.cpp.

References ID_SITES_ADD, ID_SITES_DELETE, and ID_SITES_PROPERTIES.

Referenced by fsPluginMgr::LoadBuiltIn(), and OnRClick().

void CSitesWnd::Plugin_GetToolBarInfo ( wgTButtonInfo **  ppButtons,
int *  pcButtons 
) [static]

HWND CSitesWnd::Plugin_CreateMainWindow ( HWND  hWndParent  )  [static]

Definition at line 96 of file SitesWnd.cpp.

References Create(), and fsnew1.

Referenced by fsPluginMgr::LoadBuiltIn().

void CSitesWnd::ApplyLanguage (  ) 

Definition at line 525 of file SitesWnd.cpp.

References L_CONNS, L_GROUP2, L_LOGIN, L_SITENAME, LS, and CListCtrlEx::SetColumnText().

Referenced by Plugin_SetLanguage().

void CSitesWnd::ApplyLanguageToMenu ( CMenu *  menu  ) 

void CSitesWnd::SaveAll (  ) 

Definition at line 477 of file SitesWnd.cpp.

References SaveSites(), and CListCtrlEx::SaveState().

Referenced by CMainFrame::OnSaveall().

void CSitesWnd::OnSitesAdd (  ) 

void CSitesWnd::SaveSites (  ) 

Definition at line 452 of file SitesWnd.cpp.

References _SitesMgr, BOOL, FALSE, fsGetDataFilePath(), NULL, fsSitesMgr::SaveToFile(), and TRUE.

Referenced by OnAppExit(), and SaveAll().

void CSitesWnd::LoadSites (  ) 

BOOL CSitesWnd::Create ( CWnd *  pWndParent  ) 

LRESULT CSitesWnd::OnInsert ( WPARAM  ,
LPARAM   
) [protected]

Definition at line 608 of file SitesWnd.cpp.

References OnSitesAdd().

void CSitesWnd::OnSitesListShowCol ( UINT  uCmd  )  [protected]

Definition at line 602 of file SitesWnd.cpp.

References CListCtrlEx::ChangeColumnVisibility(), and ID_SITES_1.

void CSitesWnd::UpdateSitesListColMenu ( CMenu *  menu  )  [protected]

Definition at line 588 of file SitesWnd.cpp.

References BOOL, FALSE, ID_SITES_1, and CListCtrlEx::IsColumnShown().

Referenced by OnUpdateMenuView().

LRESULT CSitesWnd::OnUpdateMenuView ( WPARAM  ,
LPARAM  lp 
) [protected]

Definition at line 581 of file SitesWnd.cpp.

References UpdateSitesListColMenu().

void CSitesWnd::ApplyLanguageToMenuView ( CMenu *  menu  )  [protected]

Definition at line 570 of file SitesWnd.cpp.

References ID_SITES_1, ID_SITES_2, ID_SITES_3, ID_SITES_4, L_CONNS, L_GROUP2, L_LISTOFSITES, L_LOGIN, L_SITENAME, and LS.

Referenced by Plugin_SetLanguage().

LRESULT CSitesWnd::OnUpdateToolBar ( WPARAM  wp,
LPARAM   
) [protected]

Definition at line 150 of file SitesWnd.cpp.

References UpdateToolBar().

LRESULT CSitesWnd::OnUpdateMenu ( WPARAM  ,
LPARAM  lp 
) [protected]

Definition at line 144 of file SitesWnd.cpp.

References UpdateMenu().

LRESULT CSitesWnd::OnAppQueryExit ( WPARAM  ,
LPARAM   
) [protected]

Definition at line 139 of file SitesWnd.cpp.

LRESULT CSitesWnd::OnAppExit ( WPARAM  ,
LPARAM   
) [protected]

Definition at line 133 of file SitesWnd.cpp.

References SaveSites().

int CSitesWnd::UpdateToolBar ( UINT  nID  )  [protected]

void CSitesWnd::OnForceUpdate (  )  [protected, virtual]

Reimplemented from CListCtrlEx.

Definition at line 562 of file SitesWnd.cpp.

References _SitesMgr, AddSiteToList(), fsSitesMgr::GetSite(), and fsSitesMgr::GetSiteCount().

void CSitesWnd::CalcCoordsForCurSel (  )  [protected]

Definition at line 533 of file SitesWnd.cpp.

References m_rbPt, and pos().

Referenced by OnKeyDown().

void CSitesWnd::OnKeyDown ( WORD  wVK  )  [protected, virtual]

Reimplemented from CListCtrlEx.

Definition at line 506 of file SitesWnd.cpp.

References CalcCoordsForCurSel(), OnRClick(), OnSitesDelete(), and OnSitesProperties().

void CSitesWnd::_SitesMgrEvents ( fsSitesMgrEvent  ev,
fsSiteInfo site,
LPVOID  lp 
) [static, protected]

Definition at line 392 of file SitesWnd.cpp.

References AddSiteToList(), SM_SITEADDED, SM_SITEDELETED, SM_SITEUPDATED, and UpdateSite().

Referenced by CSitesWnd().

void CSitesWnd::UpdateSite ( fsSiteInfo pSite  )  [protected]

void CSitesWnd::AddSiteToList ( fsSiteInfo pSite  )  [protected]

Definition at line 345 of file SitesWnd.cpp.

References CListCtrlEx::AddItem(), and UpdateSite().

Referenced by _SitesMgrEvents(), and OnForceUpdate().

void CSitesWnd::OnRClick (  )  [protected, virtual]

void CSitesWnd::UpdateMenu ( CMenu *  pMenu  )  [protected]

void CSitesWnd::OnRButtonDown ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 237 of file SitesWnd.cpp.

References m_rbPt.

void CSitesWnd::OnDrawItem ( int  nIDCtl,
LPDRAWITEMSTRUCT  lpDrawItemStruct 
) [protected]

Definition at line 243 of file SitesWnd.cpp.

References m_odmenu, and fsODMenu::OnDrawItem().

void CSitesWnd::OnMeasureItem ( int  nIDCtl,
LPMEASUREITEMSTRUCT  lpMeasureItemStruct 
) [protected]

Definition at line 248 of file SitesWnd.cpp.

References m_odmenu, and fsODMenu::OnMeasureItem().

void CSitesWnd::OnSitesDelete (  )  [protected]

Definition at line 280 of file SitesWnd.cpp.

References _SitesMgr, fsSitesMgr::DeleteSite(), L_AREYOUSURE, L_CONFIRMATION, LS, NULL, and pos().

Referenced by OnKeyDown().

void CSitesWnd::OnSitesProperties (  )  [protected]

void CSitesWnd::OnSitesTemprorary (  )  [protected]

Definition at line 333 of file SitesWnd.cpp.

References fsSiteInfo::bTemp, m_bSelectedIsTemp, pos(), and UpdateSite().

void CSitesWnd::OnLButtonDblClk ( UINT  nFlags,
CPoint  point 
) [protected]

Definition at line 386 of file SitesWnd.cpp.

References OnSitesProperties().


Member Data Documentation

BOOL CSitesWnd::m_bSelectedIsTemp [protected]

Definition at line 74 of file SitesWnd.h.

Referenced by OnSitesTemprorary(), and UpdateMenu().

CPoint CSitesWnd::m_rbPt [protected]

Definition at line 79 of file SitesWnd.h.

Referenced by CalcCoordsForCurSel(), OnRButtonDown(), and OnRClick().

Definition at line 80 of file SitesWnd.h.

Referenced by OnDrawItem(), OnMeasureItem(), and OnRClick().

CImageList CSitesWnd::m_images [protected]

Definition at line 83 of file SitesWnd.h.

Referenced by Create().

CImageList CSitesWnd::m_selImages [protected]

Definition at line 83 of file SitesWnd.h.

Referenced by Create().


The documentation for this class was generated from the following files:

Generated on Sun May 25 00:20:54 2008 by  doxygen 1.5.6