OSDN Git Service

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