dropped unused TSVN settings
[TortoiseGit.git] / src / TortoiseProc / ChangedDlg.h
blob75fde7b6078594781168dfa36c7fb1b9845f343c
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.
19 #pragma once
21 #include "StandAloneDlg.h"
22 #include "Git.h"
23 #include "Registry.h"
24 #include "Tooltip.h"
26 #include "GitStatusListCtrl.h"
28 /**
29 * \ingroup TortoiseProc
30 * Shows the "check for modifications" dialog.
32 class CChangedDlg : public CResizableStandAloneDialog
34 DECLARE_DYNAMIC(CChangedDlg)
36 public:
37 CChangedDlg(CWnd* pParent = NULL); // standard constructor
38 virtual ~CChangedDlg();
40 // Dialog Data
41 enum { IDD = IDD_CHANGEDFILES };
43 protected:
44 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
45 virtual BOOL OnInitDialog();
46 virtual void OnOK();
47 virtual void OnCancel();
48 virtual BOOL PreTranslateMessage(MSG* pMsg);
49 afx_msg void OnBnClickedRefresh();
50 afx_msg void OnBnClickedCommit();
51 afx_msg void OnBnClickedStash();
52 afx_msg void OnBnClickedShowunversioned();
53 afx_msg void OnBnClickedShowUnmodified();
54 afx_msg void OnBnClickedShowignored();
55 afx_msg void OnBnClickedShowexternals();
56 afx_msg void OnBnClickedShowUserProps();
57 afx_msg LRESULT OnSVNStatusListCtrlNeedsRefresh(WPARAM, LPARAM);
58 afx_msg LRESULT OnSVNStatusListCtrlItemCountChanged(WPARAM, LPARAM);
60 DECLARE_MESSAGE_MAP()
62 private:
63 CButton m_ctrlStash;
64 static UINT ChangedStatusThreadEntry(LPVOID pVoid);
65 UINT ChangedStatusThread();
66 void UpdateStatistics();
67 DWORD UpdateShowFlags();
69 enum
71 // needs to start with 1, since 0 is the return value if *nothing* is clicked on in the context menu
72 ID_STASH_SAVE = 1,
73 ID_STASH_POP,
74 ID_STASH_APPLY,
75 ID_STASH_LIST,
78 public:
79 CTGitPathList m_pathList;
81 private:
82 CRegDWORD m_regAddBeforeCommit;
83 CGitStatusListCtrl m_FileListCtrl;
84 bool m_bRemote;
85 BOOL m_bShowUnversioned;
86 int m_iShowUnmodified;
87 volatile LONG m_bBlock;
88 CString m_sTitle;
89 bool m_bCanceled;
90 BOOL m_bShowIgnored;
91 BOOL m_bShowExternals;
92 BOOL m_bShowUserProps;
93 CToolTips m_tooltips;