1 // TortoiseSVN - a Windows shell extension for easy version control
\r
3 // Copyright (C) 2003-2008 - Stefan Kueng
\r
5 // This program is free software; you can redistribute it and/or
\r
6 // modify it under the terms of the GNU General Public License
\r
7 // as published by the Free Software Foundation; either version 2
\r
8 // of the License, or (at your option) any later version.
\r
10 // This program is distributed in the hope that it will be useful,
\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 // GNU General Public License for more details.
\r
15 // You should have received a copy of the GNU General Public License
\r
16 // along with this program; if not, write to the Free Software Foundation,
\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\r
20 #include "StandAloneDlg.h"
\r
21 #include "ProjectProperties.h"
\r
22 #include "Tooltip.h"
\r
24 #define MAX_TT_LENGTH 10000
\r
27 * \ingroup TortoiseProc
\r
28 * Helper dialog to edit the Subversion properties.
\r
31 class CEditPropertyValueDlg : public CResizableStandAloneDialog
\r
33 DECLARE_DYNAMIC(CEditPropertyValueDlg)
\r
36 CEditPropertyValueDlg(CWnd* pParent = NULL); // standard constructor
\r
37 virtual ~CEditPropertyValueDlg();
\r
39 enum { IDD = IDD_EDITPROPERTYVALUE };
\r
41 void SetPropertyName(const CString& sName) {m_sPropName = sName;}
\r
42 void SetPropertyValue(const std::string& sValue);
\r
43 std::string GetPropertyValue() {return m_PropValue;}
\r
44 CString GetPropertyName() {return m_sPropName;}
\r
45 bool GetRecursive() {return !!m_bRecursive;}
\r
46 bool IsBinary() {return m_bIsBinary;}
\r
48 void SetFolder() {m_bFolder = true;}
\r
49 void SetMultiple() {m_bMultiple = true;}
\r
50 void SetDialogTitle(const CString& sTitle) {m_sTitle = sTitle;}
\r
51 void SetPathList(const CTSVNPathList& pathlist) {m_pathList = pathlist;}
\r
53 void RevProps(bool bRevProps = false) {m_bRevProps = bRevProps;}
\r
55 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
\r
56 virtual BOOL OnInitDialog();
\r
57 virtual void OnOK();
\r
58 virtual void OnCancel();
\r
59 virtual BOOL PreTranslateMessage(MSG* pMsg);
\r
60 afx_msg void OnBnClickedHelp();
\r
61 afx_msg void OnBnClickedLoadprop();
\r
62 afx_msg void OnEnChangePropvalue();
\r
64 DECLARE_MESSAGE_MAP()
\r
66 void CheckRecursive();
\r
68 CToolTips m_tooltips;
\r
69 CComboBox m_PropNames;
\r
70 std::string m_PropValue;
\r
71 CString m_sPropValue;
\r
72 CString m_sPropName;
\r
79 CTSVNPathList m_pathList;
\r
80 ProjectProperties m_ProjectProperties;
\r