Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
extcap_argument_multiselect.h
Go to the documentation of this file.
1
10#ifndef UI_QT_EXTCAP_ARGUMENT_MULTISELECT_H_
11#define UI_QT_EXTCAP_ARGUMENT_MULTISELECT_H_
12
13#include <QObject>
14#include <QWidget>
15#include <QStandardItem>
16#include <QTreeView>
17#include <QAbstractItemModel>
18#include <QItemSelection>
19
20#include <extcap_parser.h>
21#include <extcap_argument.h>
22
24{
25 Q_OBJECT
26public:
27 ExtArgMultiSelect(extcap_arg * argument, QObject *parent = Q_NULLPTR);
28 virtual ~ExtArgMultiSelect();
29
30 virtual QString value();
31 virtual bool isValid();
32 virtual QString defaultValue();
33 virtual bool isSetDefaultValueSupported();
34
35public Q_SLOTS:
36 virtual void setDefaultValue();
37
38protected:
39 virtual QList<QStandardItem *> valueWalker(ExtcapValueList list, QStringList &defaults);
40 void checkItemsWalker(QStandardItem * item, QStringList defaults);
41 virtual QWidget * createEditor(QWidget * parent);
42
43private Q_SLOTS:
44
45 void itemChanged(QStandardItem *);
46
47private:
48
49 QTreeView * treeView;
50 QAbstractItemModel * viewModel;
51
52};
53
54#endif /* UI_QT_EXTCAP_ARGUMENT_MULTISELECT_H_ */
Definition extcap_argument_multiselect.h:24
Definition extcap_argument.h:71
Definition extcap_parser.h:100