Inspector: Move everything into the Inspector namespace

This commit is contained in:
Andreas Kling 2020-09-25 21:03:29 +02:00
parent 3843561a7e
commit 9bcc168b9b
9 changed files with 34 additions and 1 deletions

View file

@ -27,6 +27,8 @@
#include "RemoteObject.h"
#include "RemoteObjectPropertyModel.h"
namespace Inspector {
RemoteObject::RemoteObject()
: m_property_model(RemoteObjectPropertyModel::create(*this))
{
@ -37,3 +39,5 @@ RemoteObjectPropertyModel& RemoteObject::property_model()
m_property_model->update();
return *m_property_model;
}
}

View file

@ -31,6 +31,8 @@
#include <AK/String.h>
#include <AK/Vector.h>
namespace Inspector {
class RemoteObjectPropertyModel;
class RemoteObject {
@ -51,3 +53,5 @@ public:
NonnullRefPtr<RemoteObjectPropertyModel> m_property_model;
};
}

View file

@ -32,6 +32,8 @@
#include <LibGUI/Application.h>
#include <stdio.h>
namespace Inspector {
RemoteObjectGraphModel::RemoteObjectGraphModel(RemoteProcess& process)
: m_process(process)
{
@ -118,3 +120,5 @@ void RemoteObjectGraphModel::update()
{
did_update();
}
}

View file

@ -32,6 +32,8 @@
#include <LibCore/LocalSocket.h>
#include <LibGUI/Model.h>
namespace Inspector {
class RemoteProcess;
class RemoteObjectGraphModel final : public GUI::Model {
@ -60,3 +62,5 @@ private:
GUI::Icon m_layout_icon;
GUI::Icon m_timer_icon;
};
}

View file

@ -28,6 +28,8 @@
#include "RemoteObject.h"
#include "RemoteProcess.h"
namespace Inspector {
RemoteObjectPropertyModel::RemoteObjectPropertyModel(RemoteObject& object)
: m_object(object)
{
@ -235,3 +237,5 @@ const JsonPath* RemoteObjectPropertyModel::find_cached_path(const Vector<JsonPat
return nullptr;
}
}

View file

@ -31,6 +31,8 @@
#include <AK/NonnullOwnPtrVector.h>
#include <LibGUI/Model.h>
namespace Inspector {
class RemoteObject;
class RemoteObjectPropertyModel final : public GUI::Model {
@ -66,3 +68,5 @@ private:
RemoteObject& m_object;
mutable NonnullOwnPtrVector<JsonPath> m_paths;
};
}

View file

@ -31,6 +31,8 @@
#include <stdio.h>
#include <stdlib.h>
namespace Inspector {
RemoteProcess* s_the;
RemoteProcess& RemoteProcess::the()
@ -195,3 +197,5 @@ void RemoteProcess::update()
exit(1);
}
}
}

View file

@ -29,6 +29,8 @@
#include <AK/NonnullOwnPtrVector.h>
#include <LibCore/LocalSocket.h>
namespace Inspector {
class RemoteObjectGraphModel;
class RemoteObject;
@ -63,3 +65,5 @@ private:
RefPtr<Core::LocalSocket> m_socket;
NonnullOwnPtrVector<RemoteObject> m_roots;
};
}

View file

@ -36,11 +36,12 @@
#include <LibGUI/ModelEditingDelegate.h>
#include <LibGUI/ProcessChooser.h>
#include <LibGUI/Splitter.h>
#include <LibGUI/TableView.h>
#include <LibGUI/TreeView.h>
#include <LibGUI/Window.h>
#include <stdio.h>
using namespace Inspector;
[[noreturn]] static void print_usage_and_exit()
{
printf("usage: Inspector <pid>\n");