SIEdit/app/mainwindow.h

57 lines
977 B
C
Raw Normal View History

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"
#include "panels/mxch.h"
2022-06-24 13:46:25 -04:00
#include "panels/mxhd.h"
#include "panels/mxob.h"
#include "panels/mxof.h"
#include "panels/riff.h"
2022-06-24 13:46:25 -04:00
#include "panels/panel.h"
2022-06-23 21:36:00 -04:00
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
void OpenFilename(const QString &s);
2022-06-23 21:36:00 -04:00
signals:
private:
//bool CloseFile();
void InitializeMenuBar();
void SetPanel(Panel *panel, si::Chunk *chunk);
2022-06-24 13:46:25 -04:00
2022-06-23 21:36:00 -04:00
ChunkModel model_;
si::Chunk chunk_;
2022-06-23 21:36:00 -04:00
2022-06-24 13:46:25 -04:00
QStackedWidget *config_stack_;
Panel *panel_blank_;
RIFFPanel *panel_riff_;
2022-06-24 13:46:25 -04:00
MxHdPanel *panel_mxhd_;
MxChPanel *panel_mxch_;
MxOfPanel *panel_mxof_;
MxObPanel *panel_mxob_;
2022-06-24 13:46:25 -04:00
si::Chunk *last_set_data_;
2022-06-24 13:46:25 -04:00
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