rename Task SubParts in plasmoid accordingly

pull/4/head
Michail Vourlakos 6 years ago
parent eddb6d229f
commit 52465865f9

@ -158,7 +158,7 @@ Item {
} }
for(var i=0; i<layoutsContainer.endLayout.count; ++i){ for(var i=0; i<layoutsContainer.endLayout.count; ++i){
if(layoutsContainer.endLayout.children[i] === container){ if(layoutsContainer.endLayout.children[i] === appletItem){
//create a very high index in order to not need to exchange hovering messages //create a very high index in order to not need to exchange hovering messages
//between layoutsContainer.mainLayout and layoutsContainer.endLayout //between layoutsContainer.mainLayout and layoutsContainer.endLayout
index = layoutsContainer.endLayout.beginIndex + i; index = layoutsContainer.endLayout.beginIndex + i;

@ -523,7 +523,7 @@ Item {
return (posOfLauncherToBeMoved(launcher) >= 0); return (posOfLauncherToBeMoved(launcher) >= 0);
} }
//!Trying to avoid a binding loop in TaskDelegate for modelLauncherUrl //!Trying to avoid a binding loop in TaskItem for modelLauncherUrl
Timer { Timer {
id: launchersToBeMovedTimer id: launchersToBeMovedTimer
interval: 50 interval: 50

@ -1211,7 +1211,7 @@ Item {
orientation: Qt.Horizontal orientation: Qt.Horizontal
delegate: Task.TaskDelegate{} delegate: Task.TaskItem{}
/* Rectangle{ /* Rectangle{
anchors.fill: parent anchors.fill: parent
@ -1244,7 +1244,7 @@ Item {
var choords = mapFromItem(task,0, 0); var choords = mapFromItem(task,0, 0);
if( (task.objectName==="TaskDelegate") && (x>=choords.x) && (x<=choords.x+task.width) if( (task.objectName==="TaskItem") && (x>=choords.x) && (x<=choords.x+task.width)
&& (y>=choords.y) && (y<=choords.y+task.height)){ && (y>=choords.y) && (y<=choords.y+task.height)){
return task; return task;
} }

@ -40,7 +40,7 @@ Item{
//fix #846,empty tasks after activity changes //fix #846,empty tasks after activity changes
//in some cases after activity changes some tasks //in some cases after activity changes some tasks
//are shown empty because some ghost tasks are created. //are shown empty because some ghost tasks are created.
//This was tracked down to hidden TaskDelegates spacers. //This was tracked down to hidden TaskItems spacers.
//the flag !root.inActivityChange protects from this //the flag !root.inActivityChange protects from this
//and it is used later on Behaviors in order to not break //and it is used later on Behaviors in order to not break
//the activity change animations from removal/additions of tasks //the activity change animations from removal/additions of tasks

@ -424,7 +424,7 @@ Item{
" "
} //end of sourceComponent } //end of sourceComponent
TaskProgressOverlay{ ProgressOverlay{
id: infoBadge id: infoBadge
anchors.fill:parent anchors.fill:parent
opacity: badgesLoader.opacityN opacity: badgesLoader.opacityN

@ -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() {

@ -155,7 +155,7 @@ Item{
visible: active visible: active
sourceComponent: Component{ sourceComponent: Component{
TaskGroupItem{} GroupItem{}
} }
} }
@ -186,7 +186,7 @@ Item{
} }
} }
TaskIconItem{ id: taskIconItem} IconItem{ id: taskIconItem}
//! This is used from bouncing attention animation in order to played correctly //! This is used from bouncing attention animation in order to played correctly
Loader{ Loader{
@ -222,7 +222,7 @@ Item{
visible: active visible: active
sourceComponent: Component{ sourceComponent: Component{
TaskGroupItem{} GroupItem{}
} }
} }
Loading…
Cancel
Save