Debian Codegraph @

src/optionsbars/transform/optionsbar-scale.ui

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <interface domain="drawing">
3
4 <object class="GtkAdjustment" id="adj_width">
5 <property name="lower">1</property>
6 <property name="upper">8127</property>
7 <property name="step_increment">1</property>
8 <property name="page_increment">20</property>
9 <property name="value">10</property>
10 </object>
11 <object class="GtkAdjustment" id="adj_height">
12 <property name="lower">1</property>
13 <property name="upper">8127</property>
14 <property name="step_increment">1</property>
15 <property name="page_increment">20</property>
16 <property name="value">10</property>
17 </object>
18
19 <object class="GtkAdjustment" id="adj_width_100">
20 <property name="lower">1</property>
21 <property name="upper">500</property>
22 <property name="step_increment">1</property>
23 <property name="page_increment">10</property>
24 <property name="value">100</property>
25 </object>
26 <object class="GtkAdjustment" id="adj_height_100">
27 <property name="lower">1</property>
28 <property name="upper">500</property>
29 <property name="step_increment">1</property>
30 <property name="page_increment">10</property>
31 <property name="value">100</property>
32 </object>
33
34 <!-- -->
35
36 <object class="GtkBox" id="centered_box">
37 <property name="spacing">10</property>
38 <property name="orientation">horizontal</property>
39
40 <child>
41 <object class="GtkBox">
42 <property name="spacing">10</property>
43 <property name="orientation">horizontal</property>
44 <child>
45 <object class="GtkLabel" id="width_label">
46 <property name="label" translatable="yes">Width</property>
47 </object>
48 </child>
49 <child>
50 <object class="GtkSpinButton" id="width_btn">
51 <property name="adjustment">adj_width</property>
52 <property name="tooltip_text" translatable="yes">Width</property>
53 </object>
54 </child>
55 <child>
56 <object class="GtkSpinButton" id="width_100_btn">
57 <property name="adjustment">adj_width_100</property>
58 <property name="tooltip_text" translatable="yes">Width</property>
59 </object>
60 </child>
61 </object>
62 </child>
63
64 <child>
65 <object class="GtkSeparator" id="separator"></object>
66 </child>
67
68 <child>
69 <object class="GtkBox">
70 <property name="spacing">10</property>
71 <property name="orientation">horizontal</property>
72 <child>
73 <object class="GtkLabel" id="height_label">
74 <property name="label" translatable="yes">Height</property>
75 </object>
76 </child>
77 <child>
78 <object class="GtkSpinButton" id="height_btn">
79 <property name="adjustment">adj_height</property>
80 <property name="tooltip_text" translatable="yes">Height</property>
81 </object>
82 </child>
83 <child>
84 <object class="GtkSpinButton" id="height_100_btn">
85 <property name="adjustment">adj_height_100</property>
86 <property name="tooltip_text" translatable="yes">Height</property>
87 </object>
88 </child>
89 </object>
90 </child>
91
92 </object>
93
94 <!-- -->
95
96 <!-- Menu shown in the action bar (bottom-right) -->
97 <menu id="actions-menu">
98 <section>
99 <!-- Context: the title of a menu to chose how the image will be scaled -->
100 <attribute name="label" translatable="yes">Keep proportions</attribute>
101 <item>
102 <!-- Context: an item in a menu whose title is "Keep proportions" -->
103 <attribute name="label" translatable="yes">Always</attribute>
104 <attribute name="action">win.scale-proportions</attribute>
105 <attribute name="target">always</attribute>
106 </item>
107 <item>
108 <!-- Context: an item in a menu whose title is "Keep proportions" -->
109 <attribute name="label" translatable="yes">When scaling from corners</attribute>
110 <attribute name="action">win.scale-proportions</attribute>
111 <attribute name="target">corners</attribute>
112 </item>
113 <item>
114 <!-- Context for translations: "[Keep proportions only] when setting values manually" -->
115 <attribute name="label" translatable="yes">When setting values manually</attribute>
116 <attribute name="action">win.scale-ratio-spinbtns</attribute>
117 </item>
118 <item>
119 <!-- Context: an item in a menu whose title is "Keep proportions" -->
120 <attribute name="label" translatable="yes">Never</attribute>
121 <attribute name="action">win.scale-proportions</attribute>
122 <attribute name="target">never</attribute>
123 </item>
124 </section>
125 <section>
126 <attribute name="display-hint">horizontal-buttons</attribute>
127 <item>
128 <attribute name="label" translatable="yes">Zoom Out</attribute>
129 <attribute name="action">win.zoom_out</attribute>
130 <attribute name="verb-icon">zoom-out-symbolic</attribute>
131 </item>
132 <item>
133 <attribute name="label" translatable="yes">Original Zoom</attribute>
134 <attribute name="action">win.zoom_100</attribute>
135 <attribute name="verb-icon">zoom-original-symbolic</attribute>
136 </item>
137 <item>
138 <attribute name="label" translatable="yes">Zoom In</attribute>
139 <attribute name="action">win.zoom_in</attribute>
140 <attribute name="verb-icon">zoom-in-symbolic</attribute>
141 </item>
142 </section>
143 <section>
144 <item>
145 <attribute name="label" translatable="yes">Pixels</attribute>
146 <attribute name="action">win.scale-unit</attribute>
147 <attribute name="target">pixels</attribute>
148 <attribute name="verb-icon">unit-pixels-symbolic</attribute>
149 </item>
150 <item>
151 <attribute name="label" translatable="yes">Percentage</attribute>
152 <attribute name="action">win.scale-unit</attribute>
153 <attribute name="target">percents</attribute>
154 <attribute name="verb-icon">unit-percents-symbolic</attribute>
155 </item>
156 </section>
157 </menu>
158
159 </interface>