synfig-studio
1.0.3
|
A cell renderer that displays the waypoints for Animated ValueNodes. More...
#include <cellrenderer_timetrack.h>
Public Member Functions | |
Glib::PropertyProxy < synfigapp::ValueDesc > | property_value_desc () |
Glib::PropertyProxy < synfig::Canvas::Handle > | property_canvas () |
Glib::PropertyProxy < Glib::RefPtr < Gtk::Adjustment > > | property_adjustment () |
sigc::signal< void, const etl::handle< synfig::Node > &, const synfig::Time &, const synfig::Time &, const synfig::Time &, int > & | signal_waypoint_clicked_cellrenderer () |
sigc::signal< void, synfig::Waypoint, synfig::ValueNode::Handle > & | signal_waypoint_changed () |
CellRenderer_TimeTrack () | |
~CellRenderer_TimeTrack () | |
void | set_adjustment (const Glib::RefPtr< Gtk::Adjustment > &x) |
Glib::RefPtr< Gtk::Adjustment > | get_adjustment () const |
etl::loose_handle < synfigapp::CanvasInterface > | canvas_interface () const |
void | set_canvas_interface (etl::loose_handle< synfigapp::CanvasInterface > h) |
synfig::Canvas::Handle | get_canvas () const |
bool | is_selected (const synfig::Waypoint &waypoint) const |
synfig::ValueNode_Animated::WaypointList::iterator | find_editable_waypoint (const synfig::Time &t, const synfig::Time &scope=synfig::Time::end()) |
virtual void | render_vfunc (const ::Cairo::RefPtr< ::Cairo::Context > &cr, Gtk::Widget &widget, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, Gtk::CellRendererState flags) |
virtual bool | activate_vfunc (GdkEvent *event, Gtk::Widget &widget, const Glib::ustring &path, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, Gtk::CellRendererState flags) |
A cell renderer that displays the waypoints for Animated ValueNodes.
CellRenderer_TimeTrack::CellRenderer_TimeTrack | ( | ) |
CellRenderer_TimeTrack::~CellRenderer_TimeTrack | ( | ) |
Glib::PropertyProxy< synfigapp::ValueDesc > CellRenderer_TimeTrack::property_value_desc | ( | ) |
Glib::PropertyProxy< synfig::Canvas::Handle > CellRenderer_TimeTrack::property_canvas | ( | ) |
Referenced by studio::CanvasTreeStore::add_cell_renderer_value_node(), get_canvas(), and render_vfunc().
Glib::PropertyProxy< Glib::RefPtr< Gtk::Adjustment > > CellRenderer_TimeTrack::property_adjustment | ( | ) |
|
inline |
Referenced by activate_vfunc().
|
inline |
void CellRenderer_TimeTrack::set_adjustment | ( | const Glib::RefPtr< Gtk::Adjustment > & | x | ) |
Referenced by studio::LayerTree::set_time_adjustment().
Glib::RefPtr< Gtk::Adjustment > CellRenderer_TimeTrack::get_adjustment | ( | ) | const |
Referenced by activate_vfunc(), and render_vfunc().
|
inline |
Referenced by activate_vfunc().
void CellRenderer_TimeTrack::set_canvas_interface | ( | etl::loose_handle< synfigapp::CanvasInterface > | h | ) |
Referenced by studio::LayerTree::set_model().
synfig::Canvas::Handle CellRenderer_TimeTrack::get_canvas | ( | ) | const |
References property_canvas().
Referenced by activate_vfunc(), and render_vfunc().
bool CellRenderer_TimeTrack::is_selected | ( | const synfig::Waypoint & | waypoint | ) | const |
synfig::ValueNode_Animated::WaypointList::iterator CellRenderer_TimeTrack::find_editable_waypoint | ( | const synfig::Time & | t, |
const synfig::Time & | scope = synfig::Time::end() |
||
) |
References property_value_desc().
Referenced by activate_vfunc().
|
virtual |
|
virtual |
value_node &&
UI specification:
When nothing is selected, clicking on a point in either normal mode or additive mode will select the time point closest to the click. Subtractive click will do nothing When things are already selected, clicking on a selected point does nothing (in both normal and add mode). Add mode clicking on an unselected point adds it to the set. Normal clicking on an unselected point will select only that one time point. Subtractive clicking on any point will remove it from the the set if it is included.
References synfigapp::Action::ParamList::add(), canvas_interface(), COPY_MASK, DELETE_MASK, find_editable_waypoint(), get_adjustment(), get_canvas(), get_closest_time(), get_time_dilation_from_vdesc(), get_time_offset_from_vdesc(), get_times_from_vdesc(), synfigapp::ValueDesc::get_value(), synfigapp::ValueDesc::get_value_node(), synfigapp::ValueDesc::get_value_type(), NONE, property_value_desc(), SELECT_MASK, and signal_waypoint_clicked_cellrenderer().