2022-11-17 08:26:05 +00:00
|
|
|
#ifndef CONTENTPRESENT_H
|
|
|
|
#define CONTENTPRESENT_H
|
|
|
|
|
|
|
|
#include <QString>
|
2022-11-18 23:47:32 +00:00
|
|
|
#include <libConfig.h>
|
|
|
|
#include "appcore.h"
|
2022-11-17 08:26:05 +00:00
|
|
|
|
2023-02-26 14:44:00 +00:00
|
|
|
namespace Presents {
|
2022-11-17 08:26:05 +00:00
|
|
|
|
|
|
|
/**
|
2022-11-18 23:47:32 +00:00
|
|
|
* @brief 允许具有多种显示模式的视图组件
|
2022-11-17 08:26:05 +00:00
|
|
|
*/
|
2023-02-26 14:44:00 +00:00
|
|
|
class ModeView
|
2022-11-17 08:26:05 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~ModeView() = default;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief 设置视图显示模式
|
|
|
|
* @param type
|
|
|
|
*/
|
|
|
|
virtual void modeReset(const QString &type) const = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief 获取所有视图模式
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
virtual QList<QString> modes() const = 0;
|
|
|
|
virtual QString currentMode() const = 0;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // CONTENTPRESENT_H
|