GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dialog-progress.h
Go to the documentation of this file.
1 /********************************************************************\
2  * dialog-progress.h -- public GnuCash progress dialog functions *
3  * Copyright (C) 2000 Dave Peticolas *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License*
16  * along with this program; if not, contact: *
17  * *
18  * Free Software Foundation Voice: +1-617-542-5942 *
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20  * Boston, MA 02110-1301, USA [email protected] *
21  * *
22 \********************************************************************/
23 
48 #ifndef DIALOG_PROGRESS_H
49 #define DIALOG_PROGRESS_H
50 
51 #include <glib.h>
52 
53 
55 
56 typedef gboolean (*GNCProgressCancelFunc) (gpointer user_data);
57 
58 
75 GNCProgressDialog * gnc_progress_dialog_new(GtkWidget *parent,
76  gboolean use_ok_button);
77 
98  GtkLabel *secondary,
99  GtkProgressBar *bar,
100  GtkLabel *suboperation,
101  GtkTextView *log);
102 
110  const char *title);
111 
120  const gchar *str);
121 
132  const char *heading);
133 
142  const gchar *str);
143 
152  const gchar *str);
153 
160 
167  const gchar *str);
168 
175 
182 
193  GNCProgressCancelFunc cancel_func,
194  gpointer user_data);
195 
206  SCM cancel_scm_func);
207 
214 void gnc_progress_dialog_set_value(GNCProgressDialog *progress, gdouble value);
215 
239 guint gnc_progress_dialog_push(GNCProgressDialog *progress, gdouble weight);
240 
249 
256 
261 
268 
275 
282 
283 #endif
284 
void gnc_progress_dialog_set_heading(GNCProgressDialog *progress, const char *heading)
void gnc_progress_dialog_set_secondary(GNCProgressDialog *progress, const gchar *str)
void gnc_progress_dialog_append_log(GNCProgressDialog *progress, const gchar *str)
void gnc_progress_dialog_destroy(GNCProgressDialog *progress)
void gnc_progress_dialog_set_value(GNCProgressDialog *progress, gdouble value)
void gnc_progress_dialog_reset_value(GNCProgressDialog *progress)
void gnc_progress_dialog_set_cancel_func(GNCProgressDialog *progress, GNCProgressCancelFunc cancel_func, gpointer user_data)
GNCProgressDialog * gnc_progress_dialog_custom(GtkLabel *primary, GtkLabel *secondary, GtkProgressBar *bar, GtkLabel *suboperation, GtkTextView *log)
GNCProgressDialog * gnc_progress_dialog_new(GtkWidget *parent, gboolean use_ok_button)
void gnc_progress_dialog_set_sub(GNCProgressDialog *progress, const gchar *str)
void gnc_progress_dialog_finish(GNCProgressDialog *progress)
void gnc_progress_dialog_pause(GNCProgressDialog *progress)
void gnc_progress_dialog_reset_log(GNCProgressDialog *progress)
void gnc_progress_dialog_set_primary(GNCProgressDialog *progress, const gchar *str)
void gnc_progress_dialog_resume(GNCProgressDialog *progress)
guint gnc_progress_dialog_pop_full(GNCProgressDialog *progress)
guint gnc_progress_dialog_pop(GNCProgressDialog *progress)
void gnc_progress_dialog_update(GNCProgressDialog *progress)
guint gnc_progress_dialog_push(GNCProgressDialog *progress, gdouble weight)
void gnc_progress_dialog_set_title(GNCProgressDialog *progress, const char *title)
void gnc_progress_dialog_set_cancel_scm_func(GNCProgressDialog *progress, SCM cancel_scm_func)