1 /* $Id: statusbar.hg,v 1.2 2003/10/12 09:38:11 murrayc Exp $ */
5 * Copyright (C) 1998-2002 The gtkmm Development Team
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <gtkmm/box.h>
25 _PINCLUDE(gtkmm/private/box_p.h)
30 /** Text status indicator
31 * This widget is used to display status information.
32 * Messages are pushed and poped onto a message stack.
33 * When text is pushed it replaces the old contents.
34 * The old text is restored when popped.
36 * It derives from Gtk::HBox so that additional information can be added
41 class Statusbar : public HBox
43 _CLASS_GTKOBJECT(Statusbar,GtkStatusbar,GTK_STATUSBAR,Gtk::HBox,GtkHBox)
44 _IGNORE(gtk_statusbar_push, gtk_statusbar_remove)
48 _WRAP_METHOD(guint get_context_id(const Glib::ustring& context_description), gtk_statusbar_get_context_id)
49 guint push(const Glib::ustring& text, guint context_id = 0);
50 _WRAP_METHOD(void pop(guint context_id = 0), gtk_statusbar_pop)
51 void remove_message(guint message_id, guint context_id = 0);
52 _WRAP_METHOD(void set_has_resize_grip(bool setting = true), gtk_statusbar_set_has_resize_grip)
53 _WRAP_METHOD(bool get_has_resize_grip() const, gtk_statusbar_get_has_resize_grip)
55 _WRAP_SIGNAL(void text_pushed(guint context_id, const Glib::ustring& text), "text_pushed")
56 _WRAP_SIGNAL(void text_popped(guint context_id, const Glib::ustring& text), "text_popped")
58 _WRAP_PROPERTY("has_resize_grip", bool)