1
// This file is part of QtUbuntu, a set of Qt components for Ubuntu.
2
// Copyright © 2013 Canonical Ltd.
4
// This program is free software: you can redistribute it and/or modify it under
5
// the terms of the GNU Lesser General Public License version 3, as published by
6
// the Free Software Foundation.
8
// This program is distributed in the hope that it will be useful, but WITHOUT
9
// ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10
// SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
// Lesser General Public License for more details.
13
// You should have received a copy of the GNU Lesser General Public License
14
// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
#ifndef QUBUNTUWINDOW_H
17
#define QUBUNTUWINDOW_H
19
#include "base/window.h"
20
#include <ubuntu/application/instance.h>
21
#include <ubuntu/application/ui/window.h>
23
#define IS_OPAQUE_FLAG 1
28
class QUbuntuWindow : public QUbuntuBaseWindow {
30
QUbuntuWindow(QWindow* w, QUbuntuScreen* screen, QUbuntuInput* input, bool systemSession, UApplicationInstance* instance, bool isShell);
33
// QPlatformWindow methods.
34
void setGeometry(const QRect&);
35
void setWindowState(Qt::WindowState state);
36
void setVisible(bool visible);
37
bool isExposed() const;
38
void windowEvent(QEvent *event);
44
void moveResize(const QRect& rect);
45
void setExposed(const bool exposed);
48
Qt::WindowState state_;
51
UApplicationInstance* uainstance_;
52
UAUiWindowProperties* wprops_;
53
QUbuntuScreen* screen_;
58
#endif // QUBUNTUWINDOW_H