1 /* main_window_preferences_frame.h
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef MAIN_WINDOW_PREFERENCES_FRAME_H
25 #define MAIN_WINDOW_PREFERENCES_FRAME_H
27 #include "preferences_dialog.h"
32 class MainWindowPreferencesFrame
;
35 class MainWindowPreferencesFrame
: public QFrame
40 explicit MainWindowPreferencesFrame(QWidget
*parent
= 0);
41 ~MainWindowPreferencesFrame();
44 void showEvent(QShowEvent
*evt
);
47 Ui::MainWindowPreferencesFrame
*ui
;
49 pref_t
*pref_geometry_save_position_
;
50 pref_t
*pref_geometry_save_size_
;
51 pref_t
*pref_geometry_save_maximized_
;
52 pref_t
*pref_fileopen_style_
;
53 pref_t
*pref_fileopen_dir_
;
54 pref_t
*pref_recent_df_entries_max_
;
55 pref_t
*pref_recent_files_count_max_
;
56 pref_t
*pref_ask_unsaved_
;
57 pref_t
*pref_auto_scroll_on_expand_
;
58 pref_t
*pref_auto_scroll_percentage_
;
59 pref_t
*pref_toolbar_main_style_
;
60 pref_t
*pref_toolbar_filter_style_
;
61 pref_t
*pref_qt_language_
;
65 void on_geometryCheckBox_toggled(bool checked
);
66 void on_foStyleLastOpenedRadioButton_toggled(bool checked
);
67 void on_foStyleSpecifiedRadioButton_toggled(bool checked
);
68 void on_foStyleSpecifiedLineEdit_textEdited(const QString
&new_dir
);
69 void on_foStyleSpecifiedPushButton_clicked();
70 void on_maxFilterLineEdit_textEdited(const QString
&new_max
);
71 void on_maxRecentLineEdit_textEdited(const QString
&new_max
);
72 void on_confirmUnsavedCheckBox_toggled(bool checked
);
73 void on_autoScrollCheckBox_toggled(bool checked
);
74 void on_autoScrollPercentageLineEdit_textEdited(const QString
&new_pct
);
75 void on_mainToolbarComboBox_currentIndexChanged(int index
);
76 void on_filterToolbarComboBox_currentIndexChanged(int index
);
77 void on_languageComboBox_currentIndexChanged(int index
);
80 #endif // MAIN_WINDOW_PREFERENCES_FRAME_H