1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2006,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.
21 #include "StandAloneDlg.h"
26 #include "GitStatusListCtrl.h"
29 * \ingroup TortoiseProc
30 * Shows the "check for modifications" dialog.
32 class CChangedDlg
: public CResizableStandAloneDialog
34 DECLARE_DYNAMIC(CChangedDlg
)
37 CChangedDlg(CWnd
* pParent
= NULL
); // standard constructor
38 virtual ~CChangedDlg();
41 enum { IDD
= IDD_CHANGEDFILES
};
44 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
45 virtual BOOL
OnInitDialog();
47 virtual void OnCancel();
48 virtual BOOL
PreTranslateMessage(MSG
* pMsg
);
49 afx_msg
void OnBnClickedRefresh();
50 afx_msg
void OnBnClickedCommit();
51 afx_msg
void OnBnClickedShowunversioned();
52 afx_msg
void OnBnClickedShowUnmodified();
53 afx_msg
void OnBnClickedShowignored();
54 afx_msg
void OnBnClickedShowexternals();
55 afx_msg
void OnBnClickedShowUserProps();
56 afx_msg LRESULT
OnSVNStatusListCtrlNeedsRefresh(WPARAM
, LPARAM
);
57 afx_msg LRESULT
OnSVNStatusListCtrlItemCountChanged(WPARAM
, LPARAM
);
62 static UINT
ChangedStatusThreadEntry(LPVOID pVoid
);
63 UINT
ChangedStatusThread();
64 void UpdateStatistics();
65 DWORD
UpdateShowFlags();
68 CTGitPathList m_pathList
;
71 CRegDWORD m_regAddBeforeCommit
;
72 CGitStatusListCtrl m_FileListCtrl
;
74 BOOL m_bShowUnversioned
;
75 int m_iShowUnmodified
;
76 volatile LONG m_bBlock
;
80 BOOL m_bShowExternals
;
81 BOOL m_bShowUserProps
;