Ardour  8.7-14-g57a6773833
gtkassistant.h
Go to the documentation of this file.
1 /*
2  * GTK - The GIMP Toolkit
3  * Copyright (C) 1999 Red Hat, Inc.
4  * Copyright (C) 2002 Anders Carlsson <andersca@gnu.org>
5  * Copyright (C) 2003 Matthias Clasen <mclasen@redhat.com>
6  * Copyright (C) 2005 Carlos Garnacho Parro <carlosg@gnome.org>
7  *
8  * All rights reserved.
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the
22  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23  * Boston, MA 02111-1307, USA.
24  */
25 
26 #ifndef __GTK_ASSISTANT_H__
27 #define __GTK_ASSISTANT_H__
28 
29 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
30 #error "Only <gtk/gtk.h> can be included directly."
31 #endif
32 
33 #include <gtk/gtkwindow.h>
34 
35 G_BEGIN_DECLS
36 
37 #define GTK_TYPE_ASSISTANT (gtk_assistant_get_type ())
38 #define GTK_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_ASSISTANT, GtkAssistant))
39 #define GTK_ASSISTANT_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_ASSISTANT, GtkAssistantClass))
40 #define GTK_IS_ASSISTANT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_ASSISTANT))
41 #define GTK_IS_ASSISTANT_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), GTK_TYPE_ASSISTANT))
42 #define GTK_ASSISTANT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_ASSISTANT, GtkAssistantClass))
43 
63 typedef enum
64 {
71 
72 typedef struct _GtkAssistant GtkAssistant;
73 typedef struct _GtkAssistantPrivate GtkAssistantPrivate;
75 
77 {
79 
80  GtkWidget *GSEAL (cancel);
81  GtkWidget *GSEAL (forward);
82  GtkWidget *GSEAL (back);
83  GtkWidget *GSEAL (apply);
84  GtkWidget *GSEAL (close);
85  GtkWidget *GSEAL (last);
86 
87  /*< private >*/
89 };
90 
92 {
94 
95  void (* prepare) (GtkAssistant *assistant, GtkWidget *page);
96  void (* apply) (GtkAssistant *assistant);
97  void (* close) (GtkAssistant *assistant);
98  void (* cancel) (GtkAssistant *assistant);
99 
100  /* Padding for future expansion */
101  void (*_gtk_reserved1) (void);
102  void (*_gtk_reserved2) (void);
103  void (*_gtk_reserved3) (void);
104  void (*_gtk_reserved4) (void);
105  void (*_gtk_reserved5) (void);
106 };
107 
120 typedef gint (*GtkAssistantPageFunc) (gint current_page, gpointer data);
121 
122 GType gtk_assistant_get_type (void) G_GNUC_CONST;
126  gint page_num);
129  gint page_num);
131  GtkWidget *page);
133  GtkWidget *page);
135  GtkWidget *page,
136  gint position);
138  GtkAssistantPageFunc page_func,
139  gpointer data,
140  GDestroyNotify destroy);
142  GtkWidget *page,
143  GtkAssistantPageType type);
145  GtkWidget *page);
147  GtkWidget *page,
148  const gchar *title);
149 const gchar * gtk_assistant_get_page_title (GtkAssistant *assistant,
150  GtkWidget *page);
152  GtkWidget *page,
153  GdkPixbuf *pixbuf);
155  GtkWidget *page);
157  GtkWidget *page,
158  GdkPixbuf *pixbuf);
160  GtkWidget *page);
162  GtkWidget *page,
163  gboolean complete);
165  GtkWidget *page);
167  GtkWidget *child);
169  GtkWidget *child);
170 
173 
174 G_END_DECLS
175 
176 #endif /* __GTK_ASSISTANT_H__ */
void gtk_assistant_set_page_header_image(GtkAssistant *assistant, GtkWidget *page, GdkPixbuf *pixbuf)
gboolean gtk_assistant_get_page_complete(GtkAssistant *assistant, GtkWidget *page)
void gtk_assistant_set_current_page(GtkAssistant *assistant, gint page_num)
gint gtk_assistant_insert_page(GtkAssistant *assistant, GtkWidget *page, gint position)
void gtk_assistant_set_page_type(GtkAssistant *assistant, GtkWidget *page, GtkAssistantPageType type)
gint gtk_assistant_append_page(GtkAssistant *assistant, GtkWidget *page)
GtkAssistantPageType
Definition: gtkassistant.h:64
@ GTK_ASSISTANT_PAGE_CONFIRM
Definition: gtkassistant.h:67
@ GTK_ASSISTANT_PAGE_SUMMARY
Definition: gtkassistant.h:68
@ GTK_ASSISTANT_PAGE_PROGRESS
Definition: gtkassistant.h:69
@ GTK_ASSISTANT_PAGE_INTRO
Definition: gtkassistant.h:66
@ GTK_ASSISTANT_PAGE_CONTENT
Definition: gtkassistant.h:65
void gtk_assistant_set_page_side_image(GtkAssistant *assistant, GtkWidget *page, GdkPixbuf *pixbuf)
GdkPixbuf * gtk_assistant_get_page_side_image(GtkAssistant *assistant, GtkWidget *page)
const gchar * gtk_assistant_get_page_title(GtkAssistant *assistant, GtkWidget *page)
void gtk_assistant_set_page_title(GtkAssistant *assistant, GtkWidget *page, const gchar *title)
void gtk_assistant_add_action_widget(GtkAssistant *assistant, GtkWidget *child)
void gtk_assistant_commit(GtkAssistant *assistant)
gint gtk_assistant_prepend_page(GtkAssistant *assistant, GtkWidget *page)
GtkWidget * gtk_assistant_get_nth_page(GtkAssistant *assistant, gint page_num)
void gtk_assistant_remove_action_widget(GtkAssistant *assistant, GtkWidget *child)
void gtk_assistant_set_page_complete(GtkAssistant *assistant, GtkWidget *page, gboolean complete)
gint gtk_assistant_get_n_pages(GtkAssistant *assistant)
gint(* GtkAssistantPageFunc)(gint current_page, gpointer data)
Definition: gtkassistant.h:120
struct _GtkAssistantPrivate GtkAssistantPrivate
Definition: gtkassistant.h:73
gint gtk_assistant_get_current_page(GtkAssistant *assistant)
void gtk_assistant_set_forward_page_func(GtkAssistant *assistant, GtkAssistantPageFunc page_func, gpointer data, GDestroyNotify destroy)
void gtk_assistant_update_buttons_state(GtkAssistant *assistant)
GtkWidget * gtk_assistant_new(void)
GdkPixbuf * gtk_assistant_get_page_header_image(GtkAssistant *assistant, GtkWidget *page)
GtkAssistantPageType gtk_assistant_get_page_type(GtkAssistant *assistant, GtkWidget *page)
GType gtk_assistant_get_type(void) G_GNUC_CONST
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
void(* apply)(GtkAssistant *assistant)
Definition: gtkassistant.h:96
void(* prepare)(GtkAssistant *assistant, GtkWidget *page)
Definition: gtkassistant.h:95
void(* _gtk_reserved5)(void)
Definition: gtkassistant.h:105
void(* cancel)(GtkAssistant *assistant)
Definition: gtkassistant.h:98
GtkWindowClass parent_class
Definition: gtkassistant.h:93
void(* _gtk_reserved1)(void)
Definition: gtkassistant.h:101
void(* _gtk_reserved3)(void)
Definition: gtkassistant.h:103
void(* _gtk_reserved2)(void)
Definition: gtkassistant.h:102
void(* _gtk_reserved4)(void)
Definition: gtkassistant.h:104
void(* close)(GtkAssistant *assistant)
Definition: gtkassistant.h:97
GtkWidget * GSEAL(close)
GtkWidget * GSEAL(cancel)
GtkAssistantPrivate * GSEAL(priv)
GtkWidget * GSEAL(last)
GtkWidget * GSEAL(apply)
GtkWidget * GSEAL(back)
GtkWindow parent
Definition: gtkassistant.h:78
GtkWidget * GSEAL(forward)