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

#include <glibmm.h>

/* $Id: entry.hg,v 1.13 2004/03/30 15:05:27 mxpxpod Exp $ */


/* 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/combo.h>
//#include <libgnomeui/gnome-entry.h>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GnomeEntry GnomeEntry;
typedef struct _GnomeEntryClass GnomeEntryClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gnome
{

namespace UI
{ class Entry_Class; } // namespace UI

} // namespace Gnome
namespace Gnome
{

namespace UI
{

#ifndef GNOMEMM_DISABLE_DEPRECATED


class Entry
: virtual public Gtk::Combo,
  virtual public Gtk::Editable
{
  public:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
  typedef Entry CppObjectType;
  typedef Entry_Class CppClassType;
  typedef GnomeEntry BaseObjectType;
  typedef GnomeEntryClass BaseClassType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */

  virtual ~Entry();

#ifndef DOXYGEN_SHOULD_SKIP_THIS

private:
  friend class Entry_Class;
  static CppClassType entry_class_;

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

protected:
  explicit Entry(const Glib::ConstructParams& construct_params);
  explicit Entry(GnomeEntry* 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.
  GnomeEntry*       gobj()       { return reinterpret_cast<GnomeEntry*>(gobject_); }

  ///Provides access to the underlying C GtkObject.
  const GnomeEntry* gobj() const { return reinterpret_cast<GnomeEntry*>(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_activate();


private:

  
public:
  Entry();

  Gtk::Entry* get_gtk_entry();
  const Gtk::Entry* get_gtk_entry() const;
   
  
  void set_history_id(const Glib::ustring& history_id);
  
  Glib::ustring get_history_id() const;
  
  void set_max_saved(guint max_saved);
  
  guint get_max_saved() const;
  
  void prepend_history(bool save, const Glib::ustring& text);
  
  void append_history(bool save, const Glib::ustring& text);
  
  void clear_history();

  
  Glib::SignalProxy0< void > signal_activate();


  /** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy<Glib::ustring> property_history_id() ;

/** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy_ReadOnly<Glib::ustring> property_history_id() const;

  /** 
   *
   * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
   * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
   * the value of the property changes.
   */
  Glib::PropertyProxy_ReadOnly<Gtk::Entry> property_gtk_entry() const;


};

#endif //GNOMEMM_DISABLE_DEPRECATED

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


namespace Glib
{
  /** @relates Gnome::UI::Entry
   * @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::Entry* wrap(GnomeEntry* object, bool take_copy = false);
}
#endif /* _LIBGNOMEUIMM_ENTRY_H */

