|
|
@ -42,7 +42,7 @@ MouseArea{
|
|
|
|
anchors.left: (root.position === PlasmaCore.Types.LeftPositioned) ? parent.left : undefined
|
|
|
|
anchors.left: (root.position === PlasmaCore.Types.LeftPositioned) ? parent.left : undefined
|
|
|
|
anchors.right: (root.position === PlasmaCore.Types.RightPositioned) ? parent.right : undefined
|
|
|
|
anchors.right: (root.position === PlasmaCore.Types.RightPositioned) ? parent.right : undefined
|
|
|
|
|
|
|
|
|
|
|
|
objectName: "TaskDelegate"
|
|
|
|
objectName: "TaskItem"
|
|
|
|
|
|
|
|
|
|
|
|
width: {
|
|
|
|
width: {
|
|
|
|
if (!visible)
|
|
|
|
if (!visible)
|
|
|
@ -94,8 +94,8 @@ MouseArea{
|
|
|
|
property bool scalesUpdatedOnce: false
|
|
|
|
property bool scalesUpdatedOnce: false
|
|
|
|
//states that exist in windows in a Group of windows
|
|
|
|
//states that exist in windows in a Group of windows
|
|
|
|
property bool hasActive: isActive
|
|
|
|
property bool hasActive: isActive
|
|
|
|
property bool hasMinimized: (IsGroupParent === true) ? tasksWindows.hasMinimized : isMinimized
|
|
|
|
property bool hasMinimized: (IsGroupParent === true) ? subWindows.hasMinimized : isMinimized
|
|
|
|
property bool hasShown: (IsGroupParent === true) ? tasksWindows.hasShown : !isMinimized
|
|
|
|
property bool hasShown: (IsGroupParent === true) ? subWindows.hasShown : !isMinimized
|
|
|
|
property bool inAddRemoveAnimation: true
|
|
|
|
property bool inAddRemoveAnimation: true
|
|
|
|
property bool inAnimation: true
|
|
|
|
property bool inAnimation: true
|
|
|
|
property bool inAttentionAnimation: false
|
|
|
|
property bool inAttentionAnimation: false
|
|
|
@ -226,8 +226,8 @@ MouseArea{
|
|
|
|
NumberAnimation { duration: root.durationTime*units.longDuration }
|
|
|
|
NumberAnimation { duration: root.durationTime*units.longDuration }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TaskWindows{
|
|
|
|
SubWindows{
|
|
|
|
id: tasksWindows
|
|
|
|
id: subWindows
|
|
|
|
|
|
|
|
|
|
|
|
property int previousCount: 0
|
|
|
|
property int previousCount: 0
|
|
|
|
|
|
|
|
|
|
|
@ -431,12 +431,12 @@ MouseArea{
|
|
|
|
|
|
|
|
|
|
|
|
// a hidden spacer for the first element to add stability
|
|
|
|
// a hidden spacer for the first element to add stability
|
|
|
|
// IMPORTANT: hidden spacers must be tested on vertical !!!
|
|
|
|
// IMPORTANT: hidden spacers must be tested on vertical !!!
|
|
|
|
TaskHiddenSpacer{ id:hiddenSpacerLeft;}
|
|
|
|
HiddenSpacer{ id:hiddenSpacerLeft;}
|
|
|
|
|
|
|
|
|
|
|
|
TaskWrapper{ id: wrapper }
|
|
|
|
Wrapper{ id: wrapper }
|
|
|
|
|
|
|
|
|
|
|
|
// a hidden spacer on the right for the last item to add stability
|
|
|
|
// a hidden spacer on the right for the last item to add stability
|
|
|
|
TaskHiddenSpacer{ id:hiddenSpacerRight; rightSpacer: true }
|
|
|
|
HiddenSpacer{ id:hiddenSpacerRight; rightSpacer: true }
|
|
|
|
}// Flow with hidden spacers inside
|
|
|
|
}// Flow with hidden spacers inside
|
|
|
|
|
|
|
|
|
|
|
|
/*Rectangle{
|
|
|
|
/*Rectangle{
|
|
|
@ -818,7 +818,7 @@ MouseArea{
|
|
|
|
tasksModel.requestToggleMinimized(modelIndex());
|
|
|
|
tasksModel.requestToggleMinimized(modelIndex());
|
|
|
|
} else if ( root.modifierClickAction == Latte.Types.CycleThroughTasks) {
|
|
|
|
} else if ( root.modifierClickAction == Latte.Types.CycleThroughTasks) {
|
|
|
|
if (isGroupParent)
|
|
|
|
if (isGroupParent)
|
|
|
|
tasksWindows.activateNextTask();
|
|
|
|
subWindows.activateNextTask();
|
|
|
|
else
|
|
|
|
else
|
|
|
|
activateTask();
|
|
|
|
activateTask();
|
|
|
|
} else if (root.modifierClickAction == Latte.Types.ToggleGrouping) {
|
|
|
|
} else if (root.modifierClickAction == Latte.Types.ToggleGrouping) {
|
|
|
@ -837,7 +837,7 @@ MouseArea{
|
|
|
|
tasksModel.requestToggleMinimized(modelIndex());
|
|
|
|
tasksModel.requestToggleMinimized(modelIndex());
|
|
|
|
} else if ( root.middleClickAction == Latte.Types.CycleThroughTasks) {
|
|
|
|
} else if ( root.middleClickAction == Latte.Types.CycleThroughTasks) {
|
|
|
|
if (isGroupParent)
|
|
|
|
if (isGroupParent)
|
|
|
|
tasksWindows.activateNextTask();
|
|
|
|
subWindows.activateNextTask();
|
|
|
|
else
|
|
|
|
else
|
|
|
|
activateTask();
|
|
|
|
activateTask();
|
|
|
|
} else if (root.middleClickAction == Latte.Types.ToggleGrouping) {
|
|
|
|
} else if (root.middleClickAction == Latte.Types.ToggleGrouping) {
|
|
|
@ -852,7 +852,7 @@ MouseArea{
|
|
|
|
activateTask();
|
|
|
|
activateTask();
|
|
|
|
} else if (root.leftClickAction === Latte.Types.CycleThroughTasks) {
|
|
|
|
} else if (root.leftClickAction === Latte.Types.CycleThroughTasks) {
|
|
|
|
if (isGroupParent)
|
|
|
|
if (isGroupParent)
|
|
|
|
tasksWindows.activateNextTask();
|
|
|
|
subWindows.activateNextTask();
|
|
|
|
else
|
|
|
|
else
|
|
|
|
activateTask();
|
|
|
|
activateTask();
|
|
|
|
} else if (root.leftClickAction === Latte.Types.PreviewWindows) {
|
|
|
|
} else if (root.leftClickAction === Latte.Types.PreviewWindows) {
|
|
|
@ -894,7 +894,7 @@ MouseArea{
|
|
|
|
inWheelAction = true;
|
|
|
|
inWheelAction = true;
|
|
|
|
wrapper.runLauncherAnimation();
|
|
|
|
wrapper.runLauncherAnimation();
|
|
|
|
} else if (isGroupParent) {
|
|
|
|
} else if (isGroupParent) {
|
|
|
|
tasksWindows.activateNextTask();
|
|
|
|
subWindows.activateNextTask();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var taskIndex = modelIndex();
|
|
|
|
var taskIndex = modelIndex();
|
|
|
|
|
|
|
|
|
|
|
@ -911,7 +911,7 @@ MouseArea{
|
|
|
|
if (isLauncher || root.disableAllWindowsFunctionality) {
|
|
|
|
if (isLauncher || root.disableAllWindowsFunctionality) {
|
|
|
|
// do nothing
|
|
|
|
// do nothing
|
|
|
|
} else if (isGroupParent) {
|
|
|
|
} else if (isGroupParent) {
|
|
|
|
tasksWindows.activatePreviousTask();
|
|
|
|
subWindows.activatePreviousTask();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var taskIndex = modelIndex();
|
|
|
|
var taskIndex = modelIndex();
|
|
|
|
|
|
|
|
|
|
|
@ -969,7 +969,7 @@ MouseArea{
|
|
|
|
|
|
|
|
|
|
|
|
///// Helper functions /////
|
|
|
|
///// Helper functions /////
|
|
|
|
function activateNextTask() {
|
|
|
|
function activateNextTask() {
|
|
|
|
tasksWindows.activateNextTask();
|
|
|
|
subWindows.activateNextTask();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function activateTask() {
|
|
|
|
function activateTask() {
|