~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to plasma/generic/applets/quicklaunch/popup.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2010 - 2011 by Ingomar Wesp <ingomar@wesp.name>         *
 
3
 *                                                                         *
 
4
 *   This program is free software; you can redistribute it and/or modify  *
 
5
 *   it under the terms of the GNU General Public License as published by  *
 
6
 *   the Free Software Foundation; either version 2 of the License, or     *
 
7
 *   (at your option) any later version.                                   *
 
8
 *                                                                         *
 
9
 *   This program is distributed in the hope that it will be useful,       *
 
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
12
 *   GNU General Public License for more details.                          *
 
13
 *                                                                         *
 
14
 *   You should have received a copy of the GNU General Public License     *
 
15
 *   along with this program; if not, write to the                         *
 
16
 *   Free Software Foundation, Inc.,                                       *
 
17
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
 
18
 ***************************************************************************/
 
19
#ifndef QUICKLAUNCH_POPUP_H
 
20
#define QUICKLAUNCH_POPUP_H
 
21
 
 
22
// Qt
 
23
#include <Qt>
 
24
#include <QtGlobal>
 
25
#include <QtCore/QObject>
 
26
 
 
27
// KDE
 
28
#include <Plasma/Dialog>
 
29
 
 
30
using Plasma::Dialog;
 
31
 
 
32
namespace Quicklaunch {
 
33
 
 
34
class PopupLauncherList;
 
35
class Quicklaunch;
 
36
 
 
37
class Popup : public Dialog {
 
38
 
 
39
    Q_OBJECT
 
40
 
 
41
public:
 
42
    Popup(Quicklaunch *applet);
 
43
    ~Popup();
 
44
 
 
45
    PopupLauncherList *launcherList();
 
46
    void show();
 
47
    bool eventFilter(QObject *watched, QEvent *event);
 
48
 
 
49
private Q_SLOTS:
 
50
    void onAppletGeometryChanged();
 
51
    void onLauncherClicked();
 
52
 
 
53
private:
 
54
    void syncSizeAndPosition();
 
55
 
 
56
    Quicklaunch *m_applet;
 
57
    PopupLauncherList *m_launcherList;
 
58
};
 
59
}
 
60
 
 
61
#endif /* QUICKLAUNCH_POPUP_H */