3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef MAIN_WINDOW_PREFERENCES_FRAME_H
11 #define MAIN_WINDOW_PREFERENCES_FRAME_H
13 #include <epan/prefs.h>
18 class MainWindowPreferencesFrame
;
21 class MainWindowPreferencesFrame
: public QFrame
26 explicit MainWindowPreferencesFrame(QWidget
*parent
= 0);
27 ~MainWindowPreferencesFrame();
30 void showEvent(QShowEvent
*evt
);
33 Ui::MainWindowPreferencesFrame
*ui
;
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_
;
50 void on_geometryCheckBox_toggled(bool checked
);
51 void on_foStyleCWDRadioButton_toggled(bool checked
);
52 void on_foStyleLastOpenedRadioButton_toggled(bool checked
);
53 void on_foStyleSpecifiedRadioButton_toggled(bool checked
);
54 void on_foStyleSpecifiedLineEdit_textEdited(const QString
&new_dir
);
55 void on_foStyleSpecifiedPushButton_clicked();
56 void on_maxFilterLineEdit_textEdited(const QString
&new_max
);
57 void on_maxRecentLineEdit_textEdited(const QString
&new_max
);
58 void on_confirmUnsavedCheckBox_toggled(bool checked
);
59 void on_displayAutoCompleteCheckBox_toggled(bool checked
);
60 void on_mainToolbarComboBox_currentIndexChanged(int index
);
61 void on_languageComboBox_currentIndexChanged(int index
);
62 void on_windowTitle_textEdited(const QString
&new_title
);
63 void on_prependWindowTitle_textEdited(const QString
&new_prefix
);
66 #endif // MAIN_WINDOW_PREFERENCES_FRAME_H