blob: 238e70ae0fada8f1805c911a6274edee6b3353f7 [file] [log] [blame] [raw]
#ifndef _MAINWINDOW_H
#define _MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class QSettings;
typedef struct portable_executable PortableExecutable;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void load(const QString &);
QSettings *config;
private:
Ui::MainWindow *ui;
bool save_file(const QString &);
bool maybe_save();
void set_current_file(const QString &);
QString stripped_name(const QString &);
void update_table();
PortableExecutable *pe;
unsigned char pe_offset;
bool is_modified;
//bool is_untitled;
QString current_file;
private slots:
void open_file();
bool save_file();
bool save_file_as();
void modified();
};
#endif // _MAINWINDOW_H