2022-07-10 23:51:49 -04:00
|
|
|
#ifndef SIVIEW_H
|
|
|
|
#define SIVIEW_H
|
|
|
|
|
2022-07-18 03:27:00 -04:00
|
|
|
#include <interleaf.h>
|
2022-07-10 23:51:49 -04:00
|
|
|
#include <QDialog>
|
|
|
|
#include <QStackedWidget>
|
|
|
|
|
|
|
|
#include "chunkmodel.h"
|
2022-07-18 03:27:00 -04:00
|
|
|
#include "infopanel.h"
|
|
|
|
|
|
|
|
class SIViewDialog : public QWidget
|
2022-07-10 23:51:49 -04:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2022-07-18 03:27:00 -04:00
|
|
|
SIViewDialog(si::Info *info, QWidget *parent = nullptr);
|
2022-07-10 23:51:49 -04:00
|
|
|
|
2022-07-18 03:27:00 -04:00
|
|
|
std::unique_ptr<si::Interleaf> temp;
|
2022-07-10 23:51:49 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
QStackedWidget *config_stack_;
|
|
|
|
|
|
|
|
ChunkModel chunk_model_;
|
|
|
|
|
2022-07-18 03:27:00 -04:00
|
|
|
InfoPanel *panel_;
|
2022-07-10 23:51:49 -04:00
|
|
|
|
2022-07-18 03:27:00 -04:00
|
|
|
const si::Info *last_set_data_;
|
|
|
|
const si::Info *root_;
|
|
|
|
|
|
|
|
std::unique_ptr<si::Interleaf> temp_interleaf_;
|
2022-07-10 23:51:49 -04:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void SelectionChanged(const QModelIndex &index);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SIVIEW_H
|