BrowseRefs: Context menu enhancements
[TortoiseGit.git] / src / TortoiseProc / EditPropertyValueDlg.h
blobbdd620f3cd953ff11338f25c8bc9748db7bcfd72
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.
19 #pragma once
20 #include "StandAloneDlg.h"
21 #include "ProjectProperties.h"
22 #include "Tooltip.h"
24 #define MAX_TT_LENGTH 10000
26 /**
27 * \ingroup TortoiseProc
28 * Helper dialog to edit the Subversion properties.
31 class CEditPropertyValueDlg : public CResizableStandAloneDialog
33 DECLARE_DYNAMIC(CEditPropertyValueDlg)
35 public:
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;}
54 protected:
55 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
56 virtual BOOL OnInitDialog();
57 virtual void OnOK();
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();
64 DECLARE_MESSAGE_MAP()
66 void CheckRecursive();
67 protected:
68 CToolTips m_tooltips;
69 CComboBox m_PropNames;
70 std::string m_PropValue;
71 CString m_sPropValue;
72 CString m_sPropName;
73 CString m_sTitle;
74 BOOL m_bRecursive;
75 bool m_bFolder;
76 bool m_bMultiple;
77 bool m_bIsBinary;
78 bool m_bRevProps;
79 CTSVNPathList m_pathList;
80 ProjectProperties m_ProjectProperties;