| #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 |