#ifndef MESSAGEPRESENT_H
#define MESSAGEPRESENT_H

#include "DocsManager.h"
#include "StoryTool.h"
#include <QStandardItemModel>
#include <QTableView>
#include <QWidget>
#include <libParse.h>

namespace Components {
    /**
     * @brief 显示各种提示信息
     */
    class MessagesPresent : public QTableView, public MakeTools::PresentBase {
      public:
        MessagesPresent(MakeTools::StoryTool *tool, QWidget *parent = nullptr);
        virtual ~MessagesPresent() = default;

        void refresh();

    private:
        MakeTools::StoryTool *const core_ins;
        QStandardItemModel *const items_present;

        // PresentBase interface
      public:
        virtual QWidget *widget() const override;
        virtual QString name() const override;
    };
}


#endif // MESSAGEPRESENT_H
