GnuCash 2.4.99
dialog-progress.h
Go to the documentation of this file.
00001 /********************************************************************\
00002  * dialog-progress.h -- public GnuCash progress dialog functions    *
00003  * Copyright (C) 2000 Dave Peticolas                                *
00004  *                                                                  *
00005  * This program is free software; you can redistribute it and/or    *
00006  * modify it under the terms of the GNU General Public License as   *
00007  * published by the Free Software Foundation; either version 2 of   *
00008  * the License, or (at your option) any later version.              *
00009  *                                                                  *
00010  * This program is distributed in the hope that it will be useful,  *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00013  * GNU General Public License for more details.                     *
00014  *                                                                  *
00015  * You should have received a copy of the GNU General Public License*
00016  * along with this program; if not, contact:                        *
00017  *                                                                  *
00018  * Free Software Foundation           Voice:  +1-617-542-5942       *
00019  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00020  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00021  *                                                                  *
00022 \********************************************************************/
00023 
00048 #ifndef DIALOG_PROGRESS_H
00049 #define DIALOG_PROGRESS_H
00050 
00051 #include <glib.h>
00052 
00053 
00054 typedef struct _GNCProgressDialog GNCProgressDialog;
00055 
00056 typedef gboolean (*GNCProgressCancelFunc) (gpointer user_data);
00057 
00058 
00075 GNCProgressDialog * gnc_progress_dialog_new(GtkWidget *parent,
00076         gboolean use_ok_button);
00077 
00097 GNCProgressDialog * gnc_progress_dialog_custom(GtkLabel       *primary,
00098         GtkLabel       *secondary,
00099         GtkProgressBar *bar,
00100         GtkLabel       *suboperation,
00101         GtkTextView    *log);
00102 
00109 void gnc_progress_dialog_set_title(GNCProgressDialog *progress,
00110                                    const char *title);
00111 
00119 void gnc_progress_dialog_set_primary(GNCProgressDialog *progress,
00120                                      const gchar *str);
00121 
00131 void gnc_progress_dialog_set_heading(GNCProgressDialog *progress,
00132                                      const char *heading);
00133 
00141 void gnc_progress_dialog_set_secondary(GNCProgressDialog *progress,
00142                                        const gchar *str);
00143 
00151 void gnc_progress_dialog_set_sub(GNCProgressDialog *progress,
00152                                  const gchar *str);
00153 
00159 void gnc_progress_dialog_reset_log(GNCProgressDialog *progress);
00160 
00166 void gnc_progress_dialog_append_log(GNCProgressDialog *progress,
00167                                     const gchar *str);
00168 
00174 void gnc_progress_dialog_pause(GNCProgressDialog *progress);
00175 
00181 void gnc_progress_dialog_resume(GNCProgressDialog *progress);
00182 
00192 void gnc_progress_dialog_set_cancel_func(GNCProgressDialog *progress,
00193         GNCProgressCancelFunc cancel_func,
00194         gpointer user_data);
00195 
00205 void gnc_progress_dialog_set_cancel_scm_func(GNCProgressDialog *progress,
00206         SCM cancel_scm_func);
00207 
00214 void gnc_progress_dialog_set_value(GNCProgressDialog *progress, gdouble value);
00215 
00239 guint gnc_progress_dialog_push(GNCProgressDialog *progress, gdouble weight);
00240 
00248 guint gnc_progress_dialog_pop(GNCProgressDialog *progress);
00249 
00255 guint gnc_progress_dialog_pop_full(GNCProgressDialog *progress);
00256 
00260 void gnc_progress_dialog_reset_value(GNCProgressDialog *progress);
00261 
00267 void gnc_progress_dialog_update(GNCProgressDialog *progress);
00268 
00274 void gnc_progress_dialog_finish(GNCProgressDialog *progress);
00275 
00281 void gnc_progress_dialog_destroy(GNCProgressDialog *progress);
00282 
00283 #endif
00284 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines