Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

MainProgressBar Class Reference

#include <mainprogress.h>

List of all members.

Public Member Functions

 MainProgressBar (MWindow *mwindow, MainProgress *mainprogress)
 ~MainProgressBar ()
void stop_progress ()
int is_cancelled ()
void update_title (char *string, int default_=1)
void update_length (int64_t length)
int update (int64_t value)
void get_time (char *text)
double get_time ()

Public Attributes

BC_ProgressBox * progress_box
BC_ProgressBar * progress_bar
MWindowmwindow
MainProgressmainprogress
char default_title [BCTEXTLEN]
Timer * eta_timer
int64_t last_eta
int64_t length

Private Member Functions

void start ()

Friends

class MainProgress


Detailed Description

Definition at line 15 of file mainprogress.h.


Constructor & Destructor Documentation

MainProgressBar::MainProgressBar MWindow mwindow,
MainProgress mainprogress
 

Definition at line 11 of file mainprogress.C.

References eta_timer, progress_bar, and progress_box.

MainProgressBar::~MainProgressBar  ) 
 

Definition at line 20 of file mainprogress.C.

References eta_timer, mainprogress, MainProgress::mwindow_progress, MainProgress::progress_bars, and progress_box.


Member Function Documentation

double MainProgressBar::get_time  ) 
 

Definition at line 174 of file mainprogress.C.

References eta_timer.

void MainProgressBar::get_time char *  text  ) 
 

Definition at line 165 of file mainprogress.C.

References eta_timer.

Referenced by PluginArray::run_plugins(), and Render::stop_progress().

int MainProgressBar::is_cancelled  ) 
 

Definition at line 59 of file mainprogress.C.

References MainProgress::cancelled, mainprogress, progress_bar, and progress_box.

Referenced by MainPackageRenderer::progress_cancelled(), Render::render(), MainIndexes::run(), ScanThread::run(), and update().

void MainProgressBar::start  )  [private]
 

Definition at line 35 of file mainprogress.C.

References eta_timer, last_eta, and progress_box.

Referenced by MainProgress::start_progress().

void MainProgressBar::stop_progress  ) 
 

Definition at line 45 of file mainprogress.C.

References StatusBar::default_message(), MWindow::gui, mwindow, progress_bar, progress_box, and MWindowGUI::statusbar.

Referenced by MainIndexes::run(), PluginArray::run_plugins(), and Render::stop_progress().

int MainProgressBar::update int64_t  value  ) 
 

Definition at line 110 of file mainprogress.C.

References _, default_title, eta_timer, MWindow::gui, is_cancelled(), last_eta, length, mwindow, progress_bar, progress_box, and update_title().

Referenced by IndexFile::create_index(), RenderProgress::run(), ScanThread::run(), and PluginArray::run_plugins().

void MainProgressBar::update_length int64_t  length  ) 
 

Definition at line 93 of file mainprogress.C.

References MWindow::gui, mwindow, progress_bar, and progress_box.

Referenced by IndexFile::create_index().

void MainProgressBar::update_title char *  string,
int  default_ = 1
 

Definition at line 75 of file mainprogress.C.

References default_title, MWindow::gui, mwindow, progress_bar, progress_box, and MWindowGUI::show_message().

Referenced by IndexFile::create_index(), ScanThread::run(), MainProgress::start_progress(), and update().


Friends And Related Function Documentation

friend class MainProgress [friend]
 

Definition at line 21 of file mainprogress.h.


Member Data Documentation

char MainProgressBar::default_title[BCTEXTLEN]
 

Definition at line 38 of file mainprogress.h.

Referenced by MainProgress::start_progress(), update(), and update_title().

Timer* MainProgressBar::eta_timer
 

Definition at line 39 of file mainprogress.h.

Referenced by get_time(), MainProgressBar(), start(), update(), and ~MainProgressBar().

int64_t MainProgressBar::last_eta
 

Definition at line 41 of file mainprogress.h.

Referenced by start(), and update().

int64_t MainProgressBar::length
 

Definition at line 42 of file mainprogress.h.

Referenced by MainProgress::start_progress(), and update().

MainProgress* MainProgressBar::mainprogress
 

Definition at line 36 of file mainprogress.h.

Referenced by is_cancelled(), and ~MainProgressBar().

MWindow* MainProgressBar::mwindow
 

Definition at line 35 of file mainprogress.h.

Referenced by stop_progress(), update(), update_length(), and update_title().

BC_ProgressBar* MainProgressBar::progress_bar
 

Definition at line 34 of file mainprogress.h.

Referenced by is_cancelled(), MainProgressBar(), MainProgress::start_progress(), stop_progress(), update(), update_length(), and update_title().

BC_ProgressBox* MainProgressBar::progress_box
 

Definition at line 32 of file mainprogress.h.

Referenced by is_cancelled(), MainProgressBar(), start(), MainProgress::start_progress(), stop_progress(), update(), update_length(), update_title(), and ~MainProgressBar().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:16 2006 for Cinelerra-svn by  doxygen 1.4.4