#include "instance.h"
#include "canvasinterface.h"
+#include "general.h"
+
#endif
/* === U S I N G =========================================================== */
}
bool
-Action::System::perform_action(handle<Action::Base> action)
+Action::System::perform_action(etl::handle<Action::Base> action)
{
handle<UIInterface> uim(get_ui_interface());
{
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
}
}
bool
-synfigapp::Action::System::undo_(handle<UIInterface> uim)
+synfigapp::Action::System::undo_(etl::handle<UIInterface> uim)
{
handle<Action::Undoable> action(undo_action_stack().front());
most_recent_action_=action;
{
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- //DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
}
}
bool
-Action::System::redo_(handle<UIInterface> uim)
+Action::System::redo_(etl::handle<UIInterface> uim)
{
handle<Action::Undoable> action(redo_action_stack().front());
most_recent_action_=action;
{
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- //DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
}
Canvas::Handle canvas=canvas_specific->get_canvas();
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- //DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
Canvas::Handle canvas=canvas_specific->get_canvas();
handle<CanvasInterface> canvas_interface=static_cast<Instance*>(this)->find_canvas_interface(canvas);
assert(canvas_interface);
- DEBUGPOINT();
//canvas_interface->signal_dirty_preview()();
}
return false;
}
-Action::PassiveGrouper::PassiveGrouper(etl::loose_handle<Action::System> instance_,synfig::String name_):
+Action::PassiveGrouper::PassiveGrouper(etl::loose_handle<System> instance_,synfig::String name_):
instance_(instance_),
name_(name_),
redraw_requested_(false),
}
void
-Action::PassiveGrouper::request_redraw(handle<CanvasInterface> x)
+Action::PassiveGrouper::request_redraw(etl::handle<CanvasInterface> x)
{
-/* DEBUGPOINT();
- if(instance_->group_stack_.empty())
+/* if(instance_->group_stack_.empty())
{
if(x!=canvas_interface_)
{
- DEBUGPOINT();
x->signal_dirty_preview()();
}
}
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)
{
if(instance_->group_stack_.empty())
{
assert(canvas_interface_);
- DEBUGPOINT();
canvas_interface_->signal_dirty_preview()();
}
else