cf6823ea07
In commit d37a44a9eb
(tdf#141193 Added
support for bar codes in qrcode dialog box[API Change], 2021-10-29)
which added support for one-dimensional "CODE_128" barcode in addition
to the previously supported 2D QR code, the various labels and tooltips
in UI were not fully updated accordingly.
This commit should update all QR and barcode related UI strings to match
the new status, mentioning both "QR and barcode" where emphasis or
detail is desired, and just "code(s)" where brevity is desired. Also
use one-word "barcode" instead of "bar code" everywhere for consistency.
Change-Id: I4530e4ffee5155b12551d7b819031c3869d7ab2d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125925
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Jenkins
388 lines
21 KiB
XML
388 lines
21 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Generated with glade 3.38.2 -->
|
|
<interface domain="cui">
|
|
<requires lib="gtk+" version="3.20"/>
|
|
<object class="GtkAdjustment" id="margin_value">
|
|
<property name="upper">75</property>
|
|
<property name="value">1</property>
|
|
<property name="step-increment">1</property>
|
|
<property name="page-increment">10</property>
|
|
</object>
|
|
<object class="GtkDialog" id="QrCodeGenDialog">
|
|
<property name="can_focus">False</property>
|
|
<property name="border_width">6</property>
|
|
<property name="title" translatable="yes" context="qrcodegen|QrCodeGenDialog">QR and Barcode</property>
|
|
<property name="modal">True</property>
|
|
<property name="default-width">0</property>
|
|
<property name="default-height">0</property>
|
|
<property name="type-hint">dialog</property>
|
|
<child internal-child="vbox">
|
|
<object class="GtkBox">
|
|
<property name="can-focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">2</property>
|
|
<child internal-child="action_area">
|
|
<object class="GtkButtonBox">
|
|
<property name="can-focus">False</property>
|
|
<property name="layout-style">end</property>
|
|
<child>
|
|
<object class="GtkButton" id="cancel">
|
|
<property name="label" translatable="yes" context="stock">_Cancel</property>
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">True</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="ok">
|
|
<property name="label" translatable="yes" context="stock">_OK</property>
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="can-default">True</property>
|
|
<property name="has-default">True</property>
|
|
<property name="receives-default">True</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="help">
|
|
<property name="label" translatable="yes" context="stock">_Help</property>
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">True</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">2</property>
|
|
<property name="secondary">True</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">False</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<!-- n-columns=1 n-rows=1 -->
|
|
<object class="GtkGrid">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="margin-start">6</property>
|
|
<property name="margin-end">6</property>
|
|
<property name="margin-top">6</property>
|
|
<property name="margin-bottom">6</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="row-spacing">6</property>
|
|
<property name="column-spacing">6</property>
|
|
<child>
|
|
<object class="GtkFrame">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="label-xalign">0</property>
|
|
<property name="shadow-type">none</property>
|
|
<child>
|
|
<!-- n-columns=2 n-rows=3 -->
|
|
<object class="GtkGrid">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="margin-top">6</property>
|
|
<property name="row-spacing">6</property>
|
|
<property name="column-spacing">12</property>
|
|
<child>
|
|
<object class="GtkEntry" id="edit_text">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="activates-default">True</property>
|
|
<property name="truncate-multiline">True</property>
|
|
<property name="placeholder-text" translatable="yes" context="qrcodegen|edit_name">www.libreoffice.org</property>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="edit_text-atkobject">
|
|
<property name="AtkObject::accessible-description" translatable="yes" context="qr text">The text from which to generate the code.</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">1</property>
|
|
<property name="top-attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label_text">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes" context="qrcodegen|label_text" comments="Text to be stored in the QR">URL/Text:</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="mnemonic-widget">edit_text</property>
|
|
<property name="xalign">0</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label_margin">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes" context="qrcodegen|label_margin" comments="Set Margin around QR">Margin:</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="mnemonic-widget">edit_margin</property>
|
|
<property name="xalign">0</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label_type">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes" context="qrcodegen|label_type" comments="Select type">Type:</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="mnemonic_widget">choose_type</property>
|
|
<property name="xalign">0</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">0</property>
|
|
<property name="top_attach">3</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkComboBoxText" id="choose_type">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="active">0</property>
|
|
<items>
|
|
<item translatable="yes" context="qrcodegen|QrCode">QR Code</item>
|
|
<item translatable="yes" context="qrcodegen|BarCode">Barcode</item>
|
|
</items>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="choose_type-atkobject">
|
|
<property name="AtkObject::accessible-description" translatable="yes" context="type">The type of code to generate.</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="top_attach">3</property>
|
|
<property name="width">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<!-- n-columns=1 n-rows=1 -->
|
|
<object class="GtkGrid">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="row-spacing">2</property>
|
|
<child>
|
|
<object class="GtkLabel" id="label_ecc">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="halign">start</property>
|
|
<property name="label" translatable="yes" context="qrcodegen|label_ecc" comments="Error Correction Level of QR code">Error correction:</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="xalign">0</property>
|
|
<accessibility>
|
|
<relation type="label-for" target="button_low"/>
|
|
<relation type="label-for" target="button_medium"/>
|
|
<relation type="label-for" target="button_quartile"/>
|
|
<relation type="label-for" target="button_high"/>
|
|
</accessibility>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="edit_margin">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="activates-default">True</property>
|
|
<property name="truncate-multiline">True</property>
|
|
<property name="adjustment">margin_value</property>
|
|
<property name="snap-to-ticks">True</property>
|
|
<property name="numeric">True</property>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="edit_margin-atkobject">
|
|
<property name="AtkObject::accessible-description" translatable="yes" context="edit margin">The margin surrounding the code.</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">1</property>
|
|
<property name="top-attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<!-- n-columns=1 n-rows=4 -->
|
|
<object class="GtkGrid">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="row-spacing">2</property>
|
|
<child>
|
|
<object class="GtkRadioButton" id="button_low">
|
|
<property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">Low</property>
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">False</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="active">True</property>
|
|
<property name="draw-indicator">True</property>
|
|
<accessibility>
|
|
<relation type="labelled-by" target="label_ecc"/>
|
|
</accessibility>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="button_low-atkobject">
|
|
<property name="AtkObject::accessible-description" translatable="yes" context="button_low">7% of codewords can be restored.</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkRadioButton" id="button_medium">
|
|
<property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">Medium</property>
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">False</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="draw-indicator">True</property>
|
|
<property name="group">button_low</property>
|
|
<accessibility>
|
|
<relation type="labelled-by" target="label_ecc"/>
|
|
</accessibility>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="button_medium-atkobject">
|
|
<property name="AtkObject::accessible-description" translatable="yes" context="button_medium">15% of codewords can be restored.</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkRadioButton" id="button_quartile">
|
|
<property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">Quartile</property>
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">False</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="draw-indicator">True</property>
|
|
<property name="group">button_low</property>
|
|
<accessibility>
|
|
<relation type="labelled-by" target="label_ecc"/>
|
|
</accessibility>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="button_quartile-atkobject">
|
|
<property name="AtkObject::accessible-description" translatable="yes" context="button_quartile">25% of codewords can be restored.</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkRadioButton" id="button_high">
|
|
<property name="label" translatable="yes" context="qrcodegen|ErrorCorrection">High</property>
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">True</property>
|
|
<property name="receives-default">False</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="draw-indicator">True</property>
|
|
<property name="group">button_low</property>
|
|
<accessibility>
|
|
<relation type="labelled-by" target="label_ecc"/>
|
|
</accessibility>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="button_high-atkobject">
|
|
<property name="AtkObject::accessible-description" translatable="yes" context="button_high">30% of codewords can be restored.</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">3</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">1</property>
|
|
<property name="top-attach">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child type="label">
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="label" translatable="yes" context="qrcodegen|QR Code Properties">Options</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<action-widgets>
|
|
<action-widget response="-6">cancel</action-widget>
|
|
<action-widget response="-5">ok</action-widget>
|
|
<action-widget response="-11">help</action-widget>
|
|
</action-widgets>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="QrCodeGenDialog-atkobject">
|
|
<property name="AtkObject::accessible-description" translatable="yes" context="qr code dialog title">Generate linear and matrix codes for any text or URL.</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|