ZoomPanel Class Reference

#include <zoompanel.h>

Inherited by AmpZoomPanel, CWindowZoom, SampleZoomPanel, TrackZoomPanel, and VWindowZoom.

Collaboration diagram for ZoomPanel:

Collaboration graph
[legend]

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)

Data Fields

MWindowmwindow
BC_WindowBasesubwindow
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 ArrayList< TYPE >::remove_all_objects(), zoom_table, zoom_text, and zoom_tumbler.

Here is the call graph for this function:


Member Function Documentation

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

int ZoomPanel::get_w (  ) 

Definition at line 162 of file zoompanel.C.

References BC_WindowBase::get_w(), zoom_text, and zoom_tumbler.

Referenced by ZoomBar::create_objects().

Here is the call graph for this function:

void ZoomPanel::calculate_menu (  ) 

Definition at line 98 of file zoompanel.C.

References BC_PopupMenu::add_item(), ArrayList< TYPE >::append(), BC_WindowBase::BC_MenuItem, max, min, user_size, user_table, value_to_text(), zoom_table, and zoom_text.

Referenced by create_objects(), and update_menu().

Here is the call graph for this function:

void ZoomPanel::update_menu (  ) 

int ZoomPanel::create_objects (  ) 

double ZoomPanel::get_value (  ) 

char * ZoomPanel::get_text (  ) 

Definition at line 172 of file zoompanel.C.

References BC_PopupMenu::get_text(), and zoom_text.

Referenced by CWindowZoom::handle_event().

Here is the call graph for this function:

void ZoomPanel::set_text ( char *  text  ) 

Definition at line 177 of file zoompanel.C.

References BC_PopupMenu::set_text(), and zoom_text.

Referenced by CWindowGUI::create_objects().

Here is the call graph for this function:

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

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

void ZoomPanel::update ( double  value  ) 

void ZoomPanel::update ( char *  value  ) 

Definition at line 188 of file zoompanel.C.

References BC_PopupMenu::set_text(), and zoom_text.

Here is the call graph for this function:

void ZoomPanel::reposition_window ( int  x,
int  y 
)

Definition at line 154 of file zoompanel.C.

References BC_WindowBase::get_w(), BC_Tumbler::reposition_window(), BC_PopupMenu::reposition_window(), zoom_text, and zoom_tumbler.

Referenced by CWindowGUI::resize_event().

Here is the call graph for this function:

void ZoomPanel::set_menu_images ( VFrame **  data  ) 

Definition at line 129 of file zoompanel.C.

References menu_images.

Referenced by ZoomBar::create_objects(), and ZoomBar::resize_event().

void ZoomPanel::set_tumbler_images ( VFrame **  data  ) 

Definition at line 134 of file zoompanel.C.

References tumbler_images.

Referenced by ZoomBar::create_objects(), and ZoomBar::resize_event().


Field Documentation

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().

Definition at line 67 of file zoompanel.h.

Referenced by create_objects().

Definition at line 68 of file zoompanel.h.

Referenced by create_objects().

Definition at line 69 of file zoompanel.h.

Referenced by create_objects().

Definition at line 70 of file zoompanel.h.

char ZoomPanel::string[BCTEXTLEN]

Definition at line 75 of file zoompanel.h.

Referenced by value_to_text().

Definition at line 79 of file zoompanel.h.

Referenced by text_to_zoom(), and value_to_text().

Definition at line 80 of file zoompanel.h.

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

Definition at line 81 of file zoompanel.h.

Referenced by set_menu_images(), and ZoomPanel().

Definition at line 82 of file zoompanel.h.

Referenced by set_tumbler_images(), and ZoomPanel().


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

Generated on Mon Apr 28 14:51:20 2008 for Cinelerra by  doxygen 1.5.5