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

CSearchPanel Class Reference

#include <CtrlSearchPanel.h>

Inheritance diagram for CSearchPanel:

CTaskPanel List of all members.

Public Member Functions

 CSearchPanel ()
virtual ~CSearchPanel ()
void SetSearchFocus ()
void ShowSearch (CManagedSearch *pSearch)
void ShowStatus (BOOL bStarted, BOOL bSearching, DWORD nFiles, DWORD nHits, DWORD nHubs, DWORD nLeaves)
void OnSchemaChange ()
void ExecuteSearch ()
CManagedSearchGetSearch ()
void OnSkinChange ()
void Disable ()
void Enable ()
virtual BOOL Create (CWnd *pParentWnd)
virtual BOOL PreTranslateMessage (MSG *pMsg)

Public Attributes

BOOL m_bSendSearch

Protected Member Functions

afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)

Protected Attributes

CSearchInputBox m_boxSearch
CSearchAdvancedBox m_boxAdvanced
CSearchSchemaBox m_boxSchema
CSearchResultsBox m_boxResults
BOOL m_bAdvanced

Constructor & Destructor Documentation

CSearchPanel::CSearchPanel  ) 
 

Definition at line 91 of file CtrlSearchPanel.cpp.

CSearchPanel::~CSearchPanel  )  [virtual]
 

Definition at line 97 of file CtrlSearchPanel.cpp.


Member Function Documentation

BOOL CSearchPanel::Create CWnd *  pParentWnd  )  [virtual]
 

Definition at line 104 of file CtrlSearchPanel.cpp.

References CTaskPanel::Create(), and IDC_SEARCH_PANEL.

Referenced by CSearchWnd::OnCreate().

void CSearchPanel::Disable  ) 
 

Definition at line 421 of file CtrlSearchPanel.cpp.

References CSchemaCtrl::Disable(), m_boxAdvanced, m_boxSchema, m_boxSearch, CSearchAdvancedBox::m_wndNetworks, CSearchSchemaBox::m_wndSchema, CSearchInputBox::m_wndSchemas, CSearchInputBox::m_wndSearch, CSearchAdvancedBox::m_wndSizeMax, and CSearchAdvancedBox::m_wndSizeMin.

Referenced by CSearchWnd::ExecuteSearch(), and CSearchWnd::OnCreate().

void CSearchPanel::Enable  ) 
 

Definition at line 409 of file CtrlSearchPanel.cpp.

References CSchemaCtrl::Enable(), m_boxAdvanced, m_boxSchema, m_boxSearch, CSearchAdvancedBox::m_wndNetworks, CSearchSchemaBox::m_wndSchema, CSearchInputBox::m_wndSchemas, CSearchInputBox::m_wndSearch, CSearchAdvancedBox::m_wndSizeMax, and CSearchAdvancedBox::m_wndSizeMin.

Referenced by CSearchWnd::OnSearchStop().

void CSearchPanel::ExecuteSearch  ) 
 

Definition at line 362 of file CtrlSearchPanel.cpp.

References ID_SEARCH_SEARCH, and m_bSendSearch.

Referenced by CSearchInputBox::OnSearchStart(), and PreTranslateMessage().

CManagedSearch * CSearchPanel::GetSearch  ) 
 

Definition at line 279 of file CtrlSearchPanel.cpp.

References CXMLElement::AddElement(), CQuerySearch::BuildWordList(), CQuerySearch::CheckValid(), CNetworkCombo::GetNetwork(), CSchemaCombo::GetSelected(), CSettings::sSearch::LastSchemaURI, m_bAdvanced, CManagedSearch::m_bAllowED2K, CManagedSearch::m_bAllowG1, CManagedSearch::m_bAllowG2, m_boxAdvanced, m_boxSchema, m_boxSearch, CQuerySearch::m_nMaxSize, CQuerySearch::m_nMinSize, CQuerySearch::m_pSchema, CManagedSearch::m_pSearch, CQuerySearch::m_pXML, CQuerySearch::m_sSearch, CSearchAdvancedBox::m_wndNetworks, CSearchSchemaBox::m_wndSchema, CSearchInputBox::m_wndSchemas, CSearchInputBox::m_wndSearch, CSearchAdvancedBox::m_wndSizeMax, CSearchAdvancedBox::m_wndSizeMin, NULL, CSettings::ParseVolume(), PROTOCOL_ED2K, PROTOCOL_G1, PROTOCOL_G2, PROTOCOL_NULL, CSettings::Search, Settings, SIZE_UNKNOWN, and CSchemaCtrl::UpdateData().

Referenced by CSearchWnd::OnSearchSearch().

int CSearchPanel::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CTaskPanel.

Definition at line 110 of file CtrlSearchPanel.cpp.

References CTaskPanel::AddBox(), CSettings::sSearch::AdvancedPanel, CTaskBox::Create(), CSettings::General, GUI_BASIC, CSettings::sGeneral::GUIMode, IDR_HOSTCACHEFRAME, IDR_SEARCHFRAME, m_bAdvanced, m_boxAdvanced, m_boxResults, m_boxSchema, m_boxSearch, CTaskPanel::OnCreate(), OnSkinChange(), CSettings::Search, CTaskPanel::SetStretchBox(), and Settings.

void CSearchPanel::OnSchemaChange  ) 
 

Definition at line 259 of file CtrlSearchPanel.cpp.

References CreateMirroredIcon(), CShellIcons::ExtractIcon(), CSchemaCombo::GetSelected(), m_boxSchema, m_boxSearch, CShareazaApp::m_bRTL, CSchema::m_nIcon16, CSchema::m_sTitle, CSearchSchemaBox::m_wndSchema, CSearchInputBox::m_wndSchemas, NULL, CTaskBox::SetCaption(), CTaskBox::SetIcon(), CSchemaCtrl::SetSchema(), CTaskBox::SetSize(), ShellIcons, and theApp.

Referenced by CSearchInputBox::OnSelChangeSchemas(), and ShowSearch().

void CSearchPanel::OnSkinChange  ) 
 

Definition at line 146 of file CtrlSearchPanel.cpp.

References CSkin::GetWatermark(), IDS_SEARCH_PANEL_ADVANCED, IDS_SEARCH_PANEL_INPUT_CAPTION, IDS_SEARCH_PANEL_RESULTS_CAPTION, LoadString(), m_boxAdvanced, m_boxResults, m_boxSchema, m_boxSearch, CSearchAdvancedBox::OnSkinChange(), CSearchInputBox::OnSkinChange(), CTaskBox::SetCaption(), CTaskBox::SetCaptionmark(), CTaskPanel::SetFooter(), CTaskBox::SetWatermark(), CTaskPanel::SetWatermark(), and Skin.

Referenced by OnCreate(), and CSearchWnd::OnSkinChange().

BOOL CSearchPanel::PreTranslateMessage MSG *  pMsg  )  [virtual]
 

Definition at line 369 of file CtrlSearchPanel.cpp.

References ExecuteSearch(), m_boxSchema, m_boxSearch, CSearchSchemaBox::m_wndSchema, CSearchInputBox::m_wndSchemas, and CSearchInputBox::m_wndSearch.

void CSearchPanel::SetSearchFocus  ) 
 

Definition at line 177 of file CtrlSearchPanel.cpp.

References m_boxSearch, and CSearchInputBox::m_wndSearch.

Referenced by CSearchWnd::OnMDIActivate(), and CSearchWnd::OnTimer().

void CSearchPanel::ShowSearch CManagedSearch pSearch  ) 
 

Definition at line 182 of file CtrlSearchPanel.cpp.

References CXMLElement::GetFirstElement(), m_bAdvanced, CManagedSearch::m_bAllowED2K, CManagedSearch::m_bAllowG1, CManagedSearch::m_bAllowG2, m_boxAdvanced, m_boxSchema, m_boxSearch, CQuerySearch::m_nMaxSize, CQuerySearch::m_nMinSize, CQuerySearch::m_pSchema, CManagedSearch::m_pSearch, CQuerySearch::m_pXML, CQuerySearch::m_sSearch, CSearchAdvancedBox::m_wndNetworks, CSearchSchemaBox::m_wndSchema, CSearchInputBox::m_wndSchemas, CSearchInputBox::m_wndSearch, CSearchAdvancedBox::m_wndSizeMax, CSearchAdvancedBox::m_wndSizeMin, NULL, OnSchemaChange(), PROTOCOL_ED2K, PROTOCOL_G1, PROTOCOL_G2, PROTOCOL_NULL, CSchemaCombo::Select(), CNetworkCombo::SetNetwork(), Settings, SIZE_UNKNOWN, CSettings::SmartVolume(), and CSchemaCtrl::UpdateData().

Referenced by CSearchWnd::ExecuteSearch(), CSearchWnd::OnCreate(), and CSearchWnd::Serialize().

void CSearchPanel::ShowStatus BOOL  bStarted,
BOOL  bSearching,
DWORD  nFiles,
DWORD  nHits,
DWORD  nHubs,
DWORD  nLeaves
 

Definition at line 228 of file CtrlSearchPanel.cpp.

References IDS_SEARCH_PANEL_CLEAR, IDS_SEARCH_PANEL_MORE, IDS_SEARCH_PANEL_SEARCHING, IDS_SEARCH_PANEL_START, IDS_SEARCH_PANEL_STOP, LoadString(), m_boxResults, m_boxSearch, CSearchInputBox::m_wndStart, CSearchInputBox::m_wndStop, CIconButtonCtrl::SetText(), and CSearchResultsBox::Update().

Referenced by CSearchWnd::UpdateMessages().


Member Data Documentation

BOOL CSearchPanel::m_bAdvanced [protected]
 

Definition at line 195 of file CtrlSearchPanel.h.

Referenced by GetSearch(), OnCreate(), and ShowSearch().

CSearchAdvancedBox CSearchPanel::m_boxAdvanced [protected]
 

Definition at line 192 of file CtrlSearchPanel.h.

Referenced by Disable(), Enable(), GetSearch(), OnCreate(), OnSkinChange(), and ShowSearch().

CSearchResultsBox CSearchPanel::m_boxResults [protected]
 

Definition at line 194 of file CtrlSearchPanel.h.

Referenced by OnCreate(), OnSkinChange(), and ShowStatus().

CSearchSchemaBox CSearchPanel::m_boxSchema [protected]
 

Definition at line 193 of file CtrlSearchPanel.h.

Referenced by Disable(), Enable(), GetSearch(), OnCreate(), OnSchemaChange(), OnSkinChange(), PreTranslateMessage(), and ShowSearch().

CSearchInputBox CSearchPanel::m_boxSearch [protected]
 

Definition at line 191 of file CtrlSearchPanel.h.

Referenced by Disable(), Enable(), GetSearch(), OnCreate(), OnSchemaChange(), OnSkinChange(), PreTranslateMessage(), SetSearchFocus(), ShowSearch(), and ShowStatus().

BOOL CSearchPanel::m_bSendSearch
 

Definition at line 189 of file CtrlSearchPanel.h.

Referenced by ExecuteSearch(), and CSearchWnd::OnSearchSearch().


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