~alan-griffiths/miral/fix-1621917

« back to all changes in this revision

Viewing changes to miral-qt/src/modules/Unity/Application/windowmodel.h

  • Committer: Alan Griffiths
  • Date: 2016-09-09 13:28:01 UTC
  • mfrom: (320.2.3 miral)
  • Revision ID: alam@octopull.co.uk-20160909132801-1rmrc2tl74qrhhkl
mergeĀ :parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
    Q_PROPERTY(int count READ count NOTIFY countChanged)
34
34
 
 
35
    Q_PROPERTY(MirSurfaceInterface* inputMethodSurface READ inputMethodSurface NOTIFY inputMethodSurfaceChanged)
 
36
 
35
37
public:
36
38
    enum Roles {
37
39
        SurfaceRole = Qt::UserRole
49
51
 
50
52
    int count() const { return rowCount(); }
51
53
 
 
54
    MirSurfaceInterface* inputMethodSurface() const { return m_inputMethodSurface; }
 
55
 
52
56
Q_SIGNALS:
53
57
    void countChanged();
 
58
    void inputMethodSurfaceChanged(MirSurfaceInterface* inputMethodSurface);
54
59
 
55
60
private Q_SLOTS:
56
61
    void onWindowAdded(const NewWindow windowInfo, const int index);
61
66
    void onWindowInfoChanged(const WindowInfo windowInfo, const int index);
62
67
    void onWindowsRaised(const QVector<int> indices);
63
68
 
 
69
    void onInputMethodWindowAdded(const NewWindow windowInfo);
 
70
    void onInputMethodWindowRemoved();
 
71
 
64
72
private:
65
73
    void connectToWindowModelNotifier(WindowModelNotifierInterface *notifier);
66
74
 
67
75
    QVector<MirSurfaceInterface *> m_windowModel;
68
76
    WindowControllerInterface *m_windowController;
69
 
    MirSurfaceInterface* m_focusedWindow;
 
77
    MirSurfaceInterface* m_focusedWindow{nullptr};
 
78
    MirSurfaceInterface* m_inputMethodSurface{nullptr};
70
79
};
71
80
 
72
81
} // namespace qtmir