OSDN Git Service

Add SVN keywords for ConfirmFolderCopyDlg.
authorKimmo Varis <kimmov@gmail.com>
Tue, 16 Oct 2007 09:29:43 +0000 (09:29 +0000)
committerKimmo Varis <kimmov@gmail.com>
Tue, 16 Oct 2007 09:29:43 +0000 (09:29 +0000)
Src/ConfirmFolderCopyDlg.cpp
Src/ConfirmFolderCopyDlg.h

index cb2dd39..f57ea79 100644 (file)
-/////////////////////////////////////////////////////////////////////////////\r
-//    License (GPLv2+):\r
-//    This program is free software; you can redistribute it and/or modify\r
-//    it under the terms of the GNU General Public License as published by\r
-//    the Free Software Foundation; either version 2 of the License, or\r
-//    (at your option) any later version.\r
-//\r
-//    This program is distributed in the hope that it will be useful, but\r
-//    WITHOUT ANY WARRANTY; without even the implied warranty of\r
-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
-//    General Public License for more details.\r
-//\r
-//    You should have received a copy of the GNU General Public License\r
-//    along with this program; if not, write to the Free Software\r
-//    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
-/////////////////////////////////////////////////////////////////////////////\r
-/**\r
- * @file  ConfirmFolderCopyDlg.cpp\r
- *\r
- * @brief Implementation file for ConfirmFolderCopyDlg dialog\r
- */\r
-// ID line follows -- this is updated by SVN\r
-// $Id: $\r
-\r
-#include "stdafx.h"\r
-#include "Merge.h"\r
-#include "ConfirmFolderCopyDlg.h"\r
-\r
-#ifdef _DEBUG\r
-#define new DEBUG_NEW\r
-#undef THIS_FILE\r
-static char THIS_FILE[] = __FILE__;\r
-#endif\r
-\r
-\r
-// ConfirmFolderCopyDlg dialog\r
-\r
-IMPLEMENT_DYNAMIC(ConfirmFolderCopyDlg, CDialog)\r
-ConfirmFolderCopyDlg::ConfirmFolderCopyDlg(CWnd* pParent /*=NULL*/)\r
-       : CDialog(ConfirmFolderCopyDlg::IDD, pParent)\r
-{\r
-}\r
-\r
-ConfirmFolderCopyDlg::~ConfirmFolderCopyDlg()\r
-{\r
-}\r
-\r
-void ConfirmFolderCopyDlg::DoDataExchange(CDataExchange* pDX)\r
-{\r
-       CDialog::DoDataExchange(pDX);\r
-       //{{AFX_DATA_MAP(ConfirmFolderCopyDlg)\r
-       DDX_Text(pDX, IDC_FLDCONFIRM_FROM_TEXT, m_fromText);\r
-       DDX_Text(pDX, IDC_FLDCONFIRM_TO_TEXT, m_toText);\r
-       DDX_Text(pDX, IDC_FLDCONFIRM_FROM_PATH, m_fromPath);\r
-       DDX_Text(pDX, IDC_FLDCONFIRM_TO_PATH, m_toPath);\r
-       DDX_Text(pDX, IDC_FLDCONFIRM_QUERY, m_question);\r
-       //}}AFX_DATA_MAP\r
-}\r
-\r
-\r
-BEGIN_MESSAGE_MAP(ConfirmFolderCopyDlg, CDialog)\r
-       ON_BN_CLICKED(IDNO, OnBnClickedNo)\r
-       ON_BN_CLICKED(IDYES, OnBnClickedYes)\r
-END_MESSAGE_MAP()\r
-\r
-\r
-// ConfirmFolderCopyDlg message handlers\r
-\r
-/**\r
- * @brief Handler for WM_INITDIALOG; conventional location to initialize\r
- * controls. At this point dialog and control windows exist.\r
- */\r
-BOOL ConfirmFolderCopyDlg::OnInitDialog() \r
-{\r
-       theApp.TranslateDialog(m_hWnd);\r
-       CDialog::OnInitDialog();\r
-\r
-       GetDlgItem(IDNO)->SetFocus();\r
-\r
-       // Load warning icon\r
-       // TODO: we can have per-action icons?\r
-       HICON icon = AfxGetApp()->LoadStandardIcon(IDI_EXCLAMATION);\r
-       CStatic * pIcon = (CStatic *) GetDlgItem(IDC_FLDCONFIRM_ICON);\r
-       pIcon->SetIcon(icon);\r
-\r
-       // setup handler for resizing this dialog       \r
-       m_constraint.InitializeCurrentSize(this);\r
-       // configure how individual controls adjust when dialog resizes\r
-       m_constraint.ConstrainItem(IDC_FLDCONFIRM_FROM_PATH, 0, 1, 0, 0); // grows right\r
-       m_constraint.ConstrainItem(IDC_FLDCONFIRM_TO_PATH, 0, 1, 0, 0); // grows right\r
-       // IDC_SAVECLOSING_DISCARDALL doesn't move\r
-       m_constraint.ConstrainItem(IDYES, 1, 0, 0, 0); // slides right\r
-       m_constraint.ConstrainItem(IDNO, 1, 0, 0, 0); // slides right\r
-       m_constraint.DisallowHeightGrowth();\r
-       m_constraint.SubclassWnd(); // install subclassing\r
-       // persist size via registry\r
-       m_constraint.LoadPosition(_T("ResizeableDialogs"), _T("FolderCopyConfirmDlg"), false);\r
-\r
-\r
-       return FALSE;  // return TRUE unless you set the focus to a control\r
-                     // EXCEPTION: OCX Property Pages should return FALSE\r
-}\r
-\r
-/**\r
- * @brief Close dialog when No button is clicked.\r
- */\r
-void ConfirmFolderCopyDlg::OnBnClickedNo()\r
-{\r
-       EndDialog(IDNO);\r
-}\r
-\r
-/**\r
- * @brief Close dialog when Yes button is clicked.\r
- */\r
-void ConfirmFolderCopyDlg::OnBnClickedYes()\r
-{\r
-       EndDialog(IDYES);\r
-}\r
+/////////////////////////////////////////////////////////////////////////////
+//    License (GPLv2+):
+//    This program is free software; you can redistribute it and/or modify
+//    it under the terms of the GNU General Public License as published by
+//    the Free Software Foundation; either version 2 of the License, or
+//    (at your option) any later version.
+//
+//    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 General Public License
+//    along with this program; if not, write to the Free Software
+//    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+/////////////////////////////////////////////////////////////////////////////
+/**
+ * @file  ConfirmFolderCopyDlg.cpp
+ *
+ * @brief Implementation file for ConfirmFolderCopyDlg dialog
+ */
+// ID line follows -- this is updated by SVN
+// $Id$
+
+#include "stdafx.h"
+#include "Merge.h"
+#include "ConfirmFolderCopyDlg.h"
+
+#ifdef _DEBUG
+#define new DEBUG_NEW
+#undef THIS_FILE
+static char THIS_FILE[] = __FILE__;
+#endif
+
+
+// ConfirmFolderCopyDlg dialog
+
+IMPLEMENT_DYNAMIC(ConfirmFolderCopyDlg, CDialog)
+ConfirmFolderCopyDlg::ConfirmFolderCopyDlg(CWnd* pParent /*=NULL*/)
+       : CDialog(ConfirmFolderCopyDlg::IDD, pParent)
+{
+}
+
+ConfirmFolderCopyDlg::~ConfirmFolderCopyDlg()
+{
+}
+
+void ConfirmFolderCopyDlg::DoDataExchange(CDataExchange* pDX)
+{
+       CDialog::DoDataExchange(pDX);
+       //{{AFX_DATA_MAP(ConfirmFolderCopyDlg)
+       DDX_Text(pDX, IDC_FLDCONFIRM_FROM_TEXT, m_fromText);
+       DDX_Text(pDX, IDC_FLDCONFIRM_TO_TEXT, m_toText);
+       DDX_Text(pDX, IDC_FLDCONFIRM_FROM_PATH, m_fromPath);
+       DDX_Text(pDX, IDC_FLDCONFIRM_TO_PATH, m_toPath);
+       DDX_Text(pDX, IDC_FLDCONFIRM_QUERY, m_question);
+       //}}AFX_DATA_MAP
+}
+
+
+BEGIN_MESSAGE_MAP(ConfirmFolderCopyDlg, CDialog)
+       ON_BN_CLICKED(IDNO, OnBnClickedNo)
+       ON_BN_CLICKED(IDYES, OnBnClickedYes)
+END_MESSAGE_MAP()
+
+
+// ConfirmFolderCopyDlg message handlers
+
+/**
+ * @brief Handler for WM_INITDIALOG; conventional location to initialize
+ * controls. At this point dialog and control windows exist.
+ */
+BOOL ConfirmFolderCopyDlg::OnInitDialog() 
+{
+       theApp.TranslateDialog(m_hWnd);
+       CDialog::OnInitDialog();
+
+       GetDlgItem(IDNO)->SetFocus();
+
+       // Load warning icon
+       // TODO: we can have per-action icons?
+       HICON icon = AfxGetApp()->LoadStandardIcon(IDI_EXCLAMATION);
+       CStatic * pIcon = (CStatic *) GetDlgItem(IDC_FLDCONFIRM_ICON);
+       pIcon->SetIcon(icon);
+
+       // setup handler for resizing this dialog       
+       m_constraint.InitializeCurrentSize(this);
+       // configure how individual controls adjust when dialog resizes
+       m_constraint.ConstrainItem(IDC_FLDCONFIRM_FROM_PATH, 0, 1, 0, 0); // grows right
+       m_constraint.ConstrainItem(IDC_FLDCONFIRM_TO_PATH, 0, 1, 0, 0); // grows right
+       // IDC_SAVECLOSING_DISCARDALL doesn't move
+       m_constraint.ConstrainItem(IDYES, 1, 0, 0, 0); // slides right
+       m_constraint.ConstrainItem(IDNO, 1, 0, 0, 0); // slides right
+       m_constraint.DisallowHeightGrowth();
+       m_constraint.SubclassWnd(); // install subclassing
+       // persist size via registry
+       m_constraint.LoadPosition(_T("ResizeableDialogs"), _T("FolderCopyConfirmDlg"), false);
+
+
+       return FALSE;  // return TRUE unless you set the focus to a control
+                     // EXCEPTION: OCX Property Pages should return FALSE
+}
+
+/**
+ * @brief Close dialog when No button is clicked.
+ */
+void ConfirmFolderCopyDlg::OnBnClickedNo()
+{
+       EndDialog(IDNO);
+}
+
+/**
+ * @brief Close dialog when Yes button is clicked.
+ */
+void ConfirmFolderCopyDlg::OnBnClickedYes()
+{
+       EndDialog(IDYES);
+}
index b7dccd9..539e3ad 100644 (file)
@@ -1,61 +1,61 @@
-/////////////////////////////////////////////////////////////////////////////\r
-//    License (GPLv2+):\r
-//    This program is free software; you can redistribute it and/or modify\r
-//    it under the terms of the GNU General Public License as published by\r
-//    the Free Software Foundation; either version 2 of the License, or\r
-//    (at your option) any later version.\r
-//\r
-//    This program is distributed in the hope that it will be useful, but\r
-//    WITHOUT ANY WARRANTY; without even the implied warranty of\r
-//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
-//    General Public License for more details.\r
-//\r
-//    You should have received a copy of the GNU General Public License\r
-//    along with this program; if not, write to the Free Software\r
-//    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
-/////////////////////////////////////////////////////////////////////////////\r
-/**\r
- * @file  SaveClosingDlg.h\r
- *\r
- * @brief Declaration file for ConfirmFolderCopyDlg dialog\r
- */\r
-// ID line follows -- this is updated by SVN\r
-// $Id: $\r
-\r
-#ifndef CMoveConstraint_h\r
-#include "CMoveConstraint.h"\r
-#endif\r
-\r
-\r
-/**\r
- * @brief Dialog for item copy confirmation.\r
- */\r
-class ConfirmFolderCopyDlg : public CDialog\r
-{\r
-       DECLARE_DYNAMIC(ConfirmFolderCopyDlg)\r
-\r
-public:\r
-       ConfirmFolderCopyDlg(CWnd* pParent = NULL);   // standard constructor\r
-       virtual ~ConfirmFolderCopyDlg();\r
-\r
-// Dialog Data\r
-       enum { IDD = IDD_CONFIRM_COPY };\r
-\r
-protected:\r
-       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
-       virtual BOOL OnInitDialog();\r
-\r
-       DECLARE_MESSAGE_MAP()\r
-public:\r
-       \r
-       CString m_question;\r
-       CString m_fromText;\r
-       CString m_fromPath;\r
-       CString m_toText;\r
-       CString m_toPath;\r
-       afx_msg void OnBnClickedNo();\r
-       afx_msg void OnBnClickedYes();\r
-\r
-private:\r
-       prdlg::CMoveConstraint m_constraint; //*< Resizes dialog controls when dialog resized */\r
-};\r
+/////////////////////////////////////////////////////////////////////////////
+//    License (GPLv2+):
+//    This program is free software; you can redistribute it and/or modify
+//    it under the terms of the GNU General Public License as published by
+//    the Free Software Foundation; either version 2 of the License, or
+//    (at your option) any later version.
+//
+//    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 General Public License
+//    along with this program; if not, write to the Free Software
+//    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+/////////////////////////////////////////////////////////////////////////////
+/**
+ * @file  SaveClosingDlg.h
+ *
+ * @brief Declaration file for ConfirmFolderCopyDlg dialog
+ */
+// ID line follows -- this is updated by SVN
+// $Id$
+
+#ifndef CMoveConstraint_h
+#include "CMoveConstraint.h"
+#endif
+
+
+/**
+ * @brief Dialog for item copy confirmation.
+ */
+class ConfirmFolderCopyDlg : public CDialog
+{
+       DECLARE_DYNAMIC(ConfirmFolderCopyDlg)
+
+public:
+       ConfirmFolderCopyDlg(CWnd* pParent = NULL);   // standard constructor
+       virtual ~ConfirmFolderCopyDlg();
+
+// Dialog Data
+       enum { IDD = IDD_CONFIRM_COPY };
+
+protected:
+       virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
+       virtual BOOL OnInitDialog();
+
+       DECLARE_MESSAGE_MAP()
+public:
+       
+       CString m_question;
+       CString m_fromText;
+       CString m_fromPath;
+       CString m_toText;
+       CString m_toPath;
+       afx_msg void OnBnClickedNo();
+       afx_msg void OnBnClickedYes();
+
+private:
+       prdlg::CMoveConstraint m_constraint; //*< Resizes dialog controls when dialog resized */
+};