32 lines
653 B
C
32 lines
653 B
C
|
#ifndef CONCEPTVIEW_H
|
||
|
#define CONCEPTVIEW_H
|
||
|
|
||
|
#include "appcore.h"
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QTextBrowser>
|
||
|
#include <QTreeView>
|
||
|
#include <QWidget>
|
||
|
|
||
|
namespace Components {
|
||
|
class ConceptView : public QWidget
|
||
|
{
|
||
|
public:
|
||
|
ConceptView(Core::AppCore *core, QWidget *parent=nullptr);
|
||
|
|
||
|
virtual void refresh();
|
||
|
|
||
|
private:
|
||
|
Core::AppCore *const core_ins;
|
||
|
QTreeView *const tree_view;
|
||
|
QStandardItemModel *const model_base;
|
||
|
QTextBrowser *const details_view;
|
||
|
|
||
|
void show_node_description(const QModelIndex &curr);
|
||
|
void click_to(const QModelIndex &curr);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|
||
|
#endif // CONCEPTVIEW_H
|