nexmon – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /* protocol_preferences_menu.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 __PROTOCOL_PREFERENCES_MENU_H__
23 #define __PROTOCOL_PREFERENCES_MENU_H__
24  
25 #include <QMenu>
26  
27 struct _protocol;
28 struct pref_module;
29 struct preference;
30  
31 class ProtocolPreferencesMenu : public QMenu
32 {
33 Q_OBJECT
34  
35 public:
36 ProtocolPreferencesMenu();
37  
38 void setModule(const char *module_name);
39 void addMenuItem(struct preference *pref);
40  
41 signals:
42 void showProtocolPreferences(const QString module_name);
43 void editProtocolPreference(struct preference *pref, struct pref_module *module);
44  
45 private:
46 QString module_name_;
47 struct pref_module *module_;
48 struct _protocol *protocol_;
49  
50 private slots:
51 void disableProtocolTriggered();
52 void modulePreferencesTriggered();
53 void editorPreferenceTriggered();
54 void boolPreferenceTriggered();
55 void enumPreferenceTriggered();
56 void uatPreferenceTriggered();
57 };
58  
59 #endif // __PROTOCOL_PREFERENCES_MENU_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 */