mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-27 09:35:45 -05:00
36 lines
603 B
C++
36 lines
603 B
C++
#ifndef SIVIEW_H
|
|
#define SIVIEW_H
|
|
|
|
#include <interleaf.h>
|
|
#include <QDialog>
|
|
#include <QStackedWidget>
|
|
|
|
#include "chunkmodel.h"
|
|
#include "infopanel.h"
|
|
|
|
class SIViewDialog : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SIViewDialog(si::Info *info, QWidget *parent = nullptr);
|
|
|
|
std::unique_ptr<si::Interleaf> temp;
|
|
|
|
private:
|
|
QStackedWidget *config_stack_;
|
|
|
|
ChunkModel chunk_model_;
|
|
|
|
InfoPanel *panel_;
|
|
|
|
const si::Info *last_set_data_;
|
|
const si::Info *root_;
|
|
|
|
std::unique_ptr<si::Interleaf> temp_interleaf_;
|
|
|
|
private slots:
|
|
void SelectionChanged(const QModelIndex &index);
|
|
|
|
};
|
|
|
|
#endif // SIVIEW_H
|