MeterPanel Class Reference

#include <meterpanel.h>

Inherited by CWindowMeters, and VWindowMeters.

Collaboration diagram for MeterPanel:

Collaboration graph
[legend]

Public Member Functions

 MeterPanel (MWindow *mwindow, BC_WindowBase *subwindow, int x, int y, int h, int meter_count, int use_meters, int use_recording=0)
 ~MeterPanel ()
int create_objects ()
int set_meters (int meter_count, int use_meters)
void reposition_window (int x, int y, int h)
int get_reset_x ()
int get_reset_y ()
int get_meter_h ()
int get_meter_w (int number)
void update (double *levels)
void stop_meters ()
void change_format (int mode, int min, int max)
virtual int change_status_event ()
void reset_meters ()

Static Public Member Functions

static int get_meters_width (int meter_count, int use_meters)

Data Fields

MWindowmwindow
BC_WindowBasesubwindow
ArrayList< MeterMeter * > meters
MeterResetreset
int meter_count
int use_meters
int x
int y
int h
int use_recording

Detailed Description

Definition at line 10 of file meterpanel.h.


Constructor & Destructor Documentation

MeterPanel::MeterPanel ( MWindow mwindow,
BC_WindowBase subwindow,
int  x,
int  y,
int  h,
int  meter_count,
int  use_meters,
int  use_recording = 0 
)

Definition at line 12 of file meterpanel.C.

MeterPanel::~MeterPanel (  ) 

Definition at line 32 of file meterpanel.C.

References meters, and ArrayList< TYPE >::remove_all_objects().

Here is the call graph for this function:


Member Function Documentation

int MeterPanel::create_objects (  ) 

Definition at line 115 of file meterpanel.C.

References meter_count, set_meters(), and use_meters.

Referenced by VWindowGUI::create_objects(), RecordMonitorGUI::create_objects(), LevelWindowGUI::create_objects(), and CWindowGUI::create_objects().

Here is the call graph for this function:

int MeterPanel::set_meters ( int  meter_count,
int  use_meters 
)

int MeterPanel::get_meters_width ( int  meter_count,
int  use_meters 
) [static]

void MeterPanel::reposition_window ( int  x,
int  y,
int  h 
)

int MeterPanel::get_reset_x (  ) 

Definition at line 69 of file meterpanel.C.

References get_meters_width(), VFrame::get_w(), meter_count, mwindow, Theme::over_button, MWindow::theme, use_meters, and x.

Here is the call graph for this function:

int MeterPanel::get_reset_y (  ) 

Definition at line 76 of file meterpanel.C.

References VFrame::get_h(), h, mwindow, Theme::over_button, MWindow::theme, and y.

Here is the call graph for this function:

int MeterPanel::get_meter_h (  ) 

Definition at line 86 of file meterpanel.C.

References h.

Referenced by reposition_window(), and set_meters().

int MeterPanel::get_meter_w ( int  number  ) 

Definition at line 81 of file meterpanel.C.

References BC_Meter::get_meter_w(), and BC_Meter::get_title_w().

Referenced by reposition_window(), and set_meters().

Here is the call graph for this function:

void MeterPanel::update ( double *  levels  ) 

Definition at line 91 of file meterpanel.C.

References BC_WindowBase::get_hidden(), meter_count, meters, subwindow, BC_Meter::update(), and ArrayList< TYPE >::values.

Referenced by VTracking::update_meters(), and Tracking::update_meters().

Here is the call graph for this function:

void MeterPanel::stop_meters (  ) 

Definition at line 104 of file meterpanel.C.

References meter_count, meters, BC_Meter::reset(), and ArrayList< TYPE >::values.

Referenced by VTracking::stop_meters(), and Tracking::stop_meters().

Here is the call graph for this function:

void MeterPanel::change_format ( int  mode,
int  min,
int  max 
)

Definition at line 162 of file meterpanel.C.

References BC_Meter::change_format(), meters, ArrayList< TYPE >::total, use_recording, and ArrayList< TYPE >::values.

Referenced by PreferencesThread::apply_settings().

Here is the call graph for this function:

int MeterPanel::change_status_event (  )  [virtual]

Reimplemented in CWindowMeters, and VWindowMeters.

Definition at line 63 of file meterpanel.C.

Referenced by MeterShow::handle_event().

void MeterPanel::reset_meters (  ) 

Definition at line 155 of file meterpanel.C.

References meters, BC_Meter::reset_over(), ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

Referenced by MeterMeter::button_press_event(), and MWindow::reset_meters().

Here is the call graph for this function:


Field Documentation

Reimplemented in CWindowMeters, and VWindowMeters.

Definition at line 37 of file meterpanel.h.

Referenced by get_reset_x(), get_reset_y(), and set_meters().

Definition at line 38 of file meterpanel.h.

Referenced by set_meters(), and update().

Definition at line 40 of file meterpanel.h.

Definition at line 41 of file meterpanel.h.

Referenced by create_objects(), get_reset_x(), reposition_window(), stop_meters(), and update().

Definition at line 43 of file meterpanel.h.

Referenced by get_reset_x(), LevelWindowGUI::resize_event(), and set_meters().

Definition at line 43 of file meterpanel.h.

Referenced by get_reset_y(), LevelWindowGUI::resize_event(), and set_meters().

Definition at line 43 of file meterpanel.h.

Referenced by get_meter_h(), get_reset_y(), and set_meters().

Definition at line 44 of file meterpanel.h.

Referenced by change_format().


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

Generated on Mon Apr 28 14:31:01 2008 for Cinelerra by  doxygen 1.5.5