00001 // 00002 // DlgFolderProperties.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_DLGFOLDERPROPERTIES_H__692DC944_E81F_46C3_80F2_6DF9256B4B6D__INCLUDED_) 00023 #define AFX_DLGFOLDERPROPERTIES_H__692DC944_E81F_46C3_80F2_6DF9256B4B6D__INCLUDED_ 00024 00025 #pragma once 00026 00027 #include "DlgSkinDialog.h" 00028 #include "CtrlSchema.h" 00029 #include "CtrlSchemaCombo.h" 00030 00031 class CAlbumFolder; 00032 00033 00034 class CFolderPropertiesDlg : public CSkinDialog 00035 { 00036 // Construction 00037 public: 00038 CFolderPropertiesDlg(CWnd* pParent = NULL, CAlbumFolder* pFolder = NULL); 00039 00040 DECLARE_DYNAMIC(CFolderPropertiesDlg) 00041 00042 // Dialog Data 00043 public: 00044 //{{AFX_DATA(CFolderPropertiesDlg) 00045 enum { IDD = IDD_FOLDER_PROPERTIES }; 00046 CStatic m_wndApply; 00047 CButton m_wndCancel; 00048 CButton m_wndOK; 00049 CEdit m_wndTitle; 00050 CSchemaCombo m_wndSchemas; 00051 CStatic m_wndTitleLabel; 00052 CStatic m_wndTypeLabel; 00053 //}}AFX_DATA 00054 00055 // Attributes 00056 protected: 00057 CAlbumFolder* m_pFolder; 00058 CSchemaCtrl m_wndData; 00059 int m_nWidth; 00060 BOOL m_bUpdating; 00061 00062 void DoApply(BOOL bMetaToFiles); 00063 00064 // Overrides 00065 public: 00066 //{{AFX_VIRTUAL(CFolderPropertiesDlg) 00067 public: 00068 virtual BOOL PreTranslateMessage(MSG* pMsg); 00069 protected: 00070 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 00071 //}}AFX_VIRTUAL 00072 00073 // Implementation 00074 protected: 00075 //{{AFX_MSG(CFolderPropertiesDlg) 00076 virtual BOOL OnInitDialog(); 00077 afx_msg void OnDestroy(); 00078 afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI); 00079 afx_msg void OnSize(UINT nType, int cx, int cy); 00080 afx_msg void OnSelChangeSchemas(); 00081 afx_msg void OnCloseUpSchemas(); 00082 virtual void OnOK(); 00083 afx_msg void OnPaint(); 00084 afx_msg void OnChangeTitle(); 00085 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 00086 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); 00087 afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 00088 //}}AFX_MSG 00089 afx_msg void OnChangeData(); 00090 00091 DECLARE_MESSAGE_MAP() 00092 00093 }; 00094 00095 //{{AFX_INSERT_LOCATION}} 00096 00097 #define IDC_METADATA 100 00098 00099 00100 #endif // !defined(AFX_DLGFOLDERPROPERTIES_H__692DC944_E81F_46C3_80F2_6DF9256B4B6D__INCLUDED_)