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 10:38:53 +02:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-02-03 15:48:14 +01:00
|
|
|
|
|
|
|
|
#include "texteditor_global.h"
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QWidget>
|
2011-02-03 15:48:14 +01:00
|
|
|
|
|
|
|
|
namespace TextEditor {
|
|
|
|
|
|
2011-06-22 15:04:24 +02:00
|
|
|
class TabSettings;
|
2011-08-16 10:45:23 +02:00
|
|
|
class TabSettingsWidget;
|
|
|
|
|
class ICodeStylePreferences;
|
2011-02-03 15:48:14 +01:00
|
|
|
|
2014-02-11 21:55:42 +02:00
|
|
|
namespace Ui { class TabPreferencesWidget; }
|
2011-02-03 15:48:14 +01:00
|
|
|
|
2011-08-16 10:45:23 +02:00
|
|
|
class TEXTEDITOR_EXPORT SimpleCodeStylePreferencesWidget : public QWidget
|
2011-02-03 15:48:14 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2018-05-07 17:31:08 +02:00
|
|
|
explicit SimpleCodeStylePreferencesWidget(QWidget *parent = nullptr);
|
2011-02-03 15:48:14 +01:00
|
|
|
|
2011-08-16 10:45:23 +02:00
|
|
|
void setPreferences(ICodeStylePreferences *tabPreferences);
|
2011-02-03 15:48:14 +01:00
|
|
|
|
2013-04-04 11:17:13 +02:00
|
|
|
TabSettingsWidget *tabSettingsWidget() const;
|
2011-02-03 15:48:14 +01:00
|
|
|
|
2015-12-13 01:18:33 +02:00
|
|
|
private:
|
2011-08-16 10:45:23 +02:00
|
|
|
void slotCurrentPreferencesChanged(TextEditor::ICodeStylePreferences *preferences);
|
2011-06-22 15:04:24 +02:00
|
|
|
void slotTabSettingsChanged(const TextEditor::TabSettings &settings);
|
2011-02-03 15:48:14 +01:00
|
|
|
|
2011-08-16 10:45:23 +02:00
|
|
|
TabSettingsWidget *m_tabSettingsWidget;
|
2018-09-20 01:16:01 +03:00
|
|
|
ICodeStylePreferences *m_preferences = nullptr;
|
2011-02-03 15:48:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace TextEditor
|