22 #ifdef SET_HELP_HISTORY
32 void ygtk_help_text_set (
YGtkHelpText *help,
const gchar *title,
const gchar *text);
33 const gchar *ygtk_help_text_get (
YGtkHelpText *help, gint n);
34 void ygtk_help_text_sync (
YGtkHelpText *help, GtkWidget *dialog);
40 #define YGTK_TYPE_HELP_DIALOG (ygtk_help_dialog_get_type ())
41 #define YGTK_HELP_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
42 YGTK_TYPE_HELP_DIALOG, YGtkHelpDialog))
43 #define YGTK_HELP_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
44 YGTK_TYPE_HELP_DIALOG, YGtkHelpDialogClass))
45 #define YGTK_IS_HELP_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
46 YGTK_TYPE_HELP_DIALOG))
47 #define YGTK_IS_HELP_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
48 YGTK_TYPE_HELP_DIALOG))
49 #define YGTK_HELP_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50 YGTK_TYPE_HELP_DIALOG, YGtkHelpDialogClass))
57 GtkWidget *title_box, *title_label, *title_image;
58 GtkWidget *help_box, *help_text;
59 GtkWidget *search_entry, *close_button, *history_combo;
65 GtkWindowClass parent_class;
72 GtkWidget *ygtk_help_dialog_new (GtkWindow *parent);
73 GType ygtk_help_dialog_get_type (
void) G_GNUC_CONST;
75 void ygtk_help_dialog_set_text (
YGtkHelpDialog *dialog,
const gchar *text);
79 #define YGTK_TYPE_WIZARD (ygtk_wizard_get_type ())
80 #define YGTK_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
81 YGTK_TYPE_WIZARD, YGtkWizard))
82 #define YGTK_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
83 YGTK_TYPE_WIZARD, YGtkWizardClass))
84 #define YGTK_IS_WIZARD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
86 #define YGTK_IS_WIZARD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), \
88 #define YGTK_WIZARD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
89 YGTK_TYPE_WIZARD, YGtkWizardClass))
99 GHashTable *steps_ids;
102 GtkWidget *m_menu_box, *m_title, *m_contents_box, *m_control_bar,
103 *m_child, *m_status_box, *m_pane, *m_buttons, *m_info_box;
106 GtkWidget *tree_view, *steps, *menu,
107 *back_button, *abort_button, *next_button, *help_button,
108 *release_notes_button, *m_default_button;
116 GtkVBoxClass parent_class;
119 void (*action_triggered) (
YGtkWizard *wizard, gpointer id, gint id_type);
123 GtkWidget *ygtk_wizard_new (
void);
124 GType ygtk_wizard_get_type (
void) G_GNUC_CONST;
128 void ygtk_wizard_enable_steps (
YGtkWizard *wizard);
129 void ygtk_wizard_enable_tree (
YGtkWizard *wizard);
133 void ygtk_wizard_set_child (
YGtkWizard *wizard, GtkWidget *widget);
134 void ygtk_wizard_set_information_widget (
YGtkWizard *wizard, GtkWidget *widget);
135 void ygtk_wizard_set_control_widget (
YGtkWizard *wizard, GtkWidget *widget);
139 void ygtk_wizard_set_help_text (
YGtkWizard *wizard,
const gchar *text);
141 void ygtk_wizard_set_header_text (
YGtkWizard *wizard,
const char *text);
142 gboolean ygtk_wizard_set_header_icon (
YGtkWizard *wizard,
const char *icon);
144 void ygtk_wizard_set_button_label (
YGtkWizard *wizard, GtkWidget *button,
145 const char *text,
const char *stock);
146 void ygtk_wizard_enable_button (
YGtkWizard *wizard, GtkWidget *button,
148 void ygtk_wizard_set_button_str_id (
YGtkWizard *wizard, GtkWidget *button,
150 void ygtk_wizard_set_button_ptr_id (
YGtkWizard *wizard, GtkWidget *button,
152 void ygtk_wizard_set_default_button (
YGtkWizard *wizard, GtkWidget *button);
154 void ygtk_wizard_set_extra_button (
YGtkWizard *wizard, GtkWidget *widget);
156 void ygtk_wizard_add_menu (
YGtkWizard *wizard,
const char *text,
158 gboolean ygtk_wizard_add_menu_entry (
YGtkWizard *wizard,
const char *parent_id,
159 const char *text,
const char *
id);
160 gboolean ygtk_wizard_add_sub_menu (
YGtkWizard *wizard,
const char *parent_id,
161 const char *text,
const char *
id);
162 gboolean ygtk_wizard_add_menu_separator (
YGtkWizard *wizard,
const char *parent_id);
163 void ygtk_wizard_clear_menu (
YGtkWizard *wizard);
164 void ygtk_wizard_set_custom_menubar (
YGtkWizard *wizard, GtkWidget *menu_bar, gboolean hide_header);
165 void ygtk_wizard_set_status_bar (
YGtkWizard *wizard, GtkWidget *status_bar);
167 void ygtk_wizard_add_step_header (
YGtkWizard *wizard,
const char *text);
168 void ygtk_wizard_add_step (
YGtkWizard *wizard,
const char* text,
const char *
id);
169 gboolean ygtk_wizard_set_current_step (
YGtkWizard *wizard,
const char *
id);
170 void ygtk_wizard_clear_steps (
YGtkWizard *wizard);
172 gboolean ygtk_wizard_add_tree_item (
YGtkWizard *wizard,
const char *parent_id,
173 const char *text,
const char *
id);
174 void ygtk_wizard_clear_tree (
YGtkWizard *wizard);
175 gboolean ygtk_wizard_select_tree_item (
YGtkWizard *wizard,
const char *
id);
176 const gchar *ygtk_wizard_get_tree_selection (
YGtkWizard *wizard);