@ -46,6 +46,7 @@ DragDrop.DropArea {
/ / / / B E G I N S I G N A L S
signal clearZoomSignal ( ) ;
signal destroyInternalViewSplitters ( ) ;
signal separatorsUpdated ( ) ;
signal signalActivateEntryAtIndex ( int entryIndex ) ;
signal signalNewInstanceForEntryAtIndex ( int entryIndex ) ;
@ -587,6 +588,8 @@ DragDrop.DropArea {
} else if ( ! inConfigureAppletsMode ) {
splitMainLayoutToLayouts ( ) ;
}
updateIndexes ( ) ;
}
/ / ! I t i s u s e d o n l y w h e n t h e u s e r c h o o s e s d i f f e r e n t a l i g n m e n t t y p e s
@ -602,14 +605,17 @@ DragDrop.DropArea {
splitMainLayoutToLayouts ( ) ;
} else {
joinLayoutsToMainLayout ( ) ;
root . destroyInternalViewSplitters ( ) ;
}
} else {
if ( panelUserSetAlignment === Latte . Types . Justify ) {
addInternalViewSplitters ( ) ;
} else {
r emove InternalViewSplitters( ) ;
r oot. destroy InternalViewSplitters( ) ;
}
}
updateIndexes ( ) ;
}
onLatteViewChanged: {
@ -1221,35 +1227,6 @@ DragDrop.DropArea {
return ( latteView . visibility . containsMouse && ! rootMouseArea . containsMouse && mouseInCanBeHoveredApplet ( ) ) ;
}
function removeInternalViewSplitters ( ) {
if ( internalViewSplittersCount ( ) > 0 ) {
console . log ( "Removing splitters... : " + internalViewSplittersCount ( ) ) ;
for ( var container in layoutsContainer . startLayout . children ) {
var item = layoutsContainer . startLayout . children [ container ] ;
if ( item && item . isInternalViewSplitter ) {
item . destroy ( ) ;
}
}
for ( var container in layoutsContainer . mainLayout . children ) {
var item = layoutsContainer . mainLayout . children [ container ] ;
if ( item && item . isInternalViewSplitter ) {
item . destroy ( ) ;
}
}
for ( var container in layoutsContainer . endLayout . children ) {
var item = layoutsContainer . endLayout . children [ container ] ;
if ( item && item . isInternalViewSplitter ) {
item . destroy ( ) ;
}
}
console . log ( "Removed splitters... : " + internalViewSplittersCount ( ) ) ;
}
}
function setHoveredIndex ( ind ) {
layoutsContainer . hoveredIndex = ind ;
}
@ -1526,8 +1503,6 @@ DragDrop.DropArea {
item . parent = layoutsContainer . endLayout ;
}
}
updateIndexes ( ) ;
}
function joinLayoutsToMainLayout ( ) {
@ -1550,8 +1525,6 @@ DragDrop.DropArea {
var itemL = layoutsContainer . startLayout . children [ 0 ] ;
itemL . parent = layoutsContainer . mainLayout ;
}
updateIndexes ( ) ;
}
/ / E N D f u n c t i o n s