mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
35 lines
771 B
C++
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
|