mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:17:36 +00:00
Ladybird/Qt: Add an Inspector context menu to edit the DOM
This commit is contained in:
parent
5006330bc6
commit
be53596fe6
2 changed files with 73 additions and 0 deletions
|
@ -7,9 +7,13 @@
|
|||
#pragma once
|
||||
|
||||
#include "WebContentView.h"
|
||||
#include <LibGfx/Point.h>
|
||||
#include <LibWebView/Forward.h>
|
||||
#include <QWidget>
|
||||
|
||||
class QAction;
|
||||
class QMenu;
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
class WebContentView;
|
||||
|
@ -30,8 +34,19 @@ public:
|
|||
private:
|
||||
void closeEvent(QCloseEvent*) override;
|
||||
|
||||
QPoint to_widget_position(Gfx::IntPoint) const;
|
||||
|
||||
WebContentView* m_inspector_view;
|
||||
OwnPtr<WebView::InspectorClient> m_inspector_client;
|
||||
|
||||
QMenu* m_dom_node_text_context_menu { nullptr };
|
||||
QMenu* m_dom_node_tag_context_menu { nullptr };
|
||||
QMenu* m_dom_node_attribute_context_menu { nullptr };
|
||||
|
||||
QAction* m_edit_node_action { nullptr };
|
||||
QAction* m_delete_node_action { nullptr };
|
||||
QAction* m_add_attribute_action { nullptr };
|
||||
QAction* m_remove_attribute_action { nullptr };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue