From 0ca56d990616be9c8403aa9c85499a57136e400e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=89=E5=AE=87=E6=B8=85=E9=9F=B3?= <2422523675@qq.com> Date: Sat, 31 Dec 2022 13:40:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WordsIDE/SensitiveCore.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/WordsIDE/SensitiveCore.h b/WordsIDE/SensitiveCore.h index 92c9788..4403472 100644 --- a/WordsIDE/SensitiveCore.h +++ b/WordsIDE/SensitiveCore.h @@ -54,13 +54,39 @@ namespace MakeTools { { Q_OBJECT public: + /** + * @brief 内容自动构建和管理核心 + * @param tool + */ SensitiveCore(StoryTool *tool); + /** + * @brief 保存当前所有文档内容 + */ void saveAll() const; + /** + * @brief 文档打开状态查询 + * @param target + * @return + */ bool contains(const QFileInfo &target) const; + /** + * @brief 获取文档内存实例 + * @param child_view + * @return + */ TextView *queryTextComponent(const QWidget *child_view) const; + /** + * @brief 获取文档内存实例 + * @param target + * @return + */ TextView * queryTextComponent(const QFileInfo &target) const; + /** + * @brief 关闭文档内存实例,关闭之前保存内容 + * @param target + */ void closeTextComponent(const QFileInfo &target); void addPerceptionList(TextView *ins, SensitiveType type = SensitiveType::CompileAtChanged);