-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStackWindow.h
More file actions
37 lines (28 loc) · 750 Bytes
/
StackWindow.h
File metadata and controls
37 lines (28 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// StackWindow.h
// Copyright © 2003 William Sheldon Simms III
//
#ifndef INCLUDED_STACKWINDOW_H
#define INCLUDED_STACKWINDOW_H
#include "wx/wx.h"
#include "MemoryListener.h"
#include "ByteRegisterListener.h"
class StackWindow: public wxScrolledWindow, public MemoryListener, public ByteRegisterListener
{
public:
StackWindow (wxWindow * parent);
void SetRunning (bool isRunning);
void OnPaint (wxPaintEvent& event);
void ForceRefresh (void);
void TellNewValue (unsigned char b);
void TellNewValue (unsigned short addr, unsigned char byte);
private:
int cwidth;
int cheight;
unsigned short firstaddr;
unsigned short lastaddr;
bool running;
bool initial;
DECLARE_EVENT_TABLE()
};
#endif // INCLUDED_STACKWINDOW_H