Wireshark  4.3.0
The Wireshark network protocol analyzer
main_window_preferences_frame.h
Go to the documentation of this file.
1 
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:
33  Ui::MainWindowPreferencesFrame *ui;
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_autocomplete_filter_;
44  pref_t *pref_toolbar_main_style_;
45  pref_t *pref_window_title_;
46  pref_t *pref_prepend_window_title_;
47  void updateWidgets();
48 
49 private slots:
50  void on_geometryCheckBox_toggled(bool checked);
51  void on_foStyleLastOpenedRadioButton_toggled(bool checked);
52  void on_foStyleSpecifiedRadioButton_toggled(bool checked);
53  void on_foStyleSpecifiedLineEdit_textEdited(const QString &new_dir);
54  void on_foStyleSpecifiedPushButton_clicked();
55  void on_maxFilterLineEdit_textEdited(const QString &new_max);
56  void on_maxRecentLineEdit_textEdited(const QString &new_max);
57  void on_confirmUnsavedCheckBox_toggled(bool checked);
58  void on_displayAutoCompleteCheckBox_toggled(bool checked);
59  void on_mainToolbarComboBox_currentIndexChanged(int index);
60  void on_languageComboBox_currentIndexChanged(int index);
61  void on_windowTitle_textEdited(const QString &new_title);
62  void on_prependWindowTitle_textEdited(const QString &new_prefix);
63 };
64 
65 #endif // MAIN_WINDOW_PREFERENCES_FRAME_H
Definition: main_window_preferences_frame.h:22
Definition: prefs.c:225