1 /* extcap_argument_multiselect.h
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef UI_QT_EXTCAP_ARGUMENT_MULTISELECT_H_
23 #define UI_QT_EXTCAP_ARGUMENT_MULTISELECT_H_
27 #include <QStandardItem>
29 #include <QAbstractItemModel>
30 #include <QItemSelection>
32 #include <extcap_parser.h>
33 #include <extcap_argument.h>
35 class ExtArgMultiSelect : public ExtcapArgument
39 ExtArgMultiSelect(extcap_arg * argument);
40 virtual ~ExtArgMultiSelect();
42 virtual QString value();
43 virtual QString defaultValue();
44 virtual bool isValid();
47 virtual QList<QStandardItem *> valueWalker(ExtcapValueList list, QStringList &defaults);
48 void selectItemsWalker(QStandardItem * item, QStringList defaults);
49 virtual QWidget * createEditor(QWidget * parent);
53 void selectionChanged(const QItemSelection & selected, const QItemSelection & deselected);
58 QAbstractItemModel * viewModel;
62 #endif /* UI_QT_EXTCAP_ARGUMENT_MULTISELECT_H_ */
70 * indent-tabs-mode: nil
73 * ex: set shiftwidth=4 tabstop=8 expandtab:
74 * :indentSize=4:tabSize=8:noTabs=true: