Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
main_window_preferences_frame.h
1 /* main_window_preferences_frame.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef MAIN_WINDOW_PREFERENCES_FRAME_H
11 #define MAIN_WINDOW_PREFERENCES_FRAME_H
12 
13 #include <epan/prefs.h>
14 
15 #include <QFrame>
16 
17 namespace Ui {
19 }
20 
21 class MainWindowPreferencesFrame : public QFrame
22 {
23  Q_OBJECT
24 
25 public:
26  explicit MainWindowPreferencesFrame(QWidget *parent = 0);
28 
29 protected:
30  void showEvent(QShowEvent *evt);
31 
32 private:
34 
35  pref_t *pref_geometry_save_position_;
36  pref_t *pref_geometry_save_size_;
37  pref_t *pref_geometry_save_maximized_;
38  pref_t *pref_fileopen_style_;
39  pref_t *pref_fileopen_dir_;
40  pref_t *pref_recent_df_entries_max_;
41  pref_t *pref_recent_files_count_max_;
42  pref_t *pref_ask_unsaved_;
43  pref_t *pref_toolbar_main_style_;
44  pref_t *pref_toolbar_filter_style_;
45  void updateWidgets();
46 
47 private slots:
48  void on_geometryCheckBox_toggled(bool checked);
49  void on_foStyleLastOpenedRadioButton_toggled(bool checked);
50  void on_foStyleSpecifiedRadioButton_toggled(bool checked);
51  void on_foStyleSpecifiedLineEdit_textEdited(const QString &new_dir);
52  void on_foStyleSpecifiedPushButton_clicked();
53  void on_maxFilterLineEdit_textEdited(const QString &new_max);
54  void on_maxRecentLineEdit_textEdited(const QString &new_max);
55  void on_confirmUnsavedCheckBox_toggled(bool checked);
56  void on_mainToolbarComboBox_currentIndexChanged(int index);
57  void on_languageComboBox_currentIndexChanged(int index);
58 };
59 
60 #endif // MAIN_WINDOW_PREFERENCES_FRAME_H
Definition: ui_about_dialog.h:291
Definition: prefs.c:192
Definition: main_window_preferences_frame.h:21
Definition: ui_main_window_preferences_frame.h:250