blob: 03cba593a6ad21318b61358f5fcb8c0f00e4cc0d (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
* Copyright (c) 2018-2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGUI/Button.h>
#include <LibGUI/CheckBox.h>
#include <LibGUI/ComboBox.h>
#include <LibGUI/SettingsWindow.h>
#include <LibGUI/TextEditor.h>
#include <LibVT/TerminalWidget.h>
class TerminalSettingsMainWidget final : public GUI::SettingsWindow::Tab {
C_OBJECT(TerminalSettingsMainWidget)
public:
virtual void apply_settings() override;
virtual void cancel_settings() override;
private:
TerminalSettingsMainWidget();
void write_back_settings() const;
static VT::TerminalWidget::BellMode parse_bell(StringView bell_string);
static DeprecatedString stringify_bell(VT::TerminalWidget::BellMode bell_mode);
VT::TerminalWidget::BellMode m_bell_mode { VT::TerminalWidget::BellMode::Disabled };
bool m_confirm_close { true };
VT::TerminalWidget::BellMode m_original_bell_mode;
bool m_orignal_confirm_close { true };
};
class TerminalSettingsViewWidget final : public GUI::SettingsWindow::Tab {
C_OBJECT(TerminalSettingsViewWidget)
public:
virtual void apply_settings() override;
virtual void cancel_settings() override;
private:
TerminalSettingsViewWidget();
void write_back_settings() const;
RefPtr<Gfx::Font const> m_font;
float m_opacity;
DeprecatedString m_color_scheme;
VT::CursorShape m_cursor_shape { VT::CursorShape::Block };
bool m_cursor_is_blinking_set { true };
size_t m_max_history_size;
bool m_show_scrollbar { true };
RefPtr<Gfx::Font const> m_original_font;
float m_original_opacity;
DeprecatedString m_original_color_scheme;
VT::CursorShape m_original_cursor_shape;
bool m_original_cursor_is_blinking_set;
size_t m_original_max_history_size;
bool m_original_show_scrollbar { true };
};
|