Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

wftk::ProgressDialog Class Reference

progress meter dialog More...

#include <progressdialog.h>

Inheritance diagram for wftk::ProgressDialog:

wftk::BorderedDialog wftk::Dialog wftk::SingleContainer wftk::Widget wftk::ScreenArea List of all members.

Public Member Functions

 ProgressDialog (const std::string &label="", const std::string &border_res_name="progressdialog_frame", const Font &font=Font())
 Create a window with a progress bar.

void setValue (Uint8 percentage)
 set the value of the progress bar, calls ProgressBar::setValue()


Protected Member Functions

virtual void setPackingInfo ()
 recalculate the object's prefered size


Detailed Description

progress meter dialog


Constructor & Destructor Documentation

wftk::ProgressDialog::ProgressDialog const std::string &  label = "",
const std::string &  border_res_name = "progressdialog_frame",
const Font font = Font()
[explicit]
 

Create a window with a progress bar.

Parameters:
label the label of the progress bar
border_res_name std::string containing the name of the ressource to use for the frame. The ressources are
  • <name>_v for the vertical frames
  • <name>_h for the horizontal frames
  • <name>_edge for the corners
If any of those ressources aren't found, it is left out. Defaults to "progressdialog_frame"
font font to use for the label, defaults to Font()
Create a non-modal dialog window with a progress bar. Uses the following resources to represent the bar and window:
  • progressdialog_bar_surface for the bar
  • progressdialog_surface for the window


Member Function Documentation

void wftk::ProgressDialog::setValue Uint8  percentage  )  [inline]
 

set the value of the progress bar, calls ProgressBar::setValue()

Parameters:
percentage the percentage of process to set the bar to


The documentation for this class was generated from the following files:

Generated Thu Mar 18 20:06:05 2004.
Copyright © 1998-2003 by the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.