QtNovelUI/WordsIDE/ContentPresent.h

35 lines
667 B
C++

#ifndef CONTENTPRESENT_H
#define CONTENTPRESENT_H
#include <QString>
#include <libConfig.h>
#include "appcore.h"
namespace Presents {
/**
* @brief 允许具有多种显示模式的视图组件
*/
class ModeView
{
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