
I though it would be nice to also show the style that the browser uses to display an element. In order to do that, in place of the styles table I've put a tab widget, with tabs for both element and computed element styles.
21 lines
461 B
C++
21 lines
461 B
C++
#include <LibGUI/GWidget.h>
|
|
|
|
class Document;
|
|
class GTableView;
|
|
class GTreeView;
|
|
|
|
class InspectorWidget final : public GWidget {
|
|
C_OBJECT(InspectorWidget)
|
|
public:
|
|
virtual ~InspectorWidget();
|
|
|
|
void set_document(Document*);
|
|
|
|
private:
|
|
explicit InspectorWidget(GWidget* parent);
|
|
|
|
RefPtr<GTreeView> m_dom_tree_view;
|
|
RefPtr<GTableView> m_style_table_view;
|
|
RefPtr<GTableView> m_computed_style_table_view;
|
|
RefPtr<Document> m_document;
|
|
};
|