support scrolling for Debug Window

v0.6
Michail Vourlakos 8 years ago
parent cf71eac686
commit 1cbdab35e4

@ -22,6 +22,7 @@ import QtQuick 2.1
import QtQuick.Window 2.2 import QtQuick.Window 2.2
import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.latte 0.1 as Latte import org.kde.latte 0.1 as Latte
@ -32,470 +33,480 @@ Window{
property string space:" : " property string space:" : "
Grid{ PlasmaExtras.ScrollArea {
id:mainGrid id: scrollArea
columns: 2
Text{ anchors.fill: parent
text: "Screen id"+space verticalScrollBarPolicy: Qt.ScrollBarAsNeeded
} horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
Text{
text: dock.currentScreen
}
Text{ flickableItem.flickableDirection: Flickable.VerticalFlick
text: "Screen Geometry"+space
}
Text{ Grid{
text: dock.screenGeometry.x+","+dock.screenGeometry.y+ " "+dock.screenGeometry.width+"x"+dock.screenGeometry.height id:mainGrid
} columns: 2
Text{ Text{
text: "Window Geometry"+space text: "Screen id"+space
} }
Text{ Text{
text: dock.x + "," + dock.y + " "+dock.width+ "x"+dock.height text: dock.currentScreen
} }
Text{ Text{
text: "On Primary"+space text: "Screen Geometry"+space
} }
Text{ Text{
text: { text: dock.screenGeometry.x+","+dock.screenGeometry.y+ " "+dock.screenGeometry.width+"x"+dock.screenGeometry.height
if (dock.onPrimary)
return "Yes";
else
return "No";
} }
}
Text{ Text{
text: " ----------- " text: "Window Geometry"+space
} }
Text{ Text{
text: " ----------- " text: dock.x + "," + dock.y + " "+dock.width+ "x"+dock.height
} }
Text{ Text{
text: "Contents Width"+space text: "On Primary"+space
} }
Text{ Text{
text: layoutsContainer.contentsWidth text: {
} if (dock.onPrimary)
return "Yes";
else
return "No";
}
}
Text{ Text{
text: "Contents Height"+space text: " ----------- "
} }
Text{ Text{
text: layoutsContainer.contentsHeight text: " ----------- "
} }
Text{ Text{
text: "Max Length (user)"+space text: "Contents Width"+space
} }
Text{ Text{
text: plasmoid.configuration.maxLength +"%" text: layoutsContainer.contentsWidth
} }
Text{ Text{
text: "Max Length (pixels)"+space text: "Contents Height"+space
} }
Text{ Text{
text: root.maxLength text: layoutsContainer.contentsHeight
} }
Text{ Text{
text: "Mask"+space text: "Max Length (user)"+space
} }
Text{ Text{
text: dock.maskArea.x +", "+ dock.maskArea.y+" "+dock.maskArea.width+"x"+dock.maskArea.height text: plasmoid.configuration.maxLength +"%"
} }
Text{ Text{
text: "Local Geometry"+space text: "Max Length (pixels)"+space
} }
Text{ Text{
text: dock.localGeometry.x + ", " + dock.localGeometry.y + " " + text: root.maxLength
dock.localGeometry.width + "x" + dock.localGeometry.height }
}
Text{ Text{
text: "Is Hidden (flag)"+space text: "Mask"+space
} }
Text{ Text{
text: { text: dock.maskArea.x +", "+ dock.maskArea.y+" "+dock.maskArea.width+"x"+dock.maskArea.height
if (dock.visibility.isHidden)
return "Yes";
else
return "No";
} }
}
Text{ Text{
text: "Actions Block Hiding "+space text: "Local Geometry"+space
} }
Text{ Text{
text: root.actionsBlockHiding text: dock.localGeometry.x + ", " + dock.localGeometry.y + " " +
} dock.localGeometry.width + "x" + dock.localGeometry.height
}
Text{ Text{
text: "Contains Mouse (flag)"+space text: "Is Hidden (flag)"+space
} }
Text{ Text{
text: { text: {
if (dock.visibility.containsMouse) if (dock.visibility.isHidden)
return "Yes"; return "Yes";
else else
return "No"; return "No";
}
} }
}
Text{ Text{
text: "Edit Mode"+space text: "Actions Block Hiding "+space
} }
Text{ Text{
text: { text: root.actionsBlockHiding
if (root.editMode)
return "Yes";
else
return "No";
} }
}
Text{ Text{
text: " ----------- " text: "Contains Mouse (flag)"+space
} }
Text{ Text{
text: " ----------- " text: {
} if (dock.visibility.containsMouse)
return "Yes";
else
return "No";
}
}
Text{ Text{
text: "Location"+space text: "Edit Mode"+space
} }
Text{ Text{
text: { text: {
switch(plasmoid.location){ if (root.editMode)
case PlasmaCore.Types.LeftEdge: return "Yes";
return "Left Edge"; else
break; return "No";
case PlasmaCore.Types.RightEdge:
return "Right Edge";
break;
case PlasmaCore.Types.TopEdge:
return "Top Edge";
break;
case PlasmaCore.Types.BottomEdge:
return "Bottom Edge";
break;
} }
}
return " <unknown> : " + plasmoid.location; Text{
text: " ----------- "
} }
}
Text{ Text{
text: "Alignment"+space text: " ----------- "
} }
Text{ Text{
text: { text: "Location"+space
switch(plasmoid.configuration.panelPosition){ }
case Latte.Dock.Left:
return "Left";
break;
case Latte.Dock.Right:
return "Right";
break;
case Latte.Dock.Center:
return "Center";
break;
case Latte.Dock.Top:
return "Top";
break;
case Latte.Dock.Bottom:
return "Bottom";
break;
case Latte.Dock.Justify:
return "Justify";
break;
}
return "<unknown> : " + plasmoid.configuration.panelPosition; Text{
text: {
switch(plasmoid.location){
case PlasmaCore.Types.LeftEdge:
return "Left Edge";
break;
case PlasmaCore.Types.RightEdge:
return "Right Edge";
break;
case PlasmaCore.Types.TopEdge:
return "Top Edge";
break;
case PlasmaCore.Types.BottomEdge:
return "Bottom Edge";
break;
}
return " <unknown> : " + plasmoid.location;
}
} }
}
Text{ Text{
text: "Visibility"+space text: "Alignment"+space
} }
Text{ Text{
text: { text: {
switch(dock.visibility.mode){ switch(plasmoid.configuration.panelPosition){
case Latte.Dock.AlwaysVisible: case Latte.Dock.Left:
return "Always Visible"; return "Left";
break; break;
case Latte.Dock.AutoHide: case Latte.Dock.Right:
return "Auto Hide"; return "Right";
break; break;
case Latte.Dock.DodgeActive: case Latte.Dock.Center:
return "Dodge Active"; return "Center";
break; break;
case Latte.Dock.DodgeMaximized: case Latte.Dock.Top:
return "Dodge Maximized"; return "Top";
break; break;
case Latte.Dock.DodgeAllWindows: case Latte.Dock.Bottom:
return "Dodge All Windows"; return "Bottom";
break; break;
case Latte.Dock.None: case Latte.Dock.Justify:
return "None"; return "Justify";
break; break;
}
return "<unknown> : " + plasmoid.configuration.panelPosition;
} }
}
return "<unknown> : " + dock.visibility.mode; Text{
text: "Visibility"+space
} }
}
Text{ Text{
text: "Zoom Factor"+space text: {
} switch(dock.visibility.mode){
case Latte.Dock.AlwaysVisible:
return "Always Visible";
break;
case Latte.Dock.AutoHide:
return "Auto Hide";
break;
case Latte.Dock.DodgeActive:
return "Dodge Active";
break;
case Latte.Dock.DodgeMaximized:
return "Dodge Maximized";
break;
case Latte.Dock.DodgeAllWindows:
return "Dodge All Windows";
break;
case Latte.Dock.None:
return "None";
break;
}
return "<unknown> : " + dock.visibility.mode;
}
}
Text{ Text{
text: root.zoomFactor text: "Zoom Factor"+space
} }
Text{ Text{
text: " ----------- " text: root.zoomFactor
} }
Text{ Text{
text: " ----------- " text: " ----------- "
} }
Text{ Text{
text: "Icon Size (user)"+space text: " ----------- "
} }
Text{ Text{
text: plasmoid.configuration.iconSize text: "Icon Size (user)"+space
} }
Text{ Text{
text: "Icon Size (proportion)"+space text: plasmoid.configuration.iconSize
} }
Text{ Text{
text: root.proportionIconSize text: "Icon Size (proportion)"+space
} }
Text{ Text{
text: "Icon Size (automatic)"+space text: root.proportionIconSize
} }
Text{ Text{
text: root.automaticIconSizeBasedSize text: "Icon Size (automatic)"+space
} }
Text{ Text{
text: "Icon Size (current)"+space text: root.automaticIconSizeBasedSize
} }
Text{ Text{
text: root.iconSize text: "Icon Size (current)"+space
} }
Text{ Text{
text: "Icon Margin"+space text: root.iconSize
} }
Text{ Text{
text: root.iconMargin text: "Icon Margin"+space
} }
Text{ Text{
text: "Thick Margin Base"+space text: root.iconMargin
} }
Text{ Text{
text: root.thickMarginBase text: "Thick Margin Base"+space
} }
Text{ Text{
text: "Thick Margin High"+space text: root.thickMarginBase
} }
Text{ Text{
text: root.thickMarginHigh text: "Thick Margin High"+space
} }
Text{ Text{
text: " ----------- " text: root.thickMarginHigh
} }
Text{ Text{
text: " ----------- " text: " ----------- "
} }
Text{ Text{
text: "Show Panel Background (user)"+space text: " ----------- "
} }
Text{ Text{
text: { text: "Show Panel Background (user)"+space
if (plasmoid.configuration.useThemePanel)
return "Yes";
else
return "No";
} }
}
Text{ Text{
text: "Panel Background Length"+space text: {
} if (plasmoid.configuration.useThemePanel)
return "Yes";
else
return "No";
}
}
Text{ Text{
text: root.realPanelLength text: "Panel Background Length"+space
} }
Text{ Text{
text: "Panel Background Thickness(user)"+space text: root.realPanelLength
} }
Text{ Text{
text: plasmoid.configuration.panelSize + "%" text: "Panel Background Thickness(user)"+space
} }
Text{ Text{
text: "Panel Background Thickness(automatic)"+space text: plasmoid.configuration.panelSize + "%"
} }
Text{ Text{
text: root.realPanelSize text: "Panel Background Thickness(automatic)"+space
} }
Text{ Text{
text: "Panel Background Shadow"+space text: root.realPanelSize
} }
Text{ Text{
text: root.panelShadow text: "Panel Background Shadow"+space
} }
Text{ Text{
text: "Panel Background Margin"+space text: root.panelShadow
} }
Text{ Text{
text: root.panelMargin text: "Panel Background Margin"+space
} }
Text{ Text{
text: " ----------- " text: root.panelMargin
} }
Text{ Text{
text: " ----------- " text: " ----------- "
} }
Text{ Text{
text: "Mask - Normal Thickness"+space text: " ----------- "
} }
Text{ Text{
text: visibilityManager.thicknessNormal text: "Mask - Normal Thickness"+space
} }
Text{ Text{
text: "Thickness Uses Panel Size"+space text: visibilityManager.thicknessNormal
} }
Text{ Text{
text: visibilityManager.panelIsBiggerFromIconSize text: "Thickness Uses Panel Size"+space
} }
Text{ Text{
text: "Draw Shadows (external)"+space text: visibilityManager.panelIsBiggerFromIconSize
} }
Text{ Text{
text: { text: "Draw Shadows (external)"+space
if (root.drawShadowsExternal)
return "Yes";
else
return "No";
} }
}
Text{ Text{
text: " ----------- " text: {
} if (root.drawShadowsExternal)
return "Yes";
else
return "No";
}
}
Text{ Text{
text: " ----------- " text: " ----------- "
} }
Text{ Text{
text: "Applet Hovered"+space text: " ----------- "
} }
Text{ Text{
text: layoutsContainer.hoveredIndex text: "Applet Hovered"+space
} }
Text{ Text{
text: "Task Hovered"+space text: layoutsContainer.hoveredIndex
} }
Text{ Text{
text: root.latteAppletHoveredIndex text: "Task Hovered"+space
} }
Text{ Text{
text: "In Normal State"+space text: root.latteAppletHoveredIndex
} }
Text{ Text{
text: visibilityManager.normalState text: "In Normal State"+space
} }
Text{ Text{
text: "Animations Both Axis"+space text: visibilityManager.normalState
} }
Text{ Text{
text: root.animationsNeedBothAxis text: "Animations Both Axis"+space
} }
Text{ Text{
text: "Animations Only Length"+space text: root.animationsNeedBothAxis
} }
Text{ Text{
text: root.animationsNeedLength text: "Animations Only Length"+space
} }
Text{ Text{
text: "Animations Need Thickness"+space text: root.animationsNeedLength
} }
Text{ Text{
text: root.animationsNeedThickness text: "Animations Need Thickness"+space
}
Text{
text: root.animationsNeedThickness
}
} }
} }

Loading…
Cancel
Save