Ardour  9.0-pre0-386-g96ef4d20f2
assistant.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_ASSISTANT_H
4 #define _GTKMM_ASSISTANT_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: assistant.hg,v 1.4 2006/06/13 17:16:26 murrayc Exp $ */
11 
12 /* assistant.h
13  *
14  * Copyright (C) 2004 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/window.h>
32 #include <gdkmm/pixbuf.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkAssistant GtkAssistant;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gtk
42 { class Assistant_Class; } // namespace Gtk
43 namespace Gtk
44 {
45 
53 {
59 };
60 
61 } // namespace Gtk
62 
63 
64 #ifndef DOXYGEN_SHOULD_SKIP_THIS
65 namespace Glib
66 {
67 
68 template <>
69 class Value<Gtk::AssistantPageType> : public Glib::Value_Enum<Gtk::AssistantPageType>
70 {
71 public:
72  static GType value_type() G_GNUC_CONST;
73 };
74 
75 } // namespace Glib
76 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
77 
78 
79 namespace Gtk
80 {
81 
82 
91 class Assistant : public Window
92 {
93  public:
94 #ifndef DOXYGEN_SHOULD_SKIP_THIS
95  typedef Assistant CppObjectType;
96  typedef Assistant_Class CppClassType;
97  typedef GtkAssistant BaseObjectType;
98  typedef GtkAssistantClass BaseClassType;
99 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
100 
101  virtual ~Assistant();
102 
103 #ifndef DOXYGEN_SHOULD_SKIP_THIS
104 
105 private:
106  friend class Assistant_Class;
107  static CppClassType assistant_class_;
108 
109  // noncopyable
110  Assistant(const Assistant&);
111  Assistant& operator=(const Assistant&);
112 
113 protected:
114  explicit Assistant(const Glib::ConstructParams& construct_params);
115  explicit Assistant(GtkAssistant* castitem);
116 
117 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
118 
119 public:
120 #ifndef DOXYGEN_SHOULD_SKIP_THIS
121  static GType get_type() G_GNUC_CONST;
122 
123 
124  static GType get_base_type() G_GNUC_CONST;
125 #endif
126 
128  GtkAssistant* gobj() { return reinterpret_cast<GtkAssistant*>(gobject_); }
129 
131  const GtkAssistant* gobj() const { return reinterpret_cast<GtkAssistant*>(gobject_); }
132 
133 
134 public:
135  //C++ methods used to invoke GTK+ virtual functions:
136 
137 protected:
138  //GTK+ Virtual Functions (override these to change behaviour):
139 
140  //Default Signal Handlers::
142  virtual void on_prepare(Gtk::Widget* page);
144  virtual void on_apply();
146  virtual void on_close();
148  virtual void on_cancel();
149 
150 
151 private:
152 
153 
154 public:
156 
157 
163  int get_current_page() const;
164 
174  void set_current_page(int page_num);
175 
180  int get_n_pages() const;
181 
188  Widget* get_nth_page(int page_num);
189 
196  const Widget* get_nth_page(int page_num) const;
197 
203  int prepend_page(Widget& page);
204 
210  int append_page(Widget& page);
211 
219  int insert_page(Widget& page, int position);
220 
221  typedef sigc::slot<int, int /* current_page */> SlotForwardPage;
222 
224 
225 
232  void set_page_type(const Widget& page, AssistantPageType type);
233 
240 
247  void set_page_title(const Widget& page, const Glib::ustring& title);
248 
254  Glib::ustring get_page_title(const Widget& page) const;
255 
262  void set_page_header_image(const Widget& page, const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
263 
270  Glib::RefPtr<Gdk::Pixbuf> get_page_header_image(const Widget& page);
271 
278  Glib::RefPtr<const Gdk::Pixbuf> get_page_header_image(const Widget& page) const;
279 
286  void set_page_side_image(const Widget& page, const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
287 
294  Glib::RefPtr<Gdk::Pixbuf> get_page_side_image(const Widget& page);
295 
302  Glib::RefPtr<const Gdk::Pixbuf> get_page_side_image(const Widget& page) const;
303 
310  void set_page_complete(const Widget& page, bool complete = true);
311 
317  bool get_page_complete(const Widget& page) const;
318 
323  void add_action_widget(Widget& child);
324 
330 
342 
353  void commit();
354 
355 
362  Glib::SignalProxy1< void,Gtk::Widget* > signal_prepare();
363 
364 
371  Glib::SignalProxy0< void > signal_apply();
372 
373 
380  Glib::SignalProxy0< void > signal_close();
381 
382 
389  Glib::SignalProxy0< void > signal_cancel();
390 
391 
392  //There are no normal properties.
393  //TODO: Child properties?
394 
395 
396 };
397 
398 } // namespace Gtk
399 
400 
401 namespace Glib
402 {
411  Gtk::Assistant* wrap(GtkAssistant* object, bool take_copy = false);
412 } //namespace Glib
413 
414 
415 #endif /* _GTKMM_ASSISTANT_H */
416 
virtual ~Assistant()
Glib::ustring get_page_title(const Widget &page) const
void set_page_side_image(const Widget &page, const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
int prepend_page(Widget &page)
int get_current_page() const
void remove_action_widget(Widget &child)
Glib::SignalProxy1< void, Gtk::Widget * > signal_prepare()
Glib::RefPtr< const Gdk::Pixbuf > get_page_side_image(const Widget &page) const
virtual void on_close()
This is a default handler for the signal signal_close().
Glib::RefPtr< Gdk::Pixbuf > get_page_header_image(const Widget &page)
int get_n_pages() const
void set_page_complete(const Widget &page, bool complete=true)
sigc::slot< int, int > SlotForwardPage
Definition: assistant.h:221
GtkAssistant * gobj()
Provides access to the underlying C GtkObject.
Definition: assistant.h:128
Glib::SignalProxy0< void > signal_cancel()
void update_buttons_state()
void set_page_title(const Widget &page, const Glib::ustring &title)
void set_page_header_image(const Widget &page, const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
Glib::SignalProxy0< void > signal_apply()
Glib::RefPtr< Gdk::Pixbuf > get_page_side_image(const Widget &page)
bool get_page_complete(const Widget &page) const
void set_forward_page_func(const SlotForwardPage &slot)
int append_page(Widget &page)
Gtk::Assistant * wrap(GtkAssistant *object, bool take_copy=false)
int insert_page(Widget &page, int position)
Glib::SignalProxy0< void > signal_close()
virtual void on_prepare(Gtk::Widget *page)
This is a default handler for the signal signal_prepare().
virtual void on_apply()
This is a default handler for the signal signal_apply().
void add_action_widget(Widget &child)
void set_page_type(const Widget &page, AssistantPageType type)
AssistantPageType get_page_type(const Widget &page) const
Glib::RefPtr< const Gdk::Pixbuf > get_page_header_image(const Widget &page) const
void set_current_page(int page_num)
const Widget * get_nth_page(int page_num) const
virtual void on_cancel()
This is a default handler for the signal signal_cancel().
const GtkAssistant * gobj() const
Provides access to the underlying C GtkObject.
Definition: assistant.h:131
Widget * get_nth_page(int page_num)
AssistantPageType
Definition: assistant.h:53
@ ASSISTANT_PAGE_CONTENT
Definition: assistant.h:54
@ ASSISTANT_PAGE_INTRO
Definition: assistant.h:55
@ ASSISTANT_PAGE_CONFIRM
Definition: assistant.h:56
@ ASSISTANT_PAGE_PROGRESS
Definition: assistant.h:58
@ ASSISTANT_PAGE_SUMMARY
Definition: assistant.h:57
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
Definition: ardour_ui.h:187
Definition: lobject.h:100