OSDN Git Service

Build Log Dlg Okay
[tortoisegit/TortoiseGitJp.git] / TortoiseProc / EditPropertyValueDlg.h
1 // TortoiseSVN - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2003-2008 - Stefan Kueng\r
4 \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
9 \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
14 \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
18 //\r
19 #pragma once\r
20 #include "StandAloneDlg.h"\r
21 #include "ProjectProperties.h"\r
22 #include "Tooltip.h"\r
23 \r
24 #define MAX_TT_LENGTH                   10000\r
25 \r
26 /**\r
27  * \ingroup TortoiseProc\r
28  * Helper dialog to edit the Subversion properties.\r
29  */\r
30 \r
31 class CEditPropertyValueDlg : public CResizableStandAloneDialog\r
32 {\r
33         DECLARE_DYNAMIC(CEditPropertyValueDlg)\r
34 \r
35 public:\r
36         CEditPropertyValueDlg(CWnd* pParent = NULL);   // standard constructor\r
37         virtual ~CEditPropertyValueDlg();\r
38 \r
39         enum { IDD = IDD_EDITPROPERTYVALUE };\r
40 \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
47 \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
52 \r
53         void                    RevProps(bool bRevProps = false) {m_bRevProps = bRevProps;}\r
54 protected:\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
63 \r
64         DECLARE_MESSAGE_MAP()\r
65 \r
66         void CheckRecursive();\r
67 protected:\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
73         CString         m_sTitle;\r
74         BOOL            m_bRecursive;\r
75         bool            m_bFolder;\r
76         bool            m_bMultiple;\r
77         bool            m_bIsBinary;\r
78         bool            m_bRevProps;\r
79         CTSVNPathList           m_pathList;\r
80         ProjectProperties       m_ProjectProperties;\r
81 };\r