Index: src/ch/FeedbackReplaceDlg.h =================================================================== diff -u -rb9453afbc6264bc3f3c6a7f86fadab7744e0fb16 -rf8b6de9c28b2957db0b4e71efa11df8632e41261 --- src/ch/FeedbackReplaceDlg.h (.../FeedbackReplaceDlg.h) (revision b9453afbc6264bc3f3c6a7f86fadab7744e0fb16) +++ src/ch/FeedbackReplaceDlg.h (.../FeedbackReplaceDlg.h) (revision f8b6de9c28b2957db0b4e71efa11df8632e41261) @@ -1,25 +1,24 @@ -/*************************************************************************** - * Copyright (C) 2001-2008 by Jozef 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 __FEEDBACKREPLACEDLG_H__ -#define __FEEDBACKREPLACEDLG_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 "../libchengine/FeedbackAlreadyExistsRuleList.h" +#include "../libchengine/FeedbackRules.h" namespace chengine { @@ -31,16 +30,16 @@ DECLARE_DYNAMIC(CFeedbackReplaceDlg) public: - CFeedbackReplaceDlg(const chengine::TFileInfo& spSrcFile, const chengine::TFileInfo& spDstFile, const string::TString& strSuggestedName, CWnd* pParent = nullptr); // standard constructor + CFeedbackReplaceDlg(chengine::FeedbackRules& currentRules, const chengine::TFileInfo& spSrcFile, const chengine::TFileInfo& spDstFile, const string::TString& strSuggestedName, CWnd* pParent = nullptr); // standard constructor virtual ~CFeedbackReplaceDlg(); BOOL OnInitDialog() override; - const chengine::FeedbackAlreadyExistsRuleList& GetRules() const; + const chengine::FeedbackRules& GetRules() const; string::TString GetNewName() const { return m_strNewName; } protected: - void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support + void DoDataExchange(CDataExchange* pDX) override; void OnCancel() override; void RefreshFilesInfo(); @@ -52,6 +51,7 @@ afx_msg void OnBnClickedSkipButton(); afx_msg void OnBnClickedPauseButton(); afx_msg void OnBnClickedCancelButton(); + afx_msg void OnBnCustomRulesButton(); afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI); @@ -78,6 +78,7 @@ CMFCMenuButton m_btnSkip; CMFCButton m_btnPause; CMFCButton m_btnCancel; + CMFCButton m_btnCustomRules; CMenu m_menuMassReplace; CMenu m_menuMassRename; @@ -89,8 +90,6 @@ const chengine::TFileInfo& m_rSrcFile; const chengine::TFileInfo& m_rDstFile; - chengine::FeedbackAlreadyExistsRuleList m_feedbackRules; // feedback rules resulting from choices made in this dialog box + chengine::FeedbackRules& m_rules; string::TString m_strNewName; }; - -#endif