2022-11-17 08:26:05 +00:00
|
|
|
#ifndef MESSAGEPRESENT_H
|
|
|
|
#define MESSAGEPRESENT_H
|
|
|
|
|
2023-03-17 13:58:38 +00:00
|
|
|
#include "DocsManager.h"
|
2023-08-27 14:09:46 +00:00
|
|
|
#include <QHash>
|
2022-11-17 08:26:05 +00:00
|
|
|
#include <QStandardItemModel>
|
|
|
|
#include <QTableView>
|
2023-08-27 14:09:46 +00:00
|
|
|
#include <splitpanel.h>
|
2022-11-17 08:26:05 +00:00
|
|
|
|
|
|
|
namespace Components {
|
|
|
|
/**
|
|
|
|
* @brief 显示各种提示信息
|
|
|
|
*/
|
2023-08-27 14:09:46 +00:00
|
|
|
class MessagesPresent : public SplitFrame::FnWrap<MessagesPresent, false> {
|
2023-08-15 14:14:00 +00:00
|
|
|
public:
|
2023-03-17 13:58:38 +00:00
|
|
|
virtual ~MessagesPresent() = default;
|
2022-11-17 08:26:05 +00:00
|
|
|
|
2023-08-27 14:09:46 +00:00
|
|
|
static MessagesPresent *gen(SplitFrame::ViewPresent *host, QStandardItemModel *base, QWidget *parent = nullptr);
|
|
|
|
|
2022-11-17 08:26:05 +00:00
|
|
|
private:
|
2023-08-27 14:09:46 +00:00
|
|
|
MessagesPresent(SplitFrame::ViewPresent *ins, QStandardItemModel *base, QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
QTableView *const ui_present;
|
2022-11-17 08:26:05 +00:00
|
|
|
QStandardItemModel *const items_present;
|
2023-08-27 14:09:46 +00:00
|
|
|
static QHash<SplitFrame::ViewPresent *, MessagesPresent *> panel_map;
|
2022-11-17 08:26:05 +00:00
|
|
|
};
|
2023-08-15 14:14:00 +00:00
|
|
|
} // namespace Components
|
2022-11-17 08:26:05 +00:00
|
|
|
|
|
|
|
#endif // MESSAGEPRESENT_H
|