Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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
17namespace Ui {
19}
20
24class MainWindowPreferencesFrame : public QFrame
25{
26 Q_OBJECT
27
28public:
33 explicit MainWindowPreferencesFrame(QWidget *parent = 0);
34
39
40protected:
45 void showEvent(QShowEvent *evt);
46
47private:
49 Ui::MainWindowPreferencesFrame *ui;
50
52 pref_t *pref_geometry_save_position_;
53
55 pref_t *pref_geometry_save_size_;
56
58 pref_t *pref_geometry_save_maximized_;
59
61 pref_t *pref_fileopen_style_;
62
64 pref_t *pref_fileopen_dir_;
65
67 pref_t *pref_recent_df_entries_max_;
68
70 pref_t *pref_recent_files_count_max_;
71
73 pref_t *pref_ask_unsaved_;
74
76 pref_t *pref_autocomplete_filter_;
77
79 pref_t *pref_toolbar_main_style_;
80
82 pref_t *pref_window_title_;
83
85 pref_t *pref_prepend_window_title_;
86
90 void updateWidgets();
91
92private slots:
97 void on_geometryCheckBox_toggled(bool checked);
98
103 void on_foStyleCWDRadioButton_toggled(bool checked);
104
109 void on_foStyleLastOpenedRadioButton_toggled(bool checked);
110
115 void on_foStyleSpecifiedRadioButton_toggled(bool checked);
116
121 void on_foStyleSpecifiedLineEdit_textEdited(const QString &new_dir);
122
126 void on_foStyleSpecifiedPushButton_clicked();
127
132 void on_maxFilterLineEdit_textEdited(const QString &new_max);
133
138 void on_maxRecentLineEdit_textEdited(const QString &new_max);
139
144 void on_confirmUnsavedCheckBox_toggled(bool checked);
145
150 void on_displayAutoCompleteCheckBox_toggled(bool checked);
151
156 void on_mainToolbarComboBox_currentIndexChanged(int index);
157
162 void on_languageComboBox_currentIndexChanged(int index);
163
168 void on_windowTitle_textEdited(const QString &new_title);
169
174 void on_prependWindowTitle_textEdited(const QString &new_prefix);
175};
176
177#endif // MAIN_WINDOW_PREFERENCES_FRAME_H
A frame for configuring main window preferences.
Definition main_window_preferences_frame.h:25
~MainWindowPreferencesFrame()
Destroys the MainWindowPreferencesFrame.
Definition main_window_preferences_frame.cpp:100
void showEvent(QShowEvent *evt)
Handles the event when the frame is shown.
Definition main_window_preferences_frame.cpp:105
Definition prefs.c:207