vnote/src/core/widgetconfig.h
Le Tan 52702a32e9 hard days for VNoteX project
Never say "refactor" again!!!
2020-11-28 23:10:43 +08:00

35 lines
771 B
C++

#ifndef WIDGETCONFIG_H
#define WIDGETCONFIG_H
#include "iconfig.h"
#include "global.h"
#include <QString>
namespace vnotex
{
class WidgetConfig : public IConfig
{
public:
WidgetConfig(ConfigMgr *p_mgr, IConfig *p_topConfig);
void init(const QJsonObject &p_app, const QJsonObject &p_user) Q_DECL_OVERRIDE;
QJsonObject toJson() const Q_DECL_OVERRIDE;
int getOutlineAutoExpandedLevel() const;
void setOutlineAutoExpandedLevel(int p_level);
FindOptions getFindAndReplaceOptions() const;
void setFindAndReplaceOptions(FindOptions p_options);
private:
int m_outlineAutoExpandedLevel = 6;
FindOptions m_findAndReplaceOptions = FindOption::None;
};
}
#endif // WIDGETCONFIG_H