aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/winextras/qquickdwmfeatures_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-09-10 16:50:08 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-11 09:50:12 +0200
commited51fd0a8c97d38a4b12c82679d70e7d249c78c0 (patch)
treec38f5ef1982baaec5dc54f9b130a184e72285b96 /src/imports/winextras/qquickdwmfeatures_p.h
parentad0cbe320c8fc1f9171e82164ce2a79e77c4b194 (diff)
Tidy up the QtQuick classes
- not part of the public API => private header naming convention - unify class names (quick-prefix vs. win-prefix vs. quickwin-prefix) => drop the superfluous win-prefix from the class names, just like for the registered QML type names Change-Id: I408cb22b38ae1db71e9bd7cdb8fa29c1aa1f504a Reviewed-by: Ivan Vizir <define-true-false@yandex.com> Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'src/imports/winextras/qquickdwmfeatures_p.h')
-rw-r--r--src/imports/winextras/qquickdwmfeatures_p.h126
1 files changed, 126 insertions, 0 deletions
diff --git a/src/imports/winextras/qquickdwmfeatures_p.h b/src/imports/winextras/qquickdwmfeatures_p.h
new file mode 100644
index 0000000..fb8d191
--- /dev/null
+++ b/src/imports/winextras/qquickdwmfeatures_p.h
@@ -0,0 +1,126 @@
+/****************************************************************************
+ **
+ ** Copyright (C) 2013 Ivan Vizir <define-true-false@yandex.com>
+ ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+ ** Contact: http://www.qt-project.org/legal
+ **
+ ** This file is part of the QtWinExtras module of the Qt Toolkit.
+ **
+ ** $QT_BEGIN_LICENSE:LGPL$
+ ** Commercial License Usage
+ ** Licensees holding valid commercial Qt licenses may use this file in
+ ** accordance with the commercial license agreement provided with the
+ ** Software or, alternatively, in accordance with the terms contained in
+ ** a written agreement between you and Digia. For licensing terms and
+ ** conditions see http://qt.digia.com/licensing. For further information
+ ** use the contact form at http://qt.digia.com/contact-us.
+ **
+ ** GNU Lesser General Public License Usage
+ ** Alternatively, this file may be used under the terms of the GNU Lesser
+ ** General Public License version 2.1 as published by the Free Software
+ ** Foundation and appearing in the file LICENSE.LGPL included in the
+ ** packaging of this file. Please review the following information to
+ ** ensure the GNU Lesser General Public License version 2.1 requirements
+ ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+ **
+ ** In addition, as a special exception, Digia gives you certain additional
+ ** rights. These rights are described in the Digia Qt LGPL Exception
+ ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+ **
+ ** GNU General Public License Usage
+ ** Alternatively, this file may be used under the terms of the GNU
+ ** General Public License version 3.0 as published by the Free Software
+ ** Foundation and appearing in the file LICENSE.GPL included in the
+ ** packaging of this file. Please review the following information to
+ ** ensure the GNU General Public License version 3.0 requirements will be
+ ** met: http://www.gnu.org/copyleft/gpl.html.
+ **
+ **
+ ** $QT_END_LICENSE$
+ **
+ ****************************************************************************/
+
+#ifndef QQUICKDWMFEATURES_P_H
+#define QQUICKDWMFEATURES_P_H
+
+#include <QQuickItem>
+#include <QWinFunctions>
+
+QT_BEGIN_NAMESPACE
+
+class QQuickDwmFeaturesPrivate;
+
+class QQuickDwmFeatures : public QQuickItem
+{
+ Q_OBJECT
+ Q_PROPERTY(bool isCompositionEnabled READ isCompositionEnabled WRITE setCompositionEnabled NOTIFY isCompositionEnabledChanged)
+ Q_PROPERTY(QColor colorizationColor READ colorizationColor NOTIFY colorizationColorChanged)
+ Q_PROPERTY(QColor realColorizationColor READ realColorizationColor NOTIFY realColorizationColorChanged)
+ Q_PROPERTY(bool colorizationOpaqueBlend READ colorizationOpaqueBlend NOTIFY colorizationOpaqueBlendChanged)
+ Q_PROPERTY(int topGlassMargin READ topGlassMargin WRITE setTopGlassMargin)
+ Q_PROPERTY(int rightGlassMargin READ rightGlassMargin WRITE setRightGlassMargin)
+ Q_PROPERTY(int bottomGlassMargin READ bottomGlassMargin WRITE setBottomGlassMargin)
+ Q_PROPERTY(int leftGlassMargin READ leftGlassMargin WRITE setLeftGlassMargin)
+ Q_PROPERTY(bool excludedFromPeek READ excludedFromPeek WRITE setExcludedFromPeek)
+ Q_PROPERTY(bool peekDisallowed READ peekDisallowed WRITE setPeekDisallowed)
+ Q_PROPERTY(Flip3DPolicy flip3DPolicy READ flip3DPolicy WRITE setFlip3DPolicy)
+
+public:
+ enum Flip3DPolicy // keep sync with Qt::WindowFlip3DPolicy
+ {
+ FlipDefault,
+ FlipExcludeBelow,
+ FlipExcludeAbove
+ };
+
+ Q_ENUMS(Flip3DPolicy)
+
+ explicit QQuickDwmFeatures(QQuickItem *parent = 0);
+ ~QQuickDwmFeatures();
+
+ void setCompositionEnabled(bool enabled);
+ bool isCompositionEnabled() const;
+ QColor colorizationColor() const;
+ QColor realColorizationColor() const;
+ bool colorizationOpaqueBlend() const;
+
+ void setTopGlassMargin(int margin);
+ void setRightGlassMargin(int margin);
+ void setBottomGlassMargin(int margin);
+ void setLeftGlassMargin(int margin);
+ int topGlassMargin() const;
+ int rightGlassMargin() const;
+ int bottomGlassMargin() const;
+ int leftGlassMargin() const;
+
+ bool excludedFromPeek() const;
+ void setExcludedFromPeek(bool exclude);
+ bool peekDisallowed() const;
+ void setPeekDisallowed(bool disallow);
+ Flip3DPolicy flip3DPolicy() const;
+ void setFlip3DPolicy(Flip3DPolicy policy);
+
+ bool eventFilter(QObject *, QEvent *) Q_DECL_OVERRIDE;
+
+ static QQuickDwmFeatures *qmlAttachedProperties(QObject *object);
+
+Q_SIGNALS:
+ void colorizationColorChanged();
+ void realColorizationColorChanged();
+ void isCompositionEnabledChanged();
+ void colorizationOpaqueBlendChanged();
+
+protected:
+ void itemChange(ItemChange, const ItemChangeData &) Q_DECL_OVERRIDE;
+
+private:
+ QScopedPointer<QQuickDwmFeaturesPrivate> d_ptr;
+
+ Q_DECLARE_PRIVATE(QQuickDwmFeatures)
+};
+
+QT_END_NAMESPACE
+
+QML_DECLARE_TYPEINFO(QQuickDwmFeatures, QML_HAS_ATTACHED_PROPERTIES)
+
+#endif // QQUICKDWMFEATURES_P_H