synfig-studio  1.0.3
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
studio::CanvasView Class Reference

#include <canvasview.h>

Inheritance diagram for studio::CanvasView:
studio::Dockable

Classes

class  ActivationIndex
class  IsWorking
 Create an instance of this class whenever doing a longer task. More...

Public Types

typedef etl::handle< CanvasViewHandle
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)
WorkAreaget_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).
Smachget_smach ()
const Smachget_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< Instanceget_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 &param_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< WorkAreawork_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_Previewpreview_dialog
std::auto_ptr< Dialog_SoundSelectsound_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

Detailed Description

Todo:
This needs to be documented further.
Todo:
This needs to be documented further.

Member Typedef Documentation

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

Constructor & Destructor Documentation

CanvasView::~CanvasView ( )
virtual

Member Function Documentation

void studio::CanvasView::set_grid_snap_toggle ( bool  flag)
inline
void studio::CanvasView::set_grid_show_toggle ( bool  flag)
inline
void studio::CanvasView::set_onion_skin_toggle ( bool  flag)
inline
WorkArea* studio::CanvasView::get_work_area ( )
inline

References work_area.

Referenced by close_instance().

void CanvasView::queue_rebuild_ducks ( )

References rebuild_ducks().

Referenced by rebuild_ducks(), and toggle_duck_mask().

sigc::signal<void>& studio::CanvasView::signal_deleted ( )
inline

Referenced by ~CanvasView().

ActivationIndex studio::CanvasView::get_activation_index ( )
inline
void CanvasView::activate ( )
void CanvasView::deactivate ( )
void CanvasView::present ( )
virtual

Reimplemented from studio::Dockable.

References update_title().

Referenced by activate().

bool studio::CanvasView::jack_is_locked ( ) const
inline
void CanvasView::jack_lock ( )
void CanvasView::jack_unlock ( )
bool studio::CanvasView::get_jack_enabled_in_preview ( ) const
inline
void studio::CanvasView::set_jack_enabled_in_preview ( bool  x)
inline
synfig::Rect& studio::CanvasView::get_bbox ( )
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)
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 
)
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

See Also
create_work_area(), popup_param_menu(), popup_param_menu_bezier()

References studio::App::ui_manager().

Smach& studio::CanvasView::get_smach ( )
inline

Referenced by activate(), and deactivate().

const Smach& studio::CanvasView::get_smach ( ) const
inline
Smach::event_result CanvasView::process_event_key ( EventKey  x)
void CanvasView::popup_layer_menu ( synfig::Layer::Handle  layer)
const synfig::ContextParams& studio::CanvasView::get_context_params ( ) const
inline
void studio::CanvasView::set_context_params ( const synfig::ContextParams &  x)
inline
void studio::CanvasView::set_mode ( Mode  x)
inline

References canvas_interface().

Mode studio::CanvasView::get_mode ( ) const
inline

References canvas_interface().

Glib::RefPtr<Gtk::Adjustment> studio::CanvasView::time_adjustment ( )
inline

Referenced by play().

Glib::RefPtr<const Gtk::Adjustment> studio::CanvasView::time_adjustment ( ) const
inline
Glib::RefPtr<studio::Adjust_Window> studio::CanvasView::time_window_adjustment ( )
inline

Referenced by play(), time_zoom_in(), and time_zoom_out().

Glib::RefPtr<const studio::Adjust_Window> studio::CanvasView::time_window_adjustment ( ) const
inline
etl::handle<synfigapp::UIInterface> studio::CanvasView::get_ui_interface ( )
inline
etl::handle<synfigapp::SelectionManager> studio::CanvasView::get_selection_manager ( )
inline

Referenced by add_layer(), and rebuild_ducks().

Glib::RefPtr<Gtk::TreeModel> studio::CanvasView::layer_tree_store ( )
inline

References get_tree_model().

Glib::RefPtr<const Gtk::TreeModel> studio::CanvasView::layer_tree_store ( ) const
inline

References get_tree_model().

Glib::RefPtr<Gtk::TreeModel> studio::CanvasView::children_tree_store ( )
inline

References get_tree_model().

Glib::RefPtr<const Gtk::TreeModel> studio::CanvasView::children_tree_store ( ) const
inline

References get_tree_model().

Glib::RefPtr<Gtk::TreeModel> studio::CanvasView::keyframe_tree_store ( )
inline

References get_tree_model().

Glib::RefPtr<const Gtk::TreeModel> studio::CanvasView::keyframe_tree_store ( ) const
inline

References get_tree_model().

void studio::CanvasView::set_time ( synfig::Time  t)
inline
synfig::Time studio::CanvasView::get_time ( )
inline
etl::handle<synfig::Canvas> studio::CanvasView::get_canvas ( ) const
inline
etl::handle<Instance> studio::CanvasView::get_instance ( ) const
inline
etl::handle<synfigapp::CanvasInterface> studio::CanvasView::canvas_interface ( )
inline
etl::handle<const synfigapp::CanvasInterface> studio::CanvasView::canvas_interface ( ) const
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 ( )
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().

void studio::CanvasView::stop ( )
inline

Stops the currently executing action.

See Also
get_cancel_status(), reset_cancel_status(), IsWorking

References cancel.

bool studio::CanvasView::get_cancel_status ( ) const
inline

Returns the cancel status.

See Also
stop(), reset_cancel_status(), IsWorking

References cancel.

Referenced by play().

void studio::CanvasView::reset_cancel_status ( )
inline

Resets the cancel status.

See Also
stop(), get_cancel_status(), IsWorking

References cancel.

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 ( )
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 ( )
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 ( )
void CanvasView::hide_timebar ( )
void CanvasView::set_sensitive_timebar ( bool  sensitive)

Enables or disables interaction with the timebar.

void CanvasView::time_zoom_in ( )
void CanvasView::time_zoom_out ( )
void CanvasView::add_layer ( synfig::String  x)
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 
)
void studio::CanvasView::preview_option ( )
inline
bool studio::CanvasView::is_playing ( )
inline

Referenced by play_async(), and stop_async().

void CanvasView::update_quality ( )

References work_area.

void CanvasView::toggle_duck_mask ( Duckmatic::Type  type)
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().

bool studio::CanvasView::close_instance_when_safe ( )
protected
bool CanvasView::on_delete_event ( GdkEventAny *  event)
protected
Todo:
This causes the window to be deleted straight away - but what if we prompt 'save?' and the user cancels?

References close_view().

handle< CanvasView > CanvasView::create ( etl::loose_handle< Instance instance,
etl::handle< synfig::Canvas >  canvas 
)
static
std::list< int > & CanvasView::get_pixel_sizes ( )
static

Friends And Related Function Documentation

friend class UniversalScrubber
friend
friend class Dock_Layers
friend
friend class Dock_Children
friend
friend class Dock_Keyframes
friend
friend class CanvasViewUIInterface
friend
friend class CanvasViewSelectionManager
friend
friend class Duckmatic
friend
friend class IsWorking
friend

Member Data Documentation

std::auto_ptr<WorkArea> studio::CanvasView::work_area
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
CanvasProperties studio::CanvasView::canvas_properties
CanvasOptions studio::CanvasView::canvas_options
RenderSettings studio::CanvasView::render_settings
Dialog_Waypoint studio::CanvasView::waypoint_dialog
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

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