// -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _LIBGNOMEUIMM_FILE_ENTRY_H
#define _LIBGNOMEUIMM_FILE_ENTRY_H

#include <glibmm.h>

/* $Id: file-entry.hg,v 1.12 2003/01/04 20:16:28 murrayc Exp $ */


/* file-entry.hg
 * 
 * Copyright (C) 1999 The Gtk-- 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 <gtkmm/box.h>
#include <gtkmm/editable.h>
//#include <libgnomeui/gnome-file-entry.h>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GnomeFileEntry GnomeFileEntry;
typedef struct _GnomeFileEntryClass GnomeFileEntryClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gnome
{

namespace UI
{ class FileEntry_Class; } // namespace UI

} // namespace Gnome
namespace Gnome
{

namespace UI
{


class FileEntry
 : public Gtk::VBox,
   public Gtk::Editable
{
  public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  typedef FileEntry CppObjectType;
  typedef FileEntry_Class CppClassType;
  typedef GnomeFileEntry BaseObjectType;
  typedef GnomeFileEntryClass BaseClassType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

  virtual ~FileEntry();

#ifndef DOXYGEN_SHOULD_SKIP_THIS

private:
  friend class FileEntry_Class;
  static CppClassType fileentry_class_;

  // noncopyable
  FileEntry(const FileEntry&);
  FileEntry& operator=(const FileEntry&);

protected:
  explicit FileEntry(const Glib::ConstructParams& construct_params);
  explicit FileEntry(GnomeFileEntry* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  static GType get_type()      G_GNUC_CONST;
  static GType get_base_type() G_GNUC_CONST;
#endif

  ///Provides access to the underlying C GtkObject.
  GnomeFileEntry*       gobj()       { return reinterpret_cast<GnomeFileEntry*>(gobject_); }

  ///Provides access to the underlying C GtkObject.
  const GnomeFileEntry* gobj() const { return reinterpret_cast<GnomeFileEntry*>(gobject_); }


public:
  //C++ methods used to invoke GTK+ virtual functions:

protected:
  //GTK+ Virtual Functions (override these to change behaviour):

  //Default Signal Handlers::
  virtual void on_browse_clicked();
  virtual void on_activate();


private:

  
public:
  FileEntry();

  FileEntry(const Glib::ustring& history_id, const Glib::ustring& browse_dialog_title);

  
  Gtk::Widget* gnome_entry();
  
  Gtk::Widget* gtk_entry();

  
  void set_title (const Glib::ustring& browse_dialog_title);
  
  void set_default_path(const Glib::ustring& path);
  
  void	set_directory_entry(bool directory_entry = true);
  
  bool get_directory_entry() const;
  
  Glib::ustring get_full_path(bool file_must_exist) const;
  
  void set_filename(const Glib::ustring& filename);
  
  void set_modal(bool is_modal = true);
  
  bool get_modal() const;

  
  Glib::SignalProxy0< void > signal_browse_clicked();
;
  

  Glib::SignalProxy0< void > signal_activate();
;


};

} /* namespace UI */
} /* namespace Gnome */ 


namespace Glib
{
  /** @relates Gnome::UI::FileEntry
   * @param object The C instance
   * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
   * @result A C++ instance that wraps this C instance.
   */
  Gnome::UI::FileEntry* wrap(GnomeFileEntry* object, bool take_copy = false);
}
#endif /* _LIBGNOMEUIMM_FILE_ENTRY_H */

