00001 // 00002 // DlgNewSearch.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_DLGNEWSEARCH_H__6120C263_1A9E_4C29_8D73_7B9FF200AF5C__INCLUDED_) 00023 #define AFX_DLGNEWSEARCH_H__6120C263_1A9E_4C29_8D73_7B9FF200AF5C__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "DlgSkinDialog.h" 00028 #include "CtrlSchema.h" 00029 #include "CtrlSchemaCombo.h" 00030 00031 class CQuerySearch; 00032 00033 00034 class CNewSearchDlg : public CSkinDialog 00035 { 00036 // Construction 00037 public: 00038 CNewSearchDlg(CWnd* pParent = NULL, CQuerySearch* pSearch = NULL, BOOL bLocal = FALSE, BOOL bAgain = FALSE); 00039 virtual ~CNewSearchDlg(); 00040 00041 // Dialog Data 00042 public: 00043 //{{AFX_DATA(CNewSearchDlg) 00044 enum { IDD = IDD_NEW_SEARCH }; 00045 CButton m_wndCancel; 00046 CButton m_wndOK; 00047 CSchemaCombo m_wndSchemas; 00048 CComboBox m_wndSearch; 00049 //}}AFX_DATA 00050 00051 // Attributes 00052 protected: 00053 CSchemaCtrl m_wndSchema; 00054 BOOL m_bLocal; 00055 BOOL m_bAgain; 00056 CQuerySearch* m_pSearch; 00057 00058 // Operations 00059 public: 00060 CQuerySearch* GetSearch(); 00061 00062 // Overrides 00063 public: 00064 //{{AFX_VIRTUAL(CNewSearchDlg) 00065 public: 00066 virtual BOOL PreTranslateMessage(MSG* pMsg); 00067 protected: 00068 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00069 //}}AFX_VIRTUAL 00070 00071 // Implementation 00072 protected: 00073 //{{AFX_MSG(CNewSearchDlg) 00074 virtual BOOL OnInitDialog(); 00075 afx_msg void OnSize(UINT nType, int cx, int cy); 00076 afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI); 00077 virtual void OnOK(); 00078 afx_msg void OnSelChangeSchemas(); 00079 afx_msg void OnCloseUpSchemas(); 00080 afx_msg void OnChangeSearch(); 00081 //}}AFX_MSG 00082 DECLARE_MESSAGE_MAP() 00083 00084 }; 00085 00086 //{{AFX_INSERT_LOCATION}} 00087 00088 #define IDC_METADATA 100 00089 00090 #endif // !defined(AFX_DLGNEWSEARCH_H__6120C263_1A9E_4C29_8D73_7B9FF200AF5C__INCLUDED_)