mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibCore: Put all classes in the Core namespace and remove the leading C
I've been wanting to do this for a long time. It's time we start being consistent about how this stuff works. The new convention is: - "LibFoo" is a userspace library that provides the "Foo" namespace. That's it :^) This was pretty tedious to convert and I didn't even start on LibGUI yet. But it's coming up next.
This commit is contained in:
parent
b7e3810b5c
commit
2d39da5405
265 changed files with 1380 additions and 1167 deletions
|
@ -54,7 +54,7 @@ void TerminalWidget::set_pty_master_fd(int fd)
|
|||
m_notifier = nullptr;
|
||||
return;
|
||||
}
|
||||
m_notifier = CNotifier::construct(m_ptm_fd, CNotifier::Read);
|
||||
m_notifier = Core::Notifier::construct(m_ptm_fd, Core::Notifier::Read);
|
||||
m_notifier->on_ready_to_read = [this] {
|
||||
u8 buffer[BUFSIZ];
|
||||
ssize_t nread = read(m_ptm_fd, buffer, sizeof(buffer));
|
||||
|
@ -81,14 +81,14 @@ void TerminalWidget::set_pty_master_fd(int fd)
|
|||
};
|
||||
}
|
||||
|
||||
TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<CConfigFile> config)
|
||||
TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<Core::ConfigFile> config)
|
||||
: m_terminal(*this)
|
||||
, m_automatic_size_policy(automatic_size_policy)
|
||||
, m_config(move(config))
|
||||
{
|
||||
set_pty_master_fd(ptm_fd);
|
||||
m_cursor_blink_timer = CTimer::construct();
|
||||
m_visual_beep_timer = CTimer::construct();
|
||||
m_cursor_blink_timer = Core::Timer::construct();
|
||||
m_visual_beep_timer = Core::Timer::construct();
|
||||
|
||||
set_frame_shape(FrameShape::Container);
|
||||
set_frame_shadow(FrameShadow::Sunken);
|
||||
|
@ -165,19 +165,19 @@ void TerminalWidget::set_logical_focus(bool focus)
|
|||
update();
|
||||
}
|
||||
|
||||
void TerminalWidget::focusin_event(CEvent& event)
|
||||
void TerminalWidget::focusin_event(Core::Event& event)
|
||||
{
|
||||
set_logical_focus(true);
|
||||
return GFrame::focusin_event(event);
|
||||
}
|
||||
|
||||
void TerminalWidget::focusout_event(CEvent& event)
|
||||
void TerminalWidget::focusout_event(Core::Event& event)
|
||||
{
|
||||
set_logical_focus(false);
|
||||
return GFrame::focusout_event(event);
|
||||
}
|
||||
|
||||
void TerminalWidget::event(CEvent& event)
|
||||
void TerminalWidget::event(Core::Event& event)
|
||||
{
|
||||
if (event.type() == GEvent::WindowBecameActive)
|
||||
set_logical_focus(true);
|
||||
|
|
|
@ -41,7 +41,7 @@ class TerminalWidget final : public GFrame
|
|||
, public VT::TerminalClient {
|
||||
C_OBJECT(TerminalWidget)
|
||||
public:
|
||||
TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<CConfigFile> config);
|
||||
TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<Core::ConfigFile> config);
|
||||
virtual ~TerminalWidget() override;
|
||||
|
||||
void set_pty_master_fd(int fd);
|
||||
|
@ -65,7 +65,7 @@ public:
|
|||
bool should_beep() { return m_should_beep; }
|
||||
void set_should_beep(bool sb) { m_should_beep = sb; };
|
||||
|
||||
RefPtr<CConfigFile> config() const { return m_config; }
|
||||
RefPtr<Core::ConfigFile> config() const { return m_config; }
|
||||
|
||||
bool has_selection() const;
|
||||
bool selection_contains(const VT::Position&) const;
|
||||
|
@ -89,7 +89,7 @@ public:
|
|||
|
||||
private:
|
||||
// ^GWidget
|
||||
virtual void event(CEvent&) override;
|
||||
virtual void event(Core::Event&) override;
|
||||
virtual void paint_event(GPaintEvent&) override;
|
||||
virtual void resize_event(GResizeEvent&) override;
|
||||
virtual void keydown_event(GKeyEvent&) override;
|
||||
|
@ -97,8 +97,8 @@ private:
|
|||
virtual void mousemove_event(GMouseEvent&) override;
|
||||
virtual void mousewheel_event(GMouseEvent&) override;
|
||||
virtual void doubleclick_event(GMouseEvent&) override;
|
||||
virtual void focusin_event(CEvent&) override;
|
||||
virtual void focusout_event(CEvent&) override;
|
||||
virtual void focusin_event(Core::Event&) override;
|
||||
virtual void focusout_event(Core::Event&) override;
|
||||
virtual void context_menu_event(GContextMenuEvent&) override;
|
||||
virtual void drop_event(GDropEvent&) override;
|
||||
virtual void did_change_font() override;
|
||||
|
@ -143,7 +143,7 @@ private:
|
|||
|
||||
bool m_has_logical_focus { false };
|
||||
|
||||
RefPtr<CNotifier> m_notifier;
|
||||
RefPtr<Core::Notifier> m_notifier;
|
||||
|
||||
u8 m_opacity { 255 };
|
||||
bool m_needs_background_fill { true };
|
||||
|
@ -154,9 +154,9 @@ private:
|
|||
|
||||
int m_glyph_width { 0 };
|
||||
|
||||
RefPtr<CTimer> m_cursor_blink_timer;
|
||||
RefPtr<CTimer> m_visual_beep_timer;
|
||||
RefPtr<CConfigFile> m_config;
|
||||
RefPtr<Core::Timer> m_cursor_blink_timer;
|
||||
RefPtr<Core::Timer> m_visual_beep_timer;
|
||||
RefPtr<Core::ConfigFile> m_config;
|
||||
|
||||
RefPtr<GScrollBar> m_scrollbar;
|
||||
|
||||
|
@ -165,5 +165,5 @@ private:
|
|||
|
||||
RefPtr<GMenu> m_context_menu;
|
||||
|
||||
CElapsedTimer m_triple_click_timer;
|
||||
Core::ElapsedTimer m_triple_click_timer;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue