Wireshark  4.3.0
The Wireshark network protocol analyzer
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 
16 #include <epan/prefs.h>
17 
18 namespace Ui {
20 }
21 
22 class FontColorPreferencesFrame : public QFrame
23 {
24  Q_OBJECT
25 
26 public:
27  explicit FontColorPreferencesFrame(QWidget *parent = 0);
29 
30 protected:
31  void showEvent(QShowEvent *evt);
32 
33 private:
34  Ui::FontColorPreferencesFrame *ui;
35 
36  pref_t *pref_qt_gui_font_name_;
37  pref_t *pref_active_fg_;
38  pref_t *pref_active_bg_;
39  pref_t *pref_active_style_;
40  pref_t *pref_inactive_fg_;
41  pref_t *pref_inactive_bg_;
42  pref_t *pref_inactive_style_;
43  pref_t *pref_marked_fg_;
44  pref_t *pref_marked_bg_;
45  pref_t *pref_ignored_fg_;
46  pref_t *pref_ignored_bg_;
47  pref_t *pref_client_fg_;
48  pref_t *pref_client_bg_;
49  pref_t *pref_server_fg_;
50  pref_t *pref_server_bg_;
51  pref_t *pref_valid_bg_;
52  pref_t *pref_invalid_bg_;
53  pref_t *pref_deprecated_bg_;
54  QFont cur_font_;
55 
56  void updateWidgets();
57  void changeColor(pref_t *pref);
58 
59 private slots:
60  void colorChanged(pref_t *pref, const QColor &cc);
61  void on_fontPushButton_clicked();
62 
63  void on_activeFGPushButton_clicked();
64  void on_activeBGPushButton_clicked();
65  void on_activeStyleComboBox_currentIndexChanged(int index);
66  void on_inactiveFGPushButton_clicked();
67  void on_inactiveBGPushButton_clicked();
68  void on_inactiveStyleComboBox_currentIndexChanged(int index);
69  void on_markedFGPushButton_clicked();
70  void on_markedBGPushButton_clicked();
71  void on_ignoredFGPushButton_clicked();
72  void on_ignoredBGPushButton_clicked();
73  void on_clientFGPushButton_clicked();
74  void on_clientBGPushButton_clicked();
75  void on_serverFGPushButton_clicked();
76  void on_serverBGPushButton_clicked();
77  void on_validFilterBGPushButton_clicked();
78  void on_invalidFilterBGPushButton_clicked();
79  void on_deprecatedFilterBGPushButton_clicked();
80 };
81 
82 #endif // FONT_COLOR_PREFERENCES_FRAME_H
Definition: font_color_preferences_frame.h:23
Definition: prefs.c:225