00001 /***************************************************************************** 00002 * Copyright (c) 1999-2008 ACCESS CO., LTD. All rights reserved. 00003 * Copyright (c) 2006, 2007 ACCESS Systems Americas, Inc. All rights reserved. 00004 *****************************************************************************/ 00010 #ifndef __ALP_PROGRESS_DIALOG_H__ 00011 #define __ALP_PROGRESS_DIALOG_H__ 00012 00013 #include <gtk/gtkdialog.h> 00014 00015 #include <alp/progress.h> 00016 #include <alp/progresswidget.h> 00017 00018 G_BEGIN_DECLS 00019 00030 #define ALP_TYPE_PROGRESS_DIALOG (alp_progress_dialog_get_type ()) 00031 #define ALP_PROGRESS_DIALOG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), ALP_TYPE_PROGRESS_DIALOG, AlpProgressDialog)) 00032 #define ALP_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ALP_TYPE_PROGRESS_DIALOG, AlpProgressDialogClass)) 00033 #define ALP_IS_PROGRESS_DIALOG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), ALP_TYPE_PROGRESS_DIALOG)) 00034 #define ALP_IS_PROGRESS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ALP_TYPE_PROGRESS_DIALOG)) 00035 #define ALP_PROGRESS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ALP_TYPE_PROGRESS_DIALOG, AlpProgressDialogClass)) 00036 00037 typedef struct _AlpProgressDialog AlpProgressDialog; 00038 typedef struct _AlpProgressDialogClass AlpProgressDialogClass; 00039 00041 struct _AlpProgressDialog 00042 { 00043 /*< private >*/ 00044 GtkDialog parent_instance; 00045 00046 /*< public >*/ 00047 AlpProgressWidget *progress; 00048 }; 00049 00051 struct _AlpProgressDialogClass 00052 { 00053 GtkDialogClass parent_class; 00054 00055 /* Padding for future expansion */ 00056 void (*_gtk_reserved1) (void); 00057 void (*_gtk_reserved2) (void); 00058 void (*_gtk_reserved3) (void); 00059 void (*_gtk_reserved4) (void); 00060 }; 00061 00062 00067 GType alp_progress_dialog_get_type (void) G_GNUC_CONST; 00074 #define alp_progress_dialog_set_title(dialog,title) \ 00075 gtk_window_set_title (GTK_WINDOW(dialog), (title)) 00076 00091 GtkWidget *alp_progress_dialog_new (GtkWindow *parent); 00092 00122 GtkWidget *alp_progress_dialog_new_with_widgets (GtkWindow *parent, 00123 GtkWidget *first_widget, 00124 ...); 00125 00133 GtkWidget *alp_progress_dialog_get_widget (AlpProgressDialog *dialog); 00134 00135 #if defined(SUPPORT_PROGRESS_REPARENT) 00136 /* DISABLING FOR NOW */ 00158 void alp_progress_dialog_reparent (AlpProgressDialog *dialog, 00159 GtkContainer *container); 00160 #endif 00161 00166 #define alp_progress_dialog_box_new() alp_progress_widget_new() 00167 #define alp_progress_dialog_box_new_with_widgets(f, ...) alp_progress_widget_new_with_widgets(f, ## __VA_ARGS__) 00168 00169 #define alp_progress_dialog_add_widget(d,c) alp_progress_add_widget(ALP_PROGRESS(d),(c)) 00170 #define alp_progress_dialog_add_button(d,t,id) alp_progress_add_button(ALP_PROGRESS(d),(t),(id)) 00171 #define alp_progress_dialog_get_image(d) alp_progress_get_image(ALP_PROGRESS(d)) 00172 #define alp_progress_dialog_image_set_from_file(d,f) alp_progress_image_set_from_file(ALP_PROGRESS(d),(f)) 00173 #define alp_progress_dialog_image_set_from_pixbuf(d,p) alp_progress_image_set_from_pixbuf(ALP_PROGRESS(d),(p)) 00174 #define alp_progress_dialog_image_set_from_stock(d,s) alp_progress_image_set_from_stock(ALP_PROGRESS(d), (s)) 00175 #define alp_progress_dialog_image_set_from_animation(d,a) alp_progress_image_set_from_animation(ALP_PROGRESS(d), (a)) 00176 #define alp_progress_dialog_get_label(d) alp_progress_get_label(ALP_PROGRESS(d)) 00177 #define alp_progress_dialog_label_set_text(d,t) alp_progress_label_set_text(ALP_PROGRESS(d),(t)) 00178 #define alp_progress_dialog_label_format_text(d,f,...) alp_progress_label_format_text(ALP_PROGRESS(d),f, ## __VA_ARGS__) 00179 #define alp_progress_dialog_label_format_markup(d,f,...) alp_progress_label_format_markup(ALP_PROGRESS(d),f, ## __VA_ARGS__) 00180 #define alp_progress_dialog_get_secondary(d) alp_progress_get_secondary(ALP_PROGRESS(d)) 00181 #define alp_progress_dialog_secondary_set_text(d,t) alp_progress_secondary_set_text(ALP_PROGRESS(d),(t)) 00182 #define alp_progress_dialog_secondary_format_text(d,f,...) alp_progress_secondary_format_text(ALP_PROGRESS(d),f, ## __VA_ARGS__) 00183 #define alp_progress_dialog_secondary_format_markup(d,f,...) alp_progress_secondary_format_markup(ALP_PROGRESS(d),f, ## __VA_ARGS__) 00184 #define alp_progress_dialog_get_pbar(d) alp_progress_get_pbar(ALP_PROGRESS(d)) 00185 #define alp_progress_dialog_pbar_pulse(d) alp_progress_pbar_pulse(ALP_PROGRESS(d)) 00186 #define alp_progress_dialog_pbar_set_pulse_step(d,f) alp_progress_pbar_set_pulse_step(ALP_PROGRESS(d),(f)) 00187 #define alp_progress_dialog_pbar_set_fraction(d,f) alp_progress_pbar_set_fraction(ALP_PROGRESS(d),(f)) 00188 #define alp_progress_dialog_pbar_set_text(d,t) alp_progress_pbar_set_text(ALP_PROGRESS(d),(t)) 00189 #define alp_progress_dialog_pbar_format_text(d,f,...) alp_progress_pbar_format_text(ALP_PROGRESS(d), f, ## __VA_ARGS__) 00190 00192 #define ALP_PROGRESS_DIALOG_LABEL ALP_PROGRESS_LABEL 00193 00194 #define ALP_PROGRESS_DIALOG_SECONDARY ALP_PROGRESS_SECONDARY 00195 00196 #define ALP_PROGRESS_DIALOG_PBAR ALP_PROGRESS_PBAR 00197 00198 #define ALP_PROGRESS_DIALOG_CANCEL_BUTTON ALP_PROGRESS_CANCEL_BUTTON 00199 00202 G_END_DECLS 00203 00204 #endif /* __ALP_PROGRESS_DIALOG_H__ */
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.