forked from WinMerge/winmerge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirFrame.h
71 lines (60 loc) · 1.71 KB
/
DirFrame.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/////////////////////////////////////////////////////////////////////////////
// WinMerge: an interactive diff/merge utility
// Copyright (C) 1997 Dean P. Grimm
// SPDX-License-Identifier: GPL-2.0-or-later
/////////////////////////////////////////////////////////////////////////////
/**
* @file DirFrame.h
*
* @brief Declaration file for CDirFrame
*
*/
#pragma once
#include "EditorFilepathBar.h"
#include "BasicFlatStatusBar.h"
#include "MergeFrameCommon.h"
/////////////////////////////////////////////////////////////////////////////
// CDirFrame frame
/**
* @brief Frame window for Directory Compare window
*/
class CDirFrame : public CMergeFrameCommon
{
DECLARE_DYNCREATE(CDirFrame)
protected:
CDirFrame(); // protected constructor used by dynamic creation
// Attributes
public:
private:
// Operations
public:
void SetStatus(const tchar_t* szStatus);
void SetCompareMethodStatusDisplay(int nCompMethod);
void SetFilterStatusDisplay(const tchar_t* szFilter);
CBasicFlatStatusBar m_wndStatusBar;
IHeaderBar * GetHeaderInterface();
void UpdateResources();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDirFrame)
public:
virtual void ActivateFrame(int nCmdShow = -1);
virtual BOOL DestroyWindow();
//}}AFX_VIRTUAL
protected:
CEditorFilePathBar m_wndFilePathBar;
virtual ~CDirFrame();
// Generated message map functions
//{{AFX_MSG(CDirFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnClose();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/**
* @brief Get the interface to the header (path) bar
*/
inline IHeaderBar * CDirFrame::GetHeaderInterface() {
return &m_wndFilePathBar;
}