Warning, /plasma/latte-dock/containment/package/contents/ui/debugger/DebugWindow.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2016 Smith AR <audoban@openmailbox.org> 0003 SPDX-FileCopyrightText: 2016 Michail Vourlakos <mvourlakos@gmail.com> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.1 0008 import QtQuick.Window 2.2 0009 0010 import org.kde.plasma.core 2.0 as PlasmaCore 0011 import org.kde.plasma.extras 2.0 as PlasmaExtras 0012 0013 import org.kde.latte.core 0.2 as LatteCore 0014 0015 Window{ 0016 width: mainGrid.width + 10 0017 height: Math.min(mainGrid.height+10, Screen.height - metrics.mask.thickness.maxNormalForItems) 0018 visible: true 0019 title: "#debugwindow#" 0020 0021 property string space:" : " 0022 0023 PlasmaExtras.ScrollArea { 0024 id: scrollArea 0025 0026 anchors.fill: parent 0027 verticalScrollBarPolicy: Qt.ScrollBarAsNeeded 0028 horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff 0029 0030 flickableItem.flickableDirection: Flickable.VerticalFlick 0031 0032 Grid{ 0033 id:mainGrid 0034 columns: 2 0035 0036 Text{ 0037 text: "Name"+space 0038 } 0039 0040 Text{ 0041 text: latteView && latteView.name.length > 0 ? latteView.name : "___" 0042 } 0043 0044 Text{ 0045 text: "Screen id"+space 0046 } 0047 0048 Text{ 0049 text: latteView && latteView.positioner ? latteView.positioner.currentScreenName : "___" 0050 } 0051 0052 Text{ 0053 text: "Screen Geometry"+space 0054 } 0055 0056 Text{ 0057 text: { 0058 if (latteView && latteView.screenGeometry){ 0059 return latteView.screenGeometry.x+","+latteView.screenGeometry.y+ " "+latteView.screenGeometry.width+"x"+latteView.screenGeometry.height; 0060 } else { 0061 return "_,_ _x_"; 0062 } 0063 } 0064 } 0065 0066 Text{ 0067 text: "Window Geometry"+space 0068 } 0069 0070 Text{ 0071 text: { 0072 if (latteView) { 0073 return latteView.x + "," + latteView.y + " "+latteView.width+ "x"+latteView.height; 0074 } else { 0075 return "_,_ _x_"; 0076 } 0077 } 0078 } 0079 0080 Text{ 0081 text: "On Primary"+space 0082 } 0083 0084 Text{ 0085 text: { 0086 if (latteView && latteView.onPrimary) 0087 return "Yes"; 0088 else 0089 return "No"; 0090 } 0091 } 0092 0093 Text{ 0094 text: " ----------- " 0095 } 0096 0097 Text{ 0098 text: " ----------- " 0099 } 0100 0101 Text{ 0102 text: "Contents Width"+space 0103 } 0104 0105 Text{ 0106 text: layoutsContainer.contentsWidth 0107 } 0108 0109 Text{ 0110 text: "Contents Height"+space 0111 } 0112 0113 Text{ 0114 text: layoutsContainer.contentsHeight 0115 } 0116 0117 Text{ 0118 text: "Max Length"+space 0119 } 0120 0121 Text{ 0122 text: root.maxLengthPerCentage +"%" 0123 } 0124 0125 Text{ 0126 text: "Max Length (pixels)"+space 0127 } 0128 0129 Text{ 0130 text: root.maxLength 0131 } 0132 0133 Text{ 0134 text: "Min Length"+space 0135 } 0136 0137 Text{ 0138 text: root.minLengthPerCentage +"%" 0139 } 0140 0141 Text{ 0142 text: "Min Length (pixels)"+space 0143 } 0144 0145 Text{ 0146 text: root.minLength 0147 } 0148 0149 Text{ 0150 text: "Offset (pixels)"+space 0151 } 0152 0153 Text{ 0154 text: root.offset 0155 } 0156 0157 Text{ 0158 text: "Mask"+space 0159 } 0160 0161 Text{ 0162 text: { 0163 if (latteView && latteView.effects && latteView.effects.mask) { 0164 return latteView.effects.mask.x +", "+ latteView.effects.mask.y+" "+latteView.effects.mask.width+"x"+latteView.effects.mask.height; 0165 } else { 0166 return "_,_ _x_"; 0167 } 0168 } 0169 } 0170 0171 Text{ 0172 text: "Input "+space 0173 } 0174 0175 Text{ 0176 text: { 0177 if (latteView && latteView.effects && latteView.effects.inputMask) { 0178 return latteView.effects.inputMask.x +", "+ latteView.effects.inputMask.y+" "+latteView.effects.inputMask.width+"x"+latteView.effects.inputMask.height; 0179 } else { 0180 return "_,_ _x_"; 0181 } 0182 } 0183 } 0184 0185 Text{ 0186 text: "Local Geometry"+space 0187 } 0188 0189 Text{ 0190 text: { 0191 if (latteView && latteView.localGeometry) { 0192 return latteView.localGeometry.x + ", " + latteView.localGeometry.y + " " + latteView.localGeometry.width + "x" + latteView.localGeometry.height; 0193 } else { 0194 return "_,_ _x_"; 0195 } 0196 } 0197 } 0198 0199 Text{ 0200 text: "Absolute Geometry"+space 0201 } 0202 0203 Text{ 0204 text: { 0205 if (latteView && latteView.absoluteGeometry) { 0206 return latteView.absoluteGeometry.x + ", " + latteView.absoluteGeometry.y + " " + latteView.absoluteGeometry.width + "x" + latteView.absoluteGeometry.height; 0207 } else { 0208 return "_,_ _x_"; 0209 } 0210 } 0211 } 0212 0213 0214 Text{ 0215 text: "Draw Effects"+space 0216 } 0217 0218 Text{ 0219 text: { 0220 if (latteView && latteView.effects && latteView.effects.drawEffects) 0221 return "Yes"; 0222 else 0223 return "No"; 0224 } 0225 } 0226 0227 Text{ 0228 text: "Effects Area"+space 0229 } 0230 0231 Text{ 0232 text: { 0233 if (latteView && latteView.effects && latteView.effects.rect) { 0234 return latteView.effects.rect.x + ", " + latteView.effects.rect.y + " " +latteView.effects.rect.width + "x" + latteView.effects.rect.height; 0235 } else { 0236 return "_,_ _x_"; 0237 } 0238 } 0239 } 0240 0241 Text{ 0242 text: " ----------- " 0243 } 0244 0245 Text{ 0246 text: " ----------- " 0247 } 0248 0249 Text{ 0250 text: "Is Hidden (flag)"+space 0251 } 0252 0253 Text{ 0254 text: { 0255 if (latteView && latteView.visibility && latteView.visibility.isHidden) 0256 return "Yes"; 0257 else 0258 return "No"; 0259 } 0260 } 0261 0262 Text{ 0263 text: "Contains Mouse (flag)"+space 0264 } 0265 0266 Text{ 0267 text: { 0268 if (latteView && latteView.visibility && latteView.visibility.containsMouse) 0269 return "Yes"; 0270 else 0271 return "No"; 0272 } 0273 } 0274 0275 Text{ 0276 text: "Edit Mode"+space 0277 } 0278 0279 Text{ 0280 text: { 0281 if (root.editMode) 0282 return "Yes"; 0283 else 0284 return "No"; 0285 } 0286 } 0287 0288 Text{ 0289 text: " ----------- " 0290 } 0291 0292 Text{ 0293 text: " ----------- " 0294 } 0295 0296 Text{ 0297 text: "Location"+space 0298 } 0299 0300 Text{ 0301 text: { 0302 switch(plasmoid.location){ 0303 case PlasmaCore.Types.LeftEdge: 0304 return "Left Edge"; 0305 break; 0306 case PlasmaCore.Types.RightEdge: 0307 return "Right Edge"; 0308 break; 0309 case PlasmaCore.Types.TopEdge: 0310 return "Top Edge"; 0311 break; 0312 case PlasmaCore.Types.BottomEdge: 0313 return "Bottom Edge"; 0314 break; 0315 } 0316 0317 return " <unknown> : " + plasmoid.location; 0318 } 0319 } 0320 0321 Text{ 0322 text: "Alignment"+space 0323 } 0324 0325 Text{ 0326 text: { 0327 switch(plasmoid.configuration.alignment){ 0328 case LatteCore.Types.Left: 0329 return "Left"; 0330 break; 0331 case LatteCore.Types.Right: 0332 return "Right"; 0333 break; 0334 case LatteCore.Types.Center: 0335 return "Center"; 0336 break; 0337 case LatteCore.Types.Top: 0338 return "Top"; 0339 break; 0340 case LatteCore.Types.Bottom: 0341 return "Bottom"; 0342 break; 0343 case LatteCore.Types.Justify: 0344 return "Justify"; 0345 break; 0346 } 0347 0348 return "<unknown> : " + plasmoid.configuration.alignment; 0349 } 0350 } 0351 0352 Text{ 0353 text: "Visibility"+space 0354 } 0355 0356 Text{ 0357 text: { 0358 if (!latteView || !latteView.visibility) 0359 return ""; 0360 0361 switch(latteView.visibility.mode){ 0362 case LatteCore.Types.AlwaysVisible: 0363 return "Always Visible"; 0364 break; 0365 case LatteCore.Types.AutoHide: 0366 return "Auto Hide"; 0367 break; 0368 case LatteCore.Types.DodgeActive: 0369 return "Dodge Active"; 0370 break; 0371 case LatteCore.Types.DodgeMaximized: 0372 return "Dodge Maximized"; 0373 break; 0374 case LatteCore.Types.DodgeAllWindows: 0375 return "Dodge All Windows"; 0376 break; 0377 case LatteCore.Types.DodgeAllWindows: 0378 return "Dodge All Windows"; 0379 break; 0380 case LatteCore.Types.WindowsGoBelow: 0381 return "Windows Go Below"; 0382 break; 0383 case LatteCore.Types.WindowsCanCover: 0384 return "Windows Can Cover"; 0385 break; 0386 case LatteCore.Types.WindowsAlwaysCover: 0387 return "Windows Always Cover"; 0388 break; 0389 case LatteCore.Types.SidebarOnDemand: 0390 return "OnDemand Sidebar"; 0391 break; 0392 case LatteCore.Types.SidebarAutoHide: 0393 return "AutoHide Sidebar"; 0394 break; 0395 case LatteCore.Types.NormalWindow: 0396 return "Normal Window"; 0397 break; 0398 case LatteCore.Types.None: 0399 return "None"; 0400 break; 0401 } 0402 0403 return "<unknown> : " + latteView.visibility.mode; 0404 } 0405 } 0406 0407 Text{ 0408 text: "Zoom Factor"+space 0409 } 0410 0411 Text{ 0412 text: parabolic.factor.zoom 0413 } 0414 0415 Text{ 0416 text: " ----------- " 0417 } 0418 0419 Text{ 0420 text: " ----------- " 0421 } 0422 0423 Text{ 0424 text: "Icon Size (current)"+space 0425 } 0426 0427 Text{ 0428 text: metrics.iconSize 0429 } 0430 0431 Text{ 0432 text: "Icon Size (user)"+space 0433 } 0434 0435 Text{ 0436 text: plasmoid.configuration.iconSize 0437 } 0438 0439 Text{ 0440 text: "Icon Size (portion)"+space 0441 } 0442 0443 Text{ 0444 text: metrics.portionIconSize 0445 } 0446 0447 Text{ 0448 text: "Icon Size (auto decrease), Enabled"+space 0449 } 0450 0451 Text{ 0452 text: { 0453 if (autosize.isActive) 0454 return "Yes"; 0455 else 0456 return "No"; 0457 } 0458 } 0459 0460 Text{ 0461 text: "Icon Size (auto decrease)"+space 0462 } 0463 0464 Text{ 0465 text: autosize.iconSize 0466 } 0467 0468 Text{ 0469 text: "Length Padding (pixels)"+space 0470 } 0471 0472 Text{ 0473 text: metrics.padding.length 0474 } 0475 0476 Text{ 0477 text: "Length Margin (pixels)"+space 0478 } 0479 0480 Text{ 0481 text: metrics.margin.length 0482 } 0483 0484 Text{ 0485 text: "Head Thickness Margin"+space 0486 } 0487 0488 Text{ 0489 text: metrics.margin.headThickness 0490 } 0491 0492 Text{ 0493 text: "Tail Thickness Margin"+space 0494 } 0495 0496 Text{ 0497 text: metrics.margin.tailThickness 0498 } 0499 0500 Text{ 0501 text: " ----------- " 0502 } 0503 0504 Text{ 0505 text: " ----------- " 0506 } 0507 0508 Text{ 0509 text: "Show Panel Background (user)"+space 0510 } 0511 0512 Text{ 0513 text: { 0514 if (plasmoid.configuration.useThemePanel) 0515 return "Yes"; 0516 else 0517 return "No"; 0518 } 0519 } 0520 0521 Text{ 0522 text: "Force Transparent Panel (auto)"+space 0523 } 0524 0525 Text{ 0526 text: { 0527 if (root.forceTransparentPanel) 0528 return "Yes"; 0529 else 0530 return "No"; 0531 } 0532 } 0533 0534 Text{ 0535 text: "Background Length"+space 0536 } 0537 0538 Text{ 0539 text: background.totals.visualLength 0540 } 0541 0542 Text{ 0543 text: "Background Thickness(user)"+space 0544 } 0545 0546 Text{ 0547 text: plasmoid.configuration.panelSize + "%" 0548 } 0549 0550 Text{ 0551 text: "Background Thickness(auto)"+space 0552 } 0553 0554 Text{ 0555 text: background.totals.visualThickness 0556 } 0557 0558 Text{ 0559 text: "Background Opacity"+space 0560 } 0561 0562 Text{ 0563 text: (root.myView.backgroundOpacity * 100) + "%" 0564 } 0565 0566 Text{ 0567 text: "Background Shadows Active"+space 0568 } 0569 0570 Text{ 0571 text: { 0572 if (root.panelShadowsActive) 0573 return "Yes"; 0574 else 0575 return "No"; 0576 } 0577 } 0578 0579 Text{ 0580 text: "Background Shadow"+space 0581 } 0582 0583 Text{ 0584 text: background.shadows.headThickness 0585 } 0586 0587 Text{ 0588 text: "Background Head Thickness Padding"+space 0589 } 0590 0591 Text{ 0592 text: background.paddings.headThickness 0593 } 0594 0595 Text{ 0596 text: " ----------- " 0597 } 0598 0599 Text{ 0600 text: " ----------- " 0601 } 0602 0603 Text{ 0604 text: "Mask - Normal Thickness"+space 0605 } 0606 0607 Text{ 0608 text: metrics.mask.thickness.normal 0609 } 0610 0611 Text{ 0612 text: "Thickness Uses Panel Size"+space 0613 } 0614 0615 Text{ 0616 text: background.isGreaterThanItemThickness 0617 } 0618 0619 Text{ 0620 text: "Behave As Plasma Panel"+space 0621 } 0622 0623 Text{ 0624 text: { 0625 if (root.behaveAsPlasmaPanel) 0626 return "Yes"; 0627 else 0628 return "No"; 0629 } 0630 } 0631 0632 Text{ 0633 text: "Draw Shadows (external)"+space 0634 } 0635 0636 Text{ 0637 text: { 0638 if (root.drawShadowsExternal) 0639 return "Yes"; 0640 else 0641 return "No"; 0642 } 0643 } 0644 0645 Text{ 0646 text: " ----------- " 0647 } 0648 0649 Text{ 0650 text: " ----------- " 0651 } 0652 0653 Text{ 0654 text: "Applet Hovered"+space 0655 } 0656 0657 Text{ 0658 text: "--"//layoutsContainer.hoveredIndex 0659 } 0660 0661 Text{ 0662 text: "In Normal State"+space 0663 } 0664 0665 Text{ 0666 text: visibilityManager.inNormalState 0667 } 0668 0669 Text{ 0670 text: "Animations Both Axis"+space 0671 } 0672 0673 Text{ 0674 text: animations.needBothAxis.count 0675 } 0676 0677 Text{ 0678 text: "Animations Only Length"+space 0679 } 0680 0681 Text{ 0682 text: animations.needLength.count 0683 } 0684 0685 Text{ 0686 text: "Animations Need Thickness"+space 0687 } 0688 0689 Text{ 0690 text: animations.needThickness.count 0691 } 0692 0693 Text{ 0694 text: " ----------- " 0695 } 0696 0697 Text{ 0698 text: " ----------- " 0699 } 0700 0701 Text{ 0702 text: "Start Layout Shown Applets"+space 0703 } 0704 0705 Text{ 0706 text: layouter.startLayout.shownApplets 0707 } 0708 0709 Text{ 0710 text: "Start Layout Applets (with fill)"+space 0711 } 0712 0713 Text{ 0714 text: layouter.startLayout.fillApplets 0715 } 0716 0717 Text{ 0718 text: "Start Layout Size (no fill applets)"+space 0719 } 0720 0721 Text{ 0722 text: layouter.startLayout.sizeWithNoFillApplets+" px." 0723 } 0724 0725 Text{ 0726 text: " ----------- " 0727 } 0728 0729 Text{ 0730 text: " ----------- " 0731 } 0732 0733 Text{ 0734 text: "Main Layout Shown Applets"+space 0735 } 0736 0737 Text{ 0738 text: layouter.mainLayout.shownApplets 0739 } 0740 0741 Text{ 0742 text: "Main Layout Applets (with fill)"+space 0743 } 0744 0745 Text{ 0746 text: layouter.mainLayout.fillApplets 0747 } 0748 0749 Text{ 0750 text: "Main Layout Size (no fill applets)"+space 0751 } 0752 0753 Text{ 0754 text: layouter.mainLayout.sizeWithNoFillApplets+" px." 0755 } 0756 0757 Text{ 0758 text: " ----------- " 0759 } 0760 0761 Text{ 0762 text: " ----------- " 0763 } 0764 0765 Text{ 0766 text: "End Layout Shown Applets"+space 0767 } 0768 0769 Text{ 0770 text: layouter.endLayout.shownApplets 0771 } 0772 0773 Text{ 0774 text: "End Layout Applets (with fill)"+space 0775 } 0776 0777 Text{ 0778 text: layouter.endLayout.fillApplets 0779 } 0780 0781 Text{ 0782 text: "End Layout Size (no fill applets)"+space 0783 } 0784 0785 Text{ 0786 text: layouter.endLayout.sizeWithNoFillApplets+" px." 0787 } 0788 0789 Text{ 0790 text: " ----------- " 0791 } 0792 0793 Text{ 0794 text: " ----------- " 0795 } 0796 0797 Text{ 0798 text: "Animations ZoomFactor" + space 0799 } 0800 0801 Text{ 0802 text: animations.requirements.zoomFactor 0803 } 0804 0805 Text{ 0806 text: " ----------- " 0807 } 0808 0809 Text{ 0810 text: " ----------- " 0811 } 0812 0813 Text{ 0814 text: "Applets need Windows Tracking"+space 0815 } 0816 0817 Text{ 0818 text: indexer.clientsTrackingWindowsCount 0819 } 0820 0821 Text{ 0822 text: "Last Active Window Current Screen (id)"+space 0823 } 0824 0825 Text{ 0826 text: latteView && latteView.windowsTracker && latteView.windowsTracker.currentScreen.lastActiveWindow && latteView.windowsTracker.currentScreen.lastActiveWindow.isValid ? 0827 latteView.windowsTracker.currentScreen.lastActiveWindow.winId : "--" 0828 } 0829 0830 Text{ 0831 text: "Last Active Window Current Screen (title)"+space 0832 } 0833 0834 Text{ 0835 text: latteView && latteView.windowsTracker && latteView.windowsTracker.currentScreen.lastActiveWindow && latteView.windowsTracker.currentScreen.lastActiveWindow.isValid ? 0836 latteView.windowsTracker.currentScreen.lastActiveWindow.display : "--" 0837 elide: Text.ElideRight 0838 } 0839 0840 Text{ 0841 text: "Last Active Window All Screens (id)"+space 0842 } 0843 0844 Text{ 0845 text: latteView && latteView.windowsTracker && latteView.windowsTracker.allScreens.lastActiveWindow && latteView.windowsTracker.allScreens.lastActiveWindow.isValid ? 0846 latteView.windowsTracker.allScreens.lastActiveWindow.winId : "--" 0847 } 0848 0849 Text{ 0850 text: "Last Active Window All Screens (title)"+space 0851 } 0852 0853 Text{ 0854 text: latteView && latteView.windowsTracker && latteView.windowsTracker.allScreens.lastActiveWindow && latteView.windowsTracker.allScreens.lastActiveWindow.isValid ? 0855 latteView.windowsTracker.allScreens.lastActiveWindow.display : "--" 0856 elide: Text.ElideRight 0857 } 0858 } 0859 0860 } 0861 }