aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/terminal/terminalsettings.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/terminal/terminalsettings.h')
-rw-r--r--src/plugins/terminal/terminalsettings.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/plugins/terminal/terminalsettings.h b/src/plugins/terminal/terminalsettings.h
new file mode 100644
index 00000000000..4550bbce2a2
--- /dev/null
+++ b/src/plugins/terminal/terminalsettings.h
@@ -0,0 +1,37 @@
+// Copyright (C) 2022 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 <coreplugin/dialogs/ioptionspage.h>
+
+namespace Terminal {
+
+class TerminalSettings : public Core::PagedSettings
+{
+public:
+ TerminalSettings();
+
+ static TerminalSettings &instance();
+
+ Utils::BoolAspect enableTerminal{this};
+
+ Utils::StringAspect font{this};
+ Utils::IntegerAspect fontSize{this};
+ Utils::FilePathAspect shell{this};
+ Utils::StringAspect shellArguments{this};
+
+ Utils::ColorAspect foregroundColor;
+ Utils::ColorAspect backgroundColor;
+ Utils::ColorAspect selectionColor;
+ Utils::ColorAspect findMatchColor;
+
+ Utils::ColorAspect colors[16];
+
+ Utils::BoolAspect allowBlinkingCursor{this};
+
+ Utils::BoolAspect sendEscapeToTerminal{this};
+ Utils::BoolAspect audibleBell{this};
+};
+
+} // Terminal