// -*- c++ -*-
/*  Generated by gensig from statusbar.gen_h. DO NOT MODIFY!!! */
#ifndef GTKMM_STATUSBAR_HEADER
#define GTKMM_STATUSBAR_HEADER
/* $Id: statusbar.gen_h,v 1.22.2.1 1999/03/20 05:00:07 terop Exp $ */

/* statusbar.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--/box.h>
#include <gtk/gtkstatusbar.h>


class Gtk_Statusbar_Class;
#line 26 "statusbar.gen_h"

class Gtk_Statusbar : public Gtk_HBox
{
public:
protected:
  typedef Gtk_Statusbar_Class    CppClassType;
  typedef GtkStatusbar           BaseObjectType;
  typedef GtkStatusbarClass      BaseClassType;

  virtual void *get_parent_class();

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

public:



  Gtk_Statusbar();
  Gtk_Statusbar(GtkStatusbar *castitem);
  
  Signal_proxy2<BaseObjectType,guint, const gchar*> text_pushed;
  Signal_proxy2<BaseObjectType,guint, const gchar*> text_popped;

  guint get_context_id (const _gtk_string &context_description) const;
  guint push           (guint context_id,
			const _gtk_string &text);
  void pop             (guint context_id);

  typedef G_SList_Iterator<GtkStatusbarMsg> iterator;
  iterator messages_begin() { return iterator(gtkobj()->messages);}
  iterator messages_end() { return iterator(static_cast<GSList*>(0));}

  // NOTE: this method name is not same as in gtk. In gtk this is called
  // gtk_statusbar_remove(). Gtk_Container already has remove()...
  void remove_message(guint context_id, guint message_id);

protected:
  /* impl functions */
  virtual void text_pushed_impl(guint p1, const gchar* p2);
  virtual void text_popped_impl(guint p1, const gchar* p2);
public:
  GtkStatusbar* gtkobj() { return GTK_STATUSBAR(gtkobject); }
  const GtkStatusbar* gtkobj() const { return GTK_STATUSBAR(gtkobject); }
  static bool isGtkStatusbar(Gtk_Object *checkcast);
#line 52 "statusbar.gen_h"

};

#endif
