1
/*****************************************************************
3
Copyright (c) 1996-2000 the kicker authors. See file AUTHORS.
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
of this software and associated documentation files (the "Software"), to deal
7
in the Software without restriction, including without limitation the rights
8
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
copies of the Software, and to permit persons to whom the Software is
10
furnished to do so, subject to the following conditions:
12
The above copyright notice and this permission notice shall be included in
13
all copies or substantial portions of the Software.
15
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
******************************************************************/
24
#ifndef PANEL_APPLET_OP_MENU_H
25
#define PANEL_APPLET_OP_MENU_H
32
// The button operations menu (usually right click)
33
class PanelAppletOpMenu : public QMenu
38
enum OpButton{Move = 9900, Remove = 9901, Help = 9902, About = 9903, Preferences = 9904, ReportBug = 9905 };
40
// Note: these entries have to be | and &-able with KPanelApplet::Actions!
41
// they also are treated just like Plasma::Preferences on selection
42
// KDE4: look at merging them there? perhaps under a generic "Editor" option?
43
enum { KMenuEditor = 1048576, BookmarkEditor = 2097152 };
44
PanelAppletOpMenu(int actions, QMenu *opMenu, const QMenu* appletsMenu = 0,
45
const QString &title = 0, const QString &icon = 0,
52
void keyPressEvent(QKeyEvent* e);
56
#endif // PANEL_APPLET_OP_MENU_H