Warning, /graphics/glaxnimate/src/gui/widgets/shape_style/document_swatch_widget.ui is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 
0003 <!--
0004 SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>
0005 
0006 SPDX-License-Identifier: GPL-3.0-or-later
0007 -->
0008 
0009 <ui version="4.0">
0010  <class>glaxnimate::gui::DocumentSwatchWidget</class>
0011  <widget class="QWidget" name="DocumentSwatchWidget">
0012   <property name="geometry">
0013    <rect>
0014     <x>0</x>
0015     <y>0</y>
0016     <width>312</width>
0017     <height>276</height>
0018    </rect>
0019   </property>
0020   <layout class="QVBoxLayout" name="verticalLayout">
0021    <item>
0022     <widget class="color_widgets::Swatch" name="swatch">
0023      <property name="sizePolicy">
0024       <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
0025        <horstretch>0</horstretch>
0026        <verstretch>0</verstretch>
0027       </sizepolicy>
0028      </property>
0029      <property name="colorSize">
0030       <size>
0031        <width>32</width>
0032        <height>32</height>
0033       </size>
0034      </property>
0035      <property name="showClearColor">
0036       <bool>true</bool>
0037      </property>
0038     </widget>
0039    </item>
0040    <item>
0041     <layout class="QHBoxLayout" name="horizontalLayout_2">
0042      <item>
0043       <widget class="QToolButton" name="button_extra">
0044        <property name="toolTip">
0045         <string>Swatch</string>
0046        </property>
0047        <property name="text">
0048         <string>Swatch</string>
0049        </property>
0050        <property name="icon">
0051         <iconset theme="open-menu-symbolic">
0052          <normaloff>.</normaloff>.</iconset>
0053        </property>
0054       </widget>
0055      </item>
0056      <item>
0057       <spacer name="horizontalSpacer">
0058        <property name="orientation">
0059         <enum>Qt::Horizontal</enum>
0060        </property>
0061        <property name="sizeHint" stdset="0">
0062         <size>
0063          <width>40</width>
0064          <height>20</height>
0065         </size>
0066        </property>
0067       </spacer>
0068      </item>
0069      <item>
0070       <widget class="QToolButton" name="toolButton">
0071        <property name="toolTip">
0072         <string>Add color</string>
0073        </property>
0074        <property name="text">
0075         <string>Add</string>
0076        </property>
0077        <property name="icon">
0078         <iconset theme="list-add">
0079          <normaloff>.</normaloff>.</iconset>
0080        </property>
0081       </widget>
0082      </item>
0083      <item>
0084       <widget class="QToolButton" name="toolButton_2">
0085        <property name="text">
0086         <string>Remove</string>
0087        </property>
0088        <property name="icon">
0089         <iconset theme="list-remove">
0090          <normaloff>.</normaloff>.</iconset>
0091        </property>
0092       </widget>
0093      </item>
0094     </layout>
0095    </item>
0096   </layout>
0097   <action name="action_generate">
0098    <property name="icon">
0099     <iconset theme="document-export">
0100      <normaloff>.</normaloff>.</iconset>
0101    </property>
0102    <property name="text">
0103     <string>Generate</string>
0104    </property>
0105    <property name="toolTip">
0106     <string>Generate Swatch from the open Document</string>
0107    </property>
0108   </action>
0109   <action name="action_save">
0110    <property name="icon">
0111     <iconset theme="document-save">
0112      <normaloff>.</normaloff>.</iconset>
0113    </property>
0114    <property name="text">
0115     <string>Save Palette</string>
0116    </property>
0117   </action>
0118   <action name="action_open">
0119    <property name="icon">
0120     <iconset theme="document-open">
0121      <normaloff>.</normaloff>.</iconset>
0122    </property>
0123    <property name="text">
0124     <string>From Palette...</string>
0125    </property>
0126   </action>
0127  </widget>
0128  <customwidgets>
0129   <customwidget>
0130    <class>color_widgets::Swatch</class>
0131    <extends>QWidget</extends>
0132    <header>QtColorWidgets/swatch.hpp</header>
0133   </customwidget>
0134  </customwidgets>
0135  <resources/>
0136  <connections>
0137   <connection>
0138    <sender>toolButton_2</sender>
0139    <signal>clicked()</signal>
0140    <receiver>swatch</receiver>
0141    <slot>removeSelected()</slot>
0142    <hints>
0143     <hint type="sourcelabel">
0144      <x>304</x>
0145      <y>236</y>
0146     </hint>
0147     <hint type="destinationlabel">
0148      <x>295</x>
0149      <y>158</y>
0150     </hint>
0151    </hints>
0152   </connection>
0153   <connection>
0154    <sender>toolButton</sender>
0155    <signal>clicked()</signal>
0156    <receiver>DocumentSwatchWidget</receiver>
0157    <slot>swatch_add()</slot>
0158    <hints>
0159     <hint type="sourcelabel">
0160      <x>266</x>
0161      <y>236</y>
0162     </hint>
0163     <hint type="destinationlabel">
0164      <x>317</x>
0165      <y>406</y>
0166     </hint>
0167    </hints>
0168   </connection>
0169   <connection>
0170    <sender>swatch</sender>
0171    <signal>clicked(int,Qt::KeyboardModifiers)</signal>
0172    <receiver>DocumentSwatchWidget</receiver>
0173    <slot>swatch_link(int,Qt::KeyboardModifiers)</slot>
0174    <hints>
0175     <hint type="sourcelabel">
0176      <x>176</x>
0177      <y>161</y>
0178     </hint>
0179     <hint type="destinationlabel">
0180      <x>254</x>
0181      <y>481</y>
0182     </hint>
0183    </hints>
0184   </connection>
0185   <connection>
0186    <sender>swatch</sender>
0187    <signal>rightClicked(int,Qt::KeyboardModifiers)</signal>
0188    <receiver>DocumentSwatchWidget</receiver>
0189    <slot>swatch_menu(int)</slot>
0190    <hints>
0191     <hint type="sourcelabel">
0192      <x>124</x>
0193      <y>111</y>
0194     </hint>
0195     <hint type="destinationlabel">
0196      <x>158</x>
0197      <y>416</y>
0198     </hint>
0199    </hints>
0200   </connection>
0201  </connections>
0202  <slots>
0203   <slot>swatch_add()</slot>
0204   <slot>swatch_unlink()</slot>
0205   <slot>swatch_link(int)</slot>
0206   <slot>swatch_menu(int)</slot>
0207  </slots>
0208 </ui>