newrpl/mainwindow.h
claudio 196af56e2a Added New/SaveAs options
Added directory functions to support VARS
2015-08-24 14:05:37 -04:00

50 lines
933 B
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QFile>
#include "rplthread.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
QTimer *screentmr,*maintmr;
QString currentfile;
RPLThread rpl;
public:
QFile *fileptr;
static void WriteWord(unsigned int word);
static unsigned int ReadWord();
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
virtual void keyPressEvent(QKeyEvent *ev);
virtual void keyReleaseEvent(QKeyEvent *ev);
void closeEvent(QCloseEvent *event);
private slots:
void on_EmuScreen_destroyed();
void on_actionExit_triggered();
void on_actionSave_triggered();
void on_actionOpen_triggered();
void on_actionSaveAs_triggered();
void on_actionNew_triggered();
public slots:
void domaintimer();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H