ardour
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Gtkmm2ext::MotionFeedback Class Referenceabstract

#include <motionfeedback.h>

Inheritance diagram for Gtkmm2ext::MotionFeedback:
VolumeController

Public Types

enum  Type { Rotary, CenterSpring, Endless }
 

Public Member Functions

 MotionFeedback (Glib::RefPtr< Gdk::Pixbuf >, Type type, boost::shared_ptr< PBD::Controllable >, double default_value, double step_increment, double page_increment, const char *widget_name=NULL, bool with_numeric_display=true, int sub_image_width=40, int sub_image_height=40)
 
virtual ~MotionFeedback ()
 
Gtk::Widget & eventwin ()
 
boost::shared_ptr
< PBD::Controllable
controllable () const
 
virtual void set_controllable (boost::shared_ptr< PBD::Controllable > c)
 
void set_print_func (void(*pf)(char buf[32], const boost::shared_ptr< PBD::Controllable > &, void *), void *arg)
 

Static Public Member Functions

static void set_lamp_color (const std::string &)
 
static Glib::RefPtr< Gdk::Pixbuf > render_pixbuf (int size)
 

Protected Member Functions

void pixwin_size_request (GtkRequisition *)
 
bool pixwin_button_press_event (GdkEventButton *)
 
bool pixwin_button_release_event (GdkEventButton *)
 
bool pixwin_motion_notify_event (GdkEventMotion *)
 
bool pixwin_key_press_event (GdkEventKey *)
 
bool pixwin_enter_notify_event (GdkEventCrossing *)
 
bool pixwin_leave_notify_event (GdkEventCrossing *)
 
bool pixwin_focus_in_event (GdkEventFocus *)
 
bool pixwin_focus_out_event (GdkEventFocus *)
 
bool pixwin_expose_event (GdkEventExpose *)
 
bool pixwin_scroll_event (GdkEventScroll *)
 
virtual double to_control_value (double)=0
 
virtual double to_display_value (double)=0
 
virtual double adjust (double nominal_delta)=0
 

Protected Attributes

boost::shared_ptr
< PBD::Controllable
_controllable
 
Gtk::Label * value
 
double default_value
 
double step_inc
 
double page_inc
 

Private Member Functions

void controllable_value_changed ()
 

Static Private Member Functions

static void default_printer (char buf[32], const boost::shared_ptr< PBD::Controllable > &, void *)
 
static void core_draw (cairo_t *, int, double, double, double, double, const GdkColor *bright, const GdkColor *dark)
 

Private Attributes

Type type
 
Gtk::EventBox pixwin
 
Gtk::EventBox * value_packer
 
Glib::RefPtr< Gdk::Pixbuf > pixbuf
 
BindingProxy binding_proxy
 
void(* print_func )(char buf[32], const boost::shared_ptr< PBD::Controllable > &, void *)
 
void * print_arg
 
bool grab_is_fine
 
double grabbed_y
 
double grabbed_x
 
int subwidth
 
int subheight
 
PBD::ScopedConnection controller_connection
 

Static Private Attributes

static Gdk::Color * base_color
 

Detailed Description

Definition at line 41 of file motionfeedback.h.

Member Enumeration Documentation

Enumerator
Rotary 
CenterSpring 
Endless 

Definition at line 44 of file motionfeedback.h.

Constructor & Destructor Documentation

MotionFeedback::MotionFeedback ( Glib::RefPtr< Gdk::Pixbuf >  pix,
Type  type,
boost::shared_ptr< PBD::Controllable c,
double  default_value,
double  step_increment,
double  page_increment,
const char *  widget_name = NULL,
bool  with_numeric_display = true,
int  sub_image_width = 40,
int  sub_image_height = 40 
)

Definition at line 52 of file motionfeedback.cc.

MotionFeedback::~MotionFeedback ( )
virtual

Definition at line 145 of file motionfeedback.cc.

Member Function Documentation

virtual double Gtkmm2ext::MotionFeedback::adjust ( double  nominal_delta)
protectedpure virtual

Implemented in VolumeController.

boost::shared_ptr< PBD::Controllable > MotionFeedback::controllable ( ) const

Definition at line 460 of file motionfeedback.cc.

void MotionFeedback::controllable_value_changed ( )
private

Definition at line 430 of file motionfeedback.cc.

void MotionFeedback::core_draw ( cairo_t *  cr,
int  phase,
double  size,
double  progress_width,
double  xorigin,
double  yorigin,
const GdkColor *  bright,
const GdkColor *  dark 
)
staticprivate

Definition at line 538 of file motionfeedback.cc.

void MotionFeedback::default_printer ( char  buf[32],
const boost::shared_ptr< PBD::Controllable > &  c,
void *   
)
staticprivate

Definition at line 466 of file motionfeedback.cc.

Gtk::Widget& Gtkmm2ext::MotionFeedback::eventwin ( )
inline

Definition at line 62 of file motionfeedback.h.

bool MotionFeedback::pixwin_button_press_event ( GdkEventButton *  ev)
protected

Definition at line 152 of file motionfeedback.cc.

bool MotionFeedback::pixwin_button_release_event ( GdkEventButton *  ev)
protected

Definition at line 178 of file motionfeedback.cc.

bool MotionFeedback::pixwin_enter_notify_event ( GdkEventCrossing *  )
protected

Definition at line 274 of file motionfeedback.cc.

bool MotionFeedback::pixwin_expose_event ( GdkEventExpose *  )
protected

Definition at line 337 of file motionfeedback.cc.

bool Gtkmm2ext::MotionFeedback::pixwin_focus_in_event ( GdkEventFocus *  )
protected
bool Gtkmm2ext::MotionFeedback::pixwin_focus_out_event ( GdkEventFocus *  )
protected
bool MotionFeedback::pixwin_key_press_event ( GdkEventKey *  ev)
protected

Definition at line 288 of file motionfeedback.cc.

bool MotionFeedback::pixwin_leave_notify_event ( GdkEventCrossing *  )
protected

Definition at line 281 of file motionfeedback.cc.

bool MotionFeedback::pixwin_motion_notify_event ( GdkEventMotion *  ev)
protected

Definition at line 216 of file motionfeedback.cc.

bool MotionFeedback::pixwin_scroll_event ( GdkEventScroll *  ev)
protected

Definition at line 388 of file motionfeedback.cc.

void MotionFeedback::pixwin_size_request ( GtkRequisition *  req)
protected

Definition at line 422 of file motionfeedback.cc.

Glib::RefPtr< Gdk::Pixbuf > MotionFeedback::render_pixbuf ( int  size)
static

Definition at line 476 of file motionfeedback.cc.

void MotionFeedback::set_controllable ( boost::shared_ptr< PBD::Controllable c)
virtual

Definition at line 442 of file motionfeedback.cc.

void MotionFeedback::set_lamp_color ( const std::string &  str)
static

Definition at line 685 of file motionfeedback.cc.

void Gtkmm2ext::MotionFeedback::set_print_func ( void(*)(char buf[32], const boost::shared_ptr< PBD::Controllable > &, void *)  pf,
void *  arg 
)
inline

Definition at line 71 of file motionfeedback.h.

virtual double Gtkmm2ext::MotionFeedback::to_control_value ( double  )
protectedpure virtual

Implemented in VolumeController.

virtual double Gtkmm2ext::MotionFeedback::to_display_value ( double  )
protectedpure virtual

Implemented in VolumeController.

Member Data Documentation

boost::shared_ptr<PBD::Controllable> Gtkmm2ext::MotionFeedback::_controllable
protected

Definition at line 75 of file motionfeedback.h.

Gdk::Color * MotionFeedback::base_color
staticprivate

Definition at line 115 of file motionfeedback.h.

BindingProxy Gtkmm2ext::MotionFeedback::binding_proxy
private

Definition at line 114 of file motionfeedback.h.

PBD::ScopedConnection Gtkmm2ext::MotionFeedback::controller_connection
private

Definition at line 127 of file motionfeedback.h.

double Gtkmm2ext::MotionFeedback::default_value
protected

Definition at line 80 of file motionfeedback.h.

bool Gtkmm2ext::MotionFeedback::grab_is_fine
private

Definition at line 121 of file motionfeedback.h.

double Gtkmm2ext::MotionFeedback::grabbed_x
private

Definition at line 123 of file motionfeedback.h.

double Gtkmm2ext::MotionFeedback::grabbed_y
private

Definition at line 122 of file motionfeedback.h.

double Gtkmm2ext::MotionFeedback::page_inc
protected

Definition at line 82 of file motionfeedback.h.

Glib::RefPtr<Gdk::Pixbuf> Gtkmm2ext::MotionFeedback::pixbuf
private

Definition at line 113 of file motionfeedback.h.

Gtk::EventBox Gtkmm2ext::MotionFeedback::pixwin
private

Definition at line 111 of file motionfeedback.h.

void* Gtkmm2ext::MotionFeedback::print_arg
private

Definition at line 118 of file motionfeedback.h.

void(* Gtkmm2ext::MotionFeedback::print_func)(char buf[32], const boost::shared_ptr< PBD::Controllable > &, void *)
private

Definition at line 117 of file motionfeedback.h.

double Gtkmm2ext::MotionFeedback::step_inc
protected

Definition at line 81 of file motionfeedback.h.

int Gtkmm2ext::MotionFeedback::subheight
private

Definition at line 125 of file motionfeedback.h.

int Gtkmm2ext::MotionFeedback::subwidth
private

Definition at line 124 of file motionfeedback.h.

Type Gtkmm2ext::MotionFeedback::type
private

Definition at line 110 of file motionfeedback.h.

Gtk::Label* Gtkmm2ext::MotionFeedback::value
protected

Definition at line 79 of file motionfeedback.h.

Gtk::EventBox* Gtkmm2ext::MotionFeedback::value_packer
private

Definition at line 112 of file motionfeedback.h.


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