Line data Source code
1 : /* File: gui_resources.c; Copyright and License: see below */
2 :
3 : #include "gui_resources.h"
4 : #include "u8/u8_trace.h"
5 : #include "gui_gtk.h"
6 : #include <stdbool.h>
7 : #include <assert.h>
8 :
9 : /* including resource files */
10 :
11 : #include "resources/crystal_facet_uml.c"
12 : #include "resources/edit_attributes_sect.c"
13 :
14 : #include "resources/file_new.c"
15 : #include "resources/file_open.c"
16 : #include "resources/file_save.c"
17 : #include "resources/file_saved.c"
18 : #include "resources/file_unsaved.c"
19 : #include "resources/file_export.c"
20 :
21 : #include "resources/view_create.c"
22 : #include "resources/view_edit.c"
23 : #include "resources/view_navigate.c"
24 : #include "resources/view_new_window.c"
25 : #include "resources/view_search.c"
26 : #include "resources/view_search_now.c"
27 :
28 : #include "resources/tool_sect.c"
29 :
30 : #include "resources/edit_copy.c"
31 : #include "resources/edit_cut.c"
32 : #include "resources/edit_delete.c"
33 : #include "resources/edit_paste.c"
34 : #include "resources/edit_instantiate.c"
35 : #include "resources/edit_highlight.c"
36 : #include "resources/edit_redo.c"
37 : #include "resources/edit_undo.c"
38 : #include "resources/edit_reset.c"
39 :
40 : #include "resources/message_error.c"
41 : #include "resources/message_info.c"
42 : #include "resources/message_warn.c"
43 : #include "resources/message_user_doc.c"
44 :
45 : #include "resources/navigate_breadcrumb_folder.c"
46 : #include "resources/navigate_closed_folder.c"
47 : #include "resources/navigate_create_child.c"
48 : #include "resources/navigate_create_child_0.c"
49 : #include "resources/navigate_create_sibling.c"
50 : #include "resources/navigate_create_sibling_0.c"
51 : #include "resources/navigate_open_folder.c"
52 :
53 : #include "resources/sketch_background.c"
54 : #include "resources/sketch_create.c"
55 : #include "resources/sketch_refine.c"
56 : #include "resources/sketch_relate.c"
57 : #include "resources/sketch_move_h.c"
58 : #include "resources/sketch_move_v.c"
59 : #include "resources/sketch_move_2d.c"
60 : #include "resources/sketch_page_down_bold.c"
61 : #include "resources/sketch_page_down_gray.c"
62 : #include "resources/sketch_page_up_bold.c"
63 : #include "resources/sketch_page_up_gray.c"
64 :
65 : #include "resources/type_undef.c"
66 : #include "resources/type_diag_activity.c"
67 : #include "resources/type_diag_block.c"
68 : #include "resources/type_diag_box.c"
69 : #include "resources/type_diag_class.c"
70 : #include "resources/type_diag_communication.c"
71 : #include "resources/type_diag_component.c"
72 : #include "resources/type_diag_composite.c"
73 : #include "resources/type_diag_deployment.c"
74 : #include "resources/type_diag_internal.c"
75 : #include "resources/type_diag_list.c"
76 : #include "resources/type_diag_overview.c"
77 : #include "resources/type_diag_package.c"
78 : #include "resources/type_diag_parametric.c"
79 : #include "resources/type_diag_profile.c"
80 : #include "resources/type_diag_requirement.c"
81 : #include "resources/type_diag_sequence.c"
82 : #include "resources/type_diag_state.c"
83 : #include "resources/type_diag_timing.c"
84 : #include "resources/type_diag_usecase.c"
85 :
86 : #include "resources/type_clas_accept.c"
87 : #include "resources/type_clas_activity.c"
88 : #include "resources/type_clas_actor.c"
89 : #include "resources/type_clas_artifact.c"
90 : #include "resources/type_clas_block.c"
91 : #include "resources/type_clas_class.c"
92 : #include "resources/type_clas_comment.c"
93 : #include "resources/type_clas_component.c"
94 : #include "resources/type_clas_constraint.c"
95 : #include "resources/type_clas_decision.c"
96 : #include "resources/type_clas_deephistory.c"
97 : #include "resources/type_clas_final.c"
98 : #include "resources/type_clas_fork.c"
99 : #include "resources/type_clas_history.c"
100 : #include "resources/type_clas_image.c"
101 : #include "resources/type_clas_initial.c"
102 : #include "resources/type_clas_interaction_use.c"
103 : #include "resources/type_clas_interface.c"
104 : #include "resources/type_clas_join.c"
105 : #include "resources/type_clas_node.c"
106 : #include "resources/type_clas_object.c"
107 : #include "resources/type_clas_package.c"
108 : #include "resources/type_clas_part.c"
109 : #include "resources/type_clas_region.c"
110 : #include "resources/type_clas_requirement.c"
111 : #include "resources/type_clas_send.c"
112 : #include "resources/type_clas_state.c"
113 : #include "resources/type_clas_stereotype.c"
114 : #include "resources/type_clas_subsystem.c"
115 : #include "resources/type_clas_time.c"
116 : #include "resources/type_clas_usecase.c"
117 :
118 : #include "resources/type_feat_entry.c"
119 : #include "resources/type_feat_exit.c"
120 : #include "resources/type_feat_life.c"
121 : #include "resources/type_feat_operation.c"
122 : #include "resources/type_feat_port.c"
123 : #include "resources/type_feat_property.c"
124 : #include "resources/type_feat_provide.c"
125 : #include "resources/type_feat_require.c"
126 : #include "resources/type_feat_rx.c"
127 : #include "resources/type_feat_tag.c"
128 : #include "resources/type_feat_tx.c"
129 :
130 : #include "resources/type_rel_aggregate.c"
131 : #include "resources/type_rel_associate.c"
132 : #include "resources/type_rel_async.c"
133 : #include "resources/type_rel_compose.c"
134 : #include "resources/type_rel_communication_path.c"
135 : #include "resources/type_rel_contain.c"
136 : #include "resources/type_rel_control_flow.c"
137 : #include "resources/type_rel_depend.c"
138 : #include "resources/type_rel_deploy.c"
139 : #include "resources/type_rel_extend.c"
140 : #include "resources/type_rel_generalize.c"
141 : #include "resources/type_rel_include.c"
142 : #include "resources/type_rel_manifest.c"
143 : #include "resources/type_rel_object_flow.c"
144 : #include "resources/type_rel_realize.c"
145 : #include "resources/type_rel_refine.c"
146 : #include "resources/type_rel_return.c"
147 : #include "resources/type_rel_sync.c"
148 : #include "resources/type_rel_trace.c"
149 :
150 : #define GIMP_PIXBUF_DATA(STRUCTNAME) &(STRUCTNAME.pixel_data[0]), \
151 : STRUCTNAME.width, STRUCTNAME.height, STRUCTNAME.width * STRUCTNAME.bytes_per_pixel
152 :
153 504 : GdkTexture *gui_resources_new_texture_from_pixbuf_data( gconstpointer data,
154 : int width,
155 : int height,
156 : int rowstride
157 : )
158 : {
159 504 : const GdkMemoryFormat pixelfmt = GDK_MEMORY_R8G8B8A8;
160 504 : GBytes *data_as_bytes = g_bytes_new_static( data, rowstride*height );
161 504 : GdkTexture *result = gdk_memory_texture_new( width, height, pixelfmt, data_as_bytes, rowstride );
162 : /* do not unref while still in use : g_object_unref( data_as_bytes ); */
163 504 : return result;
164 : }
165 :
166 4 : void gui_resources_init ( gui_resources_t *this_ )
167 : {
168 4 : U8_TRACE_BEGIN();
169 :
170 4 : (*this_).crystal_facet_uml = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( crystal_facet_uml ) );
171 :
172 4 : (*this_).edit_attributes_sect = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_attributes_sect ) );
173 :
174 4 : (*this_).file_new = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_new ) );
175 4 : (*this_).file_open = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_open ) );
176 4 : (*this_).file_save = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_save ) );
177 4 : (*this_).file_saved = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_saved ) );
178 4 : (*this_).file_unsaved = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_unsaved ) );
179 4 : (*this_).file_export = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( file_export ) );
180 :
181 4 : (*this_).view_new_window = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_new_window ) );
182 4 : (*this_).view_search = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_search ) );
183 4 : (*this_).view_search_now = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_search_now ) );
184 4 : (*this_).view_navigate = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_navigate ) );
185 4 : (*this_).view_create = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_create ) );
186 4 : (*this_).view_edit = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( view_edit ) );
187 :
188 4 : (*this_).tool_sect = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( tool_sect ) );
189 :
190 4 : (*this_).edit_copy = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_copy ) );
191 4 : (*this_).edit_cut = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_cut ) );
192 4 : (*this_).edit_delete = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_delete ) );
193 4 : (*this_).edit_paste = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_paste ) );
194 4 : (*this_).edit_instantiate = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_instantiate ) );
195 4 : (*this_).edit_highlight = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_highlight ) );
196 4 : (*this_).edit_redo = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_redo ) );
197 4 : (*this_).edit_undo = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_undo ) );
198 4 : (*this_).edit_reset = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( edit_reset ) );
199 :
200 4 : (*this_).message_error = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( message_error ) );
201 4 : (*this_).message_info = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( message_info ) );
202 4 : (*this_).message_warn = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( message_warn ) );
203 4 : (*this_).message_user_doc = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( message_user_doc ) );
204 :
205 4 : (*this_).navigate_breadcrumb_folder = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_breadcrumb_folder ) );
206 4 : (*this_).navigate_closed_folder = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_closed_folder ) );
207 4 : (*this_).navigate_create_child = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_create_child ) );
208 4 : (*this_).navigate_create_child_0 = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_create_child_0 ) );
209 4 : (*this_).navigate_create_sibling = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_create_sibling ) );
210 4 : (*this_).navigate_create_sibling_0 = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_create_sibling_0 ) );
211 4 : (*this_).navigate_open_folder = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( navigate_open_folder ) );
212 :
213 8 : (*this_).sketch_background = cairo_image_surface_create_for_data( (unsigned char*)&(sketch_background.pixel_data[0]),
214 : CAIRO_FORMAT_ARGB32,
215 4 : sketch_background.width,
216 4 : sketch_background.height,
217 4 : sketch_background.width * sketch_background.bytes_per_pixel
218 : );
219 4 : assert( CAIRO_STATUS_SUCCESS == ( cairo_surface_status( (*this_).sketch_background ) ) );
220 :
221 4 : (*this_).sketch_create = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_create ) );
222 4 : (*this_).sketch_refine = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_refine ) );
223 4 : (*this_).sketch_relate = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_relate ) );
224 4 : (*this_).sketch_move_h = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_move_h ) );
225 4 : (*this_).sketch_move_v = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_move_v ) );
226 4 : (*this_).sketch_move_2d = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_move_2d ) );
227 4 : (*this_).sketch_page_down_bold = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_page_down_bold ) );
228 4 : (*this_).sketch_page_down_gray = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_page_down_gray ) );
229 4 : (*this_).sketch_page_up_bold = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_page_up_bold ) );
230 4 : (*this_).sketch_page_up_gray = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( sketch_page_up_gray ) );
231 :
232 4 : (*this_).type_undef = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_undef ) );
233 :
234 4 : (*this_).type_diag_activity = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_activity ) );
235 4 : (*this_).type_diag_block = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_block ) );
236 4 : (*this_).type_diag_box = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_box ) );
237 4 : (*this_).type_diag_class = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_class ) );
238 4 : (*this_).type_diag_communication = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_communication ) );
239 4 : (*this_).type_diag_component = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_component ) );
240 4 : (*this_).type_diag_composite = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_composite ) );
241 4 : (*this_).type_diag_deployment = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_deployment ) );
242 4 : (*this_).type_diag_internal = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_internal ) );
243 4 : (*this_).type_diag_list = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_list ) );
244 4 : (*this_).type_diag_overview = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_overview ) );
245 4 : (*this_).type_diag_package = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_package ) );
246 4 : (*this_).type_diag_parametric = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_parametric ) );
247 4 : (*this_).type_diag_profile = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_profile ) );
248 4 : (*this_).type_diag_requirement = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_requirement ) );
249 4 : (*this_).type_diag_sequence = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_sequence ) );
250 4 : (*this_).type_diag_state = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_state ) );
251 4 : (*this_).type_diag_timing = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_timing ) );
252 4 : (*this_).type_diag_usecase = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_diag_usecase ) );
253 :
254 4 : (*this_).type_clas_accept = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_accept ) );
255 4 : (*this_).type_clas_activity = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_activity ) );
256 4 : (*this_).type_clas_actor = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_actor ) );
257 4 : (*this_).type_clas_artifact = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_artifact ) );
258 4 : (*this_).type_clas_block = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_block ) );
259 4 : (*this_).type_clas_class = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_class ) );
260 4 : (*this_).type_clas_comment = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_comment ) );
261 4 : (*this_).type_clas_component = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_component ) );
262 4 : (*this_).type_clas_constraint = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_constraint ) );
263 4 : (*this_).type_clas_decision = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_decision ) );
264 4 : (*this_).type_clas_deephistory = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_deephistory ) );
265 4 : (*this_).type_clas_final = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_final ) );
266 4 : (*this_).type_clas_fork = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_fork ) );
267 4 : (*this_).type_clas_history = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_history ) );
268 4 : (*this_).type_clas_image = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_image ) );
269 4 : (*this_).type_clas_initial = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_initial ) );
270 4 : (*this_).type_clas_interaction_use = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_interaction_use ) );
271 4 : (*this_).type_clas_interface = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_interface ) );
272 4 : (*this_).type_clas_join = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_join ) );
273 4 : (*this_).type_clas_node = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_node ) );
274 4 : (*this_).type_clas_object = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_object ) );
275 4 : (*this_).type_clas_package = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_package ) );
276 4 : (*this_).type_clas_part = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_part ) );
277 4 : (*this_).type_clas_region = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_region ) );
278 4 : (*this_).type_clas_requirement = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_requirement ) );
279 4 : (*this_).type_clas_send = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_send ) );
280 4 : (*this_).type_clas_state = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_state ) );
281 4 : (*this_).type_clas_stereotype = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_stereotype ) );
282 4 : (*this_).type_clas_subsystem = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_subsystem ) );
283 4 : (*this_).type_clas_time = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_time ) );
284 4 : (*this_).type_clas_usecase = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_clas_usecase ) );
285 :
286 4 : (*this_).type_feat_entry = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_entry ) );
287 4 : (*this_).type_feat_exit = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_exit ) );
288 4 : (*this_).type_feat_life = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_life ) );
289 4 : (*this_).type_feat_operation = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_operation ) );
290 4 : (*this_).type_feat_port = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_port ) );
291 4 : (*this_).type_feat_property = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_property ) );
292 4 : (*this_).type_feat_provide = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_provide ) );
293 4 : (*this_).type_feat_require = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_require ) );
294 4 : (*this_).type_feat_rx = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_rx ) );
295 4 : (*this_).type_feat_tag = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_tag ) );
296 4 : (*this_).type_feat_tx = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_feat_tx ) );
297 :
298 4 : (*this_).type_rel_aggregate = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_aggregate ) );
299 4 : (*this_).type_rel_associate = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_associate ) );
300 4 : (*this_).type_rel_async = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_async ) );
301 4 : (*this_).type_rel_communication_path = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_communication_path ) );
302 4 : (*this_).type_rel_compose = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_compose ) );
303 4 : (*this_).type_rel_contain = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_contain ) );
304 4 : (*this_).type_rel_control_flow = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_control_flow ) );
305 4 : (*this_).type_rel_depend = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_depend ) );
306 4 : (*this_).type_rel_deploy = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_deploy ) );
307 4 : (*this_).type_rel_extend = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_extend ) );
308 4 : (*this_).type_rel_generalize = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_generalize ) );
309 4 : (*this_).type_rel_include = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_include ) );
310 4 : (*this_).type_rel_manifest = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_manifest ) );
311 4 : (*this_).type_rel_object_flow = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_object_flow ) );
312 4 : (*this_).type_rel_realize = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_realize ) );
313 4 : (*this_).type_rel_refine = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_refine ) );
314 4 : (*this_).type_rel_return = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_return ) );
315 4 : (*this_).type_rel_sync = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_sync ) );
316 4 : (*this_).type_rel_trace = gui_resources_new_texture_from_pixbuf_data( GIMP_PIXBUF_DATA( type_rel_trace ) );
317 :
318 4 : U8_TRACE_END();
319 4 : }
320 :
321 : /*!
322 : * \brief destroys the gui_resources_t
323 : */
324 4 : void gui_resources_destroy ( gui_resources_t *this_ )
325 : {
326 4 : U8_TRACE_BEGIN();
327 :
328 4 : g_object_unref ((*this_).crystal_facet_uml);
329 :
330 4 : g_object_unref ((*this_).edit_attributes_sect);
331 :
332 4 : g_object_unref ((*this_).file_new);
333 4 : g_object_unref ((*this_).file_open);
334 4 : g_object_unref ((*this_).file_save);
335 4 : g_object_unref ((*this_).file_saved);
336 4 : g_object_unref ((*this_).file_unsaved);
337 4 : g_object_unref ((*this_).file_export);
338 :
339 4 : g_object_unref ((*this_).view_new_window);
340 4 : g_object_unref ((*this_).view_search);
341 4 : g_object_unref ((*this_).view_search_now);
342 4 : g_object_unref ((*this_).view_navigate);
343 4 : g_object_unref ((*this_).view_create);
344 4 : g_object_unref ((*this_).view_edit);
345 :
346 4 : g_object_unref ((*this_).tool_sect);
347 :
348 4 : g_object_unref ((*this_).edit_copy);
349 4 : g_object_unref ((*this_).edit_cut);
350 4 : g_object_unref ((*this_).edit_delete);
351 4 : g_object_unref ((*this_).edit_paste);
352 4 : g_object_unref ((*this_).edit_instantiate);
353 4 : g_object_unref ((*this_).edit_highlight);
354 4 : g_object_unref ((*this_).edit_redo);
355 4 : g_object_unref ((*this_).edit_undo);
356 4 : g_object_unref ((*this_).edit_reset);
357 :
358 4 : g_object_unref ((*this_).message_error);
359 4 : g_object_unref ((*this_).message_info);
360 4 : g_object_unref ((*this_).message_warn);
361 :
362 4 : g_object_unref ((*this_).message_user_doc);
363 :
364 4 : g_object_unref ((*this_).navigate_breadcrumb_folder);
365 4 : g_object_unref ((*this_).navigate_closed_folder);
366 4 : g_object_unref ((*this_).navigate_create_child);
367 4 : g_object_unref ((*this_).navigate_create_child_0);
368 4 : g_object_unref ((*this_).navigate_create_sibling);
369 4 : g_object_unref ((*this_).navigate_create_sibling_0);
370 4 : g_object_unref ((*this_).navigate_open_folder);
371 :
372 4 : cairo_surface_destroy( (*this_).sketch_background ); /* type: cairo_surface_t */
373 4 : g_object_unref ((*this_).sketch_create);
374 4 : g_object_unref ((*this_).sketch_refine);
375 4 : g_object_unref ((*this_).sketch_relate);
376 4 : g_object_unref ((*this_).sketch_move_h);
377 4 : g_object_unref ((*this_).sketch_move_v);
378 4 : g_object_unref ((*this_).sketch_move_2d);
379 4 : g_object_unref ((*this_).sketch_page_down_bold);
380 4 : g_object_unref ((*this_).sketch_page_down_gray);
381 4 : g_object_unref ((*this_).sketch_page_up_bold);
382 4 : g_object_unref ((*this_).sketch_page_up_gray);
383 :
384 4 : g_object_unref ((*this_).type_undef);
385 :
386 4 : g_object_unref ((*this_).type_diag_activity);
387 4 : g_object_unref ((*this_).type_diag_block);
388 4 : g_object_unref ((*this_).type_diag_box);
389 4 : g_object_unref ((*this_).type_diag_class);
390 4 : g_object_unref ((*this_).type_diag_communication);
391 4 : g_object_unref ((*this_).type_diag_component);
392 4 : g_object_unref ((*this_).type_diag_composite);
393 4 : g_object_unref ((*this_).type_diag_deployment);
394 4 : g_object_unref ((*this_).type_diag_internal);
395 4 : g_object_unref ((*this_).type_diag_list);
396 4 : g_object_unref ((*this_).type_diag_overview);
397 4 : g_object_unref ((*this_).type_diag_package);
398 4 : g_object_unref ((*this_).type_diag_parametric);
399 4 : g_object_unref ((*this_).type_diag_profile);
400 4 : g_object_unref ((*this_).type_diag_requirement);
401 4 : g_object_unref ((*this_).type_diag_sequence);
402 4 : g_object_unref ((*this_).type_diag_state);
403 4 : g_object_unref ((*this_).type_diag_timing);
404 4 : g_object_unref ((*this_).type_diag_usecase);
405 :
406 4 : g_object_unref ((*this_).type_clas_accept);
407 4 : g_object_unref ((*this_).type_clas_activity);
408 4 : g_object_unref ((*this_).type_clas_actor);
409 4 : g_object_unref ((*this_).type_clas_artifact);
410 4 : g_object_unref ((*this_).type_clas_block);
411 4 : g_object_unref ((*this_).type_clas_class);
412 4 : g_object_unref ((*this_).type_clas_comment);
413 4 : g_object_unref ((*this_).type_clas_component);
414 4 : g_object_unref ((*this_).type_clas_constraint);
415 4 : g_object_unref ((*this_).type_clas_decision);
416 4 : g_object_unref ((*this_).type_clas_deephistory);
417 4 : g_object_unref ((*this_).type_clas_final);
418 4 : g_object_unref ((*this_).type_clas_fork);
419 4 : g_object_unref ((*this_).type_clas_history);
420 4 : g_object_unref ((*this_).type_clas_image);
421 4 : g_object_unref ((*this_).type_clas_initial);
422 4 : g_object_unref ((*this_).type_clas_interaction_use);
423 4 : g_object_unref ((*this_).type_clas_interface);
424 4 : g_object_unref ((*this_).type_clas_join);
425 4 : g_object_unref ((*this_).type_clas_node);
426 4 : g_object_unref ((*this_).type_clas_object);
427 4 : g_object_unref ((*this_).type_clas_package);
428 4 : g_object_unref ((*this_).type_clas_part);
429 4 : g_object_unref ((*this_).type_clas_region);
430 4 : g_object_unref ((*this_).type_clas_requirement);
431 4 : g_object_unref ((*this_).type_clas_send);
432 4 : g_object_unref ((*this_).type_clas_state);
433 4 : g_object_unref ((*this_).type_clas_stereotype);
434 4 : g_object_unref ((*this_).type_clas_subsystem);
435 4 : g_object_unref ((*this_).type_clas_time);
436 4 : g_object_unref ((*this_).type_clas_usecase);
437 :
438 4 : g_object_unref ((*this_).type_feat_entry);
439 4 : g_object_unref ((*this_).type_feat_exit);
440 4 : g_object_unref ((*this_).type_feat_life);
441 4 : g_object_unref ((*this_).type_feat_operation);
442 4 : g_object_unref ((*this_).type_feat_port);
443 4 : g_object_unref ((*this_).type_feat_property);
444 4 : g_object_unref ((*this_).type_feat_provide);
445 4 : g_object_unref ((*this_).type_feat_require);
446 4 : g_object_unref ((*this_).type_feat_rx);
447 4 : g_object_unref ((*this_).type_feat_tag);
448 4 : g_object_unref ((*this_).type_feat_tx);
449 :
450 4 : g_object_unref ((*this_).type_rel_aggregate);
451 4 : g_object_unref ((*this_).type_rel_associate);
452 4 : g_object_unref ((*this_).type_rel_async);
453 4 : g_object_unref ((*this_).type_rel_compose);
454 4 : g_object_unref ((*this_).type_rel_contain);
455 4 : g_object_unref ((*this_).type_rel_control_flow);
456 4 : g_object_unref ((*this_).type_rel_depend);
457 4 : g_object_unref ((*this_).type_rel_deploy);
458 4 : g_object_unref ((*this_).type_rel_extend);
459 4 : g_object_unref ((*this_).type_rel_generalize);
460 4 : g_object_unref ((*this_).type_rel_include);
461 4 : g_object_unref ((*this_).type_rel_manifest);
462 4 : g_object_unref ((*this_).type_rel_object_flow);
463 4 : g_object_unref ((*this_).type_rel_realize);
464 4 : g_object_unref ((*this_).type_rel_refine);
465 4 : g_object_unref ((*this_).type_rel_return);
466 4 : g_object_unref ((*this_).type_rel_sync);
467 4 : g_object_unref ((*this_).type_rel_trace);
468 :
469 4 : U8_TRACE_END();
470 4 : }
471 :
472 :
473 : /*
474 : Copyright 2016-2025 Andreas Warnke
475 :
476 : Licensed under the Apache License, Version 2.0 (the "License");
477 : you may not use this file except in compliance with the License.
478 : You may obtain a copy of the License at
479 :
480 : http://www.apache.org/licenses/LICENSE-2.0
481 :
482 : Unless required by applicable law or agreed to in writing, software
483 : distributed under the License is distributed on an "AS IS" BASIS,
484 : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
485 : See the License for the specific language governing permissions and
486 : limitations under the License.
487 : */
|