blob: c7de074d18e82f94a3e5b4e10b204bdce7917498 (
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
|
// 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
#pragma once
#include <projectexplorer/projectsettingswidget.h>
QT_BEGIN_NAMESPACE
class QCheckBox;
class QGroupBox;
class QPushButton;
class QSpinBox;
QT_END_NAMESPACE
namespace TextEditor { class BehaviorSettingsWidget; }
namespace ProjectExplorer {
class EditorConfiguration;
class Project;
namespace Internal {
class EditorSettingsWidget : public ProjectSettingsWidget
{
Q_OBJECT
public:
explicit EditorSettingsWidget(Project *project);
private:
void globalSettingsActivated(bool useGlobal);
void restoreDefaultValues();
void settingsToUi(const EditorConfiguration *config);
Project *m_project;
QPushButton *m_restoreButton;
QCheckBox *m_showWrapColumn;
QCheckBox *m_tintMarginArea;
QSpinBox *m_wrapColumn;
QCheckBox *m_useIndenter;
QGroupBox *m_displaySettings;
TextEditor::BehaviorSettingsWidget *m_behaviorSettings;
};
} // namespace Internal
} // namespace ProjectExplorer
|