|
|
@ -28,12 +28,12 @@ AbilityItem.BasicItem {
|
|
|
|
|
|
|
|
|
|
|
|
isHidden: !visible || isForcedHidden
|
|
|
|
isHidden: !visible || isForcedHidden
|
|
|
|
|
|
|
|
|
|
|
|
isHiddenSpacerForcedShow: taskItem.inAttentionAnimation || taskItem.inFastRestoreAnimation
|
|
|
|
isHiddenSpacerForcedShow: taskItem.inAttentionBuiltinAnimation || taskItem.inFastRestoreAnimation
|
|
|
|
isHiddenSpacerAnimated: taskItem.inFastRestoreAnimation
|
|
|
|
isHiddenSpacerAnimated: taskItem.inFastRestoreAnimation
|
|
|
|
|| showWindowAnimation.running
|
|
|
|
|| showWindowAnimation.running
|
|
|
|
|| root.inActivityChange
|
|
|
|
|| root.inActivityChange
|
|
|
|
|| taskItem.inRemoveStage
|
|
|
|
|| taskItem.inRemoveStage
|
|
|
|
|| (taskItem.containsMouse && inAttentionAnimation && taskItem.parabolicItem.zoom!==taskItem.abilities.parabolic.factor.zoom)
|
|
|
|
|| (taskItem.containsMouse && inAttentionBuiltinAnimation && taskItem.parabolicItem.zoom!==taskItem.abilities.parabolic.factor.zoom)
|
|
|
|
|
|
|
|
|
|
|
|
isMonochromaticForcedContentItem: plasmoid.configuration.forceMonochromaticIcons
|
|
|
|
isMonochromaticForcedContentItem: plasmoid.configuration.forceMonochromaticIcons
|
|
|
|
monochromizedItem: taskIcon.monochromizedItem
|
|
|
|
monochromizedItem: taskIcon.monochromizedItem
|
|
|
@ -50,14 +50,14 @@ AbilityItem.BasicItem {
|
|
|
|
return isWindow ? model.display : model.AppName;
|
|
|
|
return isWindow ? model.display : model.AppName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
preserveIndicatorInInitialPosition: inBouncingAnimation || inAttentionAnimation || inNewWindowAnimation
|
|
|
|
preserveIndicatorInInitialPosition: inBouncingAnimation || inAttentionBuiltinAnimation || inNewWindowBuiltinAnimation
|
|
|
|
|
|
|
|
|
|
|
|
parabolicItem.isParabolicEventBlocked: root.dragSource
|
|
|
|
parabolicItem.isParabolicEventBlocked: root.dragSource
|
|
|
|
|| !hoverEnabled
|
|
|
|
|| !hoverEnabled
|
|
|
|
|| !taskItem.abilities.myView.isShownFully
|
|
|
|
|| !taskItem.abilities.myView.isShownFully
|
|
|
|
|| inAnimation
|
|
|
|
|| inAnimation
|
|
|
|
|| (inBlockingAnimation && !(inAttentionAnimation||inFastRestoreAnimation))
|
|
|
|
|| (inBlockingAnimation && !(inAttentionBuiltinAnimation || inFastRestoreAnimation))
|
|
|
|
parabolicItem.isUpdatingOnlySpacers: inAttentionAnimation || inBouncingAnimation
|
|
|
|
parabolicItem.isUpdatingOnlySpacers: inAttentionBuiltinAnimation || inBouncingAnimation
|
|
|
|
|
|
|
|
|
|
|
|
property alias hoverEnabled: taskMouseArea.hoverEnabled
|
|
|
|
property alias hoverEnabled: taskMouseArea.hoverEnabled
|
|
|
|
property alias pressed: taskMouseArea.pressed
|
|
|
|
property alias pressed: taskMouseArea.pressed
|
|
|
@ -72,15 +72,17 @@ AbilityItem.BasicItem {
|
|
|
|
/*animations flags*/
|
|
|
|
/*animations flags*/
|
|
|
|
property bool inAnimation: true
|
|
|
|
property bool inAnimation: true
|
|
|
|
property bool inAddRemoveAnimation: true
|
|
|
|
property bool inAddRemoveAnimation: true
|
|
|
|
property bool inAttentionAnimation: false
|
|
|
|
property bool inAttentionBuiltinAnimation: false
|
|
|
|
property bool inBlockingAnimation: false
|
|
|
|
property bool inBlockingAnimation: false
|
|
|
|
property bool inBouncingAnimation: false
|
|
|
|
property bool inBouncingAnimation: false
|
|
|
|
property bool inFastRestoreAnimation: false
|
|
|
|
property bool inFastRestoreAnimation: false
|
|
|
|
property bool inNewWindowAnimation: false
|
|
|
|
property bool inNewWindowBuiltinAnimation: false
|
|
|
|
property bool inPopup: false
|
|
|
|
property bool inPopup: false
|
|
|
|
property bool inRemoveStage: false
|
|
|
|
property bool inRemoveStage: false
|
|
|
|
|
|
|
|
|
|
|
|
property bool isLauncherAnimationRunning: false
|
|
|
|
property bool isLauncherBuiltinAnimationRunning: false
|
|
|
|
|
|
|
|
property bool isLauncherAnimationRunning: isLauncherBuiltinAnimationRunning
|
|
|
|
|
|
|
|
|| (taskItem.abilities.indicators.info.providesTaskLauncherAnimation && isIndicatorTaskLauncherAnimationRunning)
|
|
|
|
|
|
|
|
|
|
|
|
//! after clicking to show/hide preview enter events are trigerred even though the should not
|
|
|
|
//! after clicking to show/hide preview enter events are trigerred even though the should not
|
|
|
|
property bool showPreviewsIsBlockedFromReleaseEvent: false
|
|
|
|
property bool showPreviewsIsBlockedFromReleaseEvent: false
|
|
|
@ -107,6 +109,7 @@ AbilityItem.BasicItem {
|
|
|
|
property bool hoveredFromDragging: (mouseHandler.hoveredItem === taskItem) || (mouseHandler.ignoredItem === taskItem)
|
|
|
|
property bool hoveredFromDragging: (mouseHandler.hoveredItem === taskItem) || (mouseHandler.ignoredItem === taskItem)
|
|
|
|
|
|
|
|
|
|
|
|
property bool wheelIsBlocked: false
|
|
|
|
property bool wheelIsBlocked: false
|
|
|
|
|
|
|
|
property bool hasAddedWaitingLauncher: false
|
|
|
|
|
|
|
|
|
|
|
|
property int badgeIndicator: 0 //it is used from external apps
|
|
|
|
property int badgeIndicator: 0 //it is used from external apps
|
|
|
|
property int lastValidIndex: -1 //used for the removal animation
|
|
|
|
property int lastValidIndex: -1 //used for the removal animation
|
|
|
@ -246,9 +249,6 @@ AbilityItem.BasicItem {
|
|
|
|
property QtObject contextMenu: null
|
|
|
|
property QtObject contextMenu: null
|
|
|
|
|
|
|
|
|
|
|
|
signal checkWindowsStates();
|
|
|
|
signal checkWindowsStates();
|
|
|
|
signal groupWindowAdded();
|
|
|
|
|
|
|
|
signal groupWindowRemoved();
|
|
|
|
|
|
|
|
signal launcherAnimationRequested();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SubWindows{
|
|
|
|
SubWindows{
|
|
|
|
id: subWindows
|
|
|
|
id: subWindows
|
|
|
@ -264,13 +264,13 @@ AbilityItem.BasicItem {
|
|
|
|
&& (windowsCount > previousCount)
|
|
|
|
&& (windowsCount > previousCount)
|
|
|
|
&& !(taskItem.containsMouse)
|
|
|
|
&& !(taskItem.containsMouse)
|
|
|
|
&& !root.dragSource ){
|
|
|
|
&& !root.dragSource ){
|
|
|
|
taskItem.groupWindowAdded();
|
|
|
|
taskItem.taskGroupedWindowAdded();
|
|
|
|
} else if ((windowsCount >= 1)
|
|
|
|
} else if ((windowsCount >= 1)
|
|
|
|
&& (windowsCount < previousCount)
|
|
|
|
&& (windowsCount < previousCount)
|
|
|
|
&& !root.dragSource
|
|
|
|
&& !root.dragSource
|
|
|
|
&& !taskItem.delayingRemove){
|
|
|
|
&& !taskItem.delayingRemove){
|
|
|
|
//sometimes this is triggered in dragging with no reason
|
|
|
|
//sometimes this is triggered in dragging with no reason
|
|
|
|
taskItem.groupWindowRemoved();
|
|
|
|
taskItem.taskGroupedWindowRemoved();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (windowsCount>=1) {
|
|
|
|
if (windowsCount>=1) {
|
|
|
@ -411,13 +411,23 @@ AbilityItem.BasicItem {
|
|
|
|
subWindows.activateNextTask();
|
|
|
|
subWindows.activateNextTask();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function activateLauncher() {
|
|
|
|
|
|
|
|
if (LatteCore.WindowSystem.compositingActive) {
|
|
|
|
|
|
|
|
taskItem.taskLauncherActivated();
|
|
|
|
|
|
|
|
hasAddedWaitingLauncher = true;
|
|
|
|
|
|
|
|
tasksExtendedManager.addWaitingLauncher(taskItem.launcherUrl);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (root.disableAllWindowsFunctionality) {
|
|
|
|
|
|
|
|
tasksModel.requestNewInstance(modelIndex());
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
tasksModel.requestActivate(modelIndex());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function activateTask() {
|
|
|
|
function activateTask() {
|
|
|
|
if( taskItem.isLauncher || root.disableAllWindowsFunctionality){
|
|
|
|
if( taskItem.isLauncher || root.disableAllWindowsFunctionality){
|
|
|
|
if (LatteCore.WindowSystem.compositingActive) {
|
|
|
|
activateLauncher();
|
|
|
|
taskItem.launcherAnimationRequested();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
launcherAction();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else{
|
|
|
|
} else{
|
|
|
|
if (model.IsGroupParent) {
|
|
|
|
if (model.IsGroupParent) {
|
|
|
|
var canPresentWindowsIsSupported = LatteCore.WindowSystem.compositingActive && (root.plasmaGreaterThan522 ? backend.canPresentWindows : backend.canPresentWindows());
|
|
|
|
var canPresentWindowsIsSupported = LatteCore.WindowSystem.compositingActive && (root.plasmaGreaterThan522 ? backend.canPresentWindows : backend.canPresentWindows());
|
|
|
@ -523,20 +533,6 @@ AbilityItem.BasicItem {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function launcherAction(){
|
|
|
|
|
|
|
|
if (LatteCore.WindowSystem.compositingActive) {
|
|
|
|
|
|
|
|
inBouncingAnimation = true;
|
|
|
|
|
|
|
|
tasksExtendedManager.addWaitingLauncher(taskItem.launcherUrl);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (root.disableAllWindowsFunctionality) {
|
|
|
|
|
|
|
|
tasksModel.requestNewInstance(modelIndex());
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
tasksModel.requestActivate(modelIndex());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///window previews///
|
|
|
|
///window previews///
|
|
|
|
function generateSubText(task) {
|
|
|
|
function generateSubText(task) {
|
|
|
|
var subTextEntries = new Array();
|
|
|
|
var subTextEntries = new Array();
|
|
|
@ -696,7 +692,10 @@ AbilityItem.BasicItem {
|
|
|
|
|
|
|
|
|
|
|
|
function slotWaitingLauncherRemoved(launch) {
|
|
|
|
function slotWaitingLauncherRemoved(launch) {
|
|
|
|
if ((isWindow || isStartup || isLauncher) && !visible && launch === launcherUrl) {
|
|
|
|
if ((isWindow || isStartup || isLauncher) && !visible && launch === launcherUrl) {
|
|
|
|
taskItem.parabolicItem.zoom = 1;
|
|
|
|
if (!taskItem.abilities.indicators.info.providesTaskLauncherAnimation) {
|
|
|
|
|
|
|
|
//! this is needed only from in-built launcher animation to restore zoom smoothly
|
|
|
|
|
|
|
|
taskItem.parabolicItem.zoom = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
visible = true;
|
|
|
|
visible = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|