blob: 37a2b7b4c4114f383059e494dda75d8dae1689a8 (
plain)
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
43
44
45
46
47
48
49
50
51
|
#ifndef TABPREFERENCES_H
#define TABPREFERENCES_H
#include "ifallbackpreferences.h"
#include "tabsettings.h"
namespace TextEditor {
class TEXTEDITOR_EXPORT TabPreferences : public IFallbackPreferences
{
Q_OBJECT
public:
explicit TabPreferences(
const QList<IFallbackPreferences *> &fallbacks,
QObject *parentObject = 0);
explicit TabPreferences(
const QList<TabPreferences *> &fallbacks,
QObject *parentObject = 0);
virtual QVariant value() const;
virtual void setValue(const QVariant &);
TabSettings settings() const;
// tracks parent fallbacks until null and extracts settings from it
TabSettings currentSettings() const;
virtual void toMap(const QString &prefix, QVariantMap *map) const;
virtual void fromMap(const QString &prefix, const QVariantMap &map);
public slots:
void setSettings(const TextEditor::TabSettings &tabSettings);
signals:
void settingsChanged(const TextEditor::TabSettings &);
void currentSettingsChanged(const TextEditor::TabSettings &);
protected:
virtual QString settingsSuffix() const;
private slots:
void slotCurrentValueChanged(const QVariant &);
private:
TabSettings m_data;
};
} // namespace TextEditor
#endif // TABPREFERENCES_H
|