~ubuntu-branches/ubuntu/maverick/openmsx-debugger/maverick

« back to all changes in this revision

Viewing changes to src/DisasmViewer.h

  • Committer: Bazaar Package Importer
  • Author(s): Joost Yervante Damad
  • Date: 2009-12-06 07:40:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091206074002-kssfkg1d6xbp6w9e
Tags: 0.0.0.svn20091206-1
New svn snapshot (Closes: #559612)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: DisasmViewer.h 6477 2007-05-14 22:09:17Z edwinv $
 
1
// $Id: DisasmViewer.h 9345 2009-03-06 22:46:14Z m9710797 $
2
2
 
3
3
#ifndef DISASMVIEWER_H
4
4
#define DISASMVIEWER_H
10
10
class CommMemoryRequest;
11
11
class QScrollBar;
12
12
class Breakpoints;
13
 
class MemoryLayout;
14
13
class SymbolTable;
 
14
struct MemoryLayout;
15
15
 
16
16
class DisasmViewer : public QFrame
17
17
{
37
37
        void scrollBarChanged(int value);
38
38
        void settingsChanged();
39
39
        void symbolsChanged();
40
 
        
41
 
protected:
 
40
 
 
41
private:
42
42
        void resizeEvent(QResizeEvent* e);
43
43
        void paintEvent(QPaintEvent* e);
44
44
        void keyPressEvent(QKeyEvent* e);
45
45
        void mousePressEvent(QMouseEvent* e);
46
46
        void wheelEvent(QWheelEvent* e);
47
47
 
48
 
private:
49
48
        enum {Top, Middle, Bottom, Closest, TopAlways, MiddleAlways, BottomAlways};
50
49
 
51
50
        QScrollBar* scrollBar;
55
54
 
56
55
        quint16 programAddr;
57
56
        quint16 cursorAddr;
58
 
        int     cursorLine;
59
 
        
 
57
        int cursorLine;
 
58
 
60
59
        // layout information
61
60
        int frameL, frameR, frameT, frameB;
62
61
        int labelFontHeight, labelFontAscent;
65
64
        int visibleLines, partialBottomLine;
66
65
        int disasmTopLine;
67
66
        DisasmLines disasmLines;
68
 
        
 
67
 
69
68
        // display data
70
69
        unsigned char* memory;
71
70
        bool waitingForData;
72
71
        CommMemoryRequest* nextRequest;
73
72
        Breakpoints* breakpoints;
74
 
        MemoryLayout *memLayout;
75
 
        SymbolTable *symTable;
 
73
        MemoryLayout* memLayout;
 
74
        SymbolTable* symTable;
76
75
 
77
76
        int findDisasmLine(quint16 lineAddr, int infoLine = 0);
78
 
        int lineAtPos( const QPoint& pos );
79
 
        
 
77
        int lineAtPos(const QPoint& pos);
 
78
 
80
79
signals:
81
80
        void toggleBreakpoint(int addr);
82
81
};