Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
font_color_preferences_frame.h
Go to the documentation of this file.
1
9
10#ifndef FONT_COLOR_PREFERENCES_FRAME_H
11#define FONT_COLOR_PREFERENCES_FRAME_H
12
13#include <QFrame>
14#include <QFont>
15#include <QComboBox>
16#include <QString>
17
18#include <epan/prefs.h>
19
21
22namespace Ui {
23class FontColorPreferencesFrame;
24}
25
29class FontColorPreferencesFrame : public QFrame
30{
31 Q_OBJECT
32
33public:
38 explicit FontColorPreferencesFrame(QWidget *parent = 0);
39
44
51 void unstash();
52
53protected:
58 void showEvent(QShowEvent *evt) override;
59
60private:
62 Ui::FontColorPreferencesFrame *ui;
63
64 QString stashed_theme_name_;
65
71 int stashed_color_scheme_;
72
74 pref_t *pref_qt_gui_font_name_;
75
77 QFont cur_font_;
78
82 void updateWidgets();
83
84private slots:
89 void colorSchemeIndexChanged(int index);
90
91 void themeIndexChanged(int index);
92
96 void refreshPreview();
97
101 void on_fontPushButton_clicked();
102};
103
104#endif // FONT_COLOR_PREFERENCES_FRAME_H
void unstash()
Definition font_color_preferences_frame.cpp:188
~FontColorPreferencesFrame()
Destroys the FontColorPreferencesFrame.
Definition font_color_preferences_frame.cpp:132
FontColorPreferencesFrame(QWidget *parent=0)
Constructs a new FontColorPreferencesFrame.
Definition font_color_preferences_frame.cpp:40
void showEvent(QShowEvent *evt) override
Handles the event when the frame is shown.
Definition font_color_preferences_frame.cpp:137