2022-06-23 21:36:00 -04:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <chunk.h>
|
|
|
|
#include <QMainWindow>
|
2022-06-24 13:46:25 -04:00
|
|
|
#include <QStackedWidget>
|
2022-06-23 21:36:00 -04:00
|
|
|
|
|
|
|
#include "chunkmodel.h"
|
2022-06-24 13:46:25 -04:00
|
|
|
#include "panels/mxhd.h"
|
|
|
|
#include "panels/panel.h"
|
2022-06-23 21:36:00 -04:00
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
private:
|
|
|
|
//bool CloseFile();
|
|
|
|
|
|
|
|
void InitializeMenuBar();
|
|
|
|
|
2022-06-24 13:46:25 -04:00
|
|
|
void SetPanel(Panel *panel, Data *data);
|
|
|
|
|
2022-06-23 21:36:00 -04:00
|
|
|
ChunkModel model_;
|
|
|
|
Chunk chunk_;
|
|
|
|
|
2022-06-24 13:46:25 -04:00
|
|
|
QStackedWidget *config_stack_;
|
|
|
|
|
|
|
|
Panel *panel_blank_;
|
|
|
|
MxHdPanel *panel_mxhd_;
|
|
|
|
|
|
|
|
Data *last_set_data_;
|
|
|
|
|
2022-06-23 21:36:00 -04:00
|
|
|
private slots:
|
|
|
|
void OpenFile();
|
|
|
|
//bool SaveFile();
|
|
|
|
//bool SaveFileAs();
|
|
|
|
|
2022-06-24 13:46:25 -04:00
|
|
|
void SelectionChanged(const QModelIndex &index);
|
|
|
|
|
2022-06-23 21:36:00 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|