1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:57:44 +00:00

Userland: Rename Core::Object to Core::EventReceiver

This is a more precise description of what this class actually does.
This commit is contained in:
Andreas Kling 2023-08-06 18:09:39 +02:00 committed by Jelle Raaijmakers
parent bdf696e488
commit ddbe6bd7b4
128 changed files with 399 additions and 401 deletions

View file

@ -11,7 +11,7 @@
#include <AK/StringView.h>
#include <AK/Vector.h>
#include <LibCore/Account.h>
#include <LibCore/Object.h>
#include <LibCore/EventReceiver.h>
#include <LibGUI/Button.h>
#include <LibGUI/ImageWidget.h>
#include <LibGUI/TextBox.h>

View file

@ -13,7 +13,7 @@
#include <LibAudio/Sample.h>
#include <LibAudio/WavWriter.h>
#include <LibCore/Event.h>
#include <LibCore/Object.h>
#include <LibCore/EventReceiver.h>
#include <LibDSP/Music.h>
#include <LibThreading/MutexProtected.h>
#include <LibThreading/Thread.h>
@ -22,7 +22,7 @@ class TrackManager;
// Wrapper class accepting custom events to advance the track playing and forward audio data to the system.
// This does not run on a separate thread, preventing IPC multithreading madness.
class AudioPlayerLoop final : public Core::Object {
class AudioPlayerLoop final : public Core::EventReceiver {
C_OBJECT(AudioPlayerLoop)
public:
virtual ~AudioPlayerLoop() override;

View file

@ -7,7 +7,7 @@
#pragma once
#include <AK/NonnullRefPtr.h>
#include <LibCore/Object.h>
#include <LibCore/EventReceiver.h>
#include <LibDSP/ProcessorParameter.h>
#include <LibGUI/Label.h>
#include <LibGUI/Widget.h>

View file

@ -6,7 +6,7 @@
#pragma once
#include <LibCore/Object.h>
#include <LibCore/EventReceiver.h>
#include <LibDSP/ProcessorParameter.h>
#include <LibGUI/CheckBox.h>
#include <LibGUI/Widget.h>

View file

@ -7,7 +7,7 @@
#pragma once
#include "Image.h"
#include <LibCore/Object.h>
#include <LibCore/EventReceiver.h>
#include <LibGUI/Frame.h>
namespace PixelPaint {

View file

@ -33,7 +33,7 @@ public:
m_visualization->remove_from_parent();
update();
auto new_visualization = T::construct(move(args)...);
m_player_view->insert_child_before(new_visualization, *static_cast<Core::Object*>(m_playback_progress_slider.ptr()));
m_player_view->insert_child_before(new_visualization, *static_cast<Core::EventReceiver*>(m_playback_progress_slider.ptr()));
m_visualization = new_visualization;
if (!loaded_filename().is_empty())
m_visualization->start_new_file(loaded_filename());

View file

@ -17,7 +17,7 @@
#include <AK/Types.h>
#include <AK/WeakPtr.h>
#include <AK/Weakable.h>
#include <LibCore/Object.h>
#include <LibCore/EventReceiver.h>
#include <LibJS/Interpreter.h>
namespace Spreadsheet {
@ -41,7 +41,7 @@ private:
CellTypeMetadata m_new_type_metadata;
};
class Sheet : public Core::Object {
class Sheet : public Core::EventReceiver {
C_OBJECT(Sheet);
public:

View file

@ -6,7 +6,7 @@
*/
#include "GraphWidget.h"
#include <LibCore/Object.h>
#include <LibCore/EventReceiver.h>
#include <LibGUI/Application.h>
#include <LibGUI/Painter.h>
#include <LibGfx/Font/Font.h>

View file

@ -9,7 +9,7 @@
#include "GraphWidget.h"
#include <AK/JsonObject.h>
#include <AK/NumberFormat.h>
#include <LibCore/Object.h>
#include <LibCore/EventReceiver.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Label.h>
#include <LibGUI/Painter.h>

View file

@ -126,7 +126,7 @@ void ThreadStackWidget::refresh()
[weak_this = make_weak_ptr()](auto result) -> ErrorOr<void> {
if (!weak_this)
return {};
Core::EventLoop::current().post_event(const_cast<Core::Object&>(*weak_this), make<CompletionEvent>(move(result)));
Core::EventLoop::current().post_event(const_cast<Core::EventReceiver&>(*weak_this), make<CompletionEvent>(move(result)));
return {};
});
}

View file

@ -21,7 +21,7 @@
#include <LibConfig/Client.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/EventLoop.h>
#include <LibCore/Object.h>
#include <LibCore/EventReceiver.h>
#include <LibCore/System.h>
#include <LibCore/Timer.h>
#include <LibGUI/Action.h>