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

MeterPanel Class Reference

#include <meterpanel.h>

Inheritance diagram for MeterPanel:

CWindowMeters VWindowMeters List of all members.

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)

Public Attributes

MWindowmwindow
BC_WindowBase * subwindow
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.


Member Function Documentation

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

Definition at line 161 of file meterpanel.C.

References meters, and use_recording.

Referenced by PreferencesThread::apply_settings().

int MeterPanel::change_status_event  )  [virtual]
 

Reimplemented in CWindowMeters, and VWindowMeters.

Definition at line 63 of file meterpanel.C.

Referenced by MeterShow::handle_event().

int MeterPanel::create_objects  ) 
 

Definition at line 114 of file meterpanel.C.

References meter_count, set_meters(), and use_meters.

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

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.

Referenced by reposition_window(), and set_meters().

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

Definition at line 37 of file meterpanel.C.

Referenced by RecordMonitor::create_objects(), MainSession::default_window_positions(), get_reset_x(), and Theme::get_rmonitor_sizes().

int MeterPanel::get_reset_x  ) 
 

Definition at line 69 of file meterpanel.C.

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

int MeterPanel::get_reset_y  ) 
 

Definition at line 76 of file meterpanel.C.

References h, mwindow, Theme::over_button, MWindow::theme, and y.

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

Definition at line 45 of file meterpanel.C.

References get_meter_h(), get_meter_w(), meter_count, and meters.

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

void MeterPanel::reset_meters  ) 
 

Definition at line 154 of file meterpanel.C.

References meters.

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

int MeterPanel::set_meters int  meter_count,
int  use_meters
 

Definition at line 120 of file meterpanel.C.

References get_meter_h(), get_meter_w(), h, meters, mwindow, subwindow, x, and y.

Referenced by SetFormatThread::apply_changes(), and create_objects().

void MeterPanel::stop_meters  ) 
 

Definition at line 103 of file meterpanel.C.

References meter_count, and meters.

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

void MeterPanel::update double *  levels  ) 
 

Definition at line 91 of file meterpanel.C.

References meter_count, meters, and subwindow.

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


Member Data Documentation

int MeterPanel::h
 

Definition at line 43 of file meterpanel.h.

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

int MeterPanel::meter_count
 

Definition at line 41 of file meterpanel.h.

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

ArrayList<MeterMeter*> MeterPanel::meters
 

Definition at line 39 of file meterpanel.h.

Referenced by change_format(), MeterReset::handle_event(), reposition_window(), reset_meters(), RecordAudio::run(), set_meters(), stop_meters(), update(), and ~MeterPanel().

MWindow* MeterPanel::mwindow
 

Reimplemented in CWindowMeters, and VWindowMeters.

Definition at line 37 of file meterpanel.h.

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

MeterReset* MeterPanel::reset
 

Definition at line 40 of file meterpanel.h.

BC_WindowBase* MeterPanel::subwindow
 

Definition at line 38 of file meterpanel.h.

Referenced by set_meters(), and update().

int MeterPanel::use_meters
 

Definition at line 42 of file meterpanel.h.

Referenced by VWindowMeters::change_status_event(), CWindowMeters::change_status_event(), create_objects(), get_reset_x(), and MeterShow::handle_event().

int MeterPanel::use_recording
 

Definition at line 44 of file meterpanel.h.

Referenced by change_format().

int MeterPanel::x
 

Definition at line 43 of file meterpanel.h.

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

int MeterPanel::y
 

Definition at line 43 of file meterpanel.h.

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


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