Extend static functions in CAppUtils with a window handle parameter
[TortoiseGit.git] / src / TortoiseProc / RevertDlg.h
blob20b33a4fa1f8ea4beb8850b247851e91eead9b88
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2008 - TortoiseSVN
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
21 #include "StandAloneDlg.h"
22 #include "GitStatusListCtrl.h"
25 /**
26 * \ingroup TortoiseProc
27 * Dialog showing a list of versioned files which don't have the status 'normal'.
28 * The dialog effectively shows a list of files which can be reverted.
30 class CRevertDlg : public CResizableStandAloneDialog
32 DECLARE_DYNAMIC(CRevertDlg)
34 public:
35 CRevertDlg(CWnd* pParent = nullptr); // standard constructor
36 virtual ~CRevertDlg();
38 enum { IDD = IDD_REVERT };
40 protected:
41 virtual void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
42 virtual BOOL OnInitDialog() override;
43 virtual void OnOK() override;
44 virtual void OnCancel() override;
45 virtual BOOL PreTranslateMessage(MSG* pMsg) override;
46 afx_msg void OnBnClickedSelectall();
47 afx_msg LRESULT OnSVNStatusListCtrlNeedsRefresh(WPARAM, LPARAM);
48 afx_msg LRESULT OnFileDropped(WPARAM, LPARAM lParam);
49 afx_msg void OnTimer(UINT_PTR nIDEvent);
51 DECLARE_MESSAGE_MAP()
53 private:
54 static UINT RevertThreadEntry(LPVOID pVoid);
55 UINT RevertThread();
57 public:
58 CTGitPathList m_pathList;
59 CTGitPathList m_selectedPathList;
60 BOOL m_bRecursive;
62 private:
63 BOOL m_bSelectAll;
64 volatile LONG m_bThreadRunning;
65 CGitStatusListCtrl m_RevertList;
66 CButton m_SelectAll;
67 bool m_bCancelled;