2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2011-07-06 11:58:06 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-05-25 08:50:01 +02:00
|
|
|
|
|
|
|
|
#include <texteditor/icodestylepreferencesfactory.h>
|
|
|
|
|
|
|
|
|
|
namespace QmlJSTools {
|
|
|
|
|
|
|
|
|
|
class QmlJSCodeStylePreferencesFactory : public TextEditor::ICodeStylePreferencesFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
QmlJSCodeStylePreferencesFactory();
|
|
|
|
|
|
2020-06-26 13:59:38 +02:00
|
|
|
Utils::Id languageId() override;
|
2018-11-24 10:22:37 +01:00
|
|
|
QString displayName() override;
|
|
|
|
|
TextEditor::ICodeStylePreferences *createCodeStyle() const override;
|
2022-03-29 15:48:15 +02:00
|
|
|
TextEditor::CodeStyleEditorWidget *createEditor(TextEditor::ICodeStylePreferences *settings,
|
2022-05-10 12:13:36 +02:00
|
|
|
ProjectExplorer::Project *project,
|
2022-03-29 15:48:15 +02:00
|
|
|
QWidget *parent) const override;
|
2019-01-16 09:37:54 +01:00
|
|
|
TextEditor::Indenter *createIndenter(QTextDocument *doc) const override;
|
2018-11-24 10:22:37 +01:00
|
|
|
QString snippetProviderGroupId() const override;
|
|
|
|
|
QString previewText() const override;
|
2011-05-25 08:50:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace QmlJSTools
|