2016-12-09 14:56:45 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QMainWindow>
|
|
|
|
#include "ui_MainWindow.h"
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainWindow(QWidget *parent = Q_NULLPTR);
|
|
|
|
~MainWindow();
|
|
|
|
|
2016-12-10 13:42:00 +00:00
|
|
|
// Variables
|
2016-12-09 14:56:45 +00:00
|
|
|
private:
|
|
|
|
Ui::MainWindowClass* ui;
|
|
|
|
|
2016-12-10 13:42:00 +00:00
|
|
|
// Functions
|
|
|
|
private:
|
2016-12-09 14:56:45 +00:00
|
|
|
void setupWindow();
|
2016-12-12 15:47:38 +00:00
|
|
|
void import(const char* path);
|
2016-12-09 14:56:45 +00:00
|
|
|
|
2016-12-10 13:42:00 +00:00
|
|
|
// Slots
|
|
|
|
private slots:
|
|
|
|
void openFile();
|
|
|
|
void aboutFile();
|
|
|
|
|
|
|
|
|
|
|
|
// Override Functions
|
2016-12-09 14:56:45 +00:00
|
|
|
protected:
|
|
|
|
virtual void keyPressEvent(QKeyEvent * keyEvent) override final;
|
|
|
|
};
|