Warning, /maui/mauikit/src/csd.6/Breeze/CSD.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick
0002 import QtQuick.Controls
0003 import QtQuick.Window
0004 
0005 import org.mauikit.controls as Maui
0006 
0007 Control
0008 {
0009     id: control
0010     
0011     implicitHeight: implicitContentHeight + topPadding + bottomPadding
0012     implicitWidth: implicitContentWidth + leftPadding + rightPadding
0013 
0014     spacing: Maui.Style.space.small
0015     padding: Maui.Style.defaultPadding
0016 
0017     contentItem: Row
0018     {
0019         spacing: control.spacing
0020         
0021         ToolSeparator
0022         {
0023             height: 8
0024             anchors.verticalCenter: parent.verticalCenter
0025         }
0026         
0027         Repeater
0028         {
0029             model: buttonsModel
0030             delegate: pluginButton
0031         }
0032     }
0033     
0034     Component
0035     {
0036         id: pluginButton
0037         
0038         AbstractButton
0039         {
0040             id: _button
0041             visible: switch(modelData)
0042             {
0043                 case "A" : return canMaximize 
0044                 case "I": return canMinimize
0045                 default: return true
0046             }
0047             
0048             hoverEnabled: true
0049             width: 16
0050             height: 16
0051             
0052             Maui.CSDButton
0053             {
0054                 id: button
0055                 style: "Breeze"
0056                 type: mapType(modelData)
0057                 isHovered: _button.hovered
0058                 isPressed: _button.pressed
0059                 isFocused:  isActiveWindow
0060                 isMaximized: maximized
0061             }
0062             
0063             contentItem: Maui.Icon
0064             {
0065                 smooth: true
0066                 source: button.source
0067                 isMask: false
0068             }
0069             
0070             onClicked: buttonClicked(button.type)
0071         }
0072     }
0073 }