Warning, /graphics/krita/libs/ui/imagesize/wdg_canvassize.ui is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <ui version="4.0">
0003  <author>
0004     SPDX-FileCopyrightText: none
0005     SPDX-License-Identifier: GPL-3.0-or-later
0006   </author>
0007  <class>WdgCanvasSize</class>
0008  <widget class="QWidget" name="WdgCanvasSize">
0009   <property name="geometry">
0010    <rect>
0011     <x>0</x>
0012     <y>0</y>
0013     <width>391</width>
0014     <height>400</height>
0015    </rect>
0016   </property>
0017   <property name="sizePolicy">
0018    <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
0019     <horstretch>0</horstretch>
0020     <verstretch>0</verstretch>
0021    </sizepolicy>
0022   </property>
0023   <property name="windowTitle">
0024    <string>Canvas Size</string>
0025   </property>
0026   <layout class="QVBoxLayout" name="verticalLayout">
0027    <item>
0028     <widget class="QGroupBox" name="groupBox_2">
0029      <property name="title">
0030       <string>New Size</string>
0031      </property>
0032      <property name="flat">
0033       <bool>true</bool>
0034      </property>
0035      <layout class="QGridLayout" name="gridLayout_2">
0036       <item row="1" column="1">
0037        <widget class="QLabel" name="lblNewHeight">
0038         <property name="text">
0039          <string>Height:</string>
0040         </property>
0041         <property name="alignment">
0042          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
0043         </property>
0044        </widget>
0045       </item>
0046       <item row="1" column="3">
0047        <widget class="QComboBox" name="heightUnit"/>
0048       </item>
0049       <item row="0" column="4" rowspan="2">
0050        <widget class="KoAspectButton" name="aspectRatioBtn" native="true"/>
0051       </item>
0052       <item row="0" column="1">
0053        <widget class="QLabel" name="lblNewWidth">
0054         <property name="text">
0055          <string>Width:</string>
0056         </property>
0057         <property name="alignment">
0058          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
0059         </property>
0060        </widget>
0061       </item>
0062       <item row="0" column="2">
0063        <widget class="KisDoubleParseUnitSpinBox" name="newWidthDouble">
0064         <property name="decimals">
0065          <number>4</number>
0066         </property>
0067         <property name="minimum">
0068          <double>0.000100000000000</double>
0069         </property>
0070         <property name="maximum">
0071          <double>100000000.000000000000000</double>
0072         </property>
0073         <property name="singleStep">
0074          <double>0.100000000000000</double>
0075         </property>
0076        </widget>
0077       </item>
0078       <item row="1" column="2">
0079        <widget class="KisDoubleParseUnitSpinBox" name="newHeightDouble">
0080         <property name="decimals">
0081          <number>4</number>
0082         </property>
0083         <property name="minimum">
0084          <double>0.000100000000000</double>
0085         </property>
0086         <property name="maximum">
0087          <double>100000000.000000000000000</double>
0088         </property>
0089         <property name="singleStep">
0090          <double>0.100000000000000</double>
0091         </property>
0092        </widget>
0093       </item>
0094       <item row="1" column="0">
0095        <spacer name="horizontalSpacer_5">
0096         <property name="orientation">
0097          <enum>Qt::Horizontal</enum>
0098         </property>
0099         <property name="sizeType">
0100          <enum>QSizePolicy::Fixed</enum>
0101         </property>
0102         <property name="sizeHint" stdset="0">
0103          <size>
0104           <width>25</width>
0105           <height>20</height>
0106          </size>
0107         </property>
0108        </spacer>
0109       </item>
0110       <item row="0" column="3">
0111        <widget class="QComboBox" name="widthUnit"/>
0112       </item>
0113       <item row="1" column="5">
0114        <spacer name="horizontalSpacer_2">
0115         <property name="orientation">
0116          <enum>Qt::Horizontal</enum>
0117         </property>
0118         <property name="sizeType">
0119          <enum>QSizePolicy::MinimumExpanding</enum>
0120         </property>
0121         <property name="sizeHint" stdset="0">
0122          <size>
0123           <width>40</width>
0124           <height>20</height>
0125          </size>
0126         </property>
0127        </spacer>
0128       </item>
0129       <item row="2" column="2" colspan="4">
0130        <widget class="QCheckBox" name="constrainProportionsCkb">
0131         <property name="toolTip">
0132          <string>Constrain aspect ratio</string>
0133         </property>
0134         <property name="text">
0135          <string>Constrain proportions</string>
0136         </property>
0137         <property name="checked">
0138          <bool>true</bool>
0139         </property>
0140        </widget>
0141       </item>
0142      </layout>
0143     </widget>
0144    </item>
0145    <item>
0146     <widget class="QGroupBox" name="groupBox">
0147      <property name="title">
0148       <string>Offset</string>
0149      </property>
0150      <property name="flat">
0151       <bool>true</bool>
0152      </property>
0153      <layout class="QGridLayout" name="gridLayout">
0154       <item row="2" column="2">
0155        <spacer name="verticalSpacer_2">
0156         <property name="orientation">
0157          <enum>Qt::Vertical</enum>
0158         </property>
0159         <property name="sizeType">
0160          <enum>QSizePolicy::Fixed</enum>
0161         </property>
0162         <property name="sizeHint" stdset="0">
0163          <size>
0164           <width>20</width>
0165           <height>16</height>
0166          </size>
0167         </property>
0168        </spacer>
0169       </item>
0170       <item row="1" column="2">
0171        <widget class="KisDoubleParseUnitSpinBox" name="yOffsetDouble">
0172         <property name="decimals">
0173          <number>4</number>
0174         </property>
0175         <property name="minimum">
0176          <double>-10000.000000000000000</double>
0177         </property>
0178         <property name="maximum">
0179          <double>10000.000000000000000</double>
0180         </property>
0181         <property name="singleStep">
0182          <double>0.100000000000000</double>
0183         </property>
0184        </widget>
0185       </item>
0186       <item row="1" column="4">
0187        <widget class="QPushButton" name="lockyOffset">
0188         <property name="text">
0189          <string/>
0190         </property>
0191        </widget>
0192       </item>
0193       <item row="0" column="1">
0194        <widget class="QLabel" name="lblXOff">
0195         <property name="text">
0196          <string>X:</string>
0197         </property>
0198         <property name="alignment">
0199          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
0200         </property>
0201        </widget>
0202       </item>
0203       <item row="0" column="4">
0204        <widget class="QPushButton" name="lockxOffset">
0205         <property name="text">
0206          <string/>
0207         </property>
0208        </widget>
0209       </item>
0210       <item row="3" column="2">
0211        <layout class="QHBoxLayout" name="horizontalLayout">
0212         <item>
0213          <layout class="QGridLayout" name="gridLayout_3">
0214           <property name="spacing">
0215            <number>0</number>
0216           </property>
0217           <item row="0" column="0">
0218            <widget class="QPushButton" name="topLeft">
0219             <property name="sizePolicy">
0220              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
0221               <horstretch>0</horstretch>
0222               <verstretch>0</verstretch>
0223              </sizepolicy>
0224             </property>
0225             <property name="maximumSize">
0226              <size>
0227               <width>25</width>
0228               <height>25</height>
0229              </size>
0230             </property>
0231             <property name="text">
0232              <string/>
0233             </property>
0234             <property name="iconSize">
0235              <size>
0236               <width>15</width>
0237               <height>15</height>
0238              </size>
0239             </property>
0240             <property name="checkable">
0241              <bool>true</bool>
0242             </property>
0243            </widget>
0244           </item>
0245           <item row="1" column="0">
0246            <widget class="QPushButton" name="middleLeft">
0247             <property name="sizePolicy">
0248              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
0249               <horstretch>0</horstretch>
0250               <verstretch>0</verstretch>
0251              </sizepolicy>
0252             </property>
0253             <property name="maximumSize">
0254              <size>
0255               <width>25</width>
0256               <height>25</height>
0257              </size>
0258             </property>
0259             <property name="text">
0260              <string/>
0261             </property>
0262             <property name="iconSize">
0263              <size>
0264               <width>15</width>
0265               <height>15</height>
0266              </size>
0267             </property>
0268             <property name="checkable">
0269              <bool>true</bool>
0270             </property>
0271            </widget>
0272           </item>
0273           <item row="2" column="0">
0274            <widget class="QPushButton" name="bottomLeft">
0275             <property name="sizePolicy">
0276              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
0277               <horstretch>0</horstretch>
0278               <verstretch>0</verstretch>
0279              </sizepolicy>
0280             </property>
0281             <property name="maximumSize">
0282              <size>
0283               <width>25</width>
0284               <height>25</height>
0285              </size>
0286             </property>
0287             <property name="text">
0288              <string/>
0289             </property>
0290             <property name="iconSize">
0291              <size>
0292               <width>15</width>
0293               <height>15</height>
0294              </size>
0295             </property>
0296             <property name="checkable">
0297              <bool>true</bool>
0298             </property>
0299            </widget>
0300           </item>
0301           <item row="1" column="1">
0302            <widget class="QPushButton" name="middleCenter">
0303             <property name="sizePolicy">
0304              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
0305               <horstretch>0</horstretch>
0306               <verstretch>0</verstretch>
0307              </sizepolicy>
0308             </property>
0309             <property name="maximumSize">
0310              <size>
0311               <width>25</width>
0312               <height>25</height>
0313              </size>
0314             </property>
0315             <property name="text">
0316              <string/>
0317             </property>
0318             <property name="iconSize">
0319              <size>
0320               <width>15</width>
0321               <height>15</height>
0322              </size>
0323             </property>
0324             <property name="checkable">
0325              <bool>true</bool>
0326             </property>
0327            </widget>
0328           </item>
0329           <item row="2" column="1">
0330            <widget class="QPushButton" name="bottomCenter">
0331             <property name="sizePolicy">
0332              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
0333               <horstretch>0</horstretch>
0334               <verstretch>0</verstretch>
0335              </sizepolicy>
0336             </property>
0337             <property name="maximumSize">
0338              <size>
0339               <width>25</width>
0340               <height>25</height>
0341              </size>
0342             </property>
0343             <property name="text">
0344              <string/>
0345             </property>
0346             <property name="iconSize">
0347              <size>
0348               <width>15</width>
0349               <height>15</height>
0350              </size>
0351             </property>
0352             <property name="checkable">
0353              <bool>true</bool>
0354             </property>
0355            </widget>
0356           </item>
0357           <item row="1" column="2">
0358            <widget class="QPushButton" name="middleRight">
0359             <property name="sizePolicy">
0360              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
0361               <horstretch>0</horstretch>
0362               <verstretch>0</verstretch>
0363              </sizepolicy>
0364             </property>
0365             <property name="maximumSize">
0366              <size>
0367               <width>25</width>
0368               <height>25</height>
0369              </size>
0370             </property>
0371             <property name="text">
0372              <string/>
0373             </property>
0374             <property name="iconSize">
0375              <size>
0376               <width>15</width>
0377               <height>15</height>
0378              </size>
0379             </property>
0380             <property name="checkable">
0381              <bool>true</bool>
0382             </property>
0383            </widget>
0384           </item>
0385           <item row="0" column="1">
0386            <widget class="QPushButton" name="topCenter">
0387             <property name="sizePolicy">
0388              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
0389               <horstretch>0</horstretch>
0390               <verstretch>0</verstretch>
0391              </sizepolicy>
0392             </property>
0393             <property name="maximumSize">
0394              <size>
0395               <width>25</width>
0396               <height>25</height>
0397              </size>
0398             </property>
0399             <property name="text">
0400              <string/>
0401             </property>
0402             <property name="iconSize">
0403              <size>
0404               <width>15</width>
0405               <height>15</height>
0406              </size>
0407             </property>
0408             <property name="checkable">
0409              <bool>true</bool>
0410             </property>
0411            </widget>
0412           </item>
0413           <item row="0" column="2">
0414            <widget class="QPushButton" name="topRight">
0415             <property name="sizePolicy">
0416              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
0417               <horstretch>0</horstretch>
0418               <verstretch>0</verstretch>
0419              </sizepolicy>
0420             </property>
0421             <property name="maximumSize">
0422              <size>
0423               <width>25</width>
0424               <height>25</height>
0425              </size>
0426             </property>
0427             <property name="text">
0428              <string/>
0429             </property>
0430             <property name="iconSize">
0431              <size>
0432               <width>15</width>
0433               <height>15</height>
0434              </size>
0435             </property>
0436             <property name="checkable">
0437              <bool>true</bool>
0438             </property>
0439             <property name="flat">
0440              <bool>false</bool>
0441             </property>
0442            </widget>
0443           </item>
0444           <item row="2" column="2">
0445            <widget class="QPushButton" name="bottomRight">
0446             <property name="sizePolicy">
0447              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
0448               <horstretch>0</horstretch>
0449               <verstretch>0</verstretch>
0450              </sizepolicy>
0451             </property>
0452             <property name="maximumSize">
0453              <size>
0454               <width>25</width>
0455               <height>25</height>
0456              </size>
0457             </property>
0458             <property name="text">
0459              <string/>
0460             </property>
0461             <property name="iconSize">
0462              <size>
0463               <width>15</width>
0464               <height>15</height>
0465              </size>
0466             </property>
0467             <property name="checkable">
0468              <bool>true</bool>
0469             </property>
0470            </widget>
0471           </item>
0472          </layout>
0473         </item>
0474         <item>
0475          <spacer name="horizontalSpacer">
0476           <property name="orientation">
0477            <enum>Qt::Horizontal</enum>
0478           </property>
0479           <property name="sizeType">
0480            <enum>QSizePolicy::Maximum</enum>
0481           </property>
0482           <property name="sizeHint" stdset="0">
0483            <size>
0484             <width>16</width>
0485             <height>20</height>
0486            </size>
0487           </property>
0488          </spacer>
0489         </item>
0490        </layout>
0491       </item>
0492       <item row="1" column="3">
0493        <widget class="QComboBox" name="yOffUnit"/>
0494       </item>
0495       <item row="0" column="2">
0496        <widget class="KisDoubleParseUnitSpinBox" name="xOffsetDouble">
0497         <property name="decimals">
0498          <number>4</number>
0499         </property>
0500         <property name="minimum">
0501          <double>-10000.000000000000000</double>
0502         </property>
0503         <property name="maximum">
0504          <double>10000.000000000000000</double>
0505         </property>
0506         <property name="singleStep">
0507          <double>0.100000000000000</double>
0508         </property>
0509        </widget>
0510       </item>
0511       <item row="3" column="0">
0512        <spacer name="horizontalSpacer_6">
0513         <property name="orientation">
0514          <enum>Qt::Horizontal</enum>
0515         </property>
0516         <property name="sizeType">
0517          <enum>QSizePolicy::Fixed</enum>
0518         </property>
0519         <property name="sizeHint" stdset="0">
0520          <size>
0521           <width>25</width>
0522           <height>20</height>
0523          </size>
0524         </property>
0525        </spacer>
0526       </item>
0527       <item row="1" column="1">
0528        <widget class="QLabel" name="lblYOff">
0529         <property name="text">
0530          <string>Y:</string>
0531         </property>
0532         <property name="alignment">
0533          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
0534         </property>
0535        </widget>
0536       </item>
0537       <item row="3" column="1">
0538        <widget class="QLabel" name="lblAnchor">
0539         <property name="text">
0540          <string>Anchor:</string>
0541         </property>
0542         <property name="alignment">
0543          <set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
0544         </property>
0545        </widget>
0546       </item>
0547       <item row="4" column="2">
0548        <spacer name="verticalSpacer">
0549         <property name="orientation">
0550          <enum>Qt::Vertical</enum>
0551         </property>
0552         <property name="sizeType">
0553          <enum>QSizePolicy::MinimumExpanding</enum>
0554         </property>
0555         <property name="sizeHint" stdset="0">
0556          <size>
0557           <width>20</width>
0558           <height>30</height>
0559          </size>
0560         </property>
0561        </spacer>
0562       </item>
0563       <item row="0" column="3">
0564        <widget class="QComboBox" name="xOffUnit"/>
0565       </item>
0566       <item row="3" column="3">
0567        <widget class="QFrame" name="previewCanvas">
0568         <property name="sizePolicy">
0569          <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
0570           <horstretch>0</horstretch>
0571           <verstretch>0</verstretch>
0572          </sizepolicy>
0573         </property>
0574         <property name="minimumSize">
0575          <size>
0576           <width>0</width>
0577           <height>0</height>
0578          </size>
0579         </property>
0580         <property name="frameShape">
0581          <enum>QFrame::StyledPanel</enum>
0582         </property>
0583         <property name="frameShadow">
0584          <enum>QFrame::Sunken</enum>
0585         </property>
0586         <layout class="QVBoxLayout" name="verticalLayout_2">
0587          <property name="leftMargin">
0588           <number>2</number>
0589          </property>
0590          <property name="topMargin">
0591           <number>2</number>
0592          </property>
0593          <property name="rightMargin">
0594           <number>2</number>
0595          </property>
0596          <property name="bottomMargin">
0597           <number>2</number>
0598          </property>
0599          <item>
0600           <widget class="KCanvasPreview" name="canvasPreview" native="true"/>
0601          </item>
0602         </layout>
0603        </widget>
0604       </item>
0605       <item row="0" column="5">
0606        <spacer name="horizontalSpacer_3">
0607         <property name="orientation">
0608          <enum>Qt::Horizontal</enum>
0609         </property>
0610         <property name="sizeHint" stdset="0">
0611          <size>
0612           <width>40</width>
0613           <height>20</height>
0614          </size>
0615         </property>
0616        </spacer>
0617       </item>
0618       <item row="3" column="5">
0619        <spacer name="horizontalSpacer_4">
0620         <property name="orientation">
0621          <enum>Qt::Horizontal</enum>
0622         </property>
0623         <property name="sizeType">
0624          <enum>QSizePolicy::MinimumExpanding</enum>
0625         </property>
0626         <property name="sizeHint" stdset="0">
0627          <size>
0628           <width>40</width>
0629           <height>20</height>
0630          </size>
0631         </property>
0632        </spacer>
0633       </item>
0634      </layout>
0635     </widget>
0636    </item>
0637   </layout>
0638  </widget>
0639  <customwidgets>
0640   <customwidget>
0641    <class>KoAspectButton</class>
0642    <extends>QWidget</extends>
0643    <header>KoAspectButton.h</header>
0644    <container>1</container>
0645   </customwidget>
0646   <customwidget>
0647    <class>KisDoubleParseUnitSpinBox</class>
0648    <extends>QDoubleSpinBox</extends>
0649    <header>kis_double_parse_unit_spin_box.h</header>
0650   </customwidget>
0651   <customwidget>
0652    <class>KCanvasPreview</class>
0653    <extends>QWidget</extends>
0654    <header>kcanvaspreview.h</header>
0655    <container>1</container>
0656   </customwidget>
0657  </customwidgets>
0658  <tabstops>
0659   <tabstop>newWidthDouble</tabstop>
0660   <tabstop>widthUnit</tabstop>
0661   <tabstop>newHeightDouble</tabstop>
0662   <tabstop>heightUnit</tabstop>
0663   <tabstop>constrainProportionsCkb</tabstop>
0664   <tabstop>xOffsetDouble</tabstop>
0665   <tabstop>xOffUnit</tabstop>
0666   <tabstop>yOffsetDouble</tabstop>
0667   <tabstop>yOffUnit</tabstop>
0668   <tabstop>topLeft</tabstop>
0669   <tabstop>topCenter</tabstop>
0670   <tabstop>topRight</tabstop>
0671   <tabstop>middleLeft</tabstop>
0672   <tabstop>middleCenter</tabstop>
0673   <tabstop>middleRight</tabstop>
0674   <tabstop>bottomLeft</tabstop>
0675   <tabstop>bottomCenter</tabstop>
0676   <tabstop>bottomRight</tabstop>
0677  </tabstops>
0678  <resources/>
0679  <connections/>
0680 </ui>