Ardour  9.0-pre0-427-gd2a3450e2f
infobar.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_INFOBAR_H
4 #define _GTKMM_INFOBAR_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: infobar.hg,v 1.10 2006/08/21 19:07:14 jjongsma Exp $ */
11 
12 /* Copyright (C) 2009 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 #include <gtkmm/box.h>
30 #include <gtkmm/button.h>
31 #include <gtkmm/enums.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkInfoBar GtkInfoBar;
36 typedef struct _GtkInfoBarClass GtkInfoBarClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class InfoBar_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
45 //TODO: Derive from Gtk::Buildable when we can break ABI.
46 
64 class InfoBar : public HBox
65 {
66  public:
67 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68  typedef InfoBar CppObjectType;
69  typedef InfoBar_Class CppClassType;
70  typedef GtkInfoBar BaseObjectType;
71  typedef GtkInfoBarClass BaseClassType;
72 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
73 
74  virtual ~InfoBar();
75 
76 #ifndef DOXYGEN_SHOULD_SKIP_THIS
77 
78 private:
79  friend class InfoBar_Class;
80  static CppClassType infobar_class_;
81 
82  // noncopyable
83  InfoBar(const InfoBar&);
84  InfoBar& operator=(const InfoBar&);
85 
86 protected:
87  explicit InfoBar(const Glib::ConstructParams& construct_params);
88  explicit InfoBar(GtkInfoBar* castitem);
89 
90 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
91 
92 public:
93 #ifndef DOXYGEN_SHOULD_SKIP_THIS
94  static GType get_type() G_GNUC_CONST;
95 
96 
97  static GType get_base_type() G_GNUC_CONST;
98 #endif
99 
101  GtkInfoBar* gobj() { return reinterpret_cast<GtkInfoBar*>(gobject_); }
102 
104  const GtkInfoBar* gobj() const { return reinterpret_cast<GtkInfoBar*>(gobject_); }
105 
106 
107 public:
108  //C++ methods used to invoke GTK+ virtual functions:
109 
110 protected:
111  //GTK+ Virtual Functions (override these to change behaviour):
112 
113  //Default Signal Handlers::
115  virtual void on_response(int response_id);
116 
117 
118 private:
119 
120 public:
121 
123 
124 
125 //TODO: What types are these widgets really?
126 
132 
137  const Widget* get_action_area() const;
138 
139 
145 
150  const Widget* get_content_area() const;
151 
152 
161  void add_action_widget(Widget& child, int response_id);
162 
163 
174  Button* add_button(const Glib::ustring& button_text, int response_id);
175 
186  Button* add_button(const Gtk::StockID& stock_id, int response_id);
187 
188 
196  void set_response_sensitive(int response_id, bool setting = true);
197 
207  void set_default_response(int response_id);
208 
209 
214  void response(int response_id);
215 
216 
223  void set_message_type(MessageType message_type);
224 
230 
231 
238  Glib::SignalProxy1< void,int > signal_response();
239 
240 
246  Glib::PropertyProxy< MessageType > property_message_type() ;
247 
253  Glib::PropertyProxy_ReadOnly< MessageType > property_message_type() const;
254 
255 
256 };
257 
258 } // namespace Gtk
259 
260 
261 namespace Glib
262 {
271  Gtk::InfoBar* wrap(GtkInfoBar* object, bool take_copy = false);
272 } //namespace Glib
273 
274 
275 #endif /* _GTKMM_INFOBAR_H */
276 
Button * add_button(const Glib::ustring &button_text, int response_id)
const Widget * get_action_area() const
void set_message_type(MessageType message_type)
virtual ~InfoBar()
Glib::PropertyProxy_ReadOnly< MessageType > property_message_type() const
void response(int response_id)
void set_response_sensitive(int response_id, bool setting=true)
Gtk::InfoBar * wrap(GtkInfoBar *object, bool take_copy=false)
Glib::SignalProxy1< void, int > signal_response()
GtkInfoBar * gobj()
Provides access to the underlying C GtkObject.
Definition: infobar.h:101
MessageType get_message_type() const
Glib::PropertyProxy< MessageType > property_message_type()
void set_default_response(int response_id)
void add_action_widget(Widget &child, int response_id)
Button * add_button(const Gtk::StockID &stock_id, int response_id)
const Widget * get_content_area() const
Widget * get_content_area()
const GtkInfoBar * gobj() const
Provides access to the underlying C GtkObject.
Definition: infobar.h:104
virtual void on_response(int response_id)
This is a default handler for the signal signal_response().
Widget * get_action_area()
Definition: ardour_ui.h:188