File: gimpquerybox.sgml

package info (click to toggle)
gimp 2.2.13-1etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 94,832 kB
  • ctags: 47,113
  • sloc: ansic: 524,858; xml: 36,798; lisp: 9,870; sh: 9,409; makefile: 7,923; python: 2,674; perl: 2,589; yacc: 520; lex: 334
file content (196 lines) | stat: -rw-r--r-- 3,025 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!-- ##### SECTION Title ##### -->
GimpQueryBox

<!-- ##### SECTION Short_Description ##### -->
Some simple dialogs to enter a single int, double, string or boolean value.

<!-- ##### SECTION Long_Description ##### -->
<para>
These functions provide simple dialogs for entering a single string,
integer, double, boolean or pixel size value.
</para>
<para>
They return a pointer to a #GtkDialog which has to be shown with
gtk_widget_show() by the caller.
</para>
<para>
The dialogs contain an entry widget for the kind of value they ask for
and "OK" and "Cancel" buttons. On "Cancel", all query boxes except the
boolean one silently destroy themselves. On "OK" the user defined
callback function is called and returns the entered value.
</para>

<!-- ##### SECTION See_Also ##### -->
<para>
GimpSizeEntry
</para>
<para>
GimpUnitMenu
</para>

<!-- ##### SECTION Stability_Level ##### -->


<!-- ##### USER_FUNCTION GimpQueryStringCallback ##### -->
<para>
Note that you have to g_free() the returned string.
</para>

@query_box: The query box.
@string: The entered string.
@data: The user data.


<!-- ##### USER_FUNCTION GimpQueryIntCallback ##### -->
<para>

</para>

@query_box: The query box.
@value: The entered integer value.
@data: The user data.


<!-- ##### USER_FUNCTION GimpQueryDoubleCallback ##### -->
<para>

</para>

@query_box: The query box.
@value: The entered double value.
@data: The user data.


<!-- ##### USER_FUNCTION GimpQuerySizeCallback ##### -->
<para>

</para>

@query_box: The query box.
@size: The entered size in pixels.
@unit: The selected unit from the #GimpUnitMenu.
@data: The user data.


<!-- ##### USER_FUNCTION GimpQueryBooleanCallback ##### -->
<para>

</para>

@query_box: The query box.
@value: The entered boolean value.
@data: The user data.


<!-- ##### FUNCTION gimp_query_string_box ##### -->
<para>

</para>

@title: 
@parent: 
@help_func: 
@help_id: 
@message: 
@initial: 
@object: 
@signal: 
@callback: 
@data: 
@Returns: 


<!-- ##### FUNCTION gimp_query_int_box ##### -->
<para>

</para>

@title: 
@parent: 
@help_func: 
@help_id: 
@message: 
@initial: 
@lower: 
@upper: 
@object: 
@signal: 
@callback: 
@data: 
@Returns: 


<!-- ##### FUNCTION gimp_query_double_box ##### -->
<para>

</para>

@title: 
@parent: 
@help_func: 
@help_id: 
@message: 
@initial: 
@lower: 
@upper: 
@digits: 
@object: 
@signal: 
@callback: 
@data: 
@Returns: 


<!-- ##### FUNCTION gimp_query_size_box ##### -->
<para>

</para>

@title: 
@parent: 
@help_func: 
@help_id: 
@message: 
@initial: 
@lower: 
@upper: 
@digits: 
@unit: 
@resolution: 
@dot_for_dot: 
@object: 
@signal: 
@callback: 
@data: 
@Returns: 


<!-- ##### FUNCTION gimp_query_boolean_box ##### -->
<para>

</para>

@title: 
@parent: 
@help_func: 
@help_id: 
@stock_id: 
@message: 
@true_button: 
@false_button: 
@object: 
@signal: 
@callback: 
@data: 
@Returns: 


<!-- ##### MACRO GIMP_QUERY_BOX_VBOX ##### -->
<para>
A macro to access the #GtkVBox in a #GimpQueryBox. Useful if you want to add
more widgets.
</para>

@qbox: