synfig-studio  1.0.3
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
studio::Widget_Timeslider Class Reference

#include <widget_timeslider.h>

Inheritance diagram for studio::Widget_Timeslider:
studio::Widget_Sound

Public Member Functions

 Widget_Timeslider ()
 ~Widget_Timeslider ()
void draw ()
virtual void refresh ()
double get_global_fps () const
void set_global_fps (float d)
Glib::RefPtr< Gtk::Adjustment > get_time_adjustment () const
void set_time_adjustment (const Glib::RefPtr< Gtk::Adjustment > &x)
Glib::RefPtr< Gtk::Adjustment > get_bounds_adjustment () const
void set_bounds_adjustment (const Glib::RefPtr< Gtk::Adjustment > &x)

Protected Member Functions

virtual bool on_motion_notify_event (GdkEventMotion *event)
virtual bool on_scroll_event (GdkEventScroll *event)
virtual bool on_button_press_event (GdkEventButton *event)
virtual bool on_button_release_event (GdkEventButton *event)
virtual bool on_draw (const Cairo::RefPtr< Cairo::Context > &cr)
void zoom_in (bool centerontime=false)
void zoom_out (bool centerontime=false)

Protected Attributes

Glib::RefPtr< Pango::Layout > layout
Glib::RefPtr< Gtk::Adjustment > adj_default
Glib::RefPtr< Gtk::Adjustment > adj_timescale
Glib::RefPtr< Gtk::Adjustment > adj_bounds
double time_per_tickmark
guint32 last_event_time
float fps
sigc::connection time_value_change
sigc::connection time_other_change
bool dragscroll
double lastx

Constructor & Destructor Documentation

Widget_Timeslider::Widget_Timeslider ( )
Widget_Timeslider::~Widget_Timeslider ( )

Member Function Documentation

bool Widget_Timeslider::on_motion_notify_event ( GdkEventMotion *  event)
protectedvirtual
bool Widget_Timeslider::on_scroll_event ( GdkEventScroll *  event)
protectedvirtual
bool Widget_Timeslider::on_button_press_event ( GdkEventButton *  event)
protectedvirtual

References adj_timescale, dragscroll, fps, and lastx.

bool Widget_Timeslider::on_button_release_event ( GdkEventButton *  event)
protectedvirtual

References dragscroll.

bool Widget_Timeslider::on_draw ( const Cairo::RefPtr< Cairo::Context > &  cr)
protectedvirtual
void Widget_Timeslider::zoom_in ( bool  centerontime = false)
protected

References adj_bounds, adj_timescale, and zoominfactor.

Referenced by on_scroll_event().

void Widget_Timeslider::zoom_out ( bool  centerontime = false)
protected

References adj_bounds, adj_timescale, and zoomoutfactor.

Referenced by on_scroll_event().

void studio::Widget_Timeslider::draw ( )
inline

Reimplemented in studio::Widget_Sound.

void Widget_Timeslider::refresh ( )
virtual
double studio::Widget_Timeslider::get_global_fps ( ) const
inline

References fps.

Referenced by on_draw().

void Widget_Timeslider::set_global_fps ( float  d)
Glib::RefPtr<Gtk::Adjustment> studio::Widget_Timeslider::get_time_adjustment ( ) const
inline

References adj_timescale.

void Widget_Timeslider::set_time_adjustment ( const Glib::RefPtr< Gtk::Adjustment > &  x)
Glib::RefPtr<Gtk::Adjustment> studio::Widget_Timeslider::get_bounds_adjustment ( ) const
inline

References adj_bounds.

void studio::Widget_Timeslider::set_bounds_adjustment ( const Glib::RefPtr< Gtk::Adjustment > &  x)
inline

Member Data Documentation

Glib::RefPtr<Pango::Layout> studio::Widget_Timeslider::layout
protected

Referenced by on_draw().

Glib::RefPtr<Gtk::Adjustment> studio::Widget_Timeslider::adj_default
protected

Referenced by Widget_Timeslider().

Glib::RefPtr<Gtk::Adjustment> studio::Widget_Timeslider::adj_timescale
protected
Glib::RefPtr<Gtk::Adjustment> studio::Widget_Timeslider::adj_bounds
protected
double studio::Widget_Timeslider::time_per_tickmark
protected

Referenced by on_draw(), and on_scroll_event().

guint32 studio::Widget_Timeslider::last_event_time
protected

Referenced by on_motion_notify_event().

float studio::Widget_Timeslider::fps
protected
sigc::connection studio::Widget_Timeslider::time_value_change
protected

Referenced by set_time_adjustment().

sigc::connection studio::Widget_Timeslider::time_other_change
protected

Referenced by set_time_adjustment().

bool studio::Widget_Timeslider::dragscroll
protected
double studio::Widget_Timeslider::lastx
protected

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