mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 14:29:54 +08:00
refine inline functions in VConfigManager
This commit is contained in:
parent
95a46c9d31
commit
7fe89d816b
@ -61,15 +61,15 @@ public:
|
|||||||
// QStylesheet for danger button. Should keep identical with DangerBtn in QSS.
|
// QStylesheet for danger button. Should keep identical with DangerBtn in QSS.
|
||||||
static const QString c_dangerBtnStyle;
|
static const QString c_dangerBtnStyle;
|
||||||
|
|
||||||
inline QFont getMdEditFont() const;
|
QFont getMdEditFont() const;
|
||||||
|
|
||||||
inline QPalette getMdEditPalette() const;
|
QPalette getMdEditPalette() const;
|
||||||
|
|
||||||
inline QVector<HighlightingStyle> getMdHighlightingStyles() const;
|
QVector<HighlightingStyle> getMdHighlightingStyles() const;
|
||||||
|
|
||||||
inline QHash<QString, QTextCharFormat> getCodeBlockStyles() const;
|
QHash<QString, QTextCharFormat> getCodeBlockStyles() const;
|
||||||
|
|
||||||
inline QString getWelcomePagePath() const;
|
QString getWelcomePagePath() const;
|
||||||
|
|
||||||
QString getTemplateCssUrl();
|
QString getTemplateCssUrl();
|
||||||
|
|
||||||
@ -81,123 +81,123 @@ public:
|
|||||||
const QString &getEditorStyle() const;
|
const QString &getEditorStyle() const;
|
||||||
void setEditorStyle(const QString &p_style);
|
void setEditorStyle(const QString &p_style);
|
||||||
|
|
||||||
inline QFont getBaseEditFont() const;
|
QFont getBaseEditFont() const;
|
||||||
inline QPalette getBaseEditPalette() const;
|
QPalette getBaseEditPalette() const;
|
||||||
|
|
||||||
inline int getCurNotebookIndex() const;
|
int getCurNotebookIndex() const;
|
||||||
inline void setCurNotebookIndex(int index);
|
void setCurNotebookIndex(int index);
|
||||||
|
|
||||||
inline void getNotebooks(QVector<VNotebook *> &p_notebooks, QObject *parent);
|
void getNotebooks(QVector<VNotebook *> &p_notebooks, QObject *parent);
|
||||||
inline void setNotebooks(const QVector<VNotebook *> &p_notebooks);
|
void setNotebooks(const QVector<VNotebook *> &p_notebooks);
|
||||||
|
|
||||||
inline hoedown_extensions getMarkdownExtensions() const;
|
hoedown_extensions getMarkdownExtensions() const;
|
||||||
inline MarkdownConverterType getMdConverterType() const;
|
MarkdownConverterType getMdConverterType() const;
|
||||||
inline void setMarkdownConverterType(MarkdownConverterType type);
|
void setMarkdownConverterType(MarkdownConverterType type);
|
||||||
|
|
||||||
inline int getTabStopWidth() const;
|
int getTabStopWidth() const;
|
||||||
inline void setTabStopWidth(int tabStopWidth);
|
void setTabStopWidth(int tabStopWidth);
|
||||||
inline bool getIsExpandTab() const;
|
bool getIsExpandTab() const;
|
||||||
inline void setIsExpandTab(bool isExpandTab);
|
void setIsExpandTab(bool isExpandTab);
|
||||||
|
|
||||||
inline bool getHighlightCursorLine() const;
|
bool getHighlightCursorLine() const;
|
||||||
inline void setHighlightCursorLine(bool p_cursorLine);
|
void setHighlightCursorLine(bool p_cursorLine);
|
||||||
|
|
||||||
inline bool getHighlightSelectedWord() const;
|
bool getHighlightSelectedWord() const;
|
||||||
inline void setHighlightSelectedWord(bool p_selectedWord);
|
void setHighlightSelectedWord(bool p_selectedWord);
|
||||||
|
|
||||||
inline bool getHighlightSearchedWord() const;
|
bool getHighlightSearchedWord() const;
|
||||||
inline void setHighlightSearchedWord(bool p_searchedWord);
|
void setHighlightSearchedWord(bool p_searchedWord);
|
||||||
|
|
||||||
inline bool getAutoIndent() const;
|
bool getAutoIndent() const;
|
||||||
inline void setAutoIndent(bool p_autoIndent);
|
void setAutoIndent(bool p_autoIndent);
|
||||||
|
|
||||||
inline bool getAutoList() const;
|
bool getAutoList() const;
|
||||||
inline void setAutoList(bool p_autoList);
|
void setAutoList(bool p_autoList);
|
||||||
|
|
||||||
inline const QVector<VColor> &getPredefinedColors() const;
|
const QVector<VColor> &getPredefinedColors() const;
|
||||||
|
|
||||||
inline const QString &getCurBackgroundColor() const;
|
const QString &getCurBackgroundColor() const;
|
||||||
inline void setCurBackgroundColor(const QString &colorName);
|
void setCurBackgroundColor(const QString &colorName);
|
||||||
|
|
||||||
inline const QString &getCurRenderBackgroundColor() const;
|
const QString &getCurRenderBackgroundColor() const;
|
||||||
inline void setCurRenderBackgroundColor(const QString &colorName);
|
void setCurRenderBackgroundColor(const QString &colorName);
|
||||||
|
|
||||||
inline bool getToolsDockChecked() const;
|
bool getToolsDockChecked() const;
|
||||||
inline void setToolsDockChecked(bool p_checked);
|
void setToolsDockChecked(bool p_checked);
|
||||||
|
|
||||||
inline const QByteArray &getMainWindowGeometry() const;
|
const QByteArray &getMainWindowGeometry() const;
|
||||||
inline void setMainWindowGeometry(const QByteArray &p_geometry);
|
void setMainWindowGeometry(const QByteArray &p_geometry);
|
||||||
|
|
||||||
inline const QByteArray &getMainWindowState() const;
|
const QByteArray &getMainWindowState() const;
|
||||||
inline void setMainWindowState(const QByteArray &p_state);
|
void setMainWindowState(const QByteArray &p_state);
|
||||||
|
|
||||||
inline const QByteArray &getMainSplitterState() const;
|
const QByteArray &getMainSplitterState() const;
|
||||||
inline void setMainSplitterState(const QByteArray &p_state);
|
void setMainSplitterState(const QByteArray &p_state);
|
||||||
|
|
||||||
inline bool getFindCaseSensitive() const;
|
bool getFindCaseSensitive() const;
|
||||||
inline void setFindCaseSensitive(bool p_enabled);
|
void setFindCaseSensitive(bool p_enabled);
|
||||||
|
|
||||||
inline bool getFindWholeWordOnly() const;
|
bool getFindWholeWordOnly() const;
|
||||||
inline void setFindWholeWordOnly(bool p_enabled);
|
void setFindWholeWordOnly(bool p_enabled);
|
||||||
|
|
||||||
inline bool getFindRegularExpression() const;
|
bool getFindRegularExpression() const;
|
||||||
inline void setFindRegularExpression(bool p_enabled);
|
void setFindRegularExpression(bool p_enabled);
|
||||||
|
|
||||||
inline bool getFindIncrementalSearch() const;
|
bool getFindIncrementalSearch() const;
|
||||||
inline void setFindIncrementalSearch(bool p_enabled);
|
void setFindIncrementalSearch(bool p_enabled);
|
||||||
|
|
||||||
inline QString getLanguage() const;
|
QString getLanguage() const;
|
||||||
inline void setLanguage(const QString &p_language);
|
void setLanguage(const QString &p_language);
|
||||||
|
|
||||||
inline bool getEnableMermaid() const;
|
bool getEnableMermaid() const;
|
||||||
inline void setEnableMermaid(bool p_enabled);
|
void setEnableMermaid(bool p_enabled);
|
||||||
|
|
||||||
inline bool getEnableFlowchart() const;
|
bool getEnableFlowchart() const;
|
||||||
inline void setEnableFlowchart(bool p_enabled);
|
void setEnableFlowchart(bool p_enabled);
|
||||||
|
|
||||||
inline bool getEnableMathjax() const;
|
bool getEnableMathjax() const;
|
||||||
inline void setEnableMathjax(bool p_enabled);
|
void setEnableMathjax(bool p_enabled);
|
||||||
|
|
||||||
inline qreal getWebZoomFactor() const;
|
qreal getWebZoomFactor() const;
|
||||||
void setWebZoomFactor(qreal p_factor);
|
void setWebZoomFactor(qreal p_factor);
|
||||||
inline bool isCustomWebZoomFactor();
|
bool isCustomWebZoomFactor();
|
||||||
|
|
||||||
inline const QString &getEditorCurrentLineBg() const;
|
const QString &getEditorCurrentLineBg() const;
|
||||||
inline QString getEditorTrailingSpaceBackground() const;
|
QString getEditorTrailingSpaceBackground() const;
|
||||||
|
|
||||||
inline const QString &getEditorVimNormalBg() const;
|
const QString &getEditorVimNormalBg() const;
|
||||||
inline const QString &getEditorVimInsertBg() const;
|
const QString &getEditorVimInsertBg() const;
|
||||||
inline const QString &getEditorVimVisualBg() const;
|
const QString &getEditorVimVisualBg() const;
|
||||||
inline const QString &getEditorVimReplaceBg() const;
|
const QString &getEditorVimReplaceBg() const;
|
||||||
|
|
||||||
inline bool getEnableCodeBlockHighlight() const;
|
bool getEnableCodeBlockHighlight() const;
|
||||||
inline void setEnableCodeBlockHighlight(bool p_enabled);
|
void setEnableCodeBlockHighlight(bool p_enabled);
|
||||||
|
|
||||||
inline bool getEnablePreviewImages() const;
|
bool getEnablePreviewImages() const;
|
||||||
inline void setEnablePreviewImages(bool p_enabled);
|
void setEnablePreviewImages(bool p_enabled);
|
||||||
|
|
||||||
inline bool getEnablePreviewImageConstraint() const;
|
bool getEnablePreviewImageConstraint() const;
|
||||||
inline void setEnablePreviewImageConstraint(bool p_enabled);
|
void setEnablePreviewImageConstraint(bool p_enabled);
|
||||||
|
|
||||||
inline bool getEnableImageConstraint() const;
|
bool getEnableImageConstraint() const;
|
||||||
inline void setEnableImageConstraint(bool p_enabled);
|
void setEnableImageConstraint(bool p_enabled);
|
||||||
|
|
||||||
inline bool getEnableImageCaption() const;
|
bool getEnableImageCaption() const;
|
||||||
inline void setEnableImageCaption(bool p_enabled);
|
void setEnableImageCaption(bool p_enabled);
|
||||||
|
|
||||||
inline const QString &getImageFolder() const;
|
const QString &getImageFolder() const;
|
||||||
// Empty string to reset the default folder.
|
// Empty string to reset the default folder.
|
||||||
inline void setImageFolder(const QString &p_folder);
|
void setImageFolder(const QString &p_folder);
|
||||||
inline bool isCustomImageFolder() const;
|
bool isCustomImageFolder() const;
|
||||||
|
|
||||||
inline bool getEnableTrailingSpaceHighlight() const;
|
bool getEnableTrailingSpaceHighlight() const;
|
||||||
inline void setEnableTrailingSapceHighlight(bool p_enabled);
|
void setEnableTrailingSapceHighlight(bool p_enabled);
|
||||||
|
|
||||||
inline bool getEnableVimMode() const;
|
bool getEnableVimMode() const;
|
||||||
inline void setEnableVimMode(bool p_enabled);
|
void setEnableVimMode(bool p_enabled);
|
||||||
|
|
||||||
inline bool getEnableSmartImInVimMode() const;
|
bool getEnableSmartImInVimMode() const;
|
||||||
inline void setEnableSmartImInVimMode(bool p_enabled);
|
void setEnableSmartImInVimMode(bool p_enabled);
|
||||||
|
|
||||||
// Get the folder the ini file exists.
|
// Get the folder the ini file exists.
|
||||||
QString getConfigFolder() const;
|
QString getConfigFolder() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user