QtNovelUI/WordsIDE/ContentPresent.h

73 lines
1.5 KiB
C
Raw Normal View History

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
2022-11-18 23:47:32 +00:00
namespace Core
{
class ConfigHost
{
public:
virtual ~ConfigHost() = default;
/**
* @brief
* @return
*/
virtual QList<Scale> configs() const = 0;
/**
* @brief
* @param configs
*/
virtual void reload(QList<Config::Configration*> configs) = 0;
/**
* @brief getPanel
* @param config
* @return
*/
virtual QWidget* getPanel(Config::Configration* config) = 0;
};
}
2022-11-17 08:26:05 +00:00
namespace ContentPresent {
/**
2022-11-18 23:47:32 +00:00
* @brief
2022-11-17 08:26:05 +00:00
*/
class ModeView
{
public:
virtual ~ModeView() = default;
2022-11-18 23:47:32 +00:00
/**
* @brief
* @return
*/
virtual Core::ConfigHost* getConfigHost() const = 0;
2022-11-17 08:26:05 +00:00
/**
* @brief
* @param type
*/
virtual void modeReset(const QString &type) const = 0;
/**
* @brief
* @return
*/
virtual QList<QString> modes() const = 0;
virtual QString currentMode() const = 0;
/**
* @brief
* @return
*/
virtual QString title() const = 0;
};
}
#endif // CONTENTPRESENT_H