//Hrm. uh??? I thought this wasn't the way to do this stuff...???
#include <QtGui>
+#include "tom.h"
+
+#define RING_BUFFER_SIZE 32
// Forward declarations
class GLWidget;
class FilePickerWindow;
class MemoryBrowserWindow;
class CPUBrowserWindow;
+class OPBrowserWindow;
+class M68KDasmBrowserWindow;
+class RISCDasmBrowserWindow;
class MainWin: public QMainWindow
{
private slots:
void Open(void);
- void Configure(void);
+ void Configure(void);
void Timer(void);
void TogglePowerState(void);
void ToggleRunState(void);
void ShowMemoryBrowserWin(void);
void ShowCPUBrowserWin(void);
+ void ShowOPBrowserWin(void);
+ void ShowM68KDasmBrowserWin(void);
+ void ShowRISCDasmBrowserWin(void);
private:
void HandleKeys(QKeyEvent *, bool);
+ void HandleGamepads(void);
void SetFullScreen(bool state = true);
void ResizeMainWindow(void);
void ReadSettings(void);
FilePickerWindow * filePickWin;
MemoryBrowserWindow * memBrowseWin;
CPUBrowserWindow * cpuBrowseWin;
+ OPBrowserWindow * opBrowseWin;
+ M68KDasmBrowserWindow * m68kDasmBrowseWin;
+ RISCDasmBrowserWindow * riscDasmBrowseWin;
QTimer * timer;
bool running;
int zoomLevel;
bool fullScreen;
public:
bool plzDontKillMyComputer;
+ uint32_t oldTimestamp;
+ uint32_t ringBufferPointer;
+ uint32_t ringBuffer[RING_BUFFER_SIZE];
private:
+ QPoint mainWinPosition;
+// QSize mainWinSize;
+ int lastEditedProfile;
QMenu * fileMenu;
QMenu * helpMenu;
QMenu * debugMenu;
QAction * memBrowseAct;
QAction * cpuBrowseAct;
+ QAction * opBrowseAct;
+ QAction * m68kDasmBrowseAct;
+ QAction * riscDasmBrowseAct;
QIcon powerGreen;
QIcon powerRed;
+ uint32_t testPattern[VIRTUAL_SCREEN_WIDTH * VIRTUAL_SCREEN_HEIGHT_PAL];
};
#endif // __MAINWIN_H__