Index: src/ch/FeedbackReplaceDlg.h =================================================================== diff -u -r0d5b67ee96b435d63f7bf075dc8e28603793b187 -rf8b6de9c28b2957db0b4e71efa11df8632e41261 --- src/ch/FeedbackReplaceDlg.h (.../FeedbackReplaceDlg.h) (revision 0d5b67ee96b435d63f7bf075dc8e28603793b187) +++ src/ch/FeedbackReplaceDlg.h (.../FeedbackReplaceDlg.h) (revision f8b6de9c28b2957db0b4e71efa11df8632e41261) @@ -1,24 +1,25 @@ -/*************************************************************************** - * 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/FeedbackRules.h" + namespace chengine { class TFileInfo; @@ -29,20 +30,31 @@ DECLARE_DYNAMIC(CFeedbackReplaceDlg) public: - CFeedbackReplaceDlg(const chengine::TFileInfo& spSrcFile, const chengine::TFileInfo& spDstFile, 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; - bool IsApplyToAllItemsChecked() 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(); void RefreshImages(); + afx_msg void OnBnClickedReplaceButton(); + afx_msg void OnBnClickedRenameButton(); + afx_msg void OnBnClickedCopyRestButton(); + afx_msg void OnBnClickedSkipButton(); + afx_msg void OnBnClickedPauseButton(); + afx_msg void OnBnClickedCancelButton(); + afx_msg void OnBnCustomRulesButton(); + + afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI); + DECLARE_MESSAGE_MAP() private: @@ -55,22 +67,29 @@ CEdit m_ctlSrcDate; CEdit m_ctlDstName; + CEdit m_ctlDstRename; CEdit m_ctlDstPath; CEdit m_ctlDstSize; CEdit m_ctlDstDate; - BOOL m_bAllItems; + CMFCMenuButton m_btnReplace; + CMFCMenuButton m_btnRename; + CMFCMenuButton m_btnResume; + CMFCMenuButton m_btnSkip; + CMFCButton m_btnPause; + CMFCButton m_btnCancel; + CMFCButton m_btnCustomRules; -protected: + CMenu m_menuMassReplace; + CMenu m_menuMassRename; + CMenu m_menuMassResume; + CMenu m_menuMassSkip; + + CRect m_rcInitial; + const chengine::TFileInfo& m_rSrcFile; const chengine::TFileInfo& m_rDstFile; -public: - afx_msg void OnBnClickedReplaceButton(); - afx_msg void OnBnClickedCopyRestButton(); - afx_msg void OnBnClickedSkipButton(); - afx_msg void OnBnClickedPauseButton(); - afx_msg void OnBnClickedCancelButton(); + chengine::FeedbackRules& m_rules; + string::TString m_strNewName; }; - -#endif