30 lines
857 B
C++
30 lines
857 B
C++
#ifndef MESSAGEPRESENT_H
|
|
#define MESSAGEPRESENT_H
|
|
|
|
#include "DocsManager.h"
|
|
#include <QHash>
|
|
#include <QStandardItemModel>
|
|
#include <QTableView>
|
|
#include <splitpanel.h>
|
|
|
|
namespace Components {
|
|
/**
|
|
* @brief 显示各种提示信息
|
|
*/
|
|
class MessagesPresent : public SplitFrame::FnWrap<MessagesPresent, false> {
|
|
public:
|
|
virtual ~MessagesPresent() = default;
|
|
|
|
static MessagesPresent *gen(SplitFrame::ViewPresent *host, QStandardItemModel *base, QWidget *parent = nullptr);
|
|
|
|
private:
|
|
MessagesPresent(SplitFrame::ViewPresent *ins, QStandardItemModel *base, QWidget *parent = nullptr);
|
|
|
|
QTableView *const ui_present;
|
|
QStandardItemModel *const items_present;
|
|
static QHash<SplitFrame::ViewPresent *, MessagesPresent *> panel_map;
|
|
};
|
|
} // namespace Components
|
|
|
|
#endif // MESSAGEPRESENT_H
|