Logo Search packages:      
Sourcecode: ardour version File versions

aboutdialog.cc

// Generated by gtkmmproc -- DO NOT MODIFY!

#include <gtkmm/aboutdialog.h>
#include <gtkmm/private/aboutdialog_p.h>

// -*- c++ -*-
/* $Id: aboutdialog.cc 4 2005-05-13 20:47:18Z taybin $ */

/* 
 *
 * Copyright 2004 The gtkmm Development Team
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <gtk/gtkaboutdialog.h>
#include <gtk/gtklabel.h>


namespace //anonymous
{

// This Signal Proxy allows the C++ coder to specify
// a sigc::slot instead of a static function.
class SignalProxy_ActivateLink
{
public:
  typedef Gtk::AboutDialog::SlotActivateLink SlotType;

  SignalProxy_ActivateLink(const SlotType& slot)
  : slot_(slot) {}

  ~SignalProxy_ActivateLink();

  static void gtk_callback(GtkAboutDialog* about, const gchar* link, gpointer data);
  static void gtk_callback_destroy(void* data);

private:
  SlotType slot_;
};

SignalProxy_ActivateLink::~SignalProxy_ActivateLink()
{}

void SignalProxy_ActivateLink::gtk_callback(GtkAboutDialog* about, const gchar* link, gpointer data)
{
  SignalProxy_ActivateLink *const self = static_cast<SignalProxy_ActivateLink*>(data);

  try
  {
    Gtk::AboutDialog* pCppAbout = Glib::wrap(about);
    (self->slot_)( *pCppAbout, Glib::convert_const_gchar_ptr_to_ustring(link) );
  }
  catch(...)
  {
    Glib::exception_handlers_invoke();
  }

}

void SignalProxy_ActivateLink::gtk_callback_destroy(void* data)
{
  delete static_cast<SignalProxy_ActivateLink*>(data);
}

} // anonymous namespace


namespace Gtk
{

//static:
void AboutDialog::set_email_hook(const SlotActivateLink& slot)
{
  // Create a signal proxy.  A pointer to this will be passed
  // through the callback's data parameter.  It will be deleted
  // when SignalProxy_ActivateLink::gtk_callback_destroy() is called.
  SignalProxy_ActivateLink *const pSignalProxy = new SignalProxy_ActivateLink(slot);

  gtk_about_dialog_set_email_hook(
      &SignalProxy_ActivateLink::gtk_callback, pSignalProxy,
      &SignalProxy_ActivateLink::gtk_callback_destroy);
}
  
//static:
void AboutDialog::set_url_hook(const SlotActivateLink& slot)
{
  // Create a signal proxy.  A pointer to this will be passed
  // through the callback's data parameter.  It will be deleted
  // when SignalProxy_ActivateLink::gtk_callback_destroy() is called.
  SignalProxy_ActivateLink *const pSignalProxy = new SignalProxy_ActivateLink(slot);

  gtk_about_dialog_set_url_hook(
      &SignalProxy_ActivateLink::gtk_callback, pSignalProxy,
      &SignalProxy_ActivateLink::gtk_callback_destroy);
} 

} // namespace Gtk


namespace
{
} // anonymous namespace


namespace Glib
{

00121 Gtk::AboutDialog* wrap(GtkAboutDialog* object, bool take_copy)
{
  return dynamic_cast<Gtk::AboutDialog *> (Glib::wrap_auto ((GObject*)(object), take_copy));
}

} /* namespace Glib */

namespace Gtk
{


/* The *_Class implementation: */

const Glib::Class& AboutDialog_Class::init()
{
  if(!gtype_) // create the GType if necessary
  {
    // Glib::Class has to know the class init function to clone custom types.
    class_init_func_ = &AboutDialog_Class::class_init_function;

    // This is actually just optimized away, apparently with no harm.
    // Make sure that the parent type has been created.
    //CppClassParent::CppObjectType::get_type();

    // Create the wrapper type, with the same class/instance size as the base type.
    register_derived_type(gtk_about_dialog_get_type());

    // Add derived versions of interfaces, if the C type implements any interfaces:
  }

  return *this;
}

void AboutDialog_Class::class_init_function(void* g_class, void* class_data)
{
  BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
  CppClassParent::class_init_function(klass, class_data);

}


Glib::ObjectBase* AboutDialog_Class::wrap_new(GObject* o)
{
  return new AboutDialog((GtkAboutDialog*)(o)); //top-level windows can not be manage()ed.

}


/* The implementation: */

AboutDialog::AboutDialog(const Glib::ConstructParams& construct_params)
:
  Gtk::Dialog(construct_params)
{
  }

AboutDialog::AboutDialog(GtkAboutDialog* castitem)
:
  Gtk::Dialog((GtkDialog*)(castitem))
{
  }

AboutDialog::~AboutDialog()
{
  destroy_();
}

AboutDialog::CppClassType AboutDialog::aboutdialog_class_; // initialize static member

GType AboutDialog::get_type()
{
  return aboutdialog_class_.init().get_type();
}

GType AboutDialog::get_base_type()
{
  return gtk_about_dialog_get_type();
}


AboutDialog::AboutDialog()
:
  Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
  Gtk::Dialog(Glib::ConstructParams(aboutdialog_class_.init()))
{
  }

00208 Glib::ustring AboutDialog::get_name() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_name(const_cast<GtkAboutDialog*>(gobj())));
}

00213 void AboutDialog::set_name(const Glib::ustring& name)
{
  gtk_about_dialog_set_name(gobj(), name.c_str());
}

00218 Glib::ustring AboutDialog::get_version() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_version(const_cast<GtkAboutDialog*>(gobj())));
}

00223 void AboutDialog::set_version(const Glib::ustring& version)
{
  gtk_about_dialog_set_version(gobj(), version.c_str());
}

00228 Glib::ustring AboutDialog::get_copyright() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_copyright(const_cast<GtkAboutDialog*>(gobj())));
}

00233 void AboutDialog::set_copyright(const Glib::ustring& copyright)
{
  gtk_about_dialog_set_copyright(gobj(), copyright.c_str());
}

00238 Glib::ustring AboutDialog::get_comments() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_comments(const_cast<GtkAboutDialog*>(gobj())));
}

00243 void AboutDialog::set_comments(const Glib::ustring& comments)
{
  gtk_about_dialog_set_comments(gobj(), comments.c_str());
}

00248 Glib::ustring AboutDialog::get_license() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_license(const_cast<GtkAboutDialog*>(gobj())));
}

00253 void AboutDialog::set_license(const Glib::ustring& license)
{
  gtk_about_dialog_set_license(gobj(), license.c_str());
}

00258 Glib::ustring AboutDialog::get_website() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_website(const_cast<GtkAboutDialog*>(gobj())));
}

00263 void AboutDialog::set_website(const Glib::ustring& website)
{
  gtk_about_dialog_set_website(gobj(), website.c_str());
}

00268 Glib::ustring AboutDialog::get_website_label() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_website_label(const_cast<GtkAboutDialog*>(gobj())));
}

00273 void AboutDialog::set_website_label(const Glib::ustring& website_label)
{
  gtk_about_dialog_set_website_label(gobj(), website_label.c_str());
}

00278 Glib::StringArrayHandle AboutDialog::get_authors() const
{
  return Glib::StringArrayHandle(gtk_about_dialog_get_authors(const_cast<GtkAboutDialog*>(gobj())));
}

00283 void AboutDialog::set_authors(const Glib::StringArrayHandle& authors) const
{
  gtk_about_dialog_set_authors(const_cast<GtkAboutDialog*>(gobj()), const_cast<const gchar**>((authors).data()));
}

00288 Glib::StringArrayHandle AboutDialog::get_documenters() const
{
  return Glib::StringArrayHandle(gtk_about_dialog_get_documenters(const_cast<GtkAboutDialog*>(gobj())));
}

00293 void AboutDialog::set_documenters(const Glib::StringArrayHandle& documenters)
{
  gtk_about_dialog_set_documenters(gobj(), const_cast<const gchar**>((documenters).data()));
}

00298 Glib::StringArrayHandle AboutDialog::get_artists() const
{
  return Glib::StringArrayHandle(gtk_about_dialog_get_artists(const_cast<GtkAboutDialog*>(gobj())));
}

00303 void AboutDialog::set_artists(const Glib::StringArrayHandle& artists)
{
  gtk_about_dialog_set_artists(gobj(), const_cast<const gchar**>((artists).data()));
}

00308 Glib::ustring AboutDialog::get_translator_credits() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_translator_credits(const_cast<GtkAboutDialog*>(gobj())));
}

00313 void AboutDialog::set_translator_credits(const Glib::ustring& translator_credits)
{
  gtk_about_dialog_set_translator_credits(gobj(), translator_credits.c_str());
}

00318 Glib::RefPtr<Gdk::Pixbuf> AboutDialog::get_logo()
{
  return Glib::wrap(gtk_about_dialog_get_logo(gobj()));
}

00323 Glib::RefPtr<const Gdk::Pixbuf> AboutDialog::get_logo() const
{
  return Glib::wrap(gtk_about_dialog_get_logo(const_cast<GtkAboutDialog*>(gobj())));
}

00328 void AboutDialog::set_logo(const Glib::RefPtr<Gdk::Pixbuf>& logo)
{
  gtk_about_dialog_set_logo(gobj(), Glib::unwrap(logo));
}

00333 Glib::ustring AboutDialog::get_logo_icon_name() const
{
  return Glib::convert_const_gchar_ptr_to_ustring(gtk_about_dialog_get_logo_icon_name(const_cast<GtkAboutDialog*>(gobj())));
}

00338 void AboutDialog::set_logo_icon_name(const Glib::ustring& icon_name)
{
  gtk_about_dialog_set_logo_icon_name(gobj(), icon_name.c_str());
}


00344 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_name() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "name");
}

00349 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_name() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "name");
}

00354 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_version() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "version");
}

00359 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_version() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "version");
}

00364 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_copyright() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "copyright");
}

00369 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_copyright() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "copyright");
}

00374 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_comments() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "comments");
}

00379 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_comments() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "comments");
}

00384 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_website() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "website");
}

00389 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_website() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "website");
}

00394 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_website_label() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "website-label");
}

00399 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_website_label() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "website-label");
}

00404 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_license() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "license");
}

00409 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_license() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "license");
}

00414 Glib::PropertyProxy<Glib::StringArrayHandle> AboutDialog::property_authors() 
{
  return Glib::PropertyProxy<Glib::StringArrayHandle>(this, "authors");
}

00419 Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle> AboutDialog::property_authors() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle>(this, "authors");
}

00424 Glib::PropertyProxy<Glib::StringArrayHandle> AboutDialog::property_documenters() 
{
  return Glib::PropertyProxy<Glib::StringArrayHandle>(this, "documenters");
}

00429 Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle> AboutDialog::property_documenters() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle>(this, "documenters");
}

00434 Glib::PropertyProxy<Glib::StringArrayHandle> AboutDialog::property_translator_credits() 
{
  return Glib::PropertyProxy<Glib::StringArrayHandle>(this, "translator-credits");
}

00439 Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle> AboutDialog::property_translator_credits() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle>(this, "translator-credits");
}

00444 Glib::PropertyProxy<Glib::StringArrayHandle> AboutDialog::property_artists() 
{
  return Glib::PropertyProxy<Glib::StringArrayHandle>(this, "artists");
}

00449 Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle> AboutDialog::property_artists() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::StringArrayHandle>(this, "artists");
}

00454 Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > AboutDialog::property_logo() 
{
  return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "logo");
}

00459 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > AboutDialog::property_logo() const
{
  return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> >(this, "logo");
}

00464 Glib::PropertyProxy<Glib::ustring> AboutDialog::property_logo_icon_name() 
{
  return Glib::PropertyProxy<Glib::ustring>(this, "logo-icon-name");
}

00469 Glib::PropertyProxy_ReadOnly<Glib::ustring> AboutDialog::property_logo_icon_name() const
{
  return Glib::PropertyProxy_ReadOnly<Glib::ustring>(this, "logo-icon-name");
}


} // namespace Gtk



Generated by  Doxygen 1.6.0   Back to index