OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [common/] [win32/] [mltview.h] - Blame information for rev 790

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
2
// -------------------------------------------                              
3
// This file is part of the eCos host tools.                                
4
// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.            
5
//
6
// This program is free software; you can redistribute it and/or modify     
7
// it under the terms of the GNU General Public License as published by     
8
// the Free Software Foundation; either version 2 or (at your option) any   
9
// later version.                                                           
10
//
11
// This program is distributed in the hope that it will be useful, but      
12
// WITHOUT ANY WARRANTY; without even the implied warranty of               
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
14
// General Public License for more details.                                 
15
//
16
// You should have received a copy of the GNU General Public License        
17
// along with this program; if not, write to the                            
18
// Free Software Foundation, Inc., 51 Franklin Street,                      
19
// Fifth Floor, Boston, MA  02110-1301, USA.                                
20
// -------------------------------------------                              
21
// ####ECOSHOSTGPLCOPYRIGHTEND####                                          
22
// MLTView.h: interface for the CMLTView class.
23
//
24
//////////////////////////////////////////////////////////////////////
25
 
26
#if !defined(AFX_MLTVIEW_H__C2A5FFD9_AEE9_11D2_BFDA_00A0C9554250__INCLUDED_)
27
#define AFX_MLTVIEW_H__C2A5FFD9_AEE9_11D2_BFDA_00A0C9554250__INCLUDED_
28
 
29
#if _MSC_VER >= 1000
30
#pragma once
31
#endif // _MSC_VER >= 1000
32
 
33
#include <afxtempl.h>
34
 
35
#include "memmap.h"
36
 
37
typedef struct tagREGIONRECT
38
{
39
    std::list <mem_region>::iterator Region;
40
    CRect Rect;
41
}
42
REGIONRECT;
43
 
44
typedef struct tagSECTIONRECT
45
{
46
    std::list <mem_section_view>::iterator SectionView;
47
    CRect Rect;
48
}
49
SECTIONRECT;
50
 
51
class CMLTView : public CScrollView
52
{
53
protected: // create from serialization only
54
        DECLARE_DYNCREATE(CMLTView)
55
 
56
// Attributes
57
public:
58
        CMLTView();
59
 
60
// Operations
61
public:
62
 
63
// Overrides
64
        // ClassWizard generated virtual function overrides
65
        //{{AFX_VIRTUAL(CMLTView)
66
        public:
67
        virtual void OnDraw(CDC* pDC);  // overridden to draw this view
68
        virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
69
        virtual void OnInitialUpdate();
70
        protected:
71
        virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
72
        virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
73
        virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
74
        //}}AFX_VIRTUAL
75
 
76
// Implementation
77
public:
78
        virtual ~CMLTView();
79
#ifdef _DEBUG
80
        virtual void AssertValid() const;
81
        virtual void Dump(CDumpContext& dc) const;
82
#endif
83
 
84
private:
85
 
86
  CMapStringToPtr m_arstrTooltipRects;
87
 
88
        void DrawRegion (CDC* pDC, UINT uRegion, UINT uUnitCount, UINT uPixelsPerUnit, std::list <mem_region>::iterator region);
89
    CList <SECTIONRECT, SECTIONRECT &> listSectionRect;
90
    CList <REGIONRECT, REGIONRECT &> listRegionRect;
91
    SECTIONRECT * SectionHitTest (CPoint pntTest);
92
    REGIONRECT * RegionHitTest (CPoint pntTest);
93
    std::list <mem_section_view>::iterator m_sviSelectedSectionView;
94
    std::list <mem_region>::iterator m_riSelectedRegion;
95
    UINT m_uViewWidth, m_uClientWidth;
96
        void CalcUnitCountMax ();
97
    UINT m_uUnitCountMax;
98
        CRect m_rectSelectedItem;
99
 
100
protected:
101
  virtual int OnToolHitTest( CPoint point, TOOLINFO* pTI ) const;
102
 
103
// Generated message map functions
104
protected:
105
        CString m_strTipText;
106
        //{{AFX_MSG(CMLTView)
107
        afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
108
        afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
109
        afx_msg void OnSize(UINT nType, int cx, int cy);
110
        afx_msg BOOL OnEraseBkgnd(CDC* pDC);
111
        afx_msg void OnMouseMove(UINT nFlags, CPoint point);
112
  afx_msg void OnMLTNewRegion ();
113
  afx_msg void OnMLTNewSection ();
114
  afx_msg void OnMLTDelete ();
115
  afx_msg void OnMLTProperties ();
116
  afx_msg void OnUpdateMLTNewSection (CCmdUI* pCmdUI);
117
  afx_msg void OnUpdateMLTDelete (CCmdUI* pCmdUI);
118
  afx_msg void OnUpdateMLTProperties (CCmdUI* pCmdUI);
119
        afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
120
        afx_msg void OnPopupProperties();
121
        afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
122
        afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
123
        afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
124
        afx_msg LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu);
125
        //}}AFX_MSG
126
  BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT*pResult);
127
  afx_msg void OnUpdateMLTNewRegion (CCmdUI* pCmdUI);
128
        DECLARE_MESSAGE_MAP()
129
};
130
 
131
#endif // !defined(AFX_MLTVIEW_H__C2A5FFD9_AEE9_11D2_BFDA_00A0C9554250__INCLUDED_)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.