1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 02:07:35 +00:00

LibVT: Clean up TerminalWidget a bit, removing unused cruft

This commit is contained in:
Andreas Kling 2021-02-15 19:58:18 +01:00
parent d9aaa8afe9
commit fc2a4511ec
2 changed files with 11 additions and 25 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -37,9 +37,11 @@
#include <LibVT/Range.h>
#include <LibVT/Terminal.h>
class TerminalWidget final : public GUI::Frame
class TerminalWidget final
: public GUI::Frame
, public VT::TerminalClient {
C_OBJECT(TerminalWidget)
C_OBJECT(TerminalWidget);
public:
TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<Core::ConfigFile> config);
virtual ~TerminalWidget() override;
@ -51,10 +53,7 @@ public:
flush_dirty_lines();
}
void create_window();
void flush_dirty_lines();
void force_repaint();
void apply_size_increments_to_window(GUI::Window&);
@ -172,7 +171,6 @@ private:
String m_context_menu_href;
BellMode m_bell_mode { BellMode::Visible };
bool m_belling { false };
bool m_alt_key_held { false };
bool m_rectangle_selection { false };
@ -190,14 +188,11 @@ private:
RefPtr<Core::Notifier> m_notifier;
u8 m_opacity { 255 };
bool m_needs_background_fill { true };
bool m_cursor_blink_state { true };
bool m_automatic_size_policy { false };
RefPtr<Gfx::Font> m_bold_font;
int m_glyph_width { 0 };
enum class AutoScrollDirection {
None,
Up,