SyncDlg: Make check if local branch fast-fowards to remote branch work again
[TortoiseGit.git] / src / TortoiseProc / FindDlg.h
blob1a8ecdc468ec1498f2e50fa1fe19c4b2715e4da8
1 #pragma once
3 #include "HistoryCombo.h"
4 #include "afxcmn.h"
5 #include "afxwin.h"
6 #include "StandAloneDlg.h"
7 #include "LoglistCommonResource.h"
8 // CFindDlg dialog
10 #define IDT_FILTER 101
12 class CFindDlg : public CResizableStandAloneDialog
14 DECLARE_DYNAMIC(CFindDlg)
16 public:
17 CFindDlg(CWnd* pParent = NULL); // standard constructor
18 virtual ~CFindDlg();
19 void Create(CWnd * pParent = NULL) {m_pParent = pParent; CDialog::Create(IDD, pParent);ShowWindow(SW_SHOW);UpdateWindow();}
21 bool IsTerminating() {return m_bTerminating;}
22 bool FindNext() {return m_bFindNext;}
23 bool MatchCase() {return !!m_bMatchCase;}
24 bool WholeWord() {return !!m_bWholeWord;}
25 bool IsRef() {return !!m_bIsRef;}
26 CString GetFindString() {return m_FindString;}
28 // Dialog Data
29 enum { IDD = IDD_FIND };
31 protected:
32 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
33 virtual void OnCancel();
34 virtual void PostNcDestroy();
35 virtual void OnOK();
36 virtual BOOL OnInitDialog();
37 afx_msg void OnCbnEditchangeFindcombo();
39 DECLARE_MESSAGE_MAP()
41 UINT m_FindMsg;
42 bool m_bTerminating;
43 bool m_bFindNext;
44 BOOL m_bMatchCase;
45 BOOL m_bLimitToDiffs;
46 BOOL m_bWholeWord;
47 bool m_bIsRef;
48 CHistoryCombo m_FindCombo;
49 CString m_FindString;
50 CWnd *m_pParent;
51 STRING_VECTOR m_RefList;
53 void AddToList();
55 public:
56 CListCtrl m_ctrlRefList;
57 CEdit m_ctrlFilter;
58 afx_msg void OnNMClickListRef(NMHDR *pNMHDR, LRESULT *pResult);
59 afx_msg void OnEnChangeEditFilter();
60 afx_msg void OnTimer(UINT_PTR nIDEvent);