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

WndSearchPad.h

Go to the documentation of this file.
00001 //
00002 // WndSearchPad.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_WNDSEARCHPAD_H__16971510_B95B_4B55_BA3B_AD7F47D8C9D1__INCLUDED_)
00023 #define AFX_WNDSEARCHPAD_H__16971510_B95B_4B55_BA3B_AD7F47D8C9D1__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "WndPanel.h"
00028 #include "CtrlSchema.h"
00029 #include "CtrlSchemaCombo.h"
00030 #include "CtrlIconButton.h"
00031 
00032 class CQuerySearch;
00033 
00034 
00035 class CSearchPadWnd : public CPanelWnd
00036 {
00037 // Construction
00038 public:
00039         CSearchPadWnd();
00040         virtual ~CSearchPadWnd();
00041 
00042         DECLARE_DYNCREATE(CSearchPadWnd)
00043 
00044 // Attributes
00045 protected:
00046         CEdit                   m_wndText;
00047         CSchemaCombo    m_wndSchema;
00048         CSchemaCtrl             m_wndData;
00049         CIconButtonCtrl m_wndSearch;
00050         CFont                   m_pFont;
00051 
00052 // Operations
00053 public:
00054         virtual void OnSkinChange();
00055 protected:
00056         CQuerySearch*   GetSearch();
00057         void                    ClearSearch();
00058 
00059 // Overrides
00060 public:
00061         //{{AFX_VIRTUAL(CSearchPadWnd)
00062         public:
00063         virtual BOOL PreTranslateMessage(MSG* pMsg);
00064         //}}AFX_VIRTUAL
00065 
00066 // Implementation
00067 protected:
00068         //{{AFX_MSG(CSearchPadWnd)
00069         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00070         afx_msg void OnDestroy();
00071         afx_msg void OnSize(UINT nType, int cx, int cy);
00072         afx_msg void OnPaint();
00073         afx_msg void OnSelChangeSchemas();
00074         afx_msg void OnSearchCreate();
00075         afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);
00076         //}}AFX_MSG
00077 
00078         DECLARE_MESSAGE_MAP()
00079 
00080 };
00081 
00082 //{{AFX_INSERT_LOCATION}}
00083 
00084 #define IDC_SEARCH_TEXT         121
00085 #define IDC_SEARCH_SCHEMAS      122
00086 #define IDC_SEARCH_DATA         123
00087 #define IDC_SEARCH_CREATE       124
00088 
00089 #endif // !defined(AFX_WNDSEARCHPAD_H__16971510_B95B_4B55_BA3B_AD7F47D8C9D1__INCLUDED_)

Generated on Thu Dec 15 10:39:53 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2