~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to kicker/kicker/ui/appletop_mnu.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-31 19:16:54 UTC
  • Revision ID: james.westby@ubuntu.com-20071031191654-xuof6e1jg6uxqaze
Tags: 3.95.0-0ubuntu1~gutsy1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************
2
 
 
3
 
Copyright (c) 1996-2000 the kicker authors. See file AUTHORS.
4
 
 
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:
11
 
 
12
 
The above copyright notice and this permission notice shall be included in
13
 
all copies or substantial portions of the Software.
14
 
 
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.
21
 
 
22
 
******************************************************************/
23
 
 
24
 
#ifndef PANEL_APPLET_OP_MENU_H
25
 
#define PANEL_APPLET_OP_MENU_H
26
 
 
27
 
#include <QMenu>
28
 
//Added by qt3to4:
29
 
#include <QKeyEvent>
30
 
 
31
 
 
32
 
// The button operations menu (usually right click)
33
 
class PanelAppletOpMenu : public QMenu
34
 
{
35
 
Q_OBJECT
36
 
 
37
 
public:
38
 
    enum OpButton{Move = 9900, Remove = 9901, Help = 9902, About = 9903, Preferences = 9904, ReportBug = 9905 };
39
 
 
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,
46
 
                      QWidget *parent=0);
47
 
 
48
 
Q_SIGNALS:
49
 
    void escapePressed();
50
 
 
51
 
protected:
52
 
    void keyPressEvent(QKeyEvent* e);
53
 
};
54
 
 
55
 
 
56
 
#endif // PANEL_APPLET_OP_MENU_H