Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<author>
SPDX-FileCopyrightText: none
SPDX-License-Identifier: GPL-3.0-or-later
</author>
<class>WdgToolCrop</class>
<widget class="QWidget" name="WdgToolCrop">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>306</width>
<height>304</height>
</rect>
</property>
<property name="windowTitle">
<string>Crop</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<item>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>5</number>
</property>
<property name="topMargin">
<number>5</number>
</property>
<property name="rightMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<property name="spacing">
<number>5</number>
</property>
<item row="2" column="1">
<widget class="QCheckBox" name="boolCenter">
<property name="toolTip">
<string>Resize keeping center fixed</string>
</property>
<property name="text">
<string>Center</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_vertiPos">
<property name="toolTip">
<string>Vertical Position</string>
</property>
<property name="text">
<string>&Y:</string>
</property>
<property name="buddy">
<cstring>intY</cstring>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_horizPos">
<property name="toolTip">
<string>Horizontal Position</string>
</property>
<property name="text">
<string>&X:</string>
</property>
<property name="buddy">
<cstring>intX</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="KisIntParseSpinBox" name="intX">
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Horizontal Position</string>
</property>
<property name="suffix">
<string> px</string>
</property>
<property name="minimum">
<number>-30000</number>
</property>
<property name="maximum">
<number>30000</number>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="KisIntParseSpinBox" name="intY">
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Vertical Position</string>
</property>
<property name="suffix">
<string> px</string>
</property>
<property name="minimum">
<number>-30000</number>
</property>
<property name="maximum">
<number>30000</number>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QCheckBox" name="boolGrow">
<property name="toolTip">
<string>Allow growing the image by dragging outside bounds of the image</string>
</property>
<property name="text">
<string comment="Grow as in crop tool">Grow</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_2">
<property name="leftMargin">
<number>5</number>
</property>
<property name="topMargin">
<number>5</number>
</property>
<property name="rightMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<property name="spacing">
<number>5</number>
</property>
<item row="3" column="2">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="2">
<widget class="QLabel" name="heightLabel">
<property name="toolTip">
<string>Height</string>
</property>
<property name="text">
<string>Height:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="KisIntParseSpinBox" name="intHeight">
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Height</string>
</property>
<property name="suffix">
<string> px</string>
</property>
<property name="maximum">
<number>30000</number>
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="KisIntParseSpinBox" name="intWidth">
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Width</string>
</property>
<property name="suffix">
<string> px</string>
</property>
<property name="maximum">
<number>30000</number>
</property>
</widget>
</item>
<item row="2" column="4">
<widget class="KisDoubleParseSpinBox" name="doubleRatio">
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Aspect ratio</string>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property>
<property name="precision" stdset="0">
<number>2</number>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLabel" name="aspectLabel">
<property name="text">
<string>Ratio:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="widthLabel">
<property name="toolTip">
<string>Width</string>
</property>
<property name="text">
<string>Width:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="5">
<widget class="QPushButton" name="lockWidthButton">
<property name="toolTip">
<string>Lock the width</string>
</property>
<property name="text">
<string/>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="5">
<widget class="QPushButton" name="lockHeightButton">
<property name="toolTip">
<string>Lock the height</string>
</property>
<property name="text">
<string/>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="5">
<widget class="QPushButton" name="lockRatioButton">
<property name="toolTip">
<string>Lock the aspect ratio</string>
</property>
<property name="text">
<string/>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_3">
<property name="leftMargin">
<number>5</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>5</number>
</property>
<property name="spacing">
<number>5</number>
</property>
<item row="2" column="1">
<widget class="QComboBox" name="cmbType">
<property name="currentIndex">
<number>0</number>
</property>
<item>
<property name="text">
<string>Image</string>
</property>
</item>
<item>
<property name="text">
<string>Canvas</string>
</property>
</item>
<item>
<property name="text">
<string>Layer</string>
</property>
</item>
<item>
<property name="text">
<string>Frame</string>
</property>
</item>
</widget>
</item>
<item row="4" column="1">
<widget class="QPushButton" name="bnCrop">
<property name="text">
<string>&Crop</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Applies to:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="cmbDecor">
<item>
<property name="text">
<string>None</string>
</property>
</item>
<item>
<property name="text">
<string>Thirds</string>
</property>
</item>
<item>
<property name="text">
<string>Fifths</string>
</property>
</item>
<item>
<property name="text">
<string>Passport photo</string>
</property>
</item>
<item>
<property name="text">
<string>Crosshair</string>
</property>
</item>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Decoration:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="5" column="1">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QWidget" name="SpecialSpacer" native="true"/>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KisDoubleParseSpinBox</class>
<extends>QDoubleSpinBox</extends>
<header>kis_double_parse_spin_box.h</header>
</customwidget>
<customwidget>
<class>KisIntParseSpinBox</class>
<extends>QSpinBox</extends>
<header>kis_int_parse_spin_box.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>intX</tabstop>
<tabstop>intY</tabstop>
<tabstop>boolCenter</tabstop>
<tabstop>boolGrow</tabstop>
<tabstop>intWidth</tabstop>
<tabstop>lockWidthButton</tabstop>
<tabstop>intHeight</tabstop>
<tabstop>lockHeightButton</tabstop>
<tabstop>doubleRatio</tabstop>
<tabstop>lockRatioButton</tabstop>
<tabstop>cmbType</tabstop>
<tabstop>cmbDecor</tabstop>
<tabstop>bnCrop</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>