qt: add missing initializers (CID 1325722)
[metze/wireshark/wip.git] / ui / qt / stats_tree_dialog.h
1 /* stats_tree_dialog.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
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.
11  *
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.
16  *
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.
20  */
21
22 #ifndef STATS_TREE_DIALOG_H
23 #define STATS_TREE_DIALOG_H
24
25 #include "tap_parameter_dialog.h"
26
27 #include <config.h>
28
29 #include <glib.h>
30
31 #include "epan/stats_tree_priv.h"
32
33 struct _tree_cfg_pres {
34     class StatsTreeDialog* st_dlg;
35 };
36
37 class StatsTreeDialog : public TapParameterDialog
38 {
39     Q_OBJECT
40
41 public:
42     explicit StatsTreeDialog(QWidget &parent, CaptureFile &cf, const char *cfg_abbr);
43     ~StatsTreeDialog();
44     static void setupNode(stat_node* node);
45
46 private:
47     struct _tree_cfg_pres cfg_pr_;
48     stats_tree *st_;
49     stats_tree_cfg *st_cfg_;
50
51     static void resetTap(void *st_ptr);
52     static void drawTreeItems(void *st_ptr);
53     virtual QByteArray getTreeAsString(st_format_type format);
54
55 private slots:
56     virtual void fillTree();
57 };
58
59 #endif // STATS_TREE_DIALOG_H
60
61 /*
62  * Editor modelines
63  *
64  * Local Variables:
65  * c-basic-offset: 4
66  * tab-width: 8
67  * indent-tabs-mode: nil
68  * End:
69  *
70  * ex: set shiftwidth=4 tabstop=8 expandtab:
71  * :indentSize=4:tabSize=8:noTabs=true:
72  */