synfig-studio
1.0.3
|
#include <canvasview.h>
Classes | |
class | ActivationIndex |
class | IsWorking |
Create an instance of this class whenever doing a longer task. More... |
Public Types | |
typedef etl::handle< CanvasView > | Handle |
typedef etl::handle< const CanvasView > | ConstHandle |
typedef etl::loose_handle < CanvasView > | LooseHandle |
typedef LayerTreeStore::Model | LayerTreeModel |
typedef ChildrenTreeStore::Model | ChildrenTreeModel |
typedef synfigapp::CanvasInterface::Mode | Mode |
Public Member Functions | |
void | set_grid_snap_toggle (bool flag) |
void | set_grid_show_toggle (bool flag) |
void | set_onion_skin_toggle (bool flag) |
WorkArea * | get_work_area () |
void | queue_rebuild_ducks () |
sigc::signal< void > & | signal_deleted () |
ActivationIndex | get_activation_index () |
void | activate () |
void | deactivate () |
void | present () |
bool | jack_is_locked () const |
void | jack_lock () |
void | jack_unlock () |
bool | get_jack_enabled_in_preview () const |
void | set_jack_enabled_in_preview (bool x) |
synfig::Rect & | get_bbox () |
Glib::RefPtr< Glib::ObjectBase > | get_ref_obj (const synfig::String &x) |
Glib::RefPtr< const Glib::ObjectBase > | get_ref_obj (const synfig::String &x) const |
void | set_ref_obj (const synfig::String &x, Glib::RefPtr< Glib::ObjectBase > y) |
Glib::RefPtr< Gtk::TreeModel > | get_tree_model (const synfig::String &x) |
Glib::RefPtr< const Gtk::TreeModel > | get_tree_model (const synfig::String &x) const |
void | set_tree_model (const synfig::String &x, Glib::RefPtr< Gtk::TreeModel > y) |
Gtk::Widget * | get_ext_widget (const synfig::String &x) |
void | set_ext_widget (const synfig::String &x, Gtk::Widget *y) |
Gtk::UIManager::ui_merge_id | get_popup_id () |
void | set_popup_id (Gtk::UIManager::ui_merge_id popup_id) |
Gtk::UIManager::ui_merge_id | get_toolbar_id () |
void | set_toolbar_id (Gtk::UIManager::ui_merge_id toolbar_id) |
void | popup_main_menu () |
Pop up menu for the main menu and the caret menu (not tools and not the bezier ones). | |
Smach & | get_smach () |
const Smach & | get_smach () const |
Smach::event_result | process_event_key (EventKey x) |
void | popup_layer_menu (synfig::Layer::Handle layer) |
virtual | ~CanvasView () |
const synfig::ContextParams & | get_context_params () const |
void | set_context_params (const synfig::ContextParams &x) |
void | set_mode (Mode x) |
Mode | get_mode () const |
Glib::RefPtr< Gtk::Adjustment > | time_adjustment () |
Glib::RefPtr< const Gtk::Adjustment > | time_adjustment () const |
Glib::RefPtr < studio::Adjust_Window > | time_window_adjustment () |
Glib::RefPtr< const studio::Adjust_Window > | time_window_adjustment () const |
etl::handle < synfigapp::UIInterface > | get_ui_interface () |
etl::handle < synfigapp::SelectionManager > | get_selection_manager () |
Glib::RefPtr< Gtk::TreeModel > | layer_tree_store () |
Glib::RefPtr< const Gtk::TreeModel > | layer_tree_store () const |
Glib::RefPtr< Gtk::TreeModel > | children_tree_store () |
Glib::RefPtr< const Gtk::TreeModel > | children_tree_store () const |
Glib::RefPtr< Gtk::TreeModel > | keyframe_tree_store () |
Glib::RefPtr< const Gtk::TreeModel > | keyframe_tree_store () const |
void | set_time (synfig::Time t) |
synfig::Time | get_time () |
etl::handle< synfig::Canvas > | get_canvas () const |
etl::handle< Instance > | get_instance () const |
etl::handle < synfigapp::CanvasInterface > | canvas_interface () |
etl::handle< const synfigapp::CanvasInterface > | canvas_interface () const |
void | add_actions_to_menu (Gtk::Menu *menu, const synfigapp::Action::ParamList ¶m_list, synfigapp::Action::Category category=synfigapp::Action::CATEGORY_ALL) const |
void | update_title () |
Updates the title of the window. | |
bool | close_instance () |
Closes this document. | |
bool | close_view () |
Closes this canvas view. | |
void | stop () |
Stops the currently executing action. | |
bool | get_cancel_status () const |
Returns the cancel status. | |
void | reset_cancel_status () |
Resets the cancel status. | |
void | new_child_canvas () |
void | rebuild_tables () |
Rebuilds layer_tree_store_ from the Canvas. Maintains selected items. | |
void | build_tables () |
Builds layer_tree_store_ from the Canvas. Does not maintain selected items. | |
void | refresh_tables () |
Refreshes the data for the tables. | |
void | rebuild_ducks () |
void | play () |
Starts "playing" the animation in real-time. | |
void | play_async () |
void | stop_async () |
void | show_tables () |
Shows the tables (Layer/Children) | |
void | hide_tables () |
Hides the tables (Layer/Children) | |
void | toggle_tables () |
Toggles the tables. | |
bool | tables_are_visible () |
Gets the table status. | |
void | show_timebar () |
Shows the time bar. | |
void | hide_timebar () |
Hides the time bar. | |
void | set_sensitive_timebar (bool sensitive) |
Enables or disables interaction with the timebar. | |
void | time_zoom_in () |
void | time_zoom_out () |
void | add_layer (synfig::String x) |
void | show_keyframe_dialog () |
void | on_keyframe_toggle () |
void | on_keyframe_description_set () |
void | play_audio (float t) |
void | stop_audio () |
void | image_import () |
void | on_waypoint_clicked_canvasview (synfigapp::ValueDesc, std::set< synfig::Waypoint, std::less< synfig::UniqueID > >, int button) |
void | preview_option () |
bool | is_playing () |
void | update_quality () |
void | toggle_duck_mask (Duckmatic::Type type) |
bool | is_time_equal_to_current_frame (const synfig::Time &time, const synfig::Time &range=synfig::Time(0.0)) |
Public Member Functions inherited from studio::Dockable | |
void | set_toolbar (Gtk::Toolbar &toolbar) |
void | set_use_scrolled (bool x) |
Dockable (const synfig::String &name, const synfig::String &local_name, Gtk::StockID stock_id_=Gtk::StockID(" ")) | |
~Dockable () | |
sigc::signal< void > & | signal_stock_id_changed () |
const synfig::String & | get_name () const |
const synfig::String & | get_local_name () const |
const Gtk::StockID & | get_stock_id () const |
void | set_stock_id (Gtk::StockID x) |
void | set_local_name (const synfig::String &) |
void | clear () |
void | add (Gtk::Widget &x) |
Gtk::ToolButton * | add_button (const Gtk::StockID &stock_id, const synfig::String &tooltip=synfig::String()) |
void | attach_dnd_to (Gtk::Widget &widget) |
bool | clear_previous () |
virtual Gtk::Widget * | create_tab_label () |
Static Public Member Functions | |
static etl::handle < studio::CanvasView > | create (etl::loose_handle< Instance > instance, etl::handle< synfig::Canvas > canvas) |
static std::list< int > & | get_pixel_sizes () |
Public Attributes | |
std::auto_ptr< WorkArea > | work_area |
Gtk::Menu | mainmenu |
bool | duck_refresh_flag |
bool | duck_refresh_needed |
int | working_depth |
This is for the IsWorking class. | |
bool | cancel |
CanvasProperties | canvas_properties |
CanvasOptions | canvas_options |
RenderSettings | render_settings |
Dialog_Waypoint | waypoint_dialog |
Dialog_Keyframe | keyframe_dialog |
std::auto_ptr< Dialog_Preview > | preview_dialog |
std::auto_ptr< Dialog_SoundSelect > | sound_dialog |
Protected Member Functions | |
bool | close_instance_when_safe () |
bool | on_delete_event (GdkEventAny *event) |
Friends | |
class | UniversalScrubber |
class | Dock_Layers |
class | Dock_Children |
class | Dock_Keyframes |
class | CanvasViewUIInterface |
class | CanvasViewSelectionManager |
class | Duckmatic |
class | IsWorking |
typedef etl::handle<CanvasView> studio::CanvasView::Handle |
typedef etl::handle<const CanvasView> studio::CanvasView::ConstHandle |
typedef etl::loose_handle<CanvasView> studio::CanvasView::LooseHandle |
typedef ChildrenTreeStore::Model studio::CanvasView::ChildrenTreeModel |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
References work_area.
Referenced by close_instance().
void CanvasView::queue_rebuild_ducks | ( | ) |
References rebuild_ducks().
Referenced by rebuild_ducks(), and toggle_duck_mask().
|
inline |
Referenced by ~CanvasView().
|
inline |
Referenced by studio::DockManager::update_window_titles().
void CanvasView::activate | ( | ) |
void CanvasView::deactivate | ( | ) |
References studio::EVENT_YIELD_TOOL_OPTIONS, get_smach(), studio::App::ui_manager(), and update_title().
|
virtual |
|
inline |
void CanvasView::jack_lock | ( | ) |
void CanvasView::jack_unlock | ( | ) |
|
inline |
|
inline |
|
inline |
Glib::RefPtr< Glib::ObjectBase > CanvasView::get_ref_obj | ( | const synfig::String & | x | ) |
Glib::RefPtr< const Glib::ObjectBase > CanvasView::get_ref_obj | ( | const synfig::String & | x | ) | const |
void CanvasView::set_ref_obj | ( | const synfig::String & | x, |
Glib::RefPtr< Glib::ObjectBase > | y | ||
) |
Glib::RefPtr< Gtk::TreeModel > CanvasView::get_tree_model | ( | const synfig::String & | x | ) |
Referenced by children_tree_store(), keyframe_tree_store(), and layer_tree_store().
Glib::RefPtr< const Gtk::TreeModel > CanvasView::get_tree_model | ( | const synfig::String & | x | ) | const |
void CanvasView::set_tree_model | ( | const synfig::String & | x, |
Glib::RefPtr< Gtk::TreeModel > | y | ||
) |
Gtk::Widget * CanvasView::get_ext_widget | ( | const synfig::String & | x | ) |
void CanvasView::set_ext_widget | ( | const synfig::String & | x, |
Gtk::Widget * | y | ||
) |
References studio::EVENT_LAYER_SELECTION_CHANGED, studio::EVENT_REFRESH_DUCKS, studio::ChildrenTree::get_selection(), studio::LayerTree::get_selection(), on_waypoint_clicked_canvasview(), studio::LayerTree::signal_layer_user_click(), studio::LayerTree::signal_param_user_click(), studio::ChildrenTree::signal_user_click(), studio::ChildrenTree::signal_waypoint_clicked_childrentree(), studio::LayerTree::signal_waypoint_clicked_layertree(), and SLOT_EVENT.
Gtk::UIManager::ui_merge_id CanvasView::get_popup_id | ( | ) |
void CanvasView::set_popup_id | ( | Gtk::UIManager::ui_merge_id | popup_id | ) |
Gtk::UIManager::ui_merge_id CanvasView::get_toolbar_id | ( | ) |
void CanvasView::set_toolbar_id | ( | Gtk::UIManager::ui_merge_id | toolbar_id | ) |
void CanvasView::popup_main_menu | ( | ) |
Pop up menu for the main menu and the caret menu (not tools and not the bezier ones).
Signal handler for work_area->signal_popup_menu
References studio::App::ui_manager().
|
inline |
Referenced by activate(), and deactivate().
|
inline |
Smach::event_result CanvasView::process_event_key | ( | EventKey | x | ) |
void CanvasView::popup_layer_menu | ( | synfig::Layer::Handle | layer | ) |
|
inline |
|
inline |
|
inline |
References canvas_interface().
|
inline |
References canvas_interface().
|
inline |
Referenced by play().
|
inline |
|
inline |
Referenced by play(), time_zoom_in(), and time_zoom_out().
|
inline |
|
inline |
|
inline |
Referenced by add_layer(), and rebuild_ducks().
|
inline |
References get_tree_model().
|
inline |
References get_tree_model().
|
inline |
References get_tree_model().
|
inline |
References get_tree_model().
|
inline |
References get_tree_model().
|
inline |
References get_tree_model().
|
inline |
|
inline |
Referenced by is_time_equal_to_current_frame(), play_async(), popup_layer_menu(), and rebuild_ducks().
|
inline |
|
inline |
Referenced by add_actions_to_menu(), close_instance(), close_view(), on_waypoint_clicked_canvasview(), and update_title().
|
inline |
|
inline |
void CanvasView::add_actions_to_menu | ( | Gtk::Menu * | menu, |
const synfigapp::Action::ParamList & | param_list, | ||
synfigapp::Action::Category | category = synfigapp::Action::CATEGORY_ALL |
||
) | const |
References get_instance().
Referenced by popup_layer_menu().
void CanvasView::update_title | ( | ) |
Updates the title of the window.
References _, studio::App::dock_manager, get_canvas(), get_instance(), synfigapp::CVSInfo::in_repository(), synfigapp::CVSInfo::is_modified(), synfigapp::CVSInfo::is_updated(), studio::Dockable::set_local_name(), and studio::DockManager::update_window_titles().
Referenced by activate(), deactivate(), and present().
bool CanvasView::close_instance | ( | ) |
Closes this document.
References _close_instance(), get_instance(), and get_work_area().
Referenced by close_view().
bool CanvasView::close_view | ( | ) |
Closes this canvas view.
References close_instance(), and get_instance().
Referenced by on_delete_event().
|
inline |
Stops the currently executing action.
References cancel.
|
inline |
Returns the cancel status.
References cancel.
Referenced by play().
|
inline |
void studio::CanvasView::new_child_canvas | ( | ) |
void CanvasView::rebuild_tables | ( | ) |
Rebuilds layer_tree_store_ from the Canvas. Maintains selected items.
void CanvasView::build_tables | ( | ) |
Builds layer_tree_store_ from the Canvas. Does not maintain selected items.
void CanvasView::refresh_tables | ( | ) |
Refreshes the data for the tables.
void CanvasView::rebuild_ducks | ( | ) |
References duck_refresh_flag, duck_refresh_needed, get_canvas(), get_selection_manager(), get_time(), queue_rebuild_ducks(), and work_area.
Referenced by queue_rebuild_ducks().
void CanvasView::play | ( | ) |
Starts "playing" the animation in real-time.
References get_cancel_status(), get_canvas(), time_adjustment(), time_window_adjustment(), work_area, and working_depth.
void CanvasView::play_async | ( | ) |
void CanvasView::stop_async | ( | ) |
References is_playing(), and studio::FrameDial::toggle_play_pause_button().
void CanvasView::show_tables | ( | ) |
Shows the tables (Layer/Children)
void CanvasView::hide_tables | ( | ) |
Hides the tables (Layer/Children)
void CanvasView::toggle_tables | ( | ) |
Toggles the tables.
bool CanvasView::tables_are_visible | ( | ) |
Gets the table status.
void CanvasView::show_timebar | ( | ) |
Shows the time bar.
References studio::ChildrenTree::set_show_timetrack(), and studio::LayerTree::set_show_timetrack().
void CanvasView::hide_timebar | ( | ) |
Hides the time bar.
References studio::ChildrenTree::set_show_timetrack(), and studio::LayerTree::set_show_timetrack().
void CanvasView::set_sensitive_timebar | ( | bool | sensitive | ) |
Enables or disables interaction with the timebar.
void CanvasView::time_zoom_in | ( | ) |
References get_canvas(), and time_window_adjustment().
void CanvasView::time_zoom_out | ( | ) |
References get_canvas(), and time_window_adjustment().
void CanvasView::add_layer | ( | synfig::String | x | ) |
References canvas_interface(), get_canvas(), and get_selection_manager().
void CanvasView::show_keyframe_dialog | ( | ) |
void CanvasView::on_keyframe_toggle | ( | ) |
void CanvasView::on_keyframe_description_set | ( | ) |
void CanvasView::play_audio | ( | float | t | ) |
void CanvasView::stop_audio | ( | ) |
void CanvasView::image_import | ( | ) |
void CanvasView::on_waypoint_clicked_canvasview | ( | synfigapp::ValueDesc | , |
std::set< synfig::Waypoint, std::less< synfig::UniqueID > > | , | ||
int | button | ||
) |
References _, APPEND_ITEMS_TO_ALL_MENUS, APPEND_ITEMS_TO_ALL_MENUS3, canvas_interface(), studio::delete_widget(), duplicate_waypoints(), get_canvas(), get_instance(), synfigapp::ValueDesc::is_valid(), remove_waypoints(), synfigapp::CanvasInterface::set_time(), studio::Dialog_Waypoint::set_value_desc(), studio::Dialog_Waypoint::set_waypoint(), and waypoint_dialog.
Referenced by studio::Dock_Timetrack::init_canvas_view_vfunc(), studio::Instance::make_param_menu(), and set_ext_widget().
|
inline |
|
inline |
Referenced by play_async(), and stop_async().
void CanvasView::update_quality | ( | ) |
References work_area.
void CanvasView::toggle_duck_mask | ( | Duckmatic::Type | type | ) |
References queue_rebuild_ducks(), studio::Duck::TYPE_ANGLE, studio::Duck::TYPE_BONE_RECURSIVE, studio::Duck::TYPE_POSITION, studio::Duck::TYPE_RADIUS, studio::Duck::TYPE_TANGENT, studio::Duck::TYPE_VERTEX, studio::Duck::TYPE_WIDTH, studio::Duck::TYPE_WIDTHPOINT_POSITION, studio::ToggleDucksDial::update_toggles(), and work_area.
bool CanvasView::is_time_equal_to_current_frame | ( | const synfig::Time & | time, |
const synfig::Time & | range = synfig::Time(0.0) |
||
) |
References get_canvas(), and get_time().
|
protected |
|
protected |
References close_view().
|
static |
|
static |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
std::auto_ptr<WorkArea> studio::CanvasView::work_area |
Referenced by get_work_area(), play(), play_async(), rebuild_ducks(), toggle_duck_mask(), and update_quality().
Gtk::Menu studio::CanvasView::mainmenu |
bool studio::CanvasView::duck_refresh_flag |
Referenced by rebuild_ducks().
bool studio::CanvasView::duck_refresh_needed |
Referenced by rebuild_ducks().
int studio::CanvasView::working_depth |
This is for the IsWorking class.
Referenced by studio::CanvasView::IsWorking::IsWorking(), and play().
bool studio::CanvasView::cancel |
Referenced by get_cancel_status(), studio::CanvasView::IsWorking::IsWorking(), reset_cancel_status(), and stop().
CanvasProperties studio::CanvasView::canvas_properties |
CanvasOptions studio::CanvasView::canvas_options |
RenderSettings studio::CanvasView::render_settings |
Dialog_Waypoint studio::CanvasView::waypoint_dialog |
Referenced by on_waypoint_clicked_canvasview().
Dialog_Keyframe studio::CanvasView::keyframe_dialog |
Referenced by show_keyframe_dialog().
std::auto_ptr<Dialog_Preview> studio::CanvasView::preview_dialog |
std::auto_ptr<Dialog_SoundSelect> studio::CanvasView::sound_dialog |