mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Inspector: Move everything into the Inspector namespace
This commit is contained in:
parent
3843561a7e
commit
9bcc168b9b
9 changed files with 34 additions and 1 deletions
|
@ -27,6 +27,8 @@
|
||||||
#include "RemoteObject.h"
|
#include "RemoteObject.h"
|
||||||
#include "RemoteObjectPropertyModel.h"
|
#include "RemoteObjectPropertyModel.h"
|
||||||
|
|
||||||
|
namespace Inspector {
|
||||||
|
|
||||||
RemoteObject::RemoteObject()
|
RemoteObject::RemoteObject()
|
||||||
: m_property_model(RemoteObjectPropertyModel::create(*this))
|
: m_property_model(RemoteObjectPropertyModel::create(*this))
|
||||||
{
|
{
|
||||||
|
@ -37,3 +39,5 @@ RemoteObjectPropertyModel& RemoteObject::property_model()
|
||||||
m_property_model->update();
|
m_property_model->update();
|
||||||
return *m_property_model;
|
return *m_property_model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
|
|
||||||
|
namespace Inspector {
|
||||||
|
|
||||||
class RemoteObjectPropertyModel;
|
class RemoteObjectPropertyModel;
|
||||||
|
|
||||||
class RemoteObject {
|
class RemoteObject {
|
||||||
|
@ -51,3 +53,5 @@ public:
|
||||||
|
|
||||||
NonnullRefPtr<RemoteObjectPropertyModel> m_property_model;
|
NonnullRefPtr<RemoteObjectPropertyModel> m_property_model;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
#include <LibGUI/Application.h>
|
#include <LibGUI/Application.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
namespace Inspector {
|
||||||
|
|
||||||
RemoteObjectGraphModel::RemoteObjectGraphModel(RemoteProcess& process)
|
RemoteObjectGraphModel::RemoteObjectGraphModel(RemoteProcess& process)
|
||||||
: m_process(process)
|
: m_process(process)
|
||||||
{
|
{
|
||||||
|
@ -118,3 +120,5 @@ void RemoteObjectGraphModel::update()
|
||||||
{
|
{
|
||||||
did_update();
|
did_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
#include <LibCore/LocalSocket.h>
|
#include <LibCore/LocalSocket.h>
|
||||||
#include <LibGUI/Model.h>
|
#include <LibGUI/Model.h>
|
||||||
|
|
||||||
|
namespace Inspector {
|
||||||
|
|
||||||
class RemoteProcess;
|
class RemoteProcess;
|
||||||
|
|
||||||
class RemoteObjectGraphModel final : public GUI::Model {
|
class RemoteObjectGraphModel final : public GUI::Model {
|
||||||
|
@ -60,3 +62,5 @@ private:
|
||||||
GUI::Icon m_layout_icon;
|
GUI::Icon m_layout_icon;
|
||||||
GUI::Icon m_timer_icon;
|
GUI::Icon m_timer_icon;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
#include "RemoteObject.h"
|
#include "RemoteObject.h"
|
||||||
#include "RemoteProcess.h"
|
#include "RemoteProcess.h"
|
||||||
|
|
||||||
|
namespace Inspector {
|
||||||
|
|
||||||
RemoteObjectPropertyModel::RemoteObjectPropertyModel(RemoteObject& object)
|
RemoteObjectPropertyModel::RemoteObjectPropertyModel(RemoteObject& object)
|
||||||
: m_object(object)
|
: m_object(object)
|
||||||
{
|
{
|
||||||
|
@ -235,3 +237,5 @@ const JsonPath* RemoteObjectPropertyModel::find_cached_path(const Vector<JsonPat
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
#include <AK/NonnullOwnPtrVector.h>
|
#include <AK/NonnullOwnPtrVector.h>
|
||||||
#include <LibGUI/Model.h>
|
#include <LibGUI/Model.h>
|
||||||
|
|
||||||
|
namespace Inspector {
|
||||||
|
|
||||||
class RemoteObject;
|
class RemoteObject;
|
||||||
|
|
||||||
class RemoteObjectPropertyModel final : public GUI::Model {
|
class RemoteObjectPropertyModel final : public GUI::Model {
|
||||||
|
@ -66,3 +68,5 @@ private:
|
||||||
RemoteObject& m_object;
|
RemoteObject& m_object;
|
||||||
mutable NonnullOwnPtrVector<JsonPath> m_paths;
|
mutable NonnullOwnPtrVector<JsonPath> m_paths;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -31,6 +31,8 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
namespace Inspector {
|
||||||
|
|
||||||
RemoteProcess* s_the;
|
RemoteProcess* s_the;
|
||||||
|
|
||||||
RemoteProcess& RemoteProcess::the()
|
RemoteProcess& RemoteProcess::the()
|
||||||
|
@ -195,3 +197,5 @@ void RemoteProcess::update()
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -29,6 +29,8 @@
|
||||||
#include <AK/NonnullOwnPtrVector.h>
|
#include <AK/NonnullOwnPtrVector.h>
|
||||||
#include <LibCore/LocalSocket.h>
|
#include <LibCore/LocalSocket.h>
|
||||||
|
|
||||||
|
namespace Inspector {
|
||||||
|
|
||||||
class RemoteObjectGraphModel;
|
class RemoteObjectGraphModel;
|
||||||
class RemoteObject;
|
class RemoteObject;
|
||||||
|
|
||||||
|
@ -63,3 +65,5 @@ private:
|
||||||
RefPtr<Core::LocalSocket> m_socket;
|
RefPtr<Core::LocalSocket> m_socket;
|
||||||
NonnullOwnPtrVector<RemoteObject> m_roots;
|
NonnullOwnPtrVector<RemoteObject> m_roots;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -36,11 +36,12 @@
|
||||||
#include <LibGUI/ModelEditingDelegate.h>
|
#include <LibGUI/ModelEditingDelegate.h>
|
||||||
#include <LibGUI/ProcessChooser.h>
|
#include <LibGUI/ProcessChooser.h>
|
||||||
#include <LibGUI/Splitter.h>
|
#include <LibGUI/Splitter.h>
|
||||||
#include <LibGUI/TableView.h>
|
|
||||||
#include <LibGUI/TreeView.h>
|
#include <LibGUI/TreeView.h>
|
||||||
#include <LibGUI/Window.h>
|
#include <LibGUI/Window.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
using namespace Inspector;
|
||||||
|
|
||||||
[[noreturn]] static void print_usage_and_exit()
|
[[noreturn]] static void print_usage_and_exit()
|
||||||
{
|
{
|
||||||
printf("usage: Inspector <pid>\n");
|
printf("usage: Inspector <pid>\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue