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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [mltwin.h] - Blame information for rev 786

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
// mltwin.h :
23
//
24
//===========================================================================
25
//#####DESCRIPTIONBEGIN####
26
//
27
// Author(s):   julians
28
// Contact(s):  julians
29
// Date:        2000/09/04
30
// Version:     $Id: mltwin.h,v 1.2 2001/03/22 11:27:28 julians Exp $
31
// Purpose:
32
// Description: Header file for ecMemoryLayoutWindow
33
// Requires:
34
// Provides:
35
// See also:
36
// Known bugs:
37
// Usage:
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#ifndef _ECOS_MLTWIN_H_
44
#define _ECOS_MLTWIN_H_
45
 
46
#ifdef __GNUG__
47
#pragma interface "mltwin.h"
48
#endif
49
 
50
#if ecUSE_MLT
51
 
52
#include "memmap.h"
53
 
54
typedef struct tagREGIONRECT
55
{
56
    std::list <mem_region>::iterator Region;
57
    wxRect Rect;
58
}
59
REGIONRECT;
60
 
61
typedef struct tagSECTIONRECT
62
{
63
    std::list <mem_section_view>::iterator SectionView;
64
    wxRect Rect;
65
}
66
SECTIONRECT;
67
 
68
#endif
69
 
70
class ecMemoryLayoutWindow : public wxScrolledWindow
71
{
72
public:
73
// Ctor(s)
74
    ecMemoryLayoutWindow(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
75
    ~ecMemoryLayoutWindow();
76
 
77
//// Event handlers
78
 
79
    //void OnPaint(wxPaintEvent& event);
80
    void OnMouseEvent(wxMouseEvent& event);
81
    void OnPaint(wxPaintEvent& event);
82
    void OnSize(wxSizeEvent& event);
83
    void OnProperties(wxCommandEvent& event);
84
 
85
//// Operations
86
    void RefreshMLT();
87
 
88
#if ecUSE_MLT
89
        void DrawRegion (wxDC& dc, int uRegion, int uUnitCount, int uPixelsPerUnit, std::list <mem_region>::iterator region);
90
    SECTIONRECT * SectionHitTest (wxPoint pntTest);
91
    REGIONRECT * RegionHitTest (wxPoint pntTest);
92
#endif
93
 
94
        void CalcUnitCountMax ();
95
 
96
 
97
//// Accessors
98
    wxMenu* GetPropertiesMenu() const { return m_propertiesMenu; }
99
 
100
protected:
101
    wxMenu*     m_propertiesMenu;
102
 
103
    wxList      m_listSectionRect;
104
    wxList      m_listRegionRect;
105
 
106
#if ecUSE_MLT
107
    std::list <mem_section_view>::iterator m_sviSelectedSectionView;
108
    std::list <mem_region>::iterator m_riSelectedRegion;
109
#endif
110
 
111
    int         m_uViewWidth, m_uClientWidth;
112
    int         m_uUnitCountMax;
113
        wxRect      m_rectSelectedItem;
114
 
115
private:
116
    DECLARE_EVENT_TABLE()
117
    DECLARE_CLASS(ecMemoryLayoutWindow)
118
};
119
 
120
 
121
#endif
122
        // _ECOS_MLTWIN_H_

powered by: WebSVN 2.1.0

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