Warning, /graphics/krita/libs/libqml/qml/panels/tooloverlays/select.qml is written in an unsupported language. File is not indexed.
0001 /* This file is part of the KDE project
0002 * SPDX-FileCopyrightText: 2012 Dan Leinir Turthra Jensen <admin@leinir.dk>
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 Item {
0012 height: Constants.GridHeight * 2 + Constants.DefaultMargin * 3;
0013 Rectangle {
0014 anchors {
0015 top: parent.top;
0016 bottom: parent.bottom;
0017 right: parent.right;
0018 }
0019 opacity: sketchView.selectionManager.havePixelsSelected ? 1 : 0;
0020 Behavior on opacity { PropertyAnimation { duration: Constants.AnimationDuration; } }
0021 width: Constants.GridWidth * 2 + Constants.DefaultMargin * 3;
0022 color: "#63ffffff";
0023 border.width: 1;
0024 border.color: "silver";
0025 radius: Constants.DefaultMargin;
0026
0027 Button {
0028 anchors {
0029 left: parent.left;
0030 top: parent.top;
0031 margins: Constants.DefaultMargin;
0032 }
0033 text: "Cut";
0034 textColor: "black";
0035 color: "#63ffffff";
0036 border.width: 1;
0037 border.color: "silver";
0038 radius: Constants.DefaultMargin;
0039 onClicked: sketchView.selectionManager.cut();
0040 }
0041 Button {
0042 anchors {
0043 right: parent.right;
0044 top: parent.top;
0045 margins: Constants.DefaultMargin;
0046 }
0047 text: "Cut to Layer";
0048 textColor: "black";
0049 color: "#63ffffff";
0050 border.width: 1;
0051 border.color: "silver";
0052 radius: Constants.DefaultMargin;
0053 onClicked: sketchView.selectionManager.cutToNewLayer();
0054 }
0055 Button {
0056 anchors {
0057 left: parent.left;
0058 bottom: parent.bottom;
0059 margins: Constants.DefaultMargin;
0060 }
0061 text: "Copy";
0062 textColor: "black";
0063 color: "#63ffffff";
0064 border.width: 1;
0065 border.color: "silver";
0066 radius: Constants.DefaultMargin;
0067 onClicked: sketchView.selectionManager.copy();
0068 }
0069 Button {
0070 anchors {
0071 right: parent.right;
0072 bottom: parent.bottom;
0073 margins: Constants.DefaultMargin;
0074 }
0075 text: "Copy Merged";
0076 textColor: "black";
0077 color: "#63ffffff";
0078 border.width: 1;
0079 border.color: "silver";
0080 radius: Constants.DefaultMargin;
0081 onClicked: sketchView.selectionManager.copyMerged();
0082 }
0083 }
0084 }