1 /* pref_module_view.h
2  * Tree view of preference module data.
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * SPDX-License-Identifier: GPL-2.0-or-later
9  */
10 
11 #ifndef PREFERENCE_MODULE_VIEW_H
12 #define PREFERENCE_MODULE_VIEW_H
13 
14 #include <config.h>
15 #include <QTreeView>
16 
17 class PrefModuleTreeView : public QTreeView
18 {
19     Q_OBJECT
20 public:
21     PrefModuleTreeView(QWidget *parent = 0);
22 
23     void setPane(const QString module_name);
24 
25 signals:
26     void goToPane(QString module_name);
27 
28 protected slots:
29     void currentChanged(const QModelIndex &current, const QModelIndex &previous);
30 
31 private:
32     QModelIndex findModule(QModelIndex &parent, const QString& name);
33 
34     //cache the translation of the module names we check frequently
35     QString appearanceName_;
36 };
37 #endif // PREFERENCE_MODULE_VIEW_H
38