1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:27:35 +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:
Andreas Kling 2020-02-02 12:34:39 +01:00
parent b7e3810b5c
commit 2d39da5405
265 changed files with 1380 additions and 1167 deletions

View file

@ -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;
};