forked from editorconfig/editorconfig-qtcreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
editorconfigdata.h
35 lines (25 loc) · 746 Bytes
/
editorconfigdata.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
/*
* Copyright 2016 Herbert Graeber
*/
#ifndef EDITORCONFIGDATA_H
#define EDITORCONFIGDATA_H
#include <texteditor/tabsettings.h>
#include <texteditor/storagesettings.h>
#include <QtCore/QObject>
#include <QtCore/QMap>
#include <QtCore/QTextCodec>
namespace EditorConfig {
class EditorConfigData : QObject {
Q_OBJECT
public:
EditorConfigData(const QString &, QObject *parent = 0);
bool overrideTabSettings(TextEditor::TabSettings &tabSettings) const;
bool overrideStorageSettings(TextEditor::StorageSettings &storageSettings) const;
bool overrideCodec(const QTextCodec *&codec) const;
private:
void message(const QString &msg) const;
QString file_name;
QMap<QByteArray, QByteArray> m_data;
};
}
#endif