~josephjamesmills/ubuntutv/mockup-ppa-branch

« back to all changes in this revision

Viewing changes to Unity-2d/ubuntu-tv/panel/applets/appname/appnameapplet.h

  • Committer: Joseph Mills
  • Date: 2012-11-19 21:25:03 UTC
  • Revision ID: josephjamesmills@gmail.com-20121119212503-lwix013dozhb0ar4
adding Unity 2d stuff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of unity-2d
 
3
 *
 
4
 * Copyright 2010 Canonical Ltd.
 
5
 *
 
6
 * Authors:
 
7
 * - Aurélien Gâteau <aurelien.gateau@canonical.com>
 
8
 *
 
9
 * This program is free software; you can redistribute it and/or modify
 
10
 * it under the terms of the GNU General Public License as published by
 
11
 * the Free Software Foundation; version 3.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 * GNU General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU General Public License
 
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
 
 
22
#ifndef APPNAMEAPPLET_H
 
23
#define APPNAMEAPPLET_H
 
24
 
 
25
class QEvent;
 
26
 
 
27
class IndicatorsManager;
 
28
 
 
29
// Unity-2d
 
30
#include <panelapplet.h>
 
31
 
 
32
struct AppNameAppletPrivate;
 
33
class AppNameApplet : public Unity2d::PanelApplet
 
34
{
 
35
Q_OBJECT
 
36
public:
 
37
    AppNameApplet(Unity2dPanel* panel);
 
38
    ~AppNameApplet();
 
39
 
 
40
protected:
 
41
    void enterEvent(QEvent*);
 
42
    void leaveEvent(QEvent*);
 
43
    void mouseDoubleClickEvent(QMouseEvent*);
 
44
    void mousePressEvent(QMouseEvent*);
 
45
    void mouseReleaseEvent(QMouseEvent*);
 
46
    void mouseMoveEvent(QMouseEvent*);
 
47
    bool eventFilter(QObject*, QEvent*);
 
48
 
 
49
private Q_SLOTS:
 
50
    void updateWidgets();
 
51
 
 
52
Q_SIGNALS:
 
53
    void titleBarDblClicked();
 
54
 
 
55
private:
 
56
    Q_DISABLE_COPY(AppNameApplet)
 
57
    AppNameAppletPrivate* const d;
 
58
};
 
59
 
 
60
#endif /* APPNAMEAPPLET_H */
 
61