progress.h File Reference

progress bar support for the GTK+ frontend of cdebconf (header) More...

#include <gtk/gtk.h>
#include "frontend.h"

Include dependency graph for progress.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool fe_gtk_can_cancel_progress (struct frontend *fe)
 Implements the can_cancel_progress method of cdebconf frontends.
void fe_gtk_progress_start (struct frontend *fe, int min, int max, const char *title)
 Implements the progress_start method of cdebconf frontends.
int fe_gtk_progress_set (struct frontend *fe, int val)
 Implements the progress_set methods of cdebconf frontends.
int fe_gtk_progress_info (struct frontend *fe, const char *info)
 Implements the progress_info method of cdebconf frontends.
void fe_gtk_progress_stop (struct frontend *fe)
 Implements the progress_stop method of cdebconf frontends.
void fe_gtk_show_progress (struct frontend *fe)
 Show the progress widgets.
void fe_gtk_hide_progress (struct frontend *fe)
 Hide the progress widgets.


Detailed Description

progress bar support for the GTK+ frontend of cdebconf (header)

Definition in file progress.h.


Function Documentation

bool fe_gtk_can_cancel_progress ( struct frontend *  fe  ) 

Implements the can_cancel_progress method of cdebconf frontends.

Parameters:
fe cdebconf frontend
Returns:
TRUE if progress bar can be canceled

Definition at line 326 of file progress.c.

void fe_gtk_hide_progress ( struct frontend *  fe  ) 

Hide the progress widgets.

This will actually remove the widgets from their respective containers in order to leave the room for GO handling.

Parameters:
fe cdebconf frotend
See also:
fe_gtk_show_progress

Definition at line 245 of file progress.c.

References progress_data::cancel_button, progress_data::progress_box, frontend_data::progress_data, and frontend_data::target_box.

Referenced by fe_gtk_go().

int fe_gtk_progress_info ( struct frontend *  fe,
const char *  info 
)

Implements the progress_info method of cdebconf frontends.

This will update the progress label.

Parameters:
fe cdebconf frontend
info current information about the operation in progress
See also:
progress_data::progress_label

Definition at line 488 of file progress.c.

References frontend_data::answer, DC_NO_ANSWER, frontend_data::progress_data, and progress_data::progress_label.

int fe_gtk_progress_set ( struct frontend *  fe,
int  val 
)

Implements the progress_set methods of cdebconf frontends.

Parameters:
fe cdebconf frontend
val current value representing the operation in progress
Returns:
DC_GOBACK if progress was canceled, DC_NOTOK if error happened and DC_OK otherwise.

Definition at line 453 of file progress.c.

References frontend_data::answer, fe_gtk_show_progress(), frontend_data::progress_data, and update_progress_bar().

void fe_gtk_progress_start ( struct frontend *  fe,
int  min,
int  max,
const char *  title 
)

Implements the progress_start method of cdebconf frontends.

Parameters:
fe cdebconf frontend
min minimum value representing the operation in progress
max maximum value representing the operation in progress
title initial title of the operation in progress

Definition at line 405 of file progress.c.

References DC_NO_ANSWER, fe_gtk_di_run_dialog(), fe_gtk_progress_stop(), fe_gtk_set_answer(), fe_gtk_show_progress(), init_progress(), frontend_data::progress_data, frontend_data::setters, and update_progress_bar().

void fe_gtk_progress_stop ( struct frontend *  fe  ) 

Implements the progress_stop method of cdebconf frontends.

This will destroy the widgets and data structures.

Parameters:
fe cdebconf frontend

Definition at line 517 of file progress.c.

References destroy_progress(), and frontend_data::progress_data.

Referenced by destroy_frontend_data(), and fe_gtk_progress_start().

void fe_gtk_show_progress ( struct frontend *  fe  ) 

Show the progress widgets.

This will actually add the widgets to the corresponding containers.

Parameters:
fe cdebconf frontend
See also:
fe_gtk_hide_progress

Definition at line 216 of file progress.c.

References frontend_data::action_box, progress_data::cancel_button, DEFAULT_PADDING, progress_data::progress_box, frontend_data::progress_data, and frontend_data::target_box.

Referenced by fe_gtk_progress_set(), and fe_gtk_progress_start().


Generated on Sat Jul 7 23:41:42 2007 for fe_gtk by  doxygen 1.5.1