Ardour  9.0-pre0-582-g084a23a80d
messagedialog.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_MESSAGEDIALOG_H
4 #define _GTKMM_MESSAGEDIALOG_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: messagedialog.hg,v 1.15 2006/06/20 18:46:59 murrayc Exp $ */
11 
12 /* messagedialog.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/dialog.h>
32 #include <gtkmm/enums.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkMessageDialog GtkMessageDialog;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gtk
42 { class MessageDialog_Class; } // namespace Gtk
43 namespace Gtk
44 {
45 
46 
54 {
61 };
62 
63 } // namespace Gtk
64 
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 namespace Glib
68 {
69 
70 template <>
71 class Value<Gtk::ButtonsType> : public Glib::Value_Enum<Gtk::ButtonsType>
72 {
73 public:
74  static GType value_type() G_GNUC_CONST;
75 };
76 
77 } // namespace Glib
78 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
79 
80 
81 namespace Gtk
82 {
83 
84 
96 class MessageDialog : public Dialog
97 {
98  public:
99 #ifndef DOXYGEN_SHOULD_SKIP_THIS
100  typedef MessageDialog CppObjectType;
101  typedef MessageDialog_Class CppClassType;
102  typedef GtkMessageDialog BaseObjectType;
103  typedef GtkMessageDialogClass BaseClassType;
104 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
105 
106  virtual ~MessageDialog();
107 
108 #ifndef DOXYGEN_SHOULD_SKIP_THIS
109 
110 private:
111  friend class MessageDialog_Class;
112  static CppClassType messagedialog_class_;
113 
114  // noncopyable
116  MessageDialog& operator=(const MessageDialog&);
117 
118 protected:
119  explicit MessageDialog(const Glib::ConstructParams& construct_params);
120  explicit MessageDialog(GtkMessageDialog* castitem);
121 
122 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
123 
124 public:
125 #ifndef DOXYGEN_SHOULD_SKIP_THIS
126  static GType get_type() G_GNUC_CONST;
127 
128 
129  static GType get_base_type() G_GNUC_CONST;
130 #endif
131 
133  GtkMessageDialog* gobj() { return reinterpret_cast<GtkMessageDialog*>(gobject_); }
134 
136  const GtkMessageDialog* gobj() const { return reinterpret_cast<GtkMessageDialog*>(gobject_); }
137 
138 
139 public:
140  //C++ methods used to invoke GTK+ virtual functions:
141 
142 protected:
143  //GTK+ Virtual Functions (override these to change behaviour):
144 
145  //Default Signal Handlers::
146 
147 
148 private:
149 
150 
151 public:
152  explicit MessageDialog(const Glib::ustring& message, bool use_markup = false, MessageType type = MESSAGE_INFO, ButtonsType buttons = BUTTONS_OK, bool modal = false);
153  MessageDialog(Gtk::Window& parent, const Glib::ustring& message, bool use_markup = false, MessageType type = MESSAGE_INFO, ButtonsType buttons = BUTTONS_OK, bool modal = false);
154 
155 
161 
167 
172  const Widget* get_image() const;
173 
174 
175 #ifndef GTKMM_DISABLE_DEPRECATED
176 
185  void set_markup(const Glib::ustring& str);
186 #endif // GTKMM_DISABLE_DEPRECATED
187 
188 
194  void set_message(const Glib::ustring& message, bool use_markup = false);
195 
196 
203  void set_secondary_text(const Glib::ustring& text, bool use_markup = false);
204 
205 
217 
228  const VBox* get_message_area() const;
229 
235  Glib::PropertyProxy< MessageType > property_message_type() ;
236 
242  Glib::PropertyProxy_ReadOnly< MessageType > property_message_type() const;
243 
244  //gtkmmproc error: buttons : attempt to wrap write-only and construct-only property.
250  Glib::PropertyProxy< Glib::ustring > property_text() ;
251 
257  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_text() const;
258 
264  Glib::PropertyProxy< bool > property_use_markup() ;
265 
271  Glib::PropertyProxy_ReadOnly< bool > property_use_markup() const;
272 
278  Glib::PropertyProxy< Glib::ustring > property_secondary_text() ;
279 
285  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_secondary_text() const;
286 
292  Glib::PropertyProxy< bool > property_secondary_use_markup() ;
293 
299  Glib::PropertyProxy_ReadOnly< bool > property_secondary_use_markup() const;
300 
306  Glib::PropertyProxy< Widget* > property_image() ;
307 
313  Glib::PropertyProxy_ReadOnly< Widget* > property_image() const;
314 
320  Glib::PropertyProxy_ReadOnly< VBox* > property_message_area() const;
321 
322 
323 };
324 
325 } // namespace Gtk
326 
327 
328 namespace Glib
329 {
338  Gtk::MessageDialog* wrap(GtkMessageDialog* object, bool take_copy = false);
339 } //namespace Glib
340 
341 
342 #endif /* _GTKMM_MESSAGEDIALOG_H */
343 
Glib::PropertyProxy< Widget * > property_image()
VBox * get_message_area()
MessageDialog(Gtk::Window &parent, const Glib::ustring &message, bool use_markup=false, MessageType type=MESSAGE_INFO, ButtonsType buttons=BUTTONS_OK, bool modal=false)
void set_image(Widget &image)
Glib::PropertyProxy< bool > property_use_markup()
void set_secondary_text(const Glib::ustring &text, bool use_markup=false)
Widget * get_image()
const Widget * get_image() const
const VBox * get_message_area() const
GtkMessageDialog * gobj()
Provides access to the underlying C GtkObject.
Glib::PropertyProxy< Glib::ustring > property_text()
Glib::PropertyProxy< bool > property_secondary_use_markup()
Glib::PropertyProxy_ReadOnly< MessageType > property_message_type() const
Glib::PropertyProxy_ReadOnly< bool > property_use_markup() const
Glib::PropertyProxy_ReadOnly< bool > property_secondary_use_markup() const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_secondary_text() const
void set_message(const Glib::ustring &message, bool use_markup=false)
Glib::PropertyProxy_ReadOnly< Widget * > property_image() const
Glib::PropertyProxy< MessageType > property_message_type()
void set_markup(const Glib::ustring &str)
Gtk::MessageDialog * wrap(GtkMessageDialog *object, bool take_copy=false)
Glib::PropertyProxy< Glib::ustring > property_secondary_text()
Glib::PropertyProxy_ReadOnly< VBox * > property_message_area() const
virtual ~MessageDialog()
const GtkMessageDialog * gobj() const
Provides access to the underlying C GtkObject.
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_text() const
MessageDialog(const Glib::ustring &message, bool use_markup=false, MessageType type=MESSAGE_INFO, ButtonsType buttons=BUTTONS_OK, bool modal=false)
ButtonsType
Definition: messagedialog.h:54
@ BUTTONS_OK
Definition: messagedialog.h:56
@ BUTTONS_CLOSE
Definition: messagedialog.h:57
@ BUTTONS_NONE
Definition: messagedialog.h:55
@ BUTTONS_CANCEL
Definition: messagedialog.h:58
@ BUTTONS_YES_NO
Definition: messagedialog.h:59
@ BUTTONS_OK_CANCEL
Definition: messagedialog.h:60
GtkImageImageData image
Definition: gtkimage.h:1
Definition: ardour_ui.h:188
Definition: lobject.h:100