QtNovelUI/WordsIDE/storyconceptspresent.h

35 lines
807 B
C
Raw Normal View History

2022-11-29 03:47:12 +00:00
#ifndef STORYCONCEPTSPRESENT_H
#define STORYCONCEPTSPRESENT_H
2022-11-25 01:18:54 +00:00
#include "appcore.h"
2022-11-29 03:47:12 +00:00
#include "tools.h"
#include <libParse.h>
2022-11-25 01:18:54 +00:00
#include <QObject>
#include <QTextBrowser>
#include <QTreeView>
#include <QWidget>
namespace Components {
2022-11-29 03:47:12 +00:00
class StoryConceptsPresent : public QWidget
2022-11-25 01:18:54 +00:00
{
public:
2022-11-29 03:47:12 +00:00
StoryConceptsPresent(Core::AppCore *core, QWidget *parent=nullptr);
2022-11-25 01:18:54 +00:00
virtual void refresh();
private:
Core::AppCore *const core_ins;
QTreeView *const tree_view;
QStandardItemModel *const model_base;
QTextBrowser *const details_view;
2022-11-29 03:47:12 +00:00
Tools::ModelSyncs<Parse::Result::DesNode*> * concept_model;
2022-11-25 01:18:54 +00:00
void show_node_description(const QModelIndex &curr);
void click_to(const QModelIndex &curr);
};
}
2022-11-29 03:47:12 +00:00
#endif // STORYCONCEPTSPRESENT_H