Inital commit of the Komplex Hub

This commit is contained in:
Digital Artifex
2026-06-02 15:11:36 -04:00
commit 15a625008e
2911 changed files with 655555 additions and 0 deletions
@@ -0,0 +1,43 @@
/****************************************************************************
**
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick Ultralite compatibility.
**
** $QT_BEGIN_LICENSE:GPL$
** 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 The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
//! [Screen compatibility]
Rectangle {
id: wnd
property string outputDevice: "device"
property alias backgroundColor: wnd.color
property real defaultApplicationWidth: 0
property real defaultApplicationHeight: 0
visible: true
}
//! [Screen compatibility]
@@ -0,0 +1,35 @@
/****************************************************************************
**
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick Ultralite compatibility.
**
** $QT_BEGIN_LICENSE:GPL$
** 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 The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
//! [ApplicationScreens compatibility]
Item {
}
//! [ApplicationScreens compatibility]
@@ -0,0 +1,19 @@
qt_add_library(QuickUltraLiteStudioLayers STATIC)
qt6_add_qml_module(QuickUltraLiteStudioLayers
URI "QtQuickUltralite.Layers"
VERSION "${PROJECT_VERSION}"
RESOURCE_PREFIX "/qt-project.org/imports"
DESIGNER_SUPPORTED
PAST_MAJOR_VERSIONS 1 2
QML_FILES
ApplicationScreens.qml
ImageLayer.qml
ItemLayer.qml
Screen.qml
SpriteLayer.qml
+DesignMode/Screen.qml
)
target_link_libraries(QuickUltraLiteStudioLayers PRIVATE Qt6::Gui)
register_plugin(QuickUltraLiteStudioLayers)
@@ -0,0 +1,49 @@
/****************************************************************************
**
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick Ultralite compatibility.
**
** $QT_BEGIN_LICENSE:GPL$
** 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 The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
//! [ImageLayer compatibility]
Item {
enum RenderingHints {
OptimizeForSpeed,
OptimizeForSize,
StaticContents
}
property int platformId: 0
property int renderingHints: ImageLayer.RenderingHints.OptimizeForSpeed
property alias source: internalImage.source
Image {
id: internalImage
anchors.fill: parent
}
}
//! [ImageLayer compatibility]
@@ -0,0 +1,49 @@
/****************************************************************************
**
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick Ultralite compatibility.
**
** $QT_BEGIN_LICENSE:GPL$
** 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 The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
//! [ItemLayer compatibility]
Item {
enum ColorDepth {
Bpp16, Bpp16Alpha, Bpp24, Bpp32, Bpp32Alpha
}
enum RenderingHints {
OptimizeForSpeed,
OptimizeForSize,
StaticContents
}
property int depth: ColorDepth.Bpp32
property int refreshInterval: 1
property int platformId: 0
property int renderingHints: RenderingHints.OptimizeForSpeed
}
//! [ItemLayer compatibility]
@@ -0,0 +1,82 @@
/****************************************************************************
**
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick Ultralite compatibility.
**
** $QT_BEGIN_LICENSE:GPL$
** 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 The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
import QtQuick.Window 2.2
//! [Screen compatibility]
Item {
id: root
property string outputDevice: "device"
property alias backgroundColor: wnd.color
property real defaultApplicationWidth: 0
property real defaultApplicationHeight: 0
onChildrenChanged: {
if (wnd.isAvailable)
wnd.reparenting()
}
Window {
id: wnd
visible: true
width: root.width
height: root.height
property bool reparentingBlock: false
property bool isAvailable: false
Component.onCompleted: {
reparenting()
isAvailable = true
}
function reparenting() {
if (reparentingBlock)
return;
reparentingBlock = true;
var result = [];
var rootChildren = root.children;
for (var i = 0; i < rootChildren.length; i++) {
if (rootChildren[i] !== wnd) {
result.push(rootChildren[i]);
}
}
wnd.data = result;
reparentingBlock = false;
}
}
}
//! [Screen compatibility]
@@ -0,0 +1,41 @@
/****************************************************************************
**
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick Ultralite compatibility.
**
** $QT_BEGIN_LICENSE:GPL$
** 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 The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
import QtQuick 2.15
//! [SpriteLayer compatibility]
Item {
enum ColorDepth {
Bpp8, Bpp16, Bpp16Alpha, Bpp24, Bpp32, Bpp32Alpha
}
property int depth: ColorDepth.Bpp32
property int platformId: 0
}
//! [SpriteLayer compatibility]
@@ -0,0 +1,10 @@
import QtQuick.tooling 1.2
// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
Module {
dependencies: [
"QtQuick 2.15"
]
}
+22
View File
@@ -0,0 +1,22 @@
module QtQuickUltralite.Layers
designersupported
linktarget studioqtquickultralitelayersplugin
optional plugin studioqtquickultralitelayersplugin
classname QtQuickUltralite_LayersPlugin
typeinfo studioqtquickultralitelayers.qmltypes
prefer :/QtQuickUltralite/Layers/
ApplicationScreens 1.0 ApplicationScreens.qml
ApplicationScreens 2.0 ApplicationScreens.qml
ApplicationScreens 6.0 ApplicationScreens.qml
ImageLayer 1.0 ImageLayer.qml
ImageLayer 2.0 ImageLayer.qml
ImageLayer 6.0 ImageLayer.qml
ItemLayer 1.0 ItemLayer.qml
ItemLayer 2.0 ItemLayer.qml
ItemLayer 6.0 ItemLayer.qml
Screen 1.0 Screen.qml
Screen 2.0 Screen.qml
Screen 6.0 Screen.qml
SpriteLayer 1.0 SpriteLayer.qml
SpriteLayer 2.0 SpriteLayer.qml
SpriteLayer 6.0 SpriteLayer.qml
@@ -0,0 +1,55 @@
/****************************************************************************
**
** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Quick Ultralite compatibility.
**
** $QT_BEGIN_LICENSE:GPL$
** 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 The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 or (at your option) any later version
** approved by the KDE Free Qt Foundation. The licenses are as published by
** the Free Software Foundation and appearing in the file LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtQml/qqmlextensionplugin.h>
QT_BEGIN_NAMESPACE
class StudioCompatibilityQULLayers: public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
public:
StudioCompatibilityQULLayers(QObject *parent = nullptr);
void registerTypes(const char *uri) override;
};
StudioCompatibilityQULLayers::StudioCompatibilityQULLayers(QObject *parent)
: QQmlExtensionPlugin(parent)
{
}
void StudioCompatibilityQULLayers::registerTypes(const char *)
{
}
QT_END_NAMESPACE
#include "studiocompatibilityqullayers.moc"