@ -56,8 +56,10 @@ Item {
}
}
property bool showZoomed: false
property bool showZoomed: false
property bool lockZoom: false
property bool lockZoom: false
property bool isHidden: applet && applet . status === PlasmaCore . Types . HiddenStatus ? true : false
property bool isInternalViewSplitter: ( internalSplitterId > 0 )
property bool isInternalViewSplitter: ( internalSplitterId > 0 )
property bool isZoomed: false
property bool isZoomed: false
property bool isSeparator: applet && applet . pluginName === "audoban.applet.separator" ? true : false
/ / a p p l e t i s i n s t a r t i n g e d g e
/ / a p p l e t i s i n s t a r t i n g e d g e
/ * p r o p e r t y b o o l s t a r t E d g e : i n d e x < l a y o u t s C o n t a i n e r . e n d L a y o u t . b e g i n I n d e x ? ( i n d e x = = = 0 ) & & ( l a y o u t s C o n t a i n e r . m a i n L a y o u t . c o u n t > 1 ) :
/ * p r o p e r t y b o o l s t a r t E d g e : i n d e x < l a y o u t s C o n t a i n e r . e n d L a y o u t . b e g i n I n d e x ? ( i n d e x = = = 0 ) & & ( l a y o u t s C o n t a i n e r . m a i n L a y o u t . c o u n t > 1 ) :
@ -81,6 +83,7 @@ Item {
property int maxHeight: root . isHorizontal ? root.height : root . width
property int maxHeight: root . isHorizontal ? root.height : root . width
property int shownAppletMargin: applet && ( applet . pluginName === "org.kde.plasma.systemtray" ) ? 0 : appletMargin
property int shownAppletMargin: applet && ( applet . pluginName === "org.kde.plasma.systemtray" ) ? 0 : appletMargin
property int internalSplitterId: 0
property int internalSplitterId: 0
property int previousIndex: - 1
property int sizeForFill: - 1 / / i t i s u s e d i n c a l c u l a t i o n s f o r f i l l W i d t h , f i l l H e i g h t a p p l e t s
property int sizeForFill: - 1 / / i t i s u s e d i n c a l c u l a t i o n s f o r f i l l W i d t h , f i l l H e i g h t a p p l e t s
property int spacersMaxSize: Math . max ( 0 , Math . ceil ( 0.55 * root . iconSize ) - root . iconMargin )
property int spacersMaxSize: Math . max ( 0 , Math . ceil ( 0.55 * root . iconSize ) - root . iconMargin )
property int status: applet ? applet.status : - 1
property int status: applet ? applet.status : - 1
@ -140,12 +143,6 @@ Item {
}
}
}
}
onIndexChanged: {
if ( container . latteApplet ) {
root . latteAppletPos = index ;
}
}
/ / / B E G I N f u n c t i o n s
/ / / B E G I N f u n c t i o n s
function checkIndex ( ) {
function checkIndex ( ) {
index = - 1 ;
index = - 1 ;
@ -255,6 +252,39 @@ Item {
}
}
}
}
onIndexChanged: {
if ( container . latteApplet ) {
root . latteAppletPos = index ;
}
if ( isHidden ) {
parabolicManager . setHidden ( previousIndex , index ) ;
}
if ( isSeparator ) {
parabolicManager . setSeparator ( previousIndex , index ) ;
}
previousIndex = index ;
}
onIsHiddenChanged: {
if ( isHidden ) {
parabolicManager . setHidden ( - 1 , index ) ;
} else {
parabolicManager . setHidden ( index , - 1 ) ;
}
}
onIsSeparatorChanged: {
if ( isSeparator ) {
parabolicManager . setSeparator ( - 1 , index ) ;
} else {
parabolicManager . setSeparator ( index , - 1 ) ;
}
}
onLatteAppletChanged: {
onLatteAppletChanged: {
if ( container . latteApplet ) {
if ( container . latteApplet ) {
root . latteApplet = container . latteApplet ;
root . latteApplet = container . latteApplet ;