mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
Everywhere: Move the Ladybird folder to UI
This commit is contained in:
parent
93712b24bf
commit
db47cc41f8
Notes:
github-actions[bot]
2024-11-10 11:51:45 +00:00
Author: https://github.com/trflynn89
Commit: db47cc41f8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
203 changed files with 266 additions and 244 deletions
67
UI/Qt/InspectorWidget.h
Normal file
67
UI/Qt/InspectorWidget.h
Normal file
|
@ -0,0 +1,67 @@
|
|||
/*
|
||||
* Copyright (c) 2022, MacDue <macdue@dueutil.tech>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibGfx/Point.h>
|
||||
#include <LibWebView/Forward.h>
|
||||
#include <UI/Qt/WebContentView.h>
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QAction;
|
||||
class QMenu;
|
||||
|
||||
namespace Ladybird {
|
||||
|
||||
class WebContentView;
|
||||
|
||||
class InspectorWidget final : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
InspectorWidget(QWidget* tab, WebContentView& content_view);
|
||||
virtual ~InspectorWidget() override;
|
||||
|
||||
void inspect();
|
||||
void reset();
|
||||
|
||||
void select_hovered_node();
|
||||
void select_default_node();
|
||||
|
||||
public slots:
|
||||
void device_pixel_ratio_changed(qreal dpi);
|
||||
|
||||
private:
|
||||
virtual bool event(QEvent*) override;
|
||||
void closeEvent(QCloseEvent*) override;
|
||||
|
||||
QScreen* m_current_screen;
|
||||
double m_device_pixel_ratio { 0 };
|
||||
|
||||
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 };
|
||||
QMenu* m_cookie_context_menu { nullptr };
|
||||
|
||||
QAction* m_edit_node_action { nullptr };
|
||||
QAction* m_copy_node_action { nullptr };
|
||||
QAction* m_screenshot_node_action { nullptr };
|
||||
QAction* m_create_child_element_action { nullptr };
|
||||
QAction* m_create_child_text_node_action { nullptr };
|
||||
QAction* m_clone_node_action { nullptr };
|
||||
QAction* m_delete_node_action { nullptr };
|
||||
QAction* m_add_attribute_action { nullptr };
|
||||
QAction* m_remove_attribute_action { nullptr };
|
||||
QAction* m_copy_attribute_value_action { nullptr };
|
||||
QAction* m_delete_cookie_action { nullptr };
|
||||
QAction* m_delete_all_cookies_action { nullptr };
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue