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

ZoomPanel Class Reference

#include <zoompanel.h>

Inheritance diagram for ZoomPanel:

AmpZoomPanel CWindowZoom SampleZoomPanel TrackZoomPanel VWindowZoom List of all members.

Public Member Functions

 ZoomPanel (MWindow *mwindow, BC_WindowBase *subwindow, double value, int x, int y, int w, double min=1, double max=131072, int zoom_type=ZOOM_PERCENTAGE)
 ZoomPanel (MWindow *mwindow, BC_WindowBase *subwindow, double value, int x, int y, int w, double *user_table, int user_size, int zoom_type=ZOOM_PERCENTAGE)
 ~ZoomPanel ()
virtual int handle_event ()
int get_w ()
void calculate_menu ()
void update_menu ()
int create_objects ()
double get_value ()
char * get_text ()
void set_text (char *text)
char * value_to_text (double value, int use_table=1)
double text_to_zoom (char *text, int use_table=1)
void update (double value)
void update (char *value)
void reposition_window (int x, int y)
void set_menu_images (VFrame **data)
void set_tumbler_images (VFrame **data)

Public Attributes

MWindowmwindow
BC_WindowBase * subwindow
int x
int y
int w
double value
ZoomPopupzoom_text
ZoomTumblerzoom_tumbler
char string [BCTEXTLEN]
double min
double max
double * user_table
int user_size
int zoom_type
ArrayList< ZoomHash * > zoom_table
VFrame ** menu_images
VFrame ** tumbler_images

Detailed Description

Definition at line 26 of file zoompanel.h.


Constructor & Destructor Documentation

ZoomPanel::ZoomPanel MWindow mwindow,
BC_WindowBase *  subwindow,
double  value,
int  x,
int  y,
int  w,
double  min = 1,
double  max = 131072,
int  zoom_type = ZOOM_PERCENTAGE
 

Definition at line 41 of file zoompanel.C.

References menu_images, tumbler_images, user_size, and user_table.

ZoomPanel::ZoomPanel MWindow mwindow,
BC_WindowBase *  subwindow,
double  value,
int  x,
int  y,
int  w,
double *  user_table,
int  user_size,
int  zoom_type = ZOOM_PERCENTAGE
 

Definition at line 66 of file zoompanel.C.

References max, menu_images, min, and tumbler_images.

ZoomPanel::~ZoomPanel  ) 
 

Definition at line 91 of file zoompanel.C.

References zoom_table, zoom_text, and zoom_tumbler.


Member Function Documentation

void ZoomPanel::calculate_menu  ) 
 

Definition at line 98 of file zoompanel.C.

References max, min, user_size, user_table, value_to_text(), zoom_table, and zoom_text.

Referenced by create_objects(), and update_menu().

int ZoomPanel::create_objects  ) 
 

Definition at line 139 of file zoompanel.C.

References calculate_menu(), mwindow, subwindow, x, y, zoom_text, and zoom_tumbler.

Referenced by ZoomBar::create_objects().

char * ZoomPanel::get_text  ) 
 

Definition at line 172 of file zoompanel.C.

References zoom_text.

Referenced by CWindowZoom::handle_event().

double ZoomPanel::get_value  ) 
 

Definition at line 167 of file zoompanel.C.

References value.

Referenced by TrackZoomPanel::handle_event(), AmpZoomPanel::handle_event(), SampleZoomPanel::handle_event(), and CWindowZoom::handle_event().

int ZoomPanel::get_w  ) 
 

Definition at line 162 of file zoompanel.C.

References zoom_text, and zoom_tumbler.

Referenced by ZoomBar::create_objects().

virtual int ZoomPanel::handle_event  )  [inline, virtual]
 

Reimplemented in CWindowZoom, VWindowZoom, SampleZoomPanel, AmpZoomPanel, and TrackZoomPanel.

Definition at line 49 of file zoompanel.h.

Referenced by ZoomTumbler::handle_down_event(), ZoomPopup::handle_event(), and ZoomTumbler::handle_up_event().

void ZoomPanel::reposition_window int  x,
int  y
 

Definition at line 154 of file zoompanel.C.

References zoom_text, and zoom_tumbler.

Referenced by CWindowGUI::resize_event().

void ZoomPanel::set_menu_images VFrame **  data  ) 
 

Definition at line 129 of file zoompanel.C.

References menu_images.

Referenced by ZoomBar::create_objects().

void ZoomPanel::set_text char *  text  ) 
 

Definition at line 177 of file zoompanel.C.

References zoom_text.

void ZoomPanel::set_tumbler_images VFrame **  data  ) 
 

Definition at line 134 of file zoompanel.C.

References tumbler_images.

Referenced by ZoomBar::create_objects().

double ZoomPanel::text_to_zoom char *  text,
int  use_table = 1
 

Definition at line 239 of file zoompanel.C.

References MWindowGUI::canvas, MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, MWindow::gui, mwindow, EDLSession::sample_rate, EDL::session, EDLSession::time_format, ZOOM_FLOAT, ZOOM_LONG, ZOOM_PERCENTAGE, zoom_table, ZOOM_TIME, and zoom_type.

Referenced by ZoomPopup::handle_event().

void ZoomPanel::update char *  value  ) 
 

Definition at line 188 of file zoompanel.C.

References zoom_text.

void ZoomPanel::update double  value  ) 
 

Definition at line 182 of file zoompanel.C.

References value_to_text(), and zoom_text.

Referenced by TrackZoomPanel::handle_event(), ZoomBar::redraw_time_dependancies(), CWindowCanvas::test_zoom(), ZoomBar::update(), CWindow::update(), and MWindow::zoom_sample().

void ZoomPanel::update_menu  ) 
 

Definition at line 118 of file zoompanel.C.

References calculate_menu(), zoom_table, and zoom_text.

Referenced by ZoomBar::redraw_time_dependancies().

char * ZoomPanel::value_to_text double  value,
int  use_table = 1
 

Definition at line 194 of file zoompanel.C.

References MWindowGUI::canvas, MWindow::edl, EDLSession::frame_rate, EDLSession::frames_per_foot, MWindow::gui, mwindow, EDLSession::sample_rate, EDL::session, string, EDLSession::time_format, ZOOM_FLOAT, ZOOM_LONG, ZOOM_PERCENTAGE, zoom_table, ZOOM_TIME, and zoom_type.

Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and update().


Member Data Documentation

double ZoomPanel::max
 

Definition at line 76 of file zoompanel.h.

Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and ZoomPanel().

VFrame** ZoomPanel::menu_images
 

Definition at line 81 of file zoompanel.h.

Referenced by set_menu_images(), and ZoomPanel().

double ZoomPanel::min
 

Definition at line 76 of file zoompanel.h.

Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and ZoomPanel().

MWindow* ZoomPanel::mwindow
 

Reimplemented in CWindowZoom, VWindowZoom, SampleZoomPanel, AmpZoomPanel, and TrackZoomPanel.

Definition at line 66 of file zoompanel.h.

Referenced by create_objects(), text_to_zoom(), and value_to_text().

char ZoomPanel::string[BCTEXTLEN]
 

Definition at line 75 of file zoompanel.h.

Referenced by value_to_text().

BC_WindowBase* ZoomPanel::subwindow
 

Definition at line 67 of file zoompanel.h.

Referenced by create_objects().

VFrame** ZoomPanel::tumbler_images
 

Definition at line 82 of file zoompanel.h.

Referenced by set_tumbler_images(), and ZoomPanel().

int ZoomPanel::user_size
 

Definition at line 78 of file zoompanel.h.

Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and ZoomPanel().

double* ZoomPanel::user_table
 

Definition at line 77 of file zoompanel.h.

Referenced by calculate_menu(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), and ZoomPanel().

double ZoomPanel::value
 

Definition at line 71 of file zoompanel.h.

Referenced by get_value(), ZoomTumbler::handle_down_event(), ZoomPopup::handle_event(), and ZoomTumbler::handle_up_event().

int ZoomPanel::w
 

Definition at line 70 of file zoompanel.h.

int ZoomPanel::x
 

Definition at line 68 of file zoompanel.h.

Referenced by create_objects(), and CWindowZoom::handle_event().

int ZoomPanel::y
 

Definition at line 69 of file zoompanel.h.

Referenced by create_objects(), and CWindowZoom::handle_event().

ArrayList<ZoomHash*> ZoomPanel::zoom_table
 

Definition at line 80 of file zoompanel.h.

Referenced by calculate_menu(), text_to_zoom(), update_menu(), value_to_text(), and ~ZoomPanel().

ZoomPopup* ZoomPanel::zoom_text
 

Definition at line 73 of file zoompanel.h.

Referenced by calculate_menu(), create_objects(), get_text(), get_w(), ZoomTumbler::handle_down_event(), ZoomTumbler::handle_up_event(), reposition_window(), set_text(), update(), update_menu(), and ~ZoomPanel().

ZoomTumbler* ZoomPanel::zoom_tumbler
 

Definition at line 74 of file zoompanel.h.

Referenced by create_objects(), get_w(), CWindowGUI::keyboard_zoomin(), CWindowGUI::keyboard_zoomout(), reposition_window(), and ~ZoomPanel().

int ZoomPanel::zoom_type
 

Definition at line 79 of file zoompanel.h.

Referenced by text_to_zoom(), and value_to_text().


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