Remove ancient/unused flowcanvas and libglademm from repository.
[ardour.git] / libs / gtkmm2 / gtk / src / statusbar.hg
1 /* $Id: statusbar.hg,v 1.2 2003/10/12 09:38:11 murrayc Exp $ */
2
3 /* statusbar.h
4  * 
5  * Copyright (C) 1998-2002 The gtkmm Development Team
6  *
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.
11  *
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.
16  *
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.
20  */
21
22 #include <gtkmm/box.h>
23
24 _DEFS(gtkmm,gtk)
25 _PINCLUDE(gtkmm/private/box_p.h)
26
27 namespace Gtk
28 {
29
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.
35  *
36  * It derives from Gtk::HBox so that additional information can be added
37  * easily.
38  *
39  * @ingroup Widgets
40  */
41 class Statusbar : public HBox
42 {
43   _CLASS_GTKOBJECT(Statusbar,GtkStatusbar,GTK_STATUSBAR,Gtk::HBox,GtkHBox)
44   _IGNORE(gtk_statusbar_push, gtk_statusbar_remove)
45 public:
46   _CTOR_DEFAULT
47
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)
54
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")
57
58   _WRAP_PROPERTY("has_resize_grip", bool)
59 };
60
61 } /* namespace Gtk */
62