vnote/src/widgets/dialogs/settings/texteditorpage.h
2021-05-09 10:38:42 +08:00

49 lines
986 B
C++

#ifndef TEXTEDITORPAGE_H
#define TEXTEDITORPAGE_H
#include "settingspage.h"
class QComboBox;
class QCheckBox;
class QSpinBox;
namespace vnotex
{
class TextEditorPage : public SettingsPage
{
Q_OBJECT
public:
explicit TextEditorPage(QWidget *p_parent = nullptr);
QString title() const Q_DECL_OVERRIDE;
protected:
void loadInternal() Q_DECL_OVERRIDE;
void saveInternal() Q_DECL_OVERRIDE;
private:
void setupUI();
QComboBox *m_lineNumberComboBox = nullptr;
QCheckBox *m_textFoldingCheckBox = nullptr;
QComboBox *m_inputModeComboBox = nullptr;
QComboBox *m_centerCursorComboBox = nullptr;
QComboBox *m_wrapModeComboBox = nullptr;
QCheckBox *m_expandTabCheckBox = nullptr;
QSpinBox *m_tabStopWidthSpinBox = nullptr;
QSpinBox *m_zoomDeltaSpinBox = nullptr;
QCheckBox *m_spellCheckCheckBox = nullptr;
};
}
#endif // TEXTEDITORPAGE_H