// -*- c++ -*-
/*  Generated by gensig from treeitem.gen_h. DO NOT MODIFY!!! */
#ifndef GTKMM_TREEITEM_HEADER
#define GTKMM_TREEITEM_HEADER
/* $Id: treeitem.gen_h,v 1.25.2.1 1999/03/20 05:00:17 terop Exp $ */

/* treeitem.h
 * 
 * Copyright (C) 1998-1999 
 *
 * 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--/item.h>
#include <gtk--/tree.h>
#include <gtk/gtktreeitem.h>
class Gtk_TreeItem_Class;
#line 25 "treeitem.gen_h"

class Gtk_TreeItem : public Gtk_Item {
public:
protected:
  typedef Gtk_TreeItem_Class    CppClassType;
  typedef GtkTreeItem           BaseObjectType;
  typedef GtkTreeItemClass      BaseClassType;

  virtual void *get_parent_class();

private:
  friend CppClassType;
  static CppClassType tree_item_class; 
  GtkType get_type(); 

public:


  Gtk_TreeItem();
  Gtk_TreeItem(const _gtk_string &label);
  Gtk_TreeItem(GtkTreeItem *castitem);
  // You cannot do set_subtree before you've added the treeitem to some
  // container. (Setting subtree requires parent of the TreeItem to exists
  // and it doesnt exists until you added it to some container.)

  void set_subtree(const Gtk_Tree &subtree);
  Gtk_Tree* get_subtree ();

  void remove_subtree();
/* these are defined in base class, not needed here 
  void select();
  void deselect();
*/
  Signal_proxy0<BaseObjectType> expand;
  Signal_proxy0<BaseObjectType> collapse;
/* these are signals.
  void expand();
  void collapse();
*/
protected:
  /* impl functions */
  virtual void expand_impl();
  virtual void collapse_impl();
public:
  GtkTreeItem* gtkobj() { return GTK_TREE_ITEM(gtkobject); }
  const GtkTreeItem* gtkobj() const { return GTK_TREE_ITEM(gtkobject); }
  static bool isGtkTreeItem(Gtk_Object *checkcast);
#line 51 "treeitem.gen_h"

};

#endif
