Index: src/ch/CustomCopyDlg.h =================================================================== diff -u -N -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -r53e3a91f9bcb2e26f758fc92e9856a69eba71a61 --- src/ch/CustomCopyDlg.h (.../CustomCopyDlg.h) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/ch/CustomCopyDlg.h (.../CustomCopyDlg.h) (revision 53e3a91f9bcb2e26f758fc92e9856a69eba71a61) @@ -1,27 +1,27 @@ -/*************************************************************************** -* 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__ +// ============================================================================ +// Copyright (C) 2001-2020 by Jozef Starosczyk +// ixen {at} copyhandler [dot] 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. +// ============================================================================ +#pragma once #include "CDragDropListCtrl.h" #include "CDragDropComboEx.h" #include "../libchengine/TTaskDefinition.h" +#include "../libchengine/FeedbackRules.h" ///////////////////////////////////////////////////////////////////////////// // CCustomCopyDlg dialog @@ -37,17 +37,14 @@ CCustomCopyDlg(); // standard constructor explicit CCustomCopyDlg(const chengine::TTaskDefinition& rTaskDefinition); -// Overrides protected: void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support - -// Implementation -protected: void OnLanguageChanged() override; void UpdateFilesListCtrlHeaderWidth(); - void UpdateComboIcon(); + void UpdateFeedbackRulesEdit(); + void EnableControls(); void AddFilter(const chengine::TFileFilter& rFilter, int iPos=-1); void AddPath(CString strPath); @@ -57,13 +54,12 @@ bool HasBasicTaskData(); void UpdateInternalTaskDefinition(); - // Generated message map functions BOOL OnInitDialog() override; afx_msg void OnAddDirectoryButton(); afx_msg void OnAddFilesButton(); afx_msg void OnRemoveButton(); afx_msg void OnBrowseButton(); - void OnOK() override; + afx_msg void OnOK() override; afx_msg void OnChangebufferButton(); afx_msg void OnAddfilterButton(); afx_msg void OnRemovefilterButton(); @@ -78,12 +74,14 @@ afx_msg void OnIgnorefoldersCheck(); afx_msg void OnForcedirectoriesCheck(); afx_msg void OnExportButtonClicked(); + afx_msg void OnBnCustomRules(); afx_msg void OnSize(UINT nType, int cx, int cy); DECLARE_MESSAGE_MAP() public: chengine::TTaskDefinition m_tTaskDefinition; + chengine::FeedbackRules m_rules; std::vector m_vRecent; // recently selected paths CDragDropComboEx m_ctlDstPath; @@ -93,6 +91,7 @@ CComboBox m_ctlPriority; CDragDropListCtrl m_ctlFiles; CImageList m_ilImages; + CEdit m_ctlFeedbackRules; bool m_bActualisation = false; // is this dialog processing the combo text changing ? BOOL m_bOnlyCreate = FALSE; @@ -101,5 +100,3 @@ BOOL m_bFilters = FALSE; BOOL m_bAdvanced = FALSE; }; - -#endif