SIEdit/app/siview/siview.h

39 lines
642 B
C
Raw Normal View History

#ifndef SIVIEW_H
#define SIVIEW_H
2022-07-18 03:27:00 -04:00
#include <interleaf.h>
#include <QDialog>
#include <QStackedWidget>
#include "chunkmodel.h"
2022-07-18 03:27:00 -04:00
#include "infopanel.h"
class SIViewDialog : public QWidget
{
Q_OBJECT
public:
2022-07-18 03:27:00 -04:00
SIViewDialog(si::Info *info, QWidget *parent = nullptr);
2022-07-30 12:03:21 -04:00
void SetSubtitle(const QString &s);
2022-07-18 03:27:00 -04:00
std::unique_ptr<si::Interleaf> temp;
private:
QStackedWidget *config_stack_;
ChunkModel chunk_model_;
2022-07-18 03:27:00 -04:00
InfoPanel *panel_;
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_;
private slots:
void SelectionChanged(const QModelIndex &index);
};
#endif // SIVIEW_H