forked from editorconfig/editorconfig-qtcreator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditorconfigwizard.h
36 lines (26 loc) · 891 Bytes
/
editorconfigwizard.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
/*
* Copyright 2016,2017 Herbert Graeber
*/
#ifndef EDITORCONFIGWIZARD_H
#define EDITORCONFIGWIZARD_H
#include <coreplugin/basefilewizardfactory.h>
namespace ProjectExplorer {
class Project;
}
namespace TextEditor {
class ICodeStylePreferences;
}
class QTextStream;
namespace EditorConfig {
class EditorConfigWizard : public Core::BaseFileWizardFactory {
Q_OBJECT
public:
EditorConfigWizard();
virtual Core::BaseFileWizard *create(QWidget *parent, const Core::WizardDialogParameters ¶meters) const;
virtual Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
private:
void createEditorConfigFileSection(QTextStream &stream, TextEditor::ICodeStylePreferences *stylePreferences) const;
void createEditorConfigFile(QTextStream &stream, ProjectExplorer::Project *project) const;
};
}
#endif // EDITORCONFIGWIZARD_H