WsParser_VS/StoryPresent/storypresent.h

30 lines
588 B
C
Raw Normal View History

2024-09-24 10:43:10 +00:00
#pragma once
#include <QtWidgets/QMainWindow>
2024-10-04 12:12:19 +00:00
#include "dag_present.h"
#include "xast_parse.h"
2024-09-24 10:43:10 +00:00
class StoryPresent : public QMainWindow {
Q_OBJECT
public:
StoryPresent(QWidget* parent = nullptr);
~StoryPresent();
2024-10-05 02:11:42 +00:00
void loadXAST(const QString &ast_path);
private:
2024-10-05 09:20:41 +00:00
double _scale_value = 1;
2024-10-05 02:11:42 +00:00
dags::DAGActiveView *const _story_present;
QHash<QString, std::shared_ptr<xast_parse::StoryDefine>> _story_graph;
2024-10-05 09:20:41 +00:00
2024-10-06 15:16:29 +00:00
void nodeClickAccept(const QPointF &pos, const QString &node_name);
2024-10-05 09:20:41 +00:00
void bigger();
void lesser();
2024-10-06 03:01:32 +00:00
void forwardLayout();
void backwardLayout();
void adjustLayout();
2024-09-24 10:43:10 +00:00
};