BC_ProgressBar Class Reference

#include <bcprogress.h>

Inherits BC_SubWindow.

Collaboration diagram for BC_ProgressBar:

Collaboration graph
[legend]

Public Member Functions

 BC_ProgressBar (int x, int y, int w, int64_t length, int do_text=1)
 ~BC_ProgressBar ()
int initialize ()
int reposition_window (int x, int y, int w=-1, int h=-1)
void set_do_text (int value)
int update (int64_t position)
int update_length (int64_t length)
int set_images ()

Private Member Functions

int draw (int force=0)

Private Attributes

int64_t length
int64_t position
int pixel
int do_text
BC_Pixmapimages [2]

Detailed Description

Definition at line 6 of file bcprogress.h.


Constructor & Destructor Documentation

BC_ProgressBar::BC_ProgressBar ( int  x,
int  y,
int  w,
int64_t  length,
int  do_text = 1 
)

Definition at line 13 of file bcprogress.C.

References images, pixel, and position.

BC_ProgressBar::~BC_ProgressBar (  ) 

Definition at line 24 of file bcprogress.C.

References images.


Member Function Documentation

int BC_ProgressBar::initialize (  )  [virtual]

Reimplemented from BC_SubWindow.

Definition at line 30 of file bcprogress.C.

References draw(), BC_Pixmap::get_h(), BC_WindowBase::h, images, BC_SubWindow::initialize(), PROGRESS_UP, and set_images().

Here is the call graph for this function:

int BC_ProgressBar::reposition_window ( int  x,
int  y,
int  w = -1,
int  h = -1 
)

Reimplemented from BC_WindowBase.

Definition at line 40 of file bcprogress.C.

References draw(), BC_WindowBase::get_h(), BC_WindowBase::get_w(), and BC_WindowBase::reposition_window().

Referenced by StatusBar::resize_event().

Here is the call graph for this function:

void BC_ProgressBar::set_do_text ( int  value  ) 

Definition at line 48 of file bcprogress.C.

References do_text.

int BC_ProgressBar::update ( int64_t  position  ) 

Definition at line 96 of file bcprogress.C.

References draw().

Referenced by MWindow::init_plugin_path(), MainProgressBar::stop_progress(), BC_ProgressBox::update(), and MainProgressBar::update().

Here is the call graph for this function:

int BC_ProgressBar::update_length ( int64_t  length  ) 

Definition at line 103 of file bcprogress.C.

References draw(), and position.

Referenced by MWindow::init_plugins(), MainProgress::start_progress(), BC_ProgressBox::update_length(), and MainProgressBar::update_length().

Here is the call graph for this function:

int BC_ProgressBar::set_images (  ) 

Definition at line 53 of file bcprogress.C.

References BC_WindowBase::BC_Pixmap, BC_WindowBase::get_resources(), images, and BC_WindowBase::parent_window.

Referenced by initialize().

Here is the call graph for this function:

int BC_ProgressBar::draw ( int  force = 0  )  [private]


Field Documentation

int64_t BC_ProgressBar::length [private]

Definition at line 23 of file bcprogress.h.

Referenced by draw().

int64_t BC_ProgressBar::position [private]

Definition at line 23 of file bcprogress.h.

Referenced by BC_ProgressBar(), draw(), and update_length().

int BC_ProgressBar::pixel [private]

Definition at line 24 of file bcprogress.h.

Referenced by BC_ProgressBar(), and draw().

int BC_ProgressBar::do_text [private]

Definition at line 25 of file bcprogress.h.

Referenced by draw(), and set_do_text().

Definition at line 26 of file bcprogress.h.

Referenced by BC_ProgressBar(), draw(), initialize(), set_images(), and ~BC_ProgressBar().


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

Generated on Mon Apr 28 14:15:07 2008 for Cinelerra by  doxygen 1.5.5