~gerboland/qtubuntu/enable-debug-mode

« back to all changes in this revision

Viewing changes to src/ubuntumirclient/window.h

  • Committer: Gerry Boland
  • Date: 2016-04-12 13:10:43 UTC
  • mfrom: (280.2.34 enable-debug-mode)
  • Revision ID: gerry.boland@canonical.com-20160412131043-t14zmcbheuxclmhr
Merge lp:~dandrader/qtubuntu/enable-debug-mode, he kindly fixed merging this with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#define UBUNTU_WINDOW_H
19
19
 
20
20
#include <qpa/qplatformwindow.h>
 
21
#include <QLoggingCategory>
21
22
#include <QSharedPointer>
22
23
#include <QMutex>
23
24
 
42
43
    WId winId() const override;
43
44
    void setGeometry(const QRect&) override;
44
45
    void setWindowState(Qt::WindowState state) override;
 
46
    void setWindowFlags(Qt::WindowFlags flags) override;
45
47
    void setVisible(bool visible) override;
46
48
    void setWindowTitle(const QString &title) override;
47
49
    void propagateSizeHints() override;
 
50
    bool isExposed() const override;
48
51
 
49
52
    QPoint mapToGlobal(const QPoint &pos) const override;
50
53
 
53
56
    MirSurface *mirSurface() const;
54
57
    void handleSurfaceResized(int width, int height);
55
58
    void handleSurfaceFocused();
 
59
    void handleSurfaceVisibilityChanged(bool visible);
 
60
    void handleSurfaceStateChanged(Qt::WindowState state);
56
61
    void onSwapBuffersDone();
57
62
 
58
63
private:
 
64
    void enablePanelHeightHack(bool enable);
 
65
    void updateSurfaceState();
 
66
 
59
67
    mutable QMutex mMutex;
60
68
    const WId mId;
61
69
    const UbuntuClientIntegration *mIntegration;
 
70
    Qt::WindowState mWindowState;
 
71
    Qt::WindowFlags mWindowFlags;
 
72
    bool mWindowVisible;
 
73
 
62
74
    std::unique_ptr<UbuntuSurface> mSurface;
63
75
};
64
76