Provide better readable error messages
[TortoiseGit.git] / src / TortoiseProc / ChangedDlg.h
blob3e1551941c29fda7634c57891bc52d9794680af5
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2008, 2011-2014 - TortoiseGit
4 // Copyright (C) 2003-2006,2008 - Stefan Kueng
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
22 #include "StandAloneDlg.h"
23 #include "Git.h"
24 #include "registry.h"
25 #include "Tooltip.h"
27 #include "GitStatusListCtrl.h"
29 /**
30 * \ingroup TortoiseProc
31 * Shows the "check for modifications" dialog.
33 class CChangedDlg : public CResizableStandAloneDialog
35 DECLARE_DYNAMIC(CChangedDlg)
37 public:
38 CChangedDlg(CWnd* pParent = NULL); // standard constructor
39 virtual ~CChangedDlg();
41 // Dialog Data
42 enum { IDD = IDD_CHANGEDFILES };
44 protected:
45 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
46 virtual BOOL OnInitDialog();
47 virtual void OnOK();
48 virtual void OnCancel();
49 virtual BOOL PreTranslateMessage(MSG* pMsg);
50 afx_msg void OnBnClickedRefresh();
51 afx_msg void OnBnClickedCommit();
52 afx_msg void OnBnClickedStash();
53 afx_msg void OnBnClickedButtonUnifieddiff();
54 afx_msg void OnBnClickedShowunversioned();
55 afx_msg void OnBnClickedShowUnmodified();
56 afx_msg void OnBnClickedShowignored();
57 afx_msg void OnBnClickedShowlocalchangesignored();
58 afx_msg void OnBnClickedWholeProject();
59 afx_msg LRESULT OnSVNStatusListCtrlNeedsRefresh(WPARAM, LPARAM);
60 afx_msg LRESULT OnSVNStatusListCtrlItemCountChanged(WPARAM, LPARAM);
62 DECLARE_MESSAGE_MAP()
64 private:
65 CButton m_ctrlStash;
66 static UINT ChangedStatusThreadEntry(LPVOID pVoid);
67 UINT ChangedStatusThread();
68 void UpdateStatistics();
69 DWORD UpdateShowFlags();
70 void SetDlgTitle();
72 enum
74 // needs to start with 1, since 0 is the return value if *nothing* is clicked on in the context menu
75 ID_STASH_SAVE = 1,
76 ID_STASH_POP,
77 ID_STASH_APPLY,
78 ID_STASH_LIST,
81 public:
82 CTGitPathList m_pathList;
84 private:
85 CRegDWORD m_regAddBeforeCommit;
86 CRegDWORD m_regShowWholeProject;
87 CGitStatusListCtrl m_FileListCtrl;
88 bool m_bRemote;
89 BOOL m_bShowUnversioned;
90 int m_iShowUnmodified;
91 BOOL m_bShowLocalChangesIgnored;
92 volatile LONG m_bBlock;
93 CString m_sTitle;
94 bool m_bCanceled;
95 BOOL m_bShowIgnored;
96 BOOL m_bWholeProject;
97 CToolTips m_tooltips;