BC_Slider Class Reference

#include <bcslider.h>

Inherits BC_SubWindow.

Inherited by BC_FSlider, and BC_ISlider.

Collaboration diagram for BC_Slider:

Collaboration graph
[legend]

Public Member Functions

 BC_Slider (int x, int y, int pixels, int pointer_motion_range, VFrame **images, int show_number, int vertical, int use_caption)
virtual ~BC_Slider ()
virtual int handle_event ()
int initialize ()
int get_button_pixels ()
virtual int value_to_pixel ()
int keypress_event ()
int cursor_enter_event ()
int cursor_leave_event ()
int button_press_event ()
virtual int button_release_event ()
int get_pointer_motion_range ()
int cursor_motion_event ()
int repeat_event (int64_t repeat_id)
int reposition_window (int x, int y, int w=-1, int h=-1)
int activate ()
int deactivate ()
virtual int increase_value ()
virtual int decrease_value ()
virtual int increase_value_big ()
virtual int decrease_value_big ()
virtual char * get_caption ()

Static Public Member Functions

static int get_span (int vertical)

Private Member Functions

virtual int init_selection (int cursor_x, int cursor_y)
virtual int update_selection (int cursor_x, int cursor_y)
int set_images (VFrame **images)
int draw_face ()
void show_value_tooltip ()

Private Attributes

VFrame ** images
BC_Pixmap ** pixmaps
int show_number
int vertical
int pointer_motion_range
int pixels
int keypress_tooltip_timer
int button_pixel
int status
int button_down
int min_pixel
int max_pixel
int text_line
int text_height
int use_caption
char caption [BCTEXTLEN]
char temp_tooltip_text [BCTEXTLEN]
int active
int enabled

Friends

class BC_ISlider
class BC_FSlider
class BC_PercentageSlider

Detailed Description

Definition at line 11 of file bcslider.h.


Constructor & Destructor Documentation

BC_Slider::BC_Slider ( int  x,
int  y,
int  pixels,
int  pointer_motion_range,
VFrame **  images,
int  show_number,
int  vertical,
int  use_caption 
)

Definition at line 17 of file bcslider.C.

References active, button_down, button_pixel, enabled, pixmaps, SLIDER_IMAGES, SLIDER_UP, and status.

BC_Slider::~BC_Slider (  )  [virtual]

Definition at line 46 of file bcslider.C.

References pixmaps, and SLIDER_IMAGES.


Member Function Documentation

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

int BC_Slider::initialize (  )  [virtual]

int BC_Slider::get_span ( int  vertical  )  [static]

int BC_Slider::get_button_pixels (  ) 

Definition at line 147 of file bcslider.C.

References BC_Pixmap::get_h(), BC_Pixmap::get_w(), pixmaps, SLIDER_UP, and vertical.

Referenced by BC_FSlider::value_to_pixel(), and BC_ISlider::value_to_pixel().

Here is the call graph for this function:

virtual int BC_Slider::value_to_pixel (  )  [inline, virtual]

Reimplemented in BC_ISlider, and BC_FSlider.

Definition at line 33 of file bcslider.h.

Referenced by initialize(), and reposition_window().

int BC_Slider::keypress_event (  )  [virtual]

int BC_Slider::cursor_enter_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 235 of file bcslider.C.

References draw_face(), BC_WindowBase::event_win, SLIDER_HI, SLIDER_UP, status, BC_WindowBase::tooltip_done, BC_WindowBase::top_level, and BC_WindowBase::win.

Here is the call graph for this function:

int BC_Slider::cursor_leave_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 248 of file bcslider.C.

References draw_face(), BC_WindowBase::hide_tooltip(), SLIDER_HI, SLIDER_UP, and status.

Here is the call graph for this function:

int BC_Slider::button_press_event (  )  [virtual]

int BC_Slider::button_release_event (  )  [virtual]

Reimplemented from BC_WindowBase.

Reimplemented in ChannelEditEditFine.

Definition at line 311 of file bcslider.C.

References button_down, BC_WindowBase::cursor_inside(), draw_face(), BC_WindowBase::hide_tooltip(), SLIDER_HI, SLIDER_UP, status, and BC_WindowBase::top_level.

Referenced by ChannelEditEditFine::button_release_event().

Here is the call graph for this function:

int BC_Slider::get_pointer_motion_range (  ) 

Definition at line 355 of file bcslider.C.

References pointer_motion_range.

int BC_Slider::cursor_motion_event (  )  [virtual]

int BC_Slider::repeat_event ( int64_t  repeat_id  )  [virtual]

int BC_Slider::reposition_window ( int  x,
int  y,
int  w = -1,
int  h = -1 
)

Reimplemented from BC_WindowBase.

Definition at line 346 of file bcslider.C.

References button_pixel, draw_face(), BC_WindowBase::reposition_window(), and value_to_pixel().

Referenced by VPatchGUI::reposition(), APatchGUI::reposition(), VWindowGUI::resize_event(), and CWindowGUI::resize_event().

Here is the call graph for this function:

int BC_Slider::activate (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 265 of file bcslider.C.

References active, BC_WindowBase::active_subwindow, and BC_WindowBase::top_level.

Referenced by button_press_event(), and VWindowGUI::create_objects().

int BC_Slider::deactivate (  )  [virtual]

Reimplemented from BC_WindowBase.

Definition at line 259 of file bcslider.C.

References active.

virtual int BC_Slider::increase_value (  )  [inline, virtual]

Reimplemented in CWindowSlider, BC_ISlider, and BC_FSlider.

Definition at line 45 of file bcslider.h.

Referenced by button_press_event(), and keypress_event().

virtual int BC_Slider::decrease_value (  )  [inline, virtual]

Reimplemented in CWindowSlider, BC_ISlider, and BC_FSlider.

Definition at line 46 of file bcslider.h.

Referenced by button_press_event(), and keypress_event().

virtual int BC_Slider::increase_value_big (  )  [inline, virtual]

Reimplemented in BC_ISlider, and BC_FSlider.

Definition at line 47 of file bcslider.h.

Referenced by keypress_event().

virtual int BC_Slider::decrease_value_big (  )  [inline, virtual]

Reimplemented in BC_ISlider, and BC_FSlider.

Definition at line 48 of file bcslider.h.

Referenced by keypress_event().

virtual char* BC_Slider::get_caption (  )  [inline, virtual]

virtual int BC_Slider::init_selection ( int  cursor_x,
int  cursor_y 
) [inline, private, virtual]

Reimplemented in BC_ISlider, and BC_FSlider.

Definition at line 61 of file bcslider.h.

Referenced by button_press_event().

virtual int BC_Slider::update_selection ( int  cursor_x,
int  cursor_y 
) [inline, private, virtual]

Reimplemented in BC_ISlider, and BC_FSlider.

Definition at line 62 of file bcslider.h.

Referenced by cursor_motion_event().

int BC_Slider::set_images ( VFrame **  images  )  [private]

Definition at line 137 of file bcslider.C.

References BC_WindowBase::BC_Pixmap, BC_WindowBase::parent_window, pixmaps, and SLIDER_IMAGES.

Referenced by initialize().

int BC_Slider::draw_face (  )  [private]

void BC_Slider::show_value_tooltip (  )  [private]

Definition at line 153 of file bcslider.C.

References get_caption(), keypress_tooltip_timer, BC_WindowBase::set_tooltip(), and BC_WindowBase::show_tooltip().

Referenced by button_press_event(), and keypress_event().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class BC_ISlider [friend]

Definition at line 24 of file bcslider.h.

friend class BC_FSlider [friend]

Definition at line 25 of file bcslider.h.

friend class BC_PercentageSlider [friend]

Reimplemented in BC_FSlider.

Definition at line 26 of file bcslider.h.


Field Documentation

Definition at line 67 of file bcslider.h.

Referenced by initialize().

Definition at line 68 of file bcslider.h.

Referenced by BC_Slider(), draw_face(), get_button_pixels(), set_images(), and ~BC_Slider().

int BC_Slider::show_number [private]

Definition at line 69 of file bcslider.h.

int BC_Slider::vertical [private]

int BC_Slider::pixels [private]

Definition at line 69 of file bcslider.h.

Referenced by initialize().

Definition at line 70 of file bcslider.h.

Referenced by repeat_event(), and show_value_tooltip().

int BC_Slider::button_pixel [private]

int BC_Slider::status [private]

int BC_Slider::button_down [private]

Reimplemented from BC_WindowBase.

Definition at line 73 of file bcslider.h.

Referenced by BC_Slider(), button_press_event(), button_release_event(), and cursor_motion_event().

int BC_Slider::min_pixel [private]

int BC_Slider::max_pixel [private]

Definition at line 74 of file bcslider.h.

Referenced by BC_FSlider::init_selection(), and BC_ISlider::init_selection().

int BC_Slider::text_line [private]

Definition at line 75 of file bcslider.h.

int BC_Slider::text_height [private]

Definition at line 75 of file bcslider.h.

Referenced by initialize().

int BC_Slider::use_caption [private]

Definition at line 76 of file bcslider.h.

Referenced by draw_face().

char BC_Slider::caption[BCTEXTLEN] [private]

char BC_Slider::temp_tooltip_text[BCTEXTLEN] [private]

Definition at line 78 of file bcslider.h.

int BC_Slider::active [private]

Definition at line 79 of file bcslider.h.

Referenced by activate(), BC_Slider(), deactivate(), and keypress_event().

int BC_Slider::enabled [private]

Definition at line 80 of file bcslider.h.

Referenced by BC_Slider(), and keypress_event().


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

Generated on Mon Apr 28 14:15:32 2008 for Cinelerra by  doxygen 1.5.5