~unity-2d-team/unity-2d/shortcut-hint-overlay

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/launcheritem.h

  • Committer: Tiago Salem Herrmann
  • Date: 2012-03-19 15:28:41 UTC
  • mfrom: (771.40.182 unity-2d)
  • Revision ID: tiago.herrmann@canonical.com-20120319152841-2hfflo67muks7gca
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    Q_OBJECT
34
34
 
35
35
    Q_PROPERTY(bool active READ active NOTIFY activeChanged)
 
36
    Q_PROPERTY(int activeScreen READ activeScreen NOTIFY activeScreenChanged)
36
37
    Q_PROPERTY(bool running READ running NOTIFY runningChanged)
37
38
    Q_PROPERTY(int windowCount READ windowCount NOTIFY windowCountChanged)
38
39
    Q_PROPERTY(bool urgent READ urgent NOTIFY urgentChanged)
56
57
 
57
58
    /* getters */
58
59
    virtual bool active() const = 0;
 
60
    virtual int activeScreen() const = 0;
59
61
    virtual bool running() const = 0;
60
62
    virtual int windowCount() const = 0;
61
63
    virtual bool urgent() const = 0;
79
81
    Q_INVOKABLE virtual void activate() = 0;
80
82
    Q_INVOKABLE virtual void createMenuActions() = 0;
81
83
    Q_INVOKABLE virtual void launchNewInstance();
82
 
    Q_INVOKABLE virtual bool belongsToDifferentWorkspace();
 
84
    Q_INVOKABLE virtual int windowsOnCurrentWorkspaceScreen(int screen);
83
85
 
84
86
protected:
85
87
    LauncherContextualMenu* m_menu;
86
88
 
87
89
Q_SIGNALS:
88
90
    void activeChanged(bool);
 
91
    void activeScreenChanged(int);
89
92
    void runningChanged(bool);
90
93
    void windowCountChanged(int);
91
94
    void urgentChanged(bool);
102
105
    void emblemVisibleChanged(bool);
103
106
    void emblemChanged(QString);
104
107
    void windowWorkspaceChanged();
 
108
    void windowGeometryChanged();
105
109
 
106
110
public Q_SLOTS:
107
111
    /* Default implementation of drag’n’drop handling, should be overridden in