#include <SitesWnd.h>

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 |
Definition at line 18 of file SitesWnd.h.
| 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.
| 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().
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] |
Definition at line 105 of file SitesWnd.cpp.
References ID_SITES_ADD, ID_SITES_PROPERTIES, L_ADDSITE, L_SITEPROP, LS, and wgTButtonInfo::pszToolTip.
Referenced by fsPluginMgr::LoadBuiltIn().
| 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 | ) |
Definition at line 490 of file SitesWnd.cpp.
References ID_SITES_ADD, ID_SITES_DELETE, ID_SITES_PROPERTIES, ID_SITES_TEMPRORARY, L_ADDSITE, L_DELETESITE, L_SITEPROP, L_SITESMGR, L_TEMPENTRY, and LS.
Referenced by OnRClick(), and Plugin_SetLanguage().
| void CSitesWnd::SaveAll | ( | ) |
Definition at line 477 of file SitesWnd.cpp.
References SaveSites(), and CListCtrlEx::SaveState().
Referenced by CMainFrame::OnSaveall().
| void CSitesWnd::OnSitesAdd | ( | ) |
Definition at line 253 of file SitesWnd.cpp.
References _DlgMgr, _SitesMgr, fsSitesMgr::AddSite(), fsSiteInfo::bTemp, fsSiteInfo::cConnsNow, fsSiteInfo::cMaxConns, fsSiteInfo::dwFtpFlags, fsSiteInfo::dwValidFor, FALSE, CSitesSheet::Init(), L_ADDSITE, LS, NULL, fsDialogsMgr::OnDoModal(), fsDialogsMgr::OnEndDialog(), SITE_VALIDFOR_FTP, SITE_VALIDFOR_HTTP, SITE_VALIDFOR_HTTPS, SITE_VALIDFOR_SUBDOMAINS, fsSiteInfo::strName, fsSiteInfo::strPassword, and fsSiteInfo::strUser.
Referenced by CMainFrame::OnAddsite(), and OnInsert().
| 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 | ( | ) |
Definition at line 419 of file SitesWnd.cpp.
References _DldsMgr, _SitesMgr, ASSERT, BOOL, FALSE, fsGetDataFilePath(), fsSitesMgr::LoadFromFile(), NULL, and fsDownloadsMgr::RebuildServerList().
Referenced by Create().
| BOOL CSitesWnd::Create | ( | CWnd * | pWndParent | ) |
Definition at line 60 of file SitesWnd.cpp.
References FALSE, IDB_SITELIST, IDB_SITELIST_SEL, L_CONNS, L_GROUP2, L_LOGIN, L_SITENAME, LoadSites(), LS, m_images, m_selImages, CListCtrlEx::ReadState(), SBMP, CListCtrlEx::SetSelectedImages(), and TRUE.
Referenced by Plugin_CreateMainWindow().
| LRESULT CSitesWnd::OnInsert | ( | WPARAM | , | |
| LPARAM | ||||
| ) | [protected] |
| 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] |
| 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] |
| LRESULT CSitesWnd::OnUpdateMenu | ( | WPARAM | , | |
| LPARAM | lp | |||
| ) | [protected] |
| LRESULT CSitesWnd::OnAppQueryExit | ( | WPARAM | , | |
| LPARAM | ||||
| ) | [protected] |
Definition at line 139 of file SitesWnd.cpp.
| LRESULT CSitesWnd::OnAppExit | ( | WPARAM | , | |
| LPARAM | ||||
| ) | [protected] |
| int CSitesWnd::UpdateToolBar | ( | UINT | nID | ) | [protected] |
Definition at line 189 of file SitesWnd.cpp.
References BOOL, ID_SITES_ADD, ID_SITES_DELETE, ID_SITES_PROPERTIES, ID_SITES_TEMPRORARY, TRUE, WGP_CMDITEMSTATE_DISABLED, and WGP_CMDITEMSTATE_ENABLED.
Referenced by OnUpdateToolBar().
| 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] |
| 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] |
Definition at line 352 of file SitesWnd.cpp.
References fsSiteInfo::bTemp, fsSiteInfo::cConnsNow, fsSiteInfo::cMaxConns, GRP_OTHER_ID, L_OTHER, LS, NULL, fsSiteInfo::pGroup, CListCtrlEx::SetItemImage(), CListCtrlEx::SetItemText(), fsSiteInfo::strName, and fsSiteInfo::strUser.
Referenced by _SitesMgrEvents(), AddSiteToList(), OnSitesProperties(), and OnSitesTemprorary().
| 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] |
Reimplemented from CListCtrlEx.
Definition at line 212 of file SitesWnd.cpp.
References ApplyLanguageToMenu(), fsODMenu::Attach(), fsODMenu::Detach(), FALSE, IDM_SITES, m_odmenu, m_rbPt, Plugin_GetMenuImages(), fsODMenu::SetImageList(), fsODMenu::SetImages(), and UpdateMenu().
Referenced by OnKeyDown().
| void CSitesWnd::UpdateMenu | ( | CMenu * | pMenu | ) | [protected] |
Definition at line 155 of file SitesWnd.cpp.
References fsSiteInfo::bTemp, FALSE, ID_SITES_DELETE, ID_SITES_PROPERTIES, ID_SITES_TEMPRORARY, m_bSelectedIsTemp, pos(), and TRUE.
Referenced by OnRClick(), and OnUpdateMenu().
| void CSitesWnd::OnRButtonDown | ( | UINT | nFlags, | |
| CPoint | point | |||
| ) | [protected] |
| void CSitesWnd::OnDrawItem | ( | int | nIDCtl, | |
| LPDRAWITEMSTRUCT | lpDrawItemStruct | |||
| ) | [protected] |
| void CSitesWnd::OnMeasureItem | ( | int | nIDCtl, | |
| LPMEASUREITEMSTRUCT | lpMeasureItemStruct | |||
| ) | [protected] |
| 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] |
Definition at line 314 of file SitesWnd.cpp.
References _DlgMgr, _SitesMgr, fsSiteInfo::dwValidFor, fsSitesMgr::FindSite(), CSitesSheet::Init(), L_SITEPROP, LS, NULL, fsDialogsMgr::OnDoModal(), fsDialogsMgr::OnEndDialog(), pos(), fsSiteInfo::strName, and UpdateSite().
Referenced by OnKeyDown(), and OnLButtonDblClk().
| 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] |
BOOL CSitesWnd::m_bSelectedIsTemp [protected] |
CPoint CSitesWnd::m_rbPt [protected] |
Definition at line 79 of file SitesWnd.h.
Referenced by CalcCoordsForCurSel(), OnRButtonDown(), and OnRClick().
fsODMenu CSitesWnd::m_odmenu [protected] |
Definition at line 80 of file SitesWnd.h.
Referenced by OnDrawItem(), OnMeasureItem(), and OnRClick().
CImageList CSitesWnd::m_images [protected] |
CImageList CSitesWnd::m_selImages [protected] |
1.5.6