Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / aboutdialog.cc
1 // Generated by gtkmmproc -- DO NOT MODIFY!
2
3 #include <gtkmm/aboutdialog.h>
4 #include <gtkmm/private/aboutdialog_p.h>
5
6 // -*- c++ -*-
7 /* $Id$ */
8
9 /* 
10  *
11  * Copyright 2004 The gtkmm Development Team
12  *
13  * This library is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU Library General Public
15  * License as published by the Free Software Foundation; either
16  * version 2 of the License, or (at your option) any later version.
17  *
18  * This library is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21  * Library General Public License for more details.
22  *
23  * You should have received a copy of the GNU Library General Public
24  * License along with this library; if not, write to the Free
25  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26  */
27
28 #include <gtk/gtkaboutdialog.h>
29 #include <gtk/gtklabel.h>
30
31
32 namespace //anonymous
33 {
34
35 // This Signal Proxy allows the C++ coder to specify
36 // a sigc::slot instead of a static function.
37 class SignalProxy_ActivateLink
38 {
39 public:
40   typedef Gtk::AboutDialog::SlotActivateLink SlotType;
41
42   SignalProxy_ActivateLink(const SlotType& slot)
43   : slot_(slot) {}
44
45   ~SignalProxy_ActivateLink();
46
47   static void gtk_callback(GtkAboutDialog* about, const gchar* link, gpointer data);
48   static void gtk_callback_destroy(void* data);
49
50 private:
51   SlotType slot_;
52 };
53
54 SignalProxy_ActivateLink::~SignalProxy_ActivateLink()
55 {}
56
57 void SignalProxy_ActivateLink::gtk_callback(GtkAboutDialog* about, const gchar* link, gpointer data)
58 {
59   SignalProxy_ActivateLink *const self = static_cast<SignalProxy_ActivateLink*>(data);
60
61   try
62   {
63     Gtk::AboutDialog* pCppAbout = Glib::wrap(about);
64     (self->slot_)( *pCppAbout, Glib::convert_const_gchar_ptr_to_ustring(link) );
65   }
66   catch(...)
67   {
68     Glib::exception_handlers_invoke();
69   }
70
71 }
72
73 void SignalProxy_ActivateLink::gtk_callback_destroy(void* data)
74 {
75   delete static_cast<SignalProxy_ActivateLink*>(data);
76 }
77
78 } // anonymous namespace
79
80
81 namespace Gtk
82 {
83
84 //static:
85 void AboutDialog::set_email_hook(const SlotActivateLink& slot)
86 {
87   // Create a signal proxy.  A pointer to this will be passed
88   // through the callback's data parameter.  It will be deleted
89   // when SignalProxy_ActivateLink::gtk_callback_destroy() is called.
90   SignalProxy_ActivateLink *const pSignalProxy = new SignalProxy_ActivateLink(slot);
91
92   gtk_about_dialog_set_email_hook(
93       &SignalProxy_ActivateLink::gtk_callback, pSignalProxy,
94       &SignalProxy_ActivateLink::gtk_callback_destroy);
95 }
96   
97 //static:
98 void AboutDialog::set_url_hook(const SlotActivateLink& slot)
99 {
100   // Create a signal proxy.  A pointer to this will be passed
101   // through the callback's data parameter.  It will be deleted
102   // when SignalProxy_ActivateLink::gtk_callback_destroy() is called.
103   SignalProxy_ActivateLink *const pSignalProxy = new SignalProxy_ActivateLink(slot);
104
105   gtk_about_dialog_set_url_hook(
106       &SignalProxy_ActivateLink::gtk_callback, pSignalProxy,
107       &SignalProxy_ActivateLink::gtk_callback_destroy);
108
109
110 } // namespace Gtk
111
112
113 namespace
114 {
115 } // anonymous namespace
116
117
118 namespace Glib
119 {
120
121 Gtk::AboutDialog* wrap(GtkAboutDialog* object, bool take_copy)
122 {
123   return dynamic_cast<Gtk::AboutDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
124 }
125
126 } /* namespace Glib */
127
128 namespace Gtk
129 {
130
131
132 /* The *_Class implementation: */
133
134 const Glib::Class& AboutDialog_Class::init()
135 {
136   if(!gtype_) // create the GType if necessary
137   {
138     // Glib::Class has to know the class init function to clone custom types.
139     class_init_func_ = &AboutDialog_Class::class_init_function;
140
141     // This is actually just optimized away, apparently with no harm.
142     // Make sure that the parent type has been created.
143     //CppClassParent::CppObjectType::get_type();
144
145     // Create the wrapper type, with the same class/instance size as the base type.
146     register_derived_type(gtk_about_dialog_get_type());
147
148     // Add derived versions of interfaces, if the C type implements any interfaces:
149   }
150
151   return *this;
152 }
153
154 void AboutDialog_Class::class_init_function(void* g_class, void* class_data)
155 {
156   BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
157   CppClassParent::class_init_function(klass, class_data);
158
159 }
160
161
162 Glib::ObjectBase* AboutDialog_Class::wrap_new(GObject* o)
163 {
164   return new AboutDialog((GtkAboutDialog*)(o)); //top-level windows can not be manage()ed.
165
166 }
167
168
169 /* The implementation: */
170
171 AboutDialog::AboutDialog(const Glib::ConstructParams& construct_params)
172 :
173   Gtk::Dialog(construct_params)
174 {
175   }
176
177 AboutDialog::AboutDialog(GtkAboutDialog* castitem)
178 :
179   Gtk::Dialog((GtkDialog*)(castitem))
180 {
181   }
182
183 AboutDialog::~AboutDialog()
184 {
185   destroy_();
186 }
187
188 AboutDialog::CppClassType AboutDialog::aboutdialog_class_; // initialize static member
189
190 GType AboutDialog::get_type()
191 {
192   return aboutdialog_class_.init().get_type();
193 }
194
195 GType AboutDialog::get_base_type()
196 {
197   return gtk_about_dialog_get_type();
198 }
199
200
201 AboutDialog::AboutDialog()
202 :
203   Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
204   Gtk::Dialog(Glib::ConstructParams(aboutdialog_class_.init()))
205 {
206   }
207
208 Glib::ustring AboutDialog::get_name() const
209 {
210   return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_name(const_cast<GtkAboutDialog*>(gobj())));
211 }
212
213 void AboutDialog::set_name(const Glib::ustring& name)
214 {
215   gtk_about_dialog_set_name(gobj(), name.c_str());
216 }
217
218 Glib::ustring AboutDialog::get_version() const
219 {
220   return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_version(const_cast<GtkAboutDialog*>(gobj())));
221 }
222
223 void AboutDialog::set_version(const Glib::ustring& version)
224 {
225   gtk_about_dialog_set_version(gobj(), version.c_str());
226 }
227
228 Glib::ustring AboutDialog::get_copyright() const
229 {
230   return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_copyright(const_cast<GtkAboutDialog*>(gobj())));
231 }
232
233 void AboutDialog::set_copyright(const Glib::ustring& copyright)
234 {
235   gtk_about_dialog_set_copyright(gobj(), copyright.c_str());
236 }
237
238 Glib::ustring AboutDialog::get_comments() const
239 {
240   return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_comments(const_cast<GtkAboutDialog*>(gobj())));
241 }
242
243 void AboutDialog::set_comments(const Glib::ustring& comments)
244 {
245   gtk_about_dialog_set_comments(gobj(), comments.c_str());
246 }
247
248 Glib::ustring AboutDialog::get_license() const
249 {
250   return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_license(const_cast<GtkAboutDialog*>(gobj())));
251 }
252
253 void AboutDialog::set_license(const Glib::ustring& license)
254 {
255   gtk_about_dialog_set_license(gobj(), license.c_str());
256 }
257
258 Glib::ustring AboutDialog::get_website() const
259 {
260   return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_website(const_cast<GtkAboutDialog*>(gobj())));
261 }
262
263 void AboutDialog::set_website(const Glib::ustring& website)
264 {
265   gtk_about_dialog_set_website(gobj(), website.c_str());
266 }
267
268 Glib::ustring AboutDialog::get_website_label() const
269 {
270   return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_website_label(const_cast<GtkAboutDialog*>(gobj())));
271 }
272
273 void AboutDialog::set_website_label(const Glib::ustring& website_label)
274 {
275   gtk_about_dialog_set_website_label(gobj(), website_label.c_str());
276 }
277
278 Glib::StringArrayHandle AboutDialog::get_authors() const
279 {
280   return Glib::StringArrayHandle(gtk_about_dialog_get_authors(const_cast<GtkAboutDialog*>(gobj())));
281 }
282
283 void AboutDialog::set_authors(const Glib::StringArrayHandle& authors) const
284 {
285   gtk_about_dialog_set_authors(const_cast<GtkAboutDialog*>(gobj()), const_cast<const gchar**>((authors).data()));
286 }
287
288 Glib::StringArrayHandle AboutDialog::get_documenters() const
289 {
290   return Glib::StringArrayHandle(gtk_about_dialog_get_documenters(const_cast<GtkAboutDialog*>(gobj())));
291 }
292
293 void AboutDialog::set_documenters(const Glib::StringArrayHandle& documenters)
294 {
295   gtk_about_dialog_set_documenters(gobj(), const_cast<const gchar**>((documenters).data()));
296 }
297
298 Glib::StringArrayHandle AboutDialog::get_artists() const
299 {
300   return Glib::StringArrayHandle(gtk_about_dialog_get_artists(const_cast<GtkAboutDialog*>(gobj())));
301 }
302
303 void AboutDialog::set_artists(const Glib::StringArrayHandle& artists)
304 {
305   gtk_about_dialog_set_artists(gobj(), const_cast<const gchar**>((artists).data()));
306 }
307
308 Glib::ustring AboutDialog::get_translator_credits() const
309 {
310   return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_translator_credits(const_cast<GtkAboutDialog*>(gobj())));
311 }
312
313 void AboutDialog::set_translator_credits(const Glib::ustring& translator_credits)
314 {
315   gtk_about_dialog_set_translator_credits(gobj(), translator_credits.c_str());
316 }
317
318 Glib::RefPtr<Gdk::Pixbuf> AboutDialog::get_logo()
319 {
320   return Glib::wrap(gtk_about_dialog_get_logo(gobj()));
321 }
322
323 Glib::RefPtr<const Gdk::Pixbuf> AboutDialog::get_logo() const
324 {
325   return Glib::wrap(gtk_about_dialog_get_logo(const_cast<GtkAboutDialog*>(gobj())));
326 }
327
328 void AboutDialog::set_logo(const Glib::RefPtr<Gdk::Pixbuf>& logo)
329 {
330   gtk_about_dialog_set_logo(gobj(), Glib::unwrap(logo));
331 }
332
333 Glib::ustring AboutDialog::get_logo_icon_name() const
334 {
335   return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_logo_icon_name(const_cast<GtkAboutDialog*>(gobj())));
336 }
337
338 void AboutDialog::set_logo_icon_name(const Glib::ustring& icon_name)
339 {
340   gtk_about_dialog_set_logo_icon_name(gobj(), icon_name.c_str());
341 }
342
343
344 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_name() 
345 {
346   return Glib::PropertyProxy<Glib::ustring>(this, "name");
347 }
348
349 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_name() const
350 {
351   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "name");
352 }
353
354 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_version() 
355 {
356   return Glib::PropertyProxy<Glib::ustring>(this, "version");
357 }
358
359 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_version() const
360 {
361   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "version");
362 }
363
364 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_copyright() 
365 {
366   return Glib::PropertyProxy<Glib::ustring>(this, "copyright");
367 }
368
369 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_copyright() const
370 {
371   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "copyright");
372 }
373
374 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_comments() 
375 {
376   return Glib::PropertyProxy<Glib::ustring>(this, "comments");
377 }
378
379 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_comments() const
380 {
381   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "comments");
382 }
383
384 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_website() 
385 {
386   return Glib::PropertyProxy<Glib::ustring>(this, "website");
387 }
388
389 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_website() const
390 {
391   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "website");
392 }
393
394 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_website_label() 
395 {
396   return Glib::PropertyProxy<Glib::ustring>(this, "website-label");
397 }
398
399 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_website_label() const
400 {
401   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "website-label");
402 }
403
404 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_license() 
405 {
406   return Glib::PropertyProxy<Glib::ustring>(this, "license");
407 }
408
409 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_license() const
410 {
411   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "license");
412 }
413
414 Glib::PropertyProxy<Glib::StringArrayHandle> AboutDialog::property_authors() 
415 {
416   return Glib::PropertyProxy<Glib::StringArrayHandle>(this, "authors");
417 }
418
419 Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle> AboutDialog::property_authors() const
420 {
421   return Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle>(this, "authors");
422 }
423
424 Glib::PropertyProxy<Glib::StringArrayHandle> AboutDialog::property_documenters() 
425 {
426   return Glib::PropertyProxy<Glib::StringArrayHandle>(this, "documenters");
427 }
428
429 Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle> AboutDialog::property_documenters() const
430 {
431   return Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle>(this, "documenters");
432 }
433
434 Glib::PropertyProxy<Glib::StringArrayHandle> AboutDialog::property_translator_credits() 
435 {
436   return Glib::PropertyProxy<Glib::StringArrayHandle>(this, "translator-credits");
437 }
438
439 Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle> AboutDialog::property_translator_credits() const
440 {
441   return Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle>(this, "translator-credits");
442 }
443
444 Glib::PropertyProxy<Glib::StringArrayHandle> AboutDialog::property_artists() 
445 {
446   return Glib::PropertyProxy<Glib::StringArrayHandle>(this, "artists");
447 }
448
449 Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle> AboutDialog::property_artists() const
450 {
451   return Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle>(this, "artists");
452 }
453
454 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > AboutDialog::property_logo() 
455 {
456   return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "logo");
457 }
458
459 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > AboutDialog::property_logo() const
460 {
461   return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> >(this, "logo");
462 }
463
464 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_logo_icon_name() 
465 {
466   return Glib::PropertyProxy<Glib::ustring>(this, "logo-icon-name");
467 }
468
469 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_logo_icon_name() const
470 {
471   return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "logo-icon-name");
472 }
473
474
475 } // namespace Gtk
476
477