#include <bcprogressbox.h>
Inherits Thread.

Public Member Functions | |
| BC_ProgressBox (int x, int y, char *text, int64_t length) | |
| virtual | ~BC_ProgressBox () |
| void | run () |
| int | update (int64_t position, int lock_it) |
| int | update_title (char *title, int lock_it) |
| int | update_length (int64_t length, int lock_it) |
| int | is_cancelled () |
| int | stop_progress () |
| void | lock_window () |
| void | unlock_window () |
Private Attributes | |
| BC_ProgressWindow * | pwindow |
| char * | display |
| char * | text |
| int | cancelled |
| int64_t | length |
Friends | |
| class | BC_ProgressWindow |
Definition at line 10 of file bcprogressbox.h.
| BC_ProgressBox::BC_ProgressBox | ( | int | x, | |
| int | y, | |||
| char * | text, | |||
| int64_t | length | |||
| ) |
Definition at line 10 of file bcprogressbox.C.
References BC_ProgressWindow, cancelled, BC_ProgressWindow::create_objects(), BC_DisplayInfo::get_abs_cursor_x(), BC_DisplayInfo::get_abs_cursor_y(), pwindow, and Thread::set_synchronous().

| BC_ProgressBox::~BC_ProgressBox | ( | ) | [virtual] |
| void BC_ProgressBox::run | ( | ) | [virtual] |
Implements Thread.
Definition at line 33 of file bcprogressbox.C.
References cancelled, pwindow, and BC_WindowBase::run_window().

| int BC_ProgressBox::update | ( | int64_t | position, | |
| int | lock_it | |||
| ) |
Definition at line 39 of file bcprogressbox.C.
References BC_ProgressWindow::bar, cancelled, BC_WindowBase::lock_window(), pwindow, BC_WindowBase::unlock_window(), and BC_ProgressBar::update().
Referenced by FileMPEG::create_index(), ScanThread::run(), and MainProgressBar::update().

| int BC_ProgressBox::update_title | ( | char * | title, | |
| int | lock_it | |||
| ) |
Definition at line 50 of file bcprogressbox.C.
References cancelled, BC_ProgressWindow::caption, BC_WindowBase::lock_window(), pwindow, BC_WindowBase::unlock_window(), and BC_Title::update().
Referenced by FileMPEG::create_index(), ScanThread::run(), and MainProgressBar::update_title().

| int BC_ProgressBox::update_length | ( | int64_t | length, | |
| int | lock_it | |||
| ) |
Definition at line 58 of file bcprogressbox.C.
References BC_ProgressWindow::bar, cancelled, BC_WindowBase::lock_window(), pwindow, BC_WindowBase::unlock_window(), and BC_ProgressBar::update_length().
Referenced by MainProgressBar::update_length().

| int BC_ProgressBox::is_cancelled | ( | ) |
Definition at line 67 of file bcprogressbox.C.
References cancelled.
Referenced by FileMPEG::create_index(), MainProgressBar::is_cancelled(), ThreadIndexer::run(), and ScanThread::run().
| int BC_ProgressBox::stop_progress | ( | ) |
Definition at line 72 of file bcprogressbox.C.
References Thread::join(), pwindow, and BC_WindowBase::set_done().
Referenced by FileMPEG::create_index(), ThreadIndexer::run(), DC_Offset::run(), and MainProgressBar::stop_progress().

| void BC_ProgressBox::lock_window | ( | ) |
Definition at line 79 of file bcprogressbox.C.
References BC_WindowBase::lock_window(), and pwindow.

| void BC_ProgressBox::unlock_window | ( | ) |
Definition at line 84 of file bcprogressbox.C.
References pwindow, and BC_WindowBase::unlock_window().

friend class BC_ProgressWindow [friend] |
BC_ProgressWindow* BC_ProgressBox::pwindow [private] |
Definition at line 28 of file bcprogressbox.h.
Referenced by BC_ProgressBox(), lock_window(), run(), stop_progress(), unlock_window(), update(), update_length(), update_title(), and ~BC_ProgressBox().
char* BC_ProgressBox::display [private] |
Definition at line 29 of file bcprogressbox.h.
char* BC_ProgressBox::text [private] |
Definition at line 30 of file bcprogressbox.h.
Referenced by BC_RecentList::handle_event(), and BC_RecentList::load_items().
int BC_ProgressBox::cancelled [private] |
Definition at line 31 of file bcprogressbox.h.
Referenced by BC_ProgressBox(), is_cancelled(), run(), update(), update_length(), and update_title().
int64_t BC_ProgressBox::length [private] |
Definition at line 32 of file bcprogressbox.h.
1.5.5