mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-27 20:44:13 +02:00
5120feb417
A picture can now carry a caption, set from its properties panel
("Libellé"). It is drawn centred under the picture at the folio's
normal text size whatever the picture's scale, turns with it, and
moves, copies and prints with it because the picture itself paints it.
Clicking the caption selects the picture.
Saved as a "label" attribute on <image>, written only when non-empty:
a project without labels saves byte-for-byte as before, and older
versions open a labelled project and simply ignore the caption.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G2d2Zi8BfrYRPX88zhaoFG
194 lines
5.2 KiB
XML
194 lines
5.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>ImagePropertiesWidget</class>
|
|
<widget class="QWidget" name="ImagePropertiesWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>280</width>
|
|
<height>230</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetMinimumSize</enum>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label_width">
|
|
<property name="text">
|
|
<string>Largeur</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QDoubleSpinBox" name="m_width_sb">
|
|
<property name="suffix">
|
|
<string> %</string>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>1000.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="2" rowspan="2">
|
|
<widget class="QToolButton" name="m_lock_ratio_tb">
|
|
<property name="toolTip">
|
|
<string>Verrouillé : modifier la largeur ou la hauteur ajuste l'autre pour conserver les proportions. Cliquer pour déverrouiller.</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_height">
|
|
<property name="text">
|
|
<string>Hauteur</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QDoubleSpinBox" name="m_height_sb">
|
|
<property name="suffix">
|
|
<string> %</string>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>1.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>1000.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0" colspan="3">
|
|
<widget class="QPushButton" name="m_restore_ratio_pb">
|
|
<property name="text">
|
|
<string>Restaurer les proportions</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="label_angle">
|
|
<property name="text">
|
|
<string>Angle</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QDoubleSpinBox" name="m_angle_sb">
|
|
<property name="suffix">
|
|
<string> °</string>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-360.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>360.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="label_skew_x">
|
|
<property name="text">
|
|
<string>Inclinaison X</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QDoubleSpinBox" name="m_skew_x_sb">
|
|
<property name="suffix">
|
|
<string> °</string>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-85.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>85.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QLabel" name="label_skew_y">
|
|
<property name="text">
|
|
<string>Inclinaison Y</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<widget class="QDoubleSpinBox" name="m_skew_y_sb">
|
|
<property name="suffix">
|
|
<string> °</string>
|
|
</property>
|
|
<property name="decimals">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="minimum">
|
|
<double>-85.000000000000000</double>
|
|
</property>
|
|
<property name="maximum">
|
|
<double>85.000000000000000</double>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<widget class="QLabel" name="label_label">
|
|
<property name="text">
|
|
<string>Libellé</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="1" colspan="2">
|
|
<widget class="QLineEdit" name="m_label_le">
|
|
<property name="toolTip">
|
|
<string>Texte affiché sous l'image. Il suit l'image quand elle est déplacée, copiée ou tournée.</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" column="0" colspan="2">
|
|
<widget class="QCheckBox" name="m_lock_pos_cb">
|
|
<property name="text">
|
|
<string>Verrouiller la position</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="0">
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|