X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Faction_system.cpp;h=cc20a2bc06c3c5a1575f562adcf9277a927ee7a7;hb=0962b310bc44fd9a2b4904db9b91185ff0bfd1ed;hp=48579b55c55af6c62f2d8722b09913e913ca0ab2;hpb=837b63e9fb829d66d43f4f169861f8979f76820d;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/action_system.cpp b/synfig-studio/trunk/src/synfigapp/action_system.cpp index 48579b5..cc20a2b 100644 --- a/synfig-studio/trunk/src/synfigapp/action_system.cpp +++ b/synfig-studio/trunk/src/synfigapp/action_system.cpp @@ -33,6 +33,8 @@ #include "instance.h" #include "canvasinterface.h" +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -64,7 +66,7 @@ Action::System::~System() } bool -Action::System::perform_action(handle action) +Action::System::perform_action(etl::handle action) { handle uim(get_ui_interface()); @@ -196,7 +198,6 @@ Action::System::perform_action(handle action) { handle canvas_interface=static_cast(this)->find_canvas_interface(canvas); assert(canvas_interface); - DEBUGPOINT(); //canvas_interface->signal_dirty_preview()(); } } @@ -207,7 +208,7 @@ Action::System::perform_action(handle action) } bool -synfigapp::Action::System::undo_(handle uim) +synfigapp::Action::System::undo_(etl::handle uim) { handle action(undo_action_stack().front()); most_recent_action_=action; @@ -297,7 +298,6 @@ synfigapp::Action::System::undo() { handle canvas_interface=static_cast(this)->find_canvas_interface(canvas); assert(canvas_interface); - //DEBUGPOINT(); //canvas_interface->signal_dirty_preview()(); } } @@ -306,7 +306,7 @@ synfigapp::Action::System::undo() } bool -Action::System::redo_(handle uim) +Action::System::redo_(etl::handle uim) { handle action(redo_action_stack().front()); most_recent_action_=action; @@ -396,7 +396,6 @@ Action::System::redo() { handle canvas_interface=static_cast(this)->find_canvas_interface(canvas); assert(canvas_interface); - //DEBUGPOINT(); //canvas_interface->signal_dirty_preview()(); } } @@ -509,7 +508,6 @@ Action::System::set_action_status(etl::handle action, bool x) Canvas::Handle canvas=canvas_specific->get_canvas(); handle canvas_interface=static_cast(this)->find_canvas_interface(canvas); assert(canvas_interface); - //DEBUGPOINT(); //canvas_interface->signal_dirty_preview()(); } @@ -530,7 +528,6 @@ Action::System::set_action_status(etl::handle action, bool x) Canvas::Handle canvas=canvas_specific->get_canvas(); handle canvas_interface=static_cast(this)->find_canvas_interface(canvas); assert(canvas_interface); - DEBUGPOINT(); //canvas_interface->signal_dirty_preview()(); } @@ -540,7 +537,7 @@ Action::System::set_action_status(etl::handle action, bool x) return false; } -Action::PassiveGrouper::PassiveGrouper(etl::loose_handle instance_,synfig::String name_): +Action::PassiveGrouper::PassiveGrouper(etl::loose_handle instance_,synfig::String name_): instance_(instance_), name_(name_), redraw_requested_(false), @@ -551,14 +548,12 @@ Action::PassiveGrouper::PassiveGrouper(etl::loose_handle instanc } void -Action::PassiveGrouper::request_redraw(handle x) +Action::PassiveGrouper::request_redraw(etl::handle x) { -/* DEBUGPOINT(); - if(instance_->group_stack_.empty()) +/* if(instance_->group_stack_.empty()) { if(x!=canvas_interface_) { - DEBUGPOINT(); x->signal_dirty_preview()(); } @@ -566,21 +561,16 @@ Action::PassiveGrouper::request_redraw(handle x) } else { - DEBUGPOINT(); if(instance_->group_stack_.back()==this) { - DEBUGPOINT(); redraw_requested_=true; } else { - DEBUGPOINT(); instance_->group_stack_.back()->request_redraw(x); redraw_requested_=false; } - DEBUGPOINT(); } - DEBUGPOINT(); */ if(x) { @@ -676,7 +666,6 @@ Action::PassiveGrouper::~PassiveGrouper() if(instance_->group_stack_.empty()) { assert(canvas_interface_); - DEBUGPOINT(); canvas_interface_->signal_dirty_preview()(); } else