provide new abilities imports structure

pull/15/head
Michail Vourlakos 5 years ago
parent 29018067d1
commit b1f5e169ee

@ -23,7 +23,7 @@ import org.kde.plasma.plasmoid 2.0
import org.kde.latte.core 0.2 as LatteCore import org.kde.latte.core 0.2 as LatteCore
import org.kde.latte.private.app 0.1 as LatteApp import org.kde.latte.private.app 0.1 as LatteApp
import "animations" as AnimationComponents import org.kde.latte.abilities.components.animations 0.1 as AnimationComponents
Ability { Ability {
property Item container: null property Item container: null
@ -64,13 +64,13 @@ Ability {
readonly property bool hasThicknessAnimation: (needBothAxis.count>0) || (needThickness.count>0) readonly property bool hasThicknessAnimation: (needBothAxis.count>0) || (needThickness.count>0)
readonly property Item duration: Item { readonly property Item duration: AnimationComponents.Duration {
readonly property int proposed: speedFactor.current * 2.8 * longDuration proposed: speedFactor.current * 2.8 * longDuration
} }
readonly property Item speedFactor: Item { readonly property Item speedFactor: AnimationComponents.SpeedFactor {
readonly property real normal: 1.0 normal: 1.0
readonly property real current: { current: {
if (!active || plasmoid.configuration.durationTime === 0) { if (!active || plasmoid.configuration.durationTime === 0) {
return 0; return 0;
} }
@ -87,7 +87,6 @@ Ability {
} }
} }
//! animations related to parabolic effect //! animations related to parabolic effect
/////!!!!!! /////!!!!!!
property int hoverPixelSensitivity: { property int hoverPixelSensitivity: {

@ -19,7 +19,7 @@
import QtQuick 2.7 import QtQuick 2.7
import org.kde.latte.containers.abilities 0.1 as ContainerAbility import org.kde.latte.abilities.components 0.1 as AbilityComponents
import "../../../code/AppletIdentifier.js" as AppletIdentifier import "../../../code/AppletIdentifier.js" as AppletIdentifier
@ -52,7 +52,7 @@ Item{
//! END OF PROPERTIES //! END OF PROPERTIES
//! BEGIN OF PUBLIC PROPERTIES SET THROUGH LATTEBRIDGE.ACTIONS //! BEGIN OF PUBLIC PROPERTIES SET THROUGH LATTEBRIDGE.ACTIONS
readonly property Item requires: ContainerAbility.AppletRequirements{} readonly property Item requires: AbilityComponents.AppletRequirements{}
//! END OF PUBLIC PROPERTIES SET THROUGH LATTEBRIDGE.ACTIONS //! END OF PUBLIC PROPERTIES SET THROUGH LATTEBRIDGE.ACTIONS
property bool windowsTrackingEnabledSent: false property bool windowsTrackingEnabledSent: false

@ -1,6 +1,5 @@
add_subdirectory(core) add_subdirectory(core)
install(DIRECTORY applets/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte/applets) install(DIRECTORY abilities/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte/abilities)
install(DIRECTORY components/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte/components) install(DIRECTORY components/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte/components)
install(DIRECTORY containers/ DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/latte/containers)

@ -19,9 +19,9 @@
import QtQuick 2.0 import QtQuick 2.0
import org.kde.latte.containers.abilities 0.1 as ContainerAbility import org.kde.latte.abilities.components 0.1 as AbilityComponent
ContainerAbility.AppletRequirements{ AbilityComponent.AppletRequirements{
id: requirements id: requirements
readonly property bool isActive: bridge !== null readonly property bool isActive: bridge !== null

@ -0,0 +1,3 @@
module org.kde.latte.abilities.applets
Requirements 0.1 Requirements.qml

@ -0,0 +1,24 @@
/*
* Copyright 2020 Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.7
Item {
property int proposed: 700
}

@ -0,0 +1,25 @@
/*
* Copyright 2020 Michail Vourlakos <mvourlakos@gmail.com>
*
* This file is part of Latte-Dock
*
* Latte-Dock is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* Latte-Dock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import QtQuick 2.7
Item {
property real normal: 1.0
property real current: 1.0
}

@ -0,0 +1,5 @@
module org.kde.latte.abilities.components.animations
Duration 0.1 Duration.qml
SpeedFactor 0.1 SpeedFactor.qml
Tracker 0.1 Tracker.qml

@ -1,3 +1,3 @@
module org.kde.latte.containers.abilities module org.kde.latte.abilities.components
AppletRequirements 0.1 AppletRequirements.qml AppletRequirements 0.1 AppletRequirements.qml

@ -1,3 +0,0 @@
module org.kde.latte.applets.abilities
Requirements 0.1 Requirements.qml

@ -33,7 +33,7 @@ import org.kde.activities 0.1 as Activities
import org.kde.latte.core 0.2 as LatteCore import org.kde.latte.core 0.2 as LatteCore
import org.kde.latte.components 1.0 as LatteComponents import org.kde.latte.components 1.0 as LatteComponents
import org.kde.latte.applets.abilities 0.1 as AppletAbility import org.kde.latte.abilities.applets 0.1 as AppletAbility
import org.kde.latte.private.tasks 0.1 as LatteTasks import org.kde.latte.private.tasks 0.1 as LatteTasks

Loading…
Cancel
Save