// -*- c++ -*-
//  Generated by gtkmmproc from ./../fileselection.gen_h -- DO NOT MODIFY!
#include <gtk--/fileselection.h>
#include <gtk--/private/fileselection_p.h>
namespace Gtk
{

FileSelection::FileSelection(const nstring &title)
  :     Window((GtkWindow*)(gtk_object_new(get_type(),0)))
{
  initialize_class();
  set_title(title);
}

}

namespace Gtk {
Gtk::FileSelection *wrap (GtkFileSelection *o)
  {
    return static_cast<Gtk::FileSelection *> (Gtk::wrap_auto ((GtkObject *) (o)));
  }
}

namespace Gtk {
FileSelection_Class FileSelection::file_selection_class = {0};

Object* FileSelection_Class::wrap_new(GtkObject* o)
  {
    Object* cpp=manage(new FileSelection((GtkFileSelection*)(o)));
    return cpp;
  }

bool FileSelection::isA( Object *checkcast)
  {
    return GTK_IS_FILE_SELECTION(checkcast->gtkobj());
  }

GtkType FileSelection::get_type()
  {
    return file_selection_class.get_type();
  }

GtkType FileSelection_Class::get_type()
  {
    if (!type)
      {
        CppClassParent::CppObjectType::get_type();
        GtkTypeInfo info =
          {
            "Gtk__FileSelection",
            sizeof(BaseObjectType),
            sizeof(BaseClassType),
            (GtkClassInitFunc) class_init_function,
            (GtkObjectInitFunc) object_init_function,
            /* reserved_1 */ NULL,
            /* reserved_2 */ NULL,
            /*base_class_init_func */ (GtkClassInitFunc) NULL
          };
        type=gtk_type_unique(gtk_file_selection_get_type(), &info);
      }
    return type;
  }

const char* const FileSelection::signal_names[]={
   0};

void FileSelection::initialize_class()
  {

  }

void FileSelection_Class::class_init_function(GtkFileSelectionClass *klass)
  {
    CppClassParent::class_init_function((BaseClassParent*)klass);
  }

void FileSelection_Class::object_init_function(GtkFileSelection *)
  {}

}

Gtk::FileSelection::FileSelection(GtkFileSelection *castitem)
  :     Gtk::Window((GtkWindow*)(castitem))
  {
    initialize_class();
  }

Gtk::FileSelection::~FileSelection() { destroy_(); }

void Gtk::FileSelection::set_filename(const string& filename)
  {
    gtk_file_selection_set_filename(gtkobj(),filename.c_str());
  }

void Gtk::FileSelection::hide_fileop_buttons()
  {
    gtk_file_selection_hide_fileop_buttons(gtkobj());
  }

void Gtk::FileSelection::complete(const string& pattern)
  {
    gtk_file_selection_complete(gtkobj(),pattern.c_str());
  }

string Gtk::FileSelection::get_filename() const
  {
    return gtk_file_selection_get_filename(const_cast<GtkFileSelection*>(gtkobj()));
  }

void Gtk::FileSelection::show_fileop_buttons()
  {
    gtk_file_selection_show_fileop_buttons(gtkobj());
  }

Gtk::HBox* Gtk::FileSelection::get_action_area() const
  { return Gtk::wrap((GtkHBox*)(gtkobj()->action_area)); }

Gtk::Entry* Gtk::FileSelection::get_selection_entry() const
  { return Gtk::wrap((GtkEntry*)(gtkobj()->selection_entry)); }

Gtk::Label* Gtk::FileSelection::get_selection_text() const
  { return Gtk::wrap((GtkLabel*)(gtkobj()->selection_text)); }

Gtk::Button* Gtk::FileSelection::get_ok_button() const
  { return Gtk::wrap((GtkButton*)(gtkobj()->ok_button)); }

Gtk::Button* Gtk::FileSelection::get_cancel_button() const
  { return Gtk::wrap((GtkButton*)(gtkobj()->cancel_button)); }
