1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
8 // This program is free software; you can redistribute it and/or modify it
9 // under the terms of the GNU General Public License as published by the Free
10 // Software Foundation; either version 2 of the License, or (at your option)
13 // This program is distributed in the hope that it will be useful, but WITHOUT
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc.,
20 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
25 //===========================================================================
26 //#####DESCRIPTIONBEGIN####
33 // Description: Interface of the output window view
40 //####DESCRIPTIONEND####
42 //===========================================================================
43 #if !defined(AFX_OUTPUTVIEW_H__B9DE3972_0F3C_11D2_80BE_00A0C949ADAC__INCLUDED_)
44 #define AFX_OUTPUTVIEW_H__B9DE3972_0F3C_11D2_80BE_00A0C949ADAC__INCLUDED_
48 #endif // _MSC_VER >= 1000
49 // OutputView.h : header file
52 /////////////////////////////////////////////////////////////////////////////
55 class COutputView : public CEditView
58 COutputView(); // protected constructor used by dynamic creation
59 DECLARE_DYNCREATE(COutputView)
66 bool m_bFindInProgress;
67 void GetContents (CStringArray &arstr);
68 void Save (const CString &strFile);
70 void AddText (const CString &str);
71 afx_msg void OnEditClear();
72 afx_msg void OnFileSave();
73 afx_msg void OnEditSelectAll();
74 afx_msg void OnEditCopy();
75 afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
76 afx_msg void OnUpdateEditClear(CCmdUI* pCmdUI);
79 // ClassWizard generated virtual function overrides
80 //{{AFX_VIRTUAL(COutputView)
82 virtual void OnInitialUpdate();
84 virtual void OnDraw(CDC* pDC); // overridden to draw this view
85 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
86 virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
92 void OnFindNext( LPCTSTR lpszFind, BOOL bNext, BOOL bCase );
93 void OnTextNotFound( LPCTSTR lpszFind );
95 virtual ~COutputView();
97 virtual void AssertValid() const;
98 virtual void Dump(CDumpContext& dc) const;
102 // Generated message map functions
104 //{{AFX_MSG(COutputView)
105 afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
106 afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
107 afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
108 afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
109 afx_msg void OnUpdateEditDelete(CCmdUI* pCmdUI);
110 afx_msg void OnEditUndo();
111 afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
112 afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
113 afx_msg void OnEditFindAgain();
114 afx_msg void OnUpdateEditFind(CCmdUI* pCmdUI);
115 afx_msg void OnUpdateEditFindAgain(CCmdUI* pCmdUI);
116 afx_msg void OnEditFind();
117 afx_msg LONG OnEditFindReplace(WPARAM wParam, LPARAM lParam);
118 afx_msg void OnEditChange();
119 afx_msg LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu);
121 DECLARE_MESSAGE_MAP()
124 /////////////////////////////////////////////////////////////////////////////
126 //{{AFX_INSERT_LOCATION}}
127 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
129 #endif // !defined(AFX_OUTPUTVIEW_H__B9DE3972_0F3C_11D2_80BE_00A0C949ADAC__INCLUDED_)