Warning, /graphics/krita/libs/libqml/qml/panels/EditPresetPage.qml is written in an unsupported language. File is not indexed.
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2012 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 2.3 0008 import org.krita.sketch 1.0 0009 import org.krita.sketch.components 1.0 0010 0011 Page { 0012 Flickable { 0013 anchors.fill: parent; 0014 anchors.margins: Constants.DefaultMargin; 0015 0016 contentWidth: width; 0017 contentHeight: contents.height; 0018 0019 Column { 0020 id: contents; 0021 width: parent.width; 0022 0023 TextField { placeholder: "Name"; text: "New Preset"; } 0024 0025 Label { text: "Tool" } 0026 0027 ListView { 0028 width: parent.width; 0029 height: Constants.GridHeight; 0030 orientation: ListView.Horizontal; 0031 spacing: Constants.DefaultMargin; 0032 clip: true; 0033 0034 delegate: Button { 0035 width: Constants.GridWidth; 0036 height: Constants.GridHeight; 0037 text: model.name; 0038 textSize: Constants.SmallFontSize; 0039 checked: ListView.isCurrentItem; 0040 0041 onClicked: ListView.view.currentIndex = index; 0042 } 0043 0044 model: ListModel { 0045 ListElement { name: "Round"; } 0046 ListElement { name: "Square"; } 0047 ListElement { name: "Smudge"; } 0048 ListElement { name: "Fill"; } 0049 } 0050 } 0051 0052 Label { text: "Brush Tip" } 0053 0054 TextField { placeholder: "Diameter"; text: "10"; } 0055 TextField { placeholder: "Ratio"; text: "1.0"; } 0056 TextField { placeholder: "Fade"; text: "100%"; } 0057 TextField { placeholder: "Angle"; text: "0"; } 0058 0059 Label { text: "Distribution" } 0060 0061 TextField { placeholder: "Randomness"; text: "0"; } 0062 TextField { placeholder: "Density"; text: "100%"; } 0063 TextField { placeholder: "Spacing"; text: "0.10"; } 0064 } 0065 } 0066 }