Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > ca81b57b553ae75608ba0fc5e7925e4e > files > 540

libgtkmm1.2-devel-1.2.10-1mdk.ppc.rpm

/* $Id: treeitem.gen_h,v 1.53 2001/02/10 00:52:24 kenelson Exp $ */

/* treeitem.h
 *
 * Copyright (C) 1998-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 <gtk--/item.h>
#include <gtk/gtktreeitem.h>

namespace Gtk {
class Tree;
class TreeItem : public Item {


public:
  typedef TreeItem          CppObjectType;
  typedef GtkTreeItem            BaseObjectType;

public:
  //: Returns the underlaying gtk+ object.
  GtkTreeItem* gtkobj();
  const GtkTreeItem* gtkobj() const;

  //: Returns true if object is this type.
  static bool isA(Gtk::Object *object);

  virtual ~TreeItem();

private:

public:

/*
  Not implemented:
    these are defined in base class, not needed here
      void select();
      void deselect();
*/

  explicit TreeItem(const Gdk_Pixmap &pixmap,
                    const Gdk_Bitmap &bitmap,
                    const string &label,
                    gfloat x=0.0,
                    gfloat y=0.5);

  explicit TreeItem(const string &label,gfloat x=0.0,gfloat y=0.5);

  TreeItem();



  Gtk::Tree* get_subtree() const;
  //- 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(Gtk::Widget& subtree);



  void remove_subtree();

    emitable signal void expand();

    emitable signal void collapse();

protected:
  // impl functions
    virtual void expand_impl();
    virtual void collapse_impl();

};


//+ PROPERTIES(Gtk_TreeItem)
//. name: subtree
//. type: Gtk_Widget*
//. get:
//. set:
//. desc:

//. name: pixmaps_box
//. type: Gtk_Widget*
//. get:
//. set:
//. desc:

//. name: pixmaps
//. type: GList*
//. get:
//. set:
//. desc: pixmap node for this items color depth

//. name: expanded
//. type: guint:1
//. get:
//. set:
//. desc:

}