OSDN Git Service

Fix 'Explore To' in context menu in Commit Dialog
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / ChangedDlg.h
1 // TortoiseSVN - a Windows shell extension for easy version control\r
2 \r
3 // Copyright (C) 2003-2006,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 \r
21 #include "StandAloneDlg.h"\r
22 #include "Git.h"\r
23 #include "Registry.h"\r
24 #include "Tooltip.h"\r
25 \r
26 #include "GitStatusListCtrl.h"\r
27 \r
28 /**\r
29  * \ingroup TortoiseProc\r
30  * Shows the "check for modifications" dialog.\r
31  */\r
32 class CChangedDlg : public CResizableStandAloneDialog\r
33 {\r
34         DECLARE_DYNAMIC(CChangedDlg)\r
35 \r
36 public:\r
37         CChangedDlg(CWnd* pParent = NULL);   // standard constructor\r
38         virtual ~CChangedDlg();\r
39 \r
40 // Dialog Data\r
41         enum { IDD = IDD_CHANGEDFILES };\r
42 \r
43 protected:\r
44         virtual void                    DoDataExchange(CDataExchange* pDX);    // DDX/DDV support\r
45         virtual BOOL                    OnInitDialog();\r
46         virtual void                    OnOK();\r
47         virtual void                    OnCancel();\r
48         virtual BOOL                    PreTranslateMessage(MSG* pMsg);\r
49         afx_msg void                    OnBnClickedCheckrepo();\r
50         afx_msg void                    OnBnClickedRefresh();\r
51         afx_msg void                    OnBnClickedShowunversioned();\r
52         afx_msg void                    OnBnClickedShowUnmodified();\r
53         afx_msg void                    OnBnClickedShowignored();\r
54         afx_msg void                    OnBnClickedShowexternals();\r
55     afx_msg void                        OnBnClickedShowUserProps();\r
56         afx_msg LRESULT                 OnSVNStatusListCtrlNeedsRefresh(WPARAM, LPARAM);\r
57         afx_msg LRESULT                 OnSVNStatusListCtrlItemCountChanged(WPARAM, LPARAM);\r
58 \r
59         DECLARE_MESSAGE_MAP()\r
60 \r
61 private:\r
62         static UINT                             ChangedStatusThreadEntry(LPVOID pVoid);\r
63         UINT                                    ChangedStatusThread();\r
64         void                                    UpdateStatistics();\r
65         DWORD                                   UpdateShowFlags();\r
66 \r
67 public: \r
68         CTGitPathList                   m_pathList;\r
69 \r
70 private:\r
71         CRegDWORD                               m_regAddBeforeCommit;\r
72         CGitStatusListCtrl              m_FileListCtrl;\r
73         bool                                    m_bRemote;\r
74         BOOL                                    m_bShowUnversioned;\r
75         int                                             m_iShowUnmodified;\r
76         volatile LONG                   m_bBlock;\r
77         CString                                 m_sTitle;\r
78         bool                                    m_bCanceled;\r
79         BOOL                                    m_bShowIgnored;\r
80         BOOL                                    m_bShowExternals;\r
81         BOOL                                    m_bShowUserProps;\r
82         CToolTips                               m_tooltips;\r
83 };\r
84 \r