Index: src/ch/CustomCopyDlg.h =================================================================== diff -u -N -r52e4374b1e7044f77439e34581780750675125a7 -rd5c3edd0d167db9b5d47d04248820fda49499a5e --- src/ch/CustomCopyDlg.h (.../CustomCopyDlg.h) (revision 52e4374b1e7044f77439e34581780750675125a7) +++ src/ch/CustomCopyDlg.h (.../CustomCopyDlg.h) (revision d5c3edd0d167db9b5d47d04248820fda49499a5e) @@ -1,119 +1,119 @@ -/*************************************************************************** -* Copyright (C) 2001-2008 by J�zef Starosczyk * -* ixen@copyhandler.com * -* * -* This program is free software; you can redistribute it and/or modify * -* it under the terms of the GNU Library General Public License * -* (version 2) as published by the Free Software Foundation; * -* * -* This program is distributed in the hope that it will be useful, * -* but WITHOUT ANY WARRANTY; without even the implied warranty of * -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -* GNU General Public License for more details. * -* * -* You should have received a copy of the GNU Library General Public * -* License along with this program; if not, write to the * -* Free Software Foundation, Inc., * -* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * -***************************************************************************/ -#ifndef __CUSTOMCOPYDLG_H__ -#define __CUSTOMCOPYDLG_H__ - -#include "DataBuffer.h" -#include "FileFilter.h" -#include "charvect.h" - -///////////////////////////////////////////////////////////////////////////// -// CCustomCopyDlg dialog - -class CCustomCopyDlg : public ictranslate::CLanguageDialog -{ -// Construction -public: - CCustomCopyDlg(); // standard constructor - - void SetBuffersizesString(); - - struct _CCDATA - { - CStringArray m_astrPaths; // source paths to copy/move - CString m_strDestPath; // currently selected destination path - char_vector m_vRecent; // recently selected paths - int m_iOperation; // copy || move - int m_iPriority; // operation priority - BYTE m_ucCount; // count of copys - BUFFERSIZES m_bsSizes; // buffer sizes selected for this task - - CFiltersArray m_afFilters; // list of filters to select from combos - - bool m_bIgnoreFolders; - bool m_bForceDirectories; - bool m_bCreateStructure; - } m_ccData; - - bool m_bActualisation; // is this dialog processing the combo text changing ? -// Dialog Data - //{{AFX_DATA(CCustomCopyDlg) - enum { IDD = IDD_CUSTOM_COPY_DIALOG }; - CComboBoxEx m_ctlDstPath; - CSpinButtonCtrl m_ctlCountSpin; - CListCtrl m_ctlFilters; - CListBox m_ctlBufferSizes; - CComboBox m_ctlOperation; - CComboBox m_ctlPriority; - CListCtrl m_ctlFiles; - BYTE m_ucCount; - BOOL m_bOnlyCreate; - BOOL m_bIgnoreFolders; - BOOL m_bForceDirectories; - BOOL m_bFilters; - BOOL m_bAdvanced; - //}}AFX_DATA - -// Overrides - // ClassWizard generated virtual function overrides - //{{AFX_VIRTUAL(CCustomCopyDlg) - protected: - virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support - //}}AFX_VIRTUAL - -// Implementation -protected: - virtual void OnLanguageChanged(); - void UpdateDialog(); - void UpdateComboIcon(); - void SetComboPath(LPCTSTR lpszText); - void EnableControls(); - void AddFilter(const CFileFilter& rFilter, int iPos=-1); - void AddPath(CString strPath); - CImageList m_ilImages; - - // Generated message map functions - //{{AFX_MSG(CCustomCopyDlg) - virtual BOOL OnInitDialog(); - afx_msg void OnAddDirectoryButton(); - afx_msg void OnAddFilesButton(); - afx_msg void OnRemoveButton(); - afx_msg void OnBrowseButton(); - virtual void OnOK(); - afx_msg void OnChangebufferButton(); - afx_msg void OnAddfilterButton(); - afx_msg void OnRemovefilterButton(); - afx_msg void OnDestroy(); - afx_msg void OnFiltersCheck(); - afx_msg void OnStandardCheck(); - afx_msg void OnAdvancedCheck(); - afx_msg void OnDblclkFiltersList(NMHDR* pNMHDR, LRESULT* pResult); - afx_msg void OnDblclkBuffersizesList(); - afx_msg void OnEditchangeDestpathComboboxex(); - afx_msg void OnImportButton(); - afx_msg void OnIgnorefoldersCheck(); - afx_msg void OnForcedirectoriesCheck(); - //}}AFX_MSG - DECLARE_MESSAGE_MAP() -}; - -//{{AFX_INSERT_LOCATION}} -// Microsoft Visual C++ will insert additional declarations immediately before the previous line. - -#endif +/*************************************************************************** +* Copyright (C) 2001-2008 by J�zef Starosczyk * +* ixen@copyhandler.com * +* * +* This program is free software; you can redistribute it and/or modify * +* it under the terms of the GNU Library General Public License * +* (version 2) as published by the Free Software Foundation; * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU Library General Public * +* License along with this program; if not, write to the * +* Free Software Foundation, Inc., * +* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * +***************************************************************************/ +#ifndef __CUSTOMCOPYDLG_H__ +#define __CUSTOMCOPYDLG_H__ + +#include "DataBuffer.h" +#include "FileFilter.h" +#include "charvect.h" + +///////////////////////////////////////////////////////////////////////////// +// CCustomCopyDlg dialog + +class CCustomCopyDlg : public ictranslate::CLanguageDialog +{ +// Construction +public: + CCustomCopyDlg(); // standard constructor + + void SetBuffersizesString(); + + struct _CCDATA + { + CStringArray m_astrPaths; // source paths to copy/move + CString m_strDestPath; // currently selected destination path + char_vector m_vRecent; // recently selected paths + int m_iOperation; // copy || move + int m_iPriority; // operation priority + BYTE m_ucCount; // count of copys + BUFFERSIZES m_bsSizes; // buffer sizes selected for this task + + CFiltersArray m_afFilters; // list of filters to select from combos + + bool m_bIgnoreFolders; + bool m_bForceDirectories; + bool m_bCreateStructure; + } m_ccData; + + bool m_bActualisation; // is this dialog processing the combo text changing ? +// Dialog Data + //{{AFX_DATA(CCustomCopyDlg) + enum { IDD = IDD_CUSTOM_COPY_DIALOG }; + CComboBoxEx m_ctlDstPath; + CSpinButtonCtrl m_ctlCountSpin; + CListCtrl m_ctlFilters; + CListBox m_ctlBufferSizes; + CComboBox m_ctlOperation; + CComboBox m_ctlPriority; + CListCtrl m_ctlFiles; + BYTE m_ucCount; + BOOL m_bOnlyCreate; + BOOL m_bIgnoreFolders; + BOOL m_bForceDirectories; + BOOL m_bFilters; + BOOL m_bAdvanced; + //}}AFX_DATA + +// Overrides + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CCustomCopyDlg) + protected: + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + //}}AFX_VIRTUAL + +// Implementation +protected: + virtual void OnLanguageChanged(); + void UpdateDialog(); + void UpdateComboIcon(); + void SetComboPath(LPCTSTR lpszText); + void EnableControls(); + void AddFilter(const CFileFilter& rFilter, int iPos=-1); + void AddPath(CString strPath); + CImageList m_ilImages; + + // Generated message map functions + //{{AFX_MSG(CCustomCopyDlg) + virtual BOOL OnInitDialog(); + afx_msg void OnAddDirectoryButton(); + afx_msg void OnAddFilesButton(); + afx_msg void OnRemoveButton(); + afx_msg void OnBrowseButton(); + virtual void OnOK(); + afx_msg void OnChangebufferButton(); + afx_msg void OnAddfilterButton(); + afx_msg void OnRemovefilterButton(); + afx_msg void OnDestroy(); + afx_msg void OnFiltersCheck(); + afx_msg void OnStandardCheck(); + afx_msg void OnAdvancedCheck(); + afx_msg void OnDblclkFiltersList(NMHDR* pNMHDR, LRESULT* pResult); + afx_msg void OnDblclkBuffersizesList(); + afx_msg void OnEditchangeDestpathComboboxex(); + afx_msg void OnImportButton(); + afx_msg void OnIgnorefoldersCheck(); + afx_msg void OnForcedirectoriesCheck(); + //}}AFX_MSG + DECLARE_MESSAGE_MAP() +}; + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif