/ gwprogressbarbox.h / Content
/* GWhere.
* Copyright (C) 2000 Sébastien LECACHEUR
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifndef GW_GUI_PROGRESS_BAR_BOX_H
#define GW_GUI_PROGRESS_BAR_BOX_H
#define STATE_OK 1
#define STATE_CANCEL 2
typedef gboolean (*func_stop_progress_t)(GtkObject *ob, gpointer p);
GtkWindow * gw_progress_bar_box_create ( GtkWindow *window, gchar *title, gchar *subject, gchar *text, gfloat max, func_stop_progress_t stop, gpointer p);
GtkWindow * gw_progress_bar_box_get_parent_window ( GtkWindow *w);
GtkProgress * gw_progress_bar_box_get_progress_bar ( GtkWindow *w);
GtkButton * gw_progress_bar_box_get_ok_cancel_button ( GtkWindow *w);
gboolean gw_progress_bar_box_get_iscancel_state ( GtkWindow *w);
gboolean gw_progress_bar_box_get_isok_state ( GtkWindow *w);
gchar * gw_progress_bar_box_get_text ( GtkWindow *w);
gint gw_progress_bar_box_get_state ( GtkWindow *w);
gfloat gw_progress_bar_box_get_value ( GtkWindow *w);
gfloat gw_progress_bar_box_get_percentage ( GtkWindow *w);
gint gw_progress_bar_box_set_value ( GtkWindow *w, gfloat value);
gint gw_progress_bar_box_add_value ( GtkWindow *w, gfloat value);
gint gw_progress_bar_box_set_percentage ( GtkWindow *w, gfloat percentage);
gint gw_progress_bar_box_set_text ( GtkWindow *w, gchar *file_name);
gint gw_progress_bar_box_set_state ( GtkWindow *w, gint state);
gint gw_progress_bar_box_set_ok_state ( GtkWindow *w);
gint gw_progress_bar_box_set_cancel_state ( GtkWindow *w);
gboolean gw_progress_bar_box_ok_cancel_click ( GtkWidget *bt, GtkWindow *w);
gboolean gw_progress_bar_box_ok_click ( GtkWidget *bt, GtkWindow *w);
gboolean gw_progress_bar_box_cancel_click ( GtkWidget *bt, GtkWindow *w);
gboolean gw_progress_bar_box_destroy ( GtkObject *w, gpointer *p);
gboolean gw_progress_bar_box_signal_do_nothing ( GtkObject *ob, gpointer p);
#endif