mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00

1. OutlineViewer: support section number; 2. Allow to close the file before opening with external program; 3. Skip end marker within a block marker;
81 lines
2.5 KiB
C++
81 lines
2.5 KiB
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);
|
|
|
|
bool getOutlineSectionNumberEnabled() const;
|
|
void setOutlineSectionNumberEnabled(bool p_enabled);
|
|
|
|
FindOptions getFindAndReplaceOptions() const;
|
|
void setFindAndReplaceOptions(FindOptions p_options);
|
|
|
|
int getNodeExplorerViewOrder() const;
|
|
void setNodeExplorerViewOrder(int p_viewOrder);
|
|
|
|
bool isNodeExplorerRecycleBinNodeVisible() const;
|
|
void setNodeExplorerRecycleBinNodeVisible(bool p_visible);
|
|
|
|
bool isNodeExplorerExternalFilesVisible() const;
|
|
void setNodeExplorerExternalFilesVisible(bool p_visible);
|
|
|
|
bool getNodeExplorerAutoImportExternalFilesEnabled() const;
|
|
void setNodeExplorerAutoImportExternalFilesEnabled(bool p_enabled);
|
|
|
|
bool getNodeExplorerCloseBeforeOpenWithEnabled() const;
|
|
void setNodeExplorerCloseBeforeOpenWithEnabled(bool p_enabled);
|
|
|
|
bool isSearchPanelAdvancedSettingsVisible() const;
|
|
void setSearchPanelAdvancedSettingsVisible(bool p_visible);
|
|
|
|
const QStringList &getMainWindowKeepDocksExpandingContentArea() const;
|
|
void setMainWindowKeepDocksExpandingContentArea(const QStringList &p_docks);
|
|
|
|
bool isSnippetPanelBuiltInSnippetsVisible() const;
|
|
void setSnippetPanelBuiltInSnippetsVisible(bool p_visible);
|
|
|
|
private:
|
|
int m_outlineAutoExpandedLevel = 6;
|
|
|
|
bool m_outlineSectionNumberEnabled = false;
|
|
|
|
FindOptions m_findAndReplaceOptions = FindOption::FindNone;
|
|
|
|
int m_nodeExplorerViewOrder = 0;
|
|
|
|
bool m_nodeExplorerRecycleBinNodeVisible = false;
|
|
|
|
bool m_nodeExplorerExternalFilesVisible = true;
|
|
|
|
bool m_nodeExplorerAutoImportExternalFilesEnabled = true;
|
|
|
|
bool m_nodeExplorerCloseBeforeOpenWithEnabled = true;
|
|
|
|
bool m_searchPanelAdvancedSettingsVisible = true;
|
|
|
|
// Object name of those docks that should be kept when expanding content area.
|
|
QStringList m_mainWindowKeepDocksExpandingContentArea;
|
|
|
|
bool m_snippetPanelBuiltInSnippetsVisible = true;
|
|
};
|
|
}
|
|
|
|
#endif // WIDGETCONFIG_H
|