forked from epasveer/seer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSeerEditorConfigPage.h
43 lines (30 loc) · 1.8 KB
/
SeerEditorConfigPage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include "SeerHighlighterSettings.h"
#include <QtGui/QFont>
#include <QtWidgets/QWidget>
#include "ui_SeerEditorConfigPage.h"
class SeerEditorConfigPage : public QWidget, public Ui::SeerEditorConfigPage {
Q_OBJECT
public:
explicit SeerEditorConfigPage (QWidget* parent = 0);
~SeerEditorConfigPage ();
void setEditorFont (const QFont& font);
const QFont& editorFont () const;
void setEditorTabSize (int spaces);
int editorTabSize () const;
void setHighlighterSettings (const SeerHighlighterSettings& settings);
const SeerHighlighterSettings& highlighterSettings () const;
void setHighlighterEnabled (bool flag);
bool highlighterEnabled () const;
void reset ();
protected slots:
void handleFontSizeChanged (const QString& text);
void handleFontChanged (const QFont& font);
void handleFontDialog ();
void handleHighlighterChanged ();
void handleEnabledChanged ();
void handleApplyTheme ();
private:
QFont _font;
SeerHighlighterSettings _highlighterSettings;
};