summaryrefslogtreecommitdiffstats
path: root/ui/qt/main_window_preferences_frame.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /ui/qt/main_window_preferences_frame.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/qt/main_window_preferences_frame.h')
-rw-r--r--ui/qt/main_window_preferences_frame.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/ui/qt/main_window_preferences_frame.h b/ui/qt/main_window_preferences_frame.h
new file mode 100644
index 0000000..52d0104
--- /dev/null
+++ b/ui/qt/main_window_preferences_frame.h
@@ -0,0 +1,65 @@
+/** @file
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef MAIN_WINDOW_PREFERENCES_FRAME_H
+#define MAIN_WINDOW_PREFERENCES_FRAME_H
+
+#include <epan/prefs.h>
+
+#include <QFrame>
+
+namespace Ui {
+class MainWindowPreferencesFrame;
+}
+
+class MainWindowPreferencesFrame : public QFrame
+{
+ Q_OBJECT
+
+public:
+ explicit MainWindowPreferencesFrame(QWidget *parent = 0);
+ ~MainWindowPreferencesFrame();
+
+protected:
+ void showEvent(QShowEvent *evt);
+
+private:
+ Ui::MainWindowPreferencesFrame *ui;
+
+ pref_t *pref_geometry_save_position_;
+ pref_t *pref_geometry_save_size_;
+ pref_t *pref_geometry_save_maximized_;
+ pref_t *pref_fileopen_style_;
+ pref_t *pref_fileopen_dir_;
+ pref_t *pref_recent_df_entries_max_;
+ pref_t *pref_recent_files_count_max_;
+ pref_t *pref_ask_unsaved_;
+ pref_t *pref_autocomplete_filter_;
+ pref_t *pref_toolbar_main_style_;
+ pref_t *pref_window_title_;
+ pref_t *pref_prepend_window_title_;
+ void updateWidgets();
+
+private slots:
+ void on_geometryCheckBox_toggled(bool checked);
+ void on_foStyleLastOpenedRadioButton_toggled(bool checked);
+ void on_foStyleSpecifiedRadioButton_toggled(bool checked);
+ void on_foStyleSpecifiedLineEdit_textEdited(const QString &new_dir);
+ void on_foStyleSpecifiedPushButton_clicked();
+ void on_maxFilterLineEdit_textEdited(const QString &new_max);
+ void on_maxRecentLineEdit_textEdited(const QString &new_max);
+ void on_confirmUnsavedCheckBox_toggled(bool checked);
+ void on_displayAutoCompleteCheckBox_toggled(bool checked);
+ void on_mainToolbarComboBox_currentIndexChanged(int index);
+ void on_languageComboBox_currentIndexChanged(int index);
+ void on_windowTitle_textEdited(const QString &new_title);
+ void on_prependWindowTitle_textEdited(const QString &new_prefix);
+};
+
+#endif // MAIN_WINDOW_PREFERENCES_FRAME_H