Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
theme_debug_dialog.h
Go to the documentation of this file.
1
10#ifndef THEME_DEBUG_DIALOG_H
11#define THEME_DEBUG_DIALOG_H
12
14
15#include <QPointer>
16
17class QCheckBox;
18class QLabel;
19class QPlainTextEdit;
20class QTableWidget;
21class QTimer;
22
30{
31 Q_OBJECT
32
33public:
34 explicit ThemeDebugDialog(QWidget *parent = nullptr);
36
37private slots:
38 void refresh();
39 void pollWidgetUnderCursor();
40
41protected:
42 // Watches the application for Alt+Shift+click to pin the inspector on the
43 // clicked widget (and stop cursor tracking).
44 bool eventFilter(QObject *watched, QEvent *event) override;
45
46private:
47 void buildUi();
48 void populateTokens();
49 void populateWidgetPalette(QWidget *w);
50 void displayWidget(QWidget *w);
51 void updateThemeSection();
52 void updateMainWindowSection();
53
54 QPointer<QWidget> main_window_;
55 QPointer<QWidget> tracked_;
56
57 QLabel *theme_name_;
58 QLabel *theme_internal_;
59 QLabel *theme_version_;
60 QLabel *theme_author_;
61 QLabel *theme_description_;
62 QLabel *theme_mode_;
63 QLabel *theme_dark_;
64
65 QLabel *mw_geometry_;
66 QLabel *mw_frame_;
67 QLabel *mw_screen_;
68 QLabel *mw_dpi_;
69 QLabel *mw_state_;
70
71 QCheckBox *track_widgets_;
72 QLabel *cursor_pos_;
73 QLabel *widget_class_;
74 QLabel *widget_name_;
75 QLabel *widget_font_;
76 QLabel *widget_geometry_;
77 QLabel *widget_global_;
78 QLabel *widget_parents_;
79 QPlainTextEdit *widget_stylesheet_;
80 QTableWidget *widget_palette_;
81
82 QTableWidget *token_table_;
83 QTimer *poll_timer_;
84};
85
86#endif // THEME_DEBUG_DIALOG_H
A dialog that remembers its geometry and splitter state.
Definition geometry_state_dialog.h:20
Definition theme_debug_dialog.h:30