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