Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
font_color_preferences_frame.h
Go to the documentation of this file.
1
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 {
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);
59
60private:
62 Ui::FontColorPreferencesFrame *ui;
63
65 QComboBox *colorSchemeComboBox_;
66
67 QComboBox *themeComboBox_;
68
69 QString stashed_theme_name_;
70
72 pref_t *pref_color_scheme_;
73
75 pref_t *pref_qt_gui_font_name_;
76
78 ThemePreviewWidget *previewWidget_ = nullptr;
79
81 QFont cur_font_;
82
86 void updateWidgets();
87
88private slots:
93 void colorSchemeIndexChanged(int index);
94
95 void themeIndexChanged(int index);
96
100 void refreshPreview();
101
105 void on_fontPushButton_clicked();
106};
107
108#endif // FONT_COLOR_PREFERENCES_FRAME_H
A frame for configuring font and color preferences.
Definition font_color_preferences_frame.h:30
void unstash()
Definition font_color_preferences_frame.cpp:191
~FontColorPreferencesFrame()
Destroys the FontColorPreferencesFrame.
Definition font_color_preferences_frame.cpp:132
void showEvent(QShowEvent *evt)
Handles the event when the frame is shown.
Definition font_color_preferences_frame.cpp:137
Definition theme_preview_widget.h:30
Definition prefs.c:207