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

#include <glibmm.h>

/* $Id: liststore.hg,v 1.18 2002/10/11 18:05:57 murrayc Exp $ */

/* liststore.h
 *
 * Copyright(C) 1998-2002 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 <glibmm/object.h>
#include <gtkmm/treeiter.h>
#include <gtkmm/treemodel.h>
#include <gtkmm/treesortable.h>
#include <gtkmm/treedragdest.h>
#include <gtkmm/treedragsource.h>
#include <gtkmm/treepath.h> //We couldn't include it in treemodel.h, but doing it here makes it easier for people.
#include <glibmm/arrayhandle.h>
#include <glibmm/value.h>


#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _GtkListStore GtkListStore;
typedef struct _GtkListStoreClass GtkListStoreClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */


namespace Gtk
{ class ListStore_Class; } // namespace Gtk
namespace Gtk
{

/** Thist is a list model for use with a Gtk::TreeView widget.
 * It implements the Gtk::TreeModel interface, and also implements the Gtk::TreeSortable interface so you can sort the list using the view.
 * Finally, it also implements the tree drag and drop interfaces.
 *
 * @ingroup TreeView
*/

class ListStore
 : public Glib::Object,
   public TreeModel,
   public TreeSortable,
   public TreeDragSource,
   public TreeDragDest
{
   
#ifndef DOXYGEN_SHOULD_SKIP_THIS

public:
  typedef ListStore CppObjectType;
  typedef ListStore_Class CppClassType;
  typedef GtkListStore BaseObjectType;
  typedef GtkListStoreClass BaseClassType;

private:
  friend class ListStore_Class;
  static CppClassType liststore_class_;

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

protected:
  explicit ListStore(const Glib::ConstructParams& construct_params);
  explicit ListStore(GtkListStore* castitem);

#endif /* DOXYGEN_SHOULD_SKIP_THIS */

public:
  virtual ~ListStore();

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

  GtkListStore*       gobj()       { return reinterpret_cast<GtkListStore*>(gobject_); }
  const GtkListStore* gobj() const { return reinterpret_cast<GtkListStore*>(gobject_); }

  GtkListStore* gobj_copy();

private:

   
protected:
  explicit ListStore(const TreeModelColumnRecord& columns);

public:
  
  static Glib::RefPtr<ListStore> create(const TreeModelColumnRecord& columns);


  iterator erase(const iterator& iter);
  
  iterator insert(const iterator& iter);
  iterator prepend();
  iterator append();

  
  /** Removes all rows from the list store.
   */
  void clear();

protected:
  virtual void set_value_impl(const iterator& row, int column,
                              const Glib::ValueBase& value);


public:

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

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

  //Default Signal Handlers::


};

} // namespace Gtk


namespace Glib
{
  /** @relates Gtk::ListStore */
  Glib::RefPtr<Gtk::ListStore> wrap(GtkListStore* object, bool take_copy = false);
}


#endif /* _GTKMM_LISTSTORE_H */

