Ardour  9.0-pre0-384-ga76afae0e9
statusbar.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_STATUSBAR_H
4 #define _GTKMM_STATUSBAR_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: statusbar.hg,v 1.2 2003/10/12 09:38:11 murrayc Exp $ */
11 
12 /* statusbar.h
13  *
14  * Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/box.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkStatusbar GtkStatusbar;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class Statusbar_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
57 class Statusbar : public HBox
58 {
59  public:
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61  typedef Statusbar CppObjectType;
62  typedef Statusbar_Class CppClassType;
63  typedef GtkStatusbar BaseObjectType;
64  typedef GtkStatusbarClass BaseClassType;
65 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
66 
67  virtual ~Statusbar();
68 
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70 
71 private:
72  friend class Statusbar_Class;
73  static CppClassType statusbar_class_;
74 
75  // noncopyable
76  Statusbar(const Statusbar&);
77  Statusbar& operator=(const Statusbar&);
78 
79 protected:
80  explicit Statusbar(const Glib::ConstructParams& construct_params);
81  explicit Statusbar(GtkStatusbar* castitem);
82 
83 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
84 
85 public:
86 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87  static GType get_type() G_GNUC_CONST;
88 
89 
90  static GType get_base_type() G_GNUC_CONST;
91 #endif
92 
94  GtkStatusbar* gobj() { return reinterpret_cast<GtkStatusbar*>(gobject_); }
95 
97  const GtkStatusbar* gobj() const { return reinterpret_cast<GtkStatusbar*>(gobject_); }
98 
99 
100 public:
101  //C++ methods used to invoke GTK+ virtual functions:
102 
103 protected:
104  //GTK+ Virtual Functions (override these to change behaviour):
105 
106  //Default Signal Handlers::
108  virtual void on_text_pushed(guint context_id, const Glib::ustring& text);
110  virtual void on_text_popped(guint context_id, const Glib::ustring& text);
111 
112 
113 private:
114 
115 
116 public:
118 
119 
128  guint get_context_id(const Glib::ustring& context_description);
129 
130  //TODO: Remove the default 0 context_id values in all these methods?
131 
136  guint push(const Glib::ustring& text, guint context_id = 0);
137 
138 
148  void pop(guint context_id = 0);
149 
155  void remove_message(guint message_id, guint context_id = 0);
156 
157 
163  void remove_all_messages(guint context_id = 0);
164 
165 
171  void set_has_resize_grip(bool setting = true);
172 
177  bool get_has_resize_grip() const;
178 
179  //This actually returns a GtkFrame, though the documentation describes it as "box".
180  //I'm not generally happy about API that returns an unknown type. murrayc.
181 
187 
193 
194 
201  Glib::SignalProxy2< void,guint,const Glib::ustring& > signal_text_pushed();
202 
203 
210  Glib::SignalProxy2< void,guint,const Glib::ustring& > signal_text_popped();
211 
212 
218  Glib::PropertyProxy< bool > property_has_resize_grip() ;
219 
225  Glib::PropertyProxy_ReadOnly< bool > property_has_resize_grip() const;
226 
227 
228 };
229 
230 } /* namespace Gtk */
231 
232 
233 namespace Glib
234 {
243  Gtk::Statusbar* wrap(GtkStatusbar* object, bool take_copy = false);
244 } //namespace Glib
245 
246 
247 #endif /* _GTKMM_STATUSBAR_H */
248 
Glib::PropertyProxy_ReadOnly< bool > property_has_resize_grip() const
Gtk::Widget * get_message_area()
virtual ~Statusbar()
guint get_context_id(const Glib::ustring &context_description)
Glib::SignalProxy2< void, guint, const Glib::ustring & > signal_text_pushed()
bool get_has_resize_grip() const
const GtkStatusbar * gobj() const
Provides access to the underlying C GtkObject.
Definition: statusbar.h:97
Gtk::Statusbar * wrap(GtkStatusbar *object, bool take_copy=false)
void set_has_resize_grip(bool setting=true)
guint push(const Glib::ustring &text, guint context_id=0)
virtual void on_text_popped(guint context_id, const Glib::ustring &text)
This is a default handler for the signal signal_text_popped().
Glib::SignalProxy2< void, guint, const Glib::ustring & > signal_text_popped()
const Gtk::Widget * get_message_area() const
void remove_all_messages(guint context_id=0)
void pop(guint context_id=0)
GtkStatusbar * gobj()
Provides access to the underlying C GtkObject.
Definition: statusbar.h:94
void remove_message(guint message_id, guint context_id=0)
Glib::PropertyProxy< bool > property_has_resize_grip()
virtual void on_text_pushed(guint context_id, const Glib::ustring &text)
This is a default handler for the signal signal_text_pushed().
Definition: ardour_ui.h:187