py::qo::notifier::progress Class Reference

Inheritance diagram for py::qo::notifier::progress:

Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def grow
def section_grow
def section
def step
def section_end
def end

Public Attributes

 cb_section
 cb_step
 pos
 size
 section_size
 section_pos


Member Function Documentation

def py::qo::notifier::progress::__init__ (   self,
  cb_section,
  cb_step 
)

00023                                                   :
00024                 self.cb_section = cb_section
00025                 self.cb_step = cb_step
00026                 self.pos = -1.
00027                 self.size = 0
00028                 self.section_size = 0
00029                 self.section_pos = -1.
00030 
        def grow( self, delta_size ) :

def py::qo::notifier::progress::grow (   self,
  delta_size 
)

00031                                      :
00032                 self.size += delta_size
        def section_grow( self, delta_size ) :

def py::qo::notifier::progress::section_grow (   self,
  delta_size 
)

00033                                              :
00034                 self.section_size += delta_size
00035 
        def section( self, name, size=0 ) :

def py::qo::notifier::progress::section (   self,
  name,
  size = 0 
)

Reimplemented in py::gui::widget::progress_busy.

00036                                           :
00037                 self.pos += 1
00038                 if self.pos >= self.size :
00039                         self.size = int(self.pos)+1
00040                 self.section_size = size
00041                 self.section_pos = -1.
00042                 percent = (self.pos*100) / self.size
00043                 self.cb_section(name, percent)
00044 
        def step( self, name ) :

def py::qo::notifier::progress::step (   self,
  name 
)

00045                                :
00046                 self.section_pos += 1
00047                 percent = (self.section_pos*100) / self.section_size
00048                 self.cb_step(name, percent)
00049 
        def section_end( self ) :

def py::qo::notifier::progress::section_end (   self  ) 

00050                                 :
00051                 self.cb_step(_("Done"),100)
00052                 if int(self.pos) == self.size - 1 :
00053                         self.end()
00054 
        def end( self ) :

def py::qo::notifier::progress::end (   self  ) 

Reimplemented in py::gui::widget::progress_busy.

00055                         :
00056                 self.cb_section(_("Done"),100)
00057 
00058 
def stdout_notify_section( name, pc ) :


Member Data Documentation

py::qo::notifier::progress::cb_section

py::qo::notifier::progress::cb_step

py::qo::notifier::progress::pos

py::qo::notifier::progress::size

py::qo::notifier::progress::section_size

py::qo::notifier::progress::section_pos


The documentation for this class was generated from the following file:
Generated on Tue Oct 9 20:40:32 2007 for Qomics by  doxygen 1.5.3