2017-07-02 20:55:56 +01:00
|
|
|
#ifndef QAPPLE_H
|
|
|
|
#define QAPPLE_H
|
|
|
|
|
|
|
|
#include "ui_qapple.h"
|
|
|
|
|
2017-07-04 19:25:10 +01:00
|
|
|
#include <QFileDialog>
|
|
|
|
|
2017-07-03 21:00:42 +01:00
|
|
|
class Emulator;
|
2017-07-02 20:55:56 +01:00
|
|
|
|
|
|
|
class QApple : public QMainWindow, private Ui::QApple
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit QApple(QWidget *parent = 0);
|
|
|
|
|
|
|
|
protected:
|
2017-07-04 14:05:06 +01:00
|
|
|
virtual void closeEvent(QCloseEvent * event);
|
2017-07-02 20:55:56 +01:00
|
|
|
virtual void timerEvent(QTimerEvent *event);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_actionStart_triggered();
|
|
|
|
|
|
|
|
void on_actionPause_triggered();
|
|
|
|
|
2017-07-04 12:14:04 +01:00
|
|
|
void on_actionX1_triggered();
|
|
|
|
|
|
|
|
void on_actionX2_triggered();
|
|
|
|
|
|
|
|
void on_action4_3_triggered();
|
|
|
|
|
2017-07-04 19:25:10 +01:00
|
|
|
void on_actionDisk_1_triggered();
|
|
|
|
|
|
|
|
void on_actionDisk_2_triggered();
|
|
|
|
|
2017-07-04 21:17:40 +01:00
|
|
|
void on_actionReboot_triggered();
|
|
|
|
|
2017-07-07 21:04:21 +01:00
|
|
|
void on_actionBenchmark_triggered();
|
|
|
|
|
2017-07-02 20:55:56 +01:00
|
|
|
private:
|
2017-07-04 14:05:06 +01:00
|
|
|
|
2017-07-04 19:24:26 +01:00
|
|
|
void setNextTimer(const int ms);
|
2017-07-07 21:04:21 +01:00
|
|
|
void stopTimer();
|
2017-07-04 19:25:10 +01:00
|
|
|
void insertDisk(const int disk);
|
|
|
|
|
|
|
|
QFileDialog myDiskFileDialog;
|
2017-07-04 14:05:06 +01:00
|
|
|
|
2017-07-04 12:14:04 +01:00
|
|
|
QMdiSubWindow * myEmulatorWindow;
|
2017-07-03 21:00:42 +01:00
|
|
|
Emulator * myEmulator;
|
2017-07-02 20:55:56 +01:00
|
|
|
|
|
|
|
int myMSGap;
|
2017-07-04 14:05:06 +01:00
|
|
|
int myCurrentGap;
|
|
|
|
|
2017-07-02 20:55:56 +01:00
|
|
|
int myTimerID;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QAPPLE_H
|