void update_axes()
{
duck_dragger_->axis=get_axis();
+ get_canvas_view()->work_area->set_cursor(get_axis() == AXIS_X?Gdk::SB_H_DOUBLE_ARROW:Gdk::SB_V_DOUBLE_ARROW);
}
Smach::event_result event_stop_handler(const Smach::event& x);
keypress_connect=get_work_area()->signal_key_press_event().connect(sigc::mem_fun(*this,&StateMirror_Context::key_event),false);
keyrelease_connect=get_work_area()->signal_key_release_event().connect(sigc::mem_fun(*this,&StateMirror_Context::key_event),false);
-// get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
- get_canvas_view()->work_area->reset_cursor();
+ get_canvas_view()->work_area->set_cursor(Gdk::SB_H_DOUBLE_ARROW);
+// get_canvas_view()->work_area->reset_cursor();
App::toolbox->refresh();
StateMirror_Context::key_event(GdkEventKey *event)
{
if (event->keyval==GDK_Shift_L || event->keyval==GDK_Shift_R )
+ {
set_axis(get_axis()==AXIS_X ? AXIS_Y:AXIS_X);
+ get_canvas_view()->work_area->set_cursor(get_axis() == AXIS_X?Gdk::SB_H_DOUBLE_ARROW:Gdk::SB_V_DOUBLE_ARROW);
+ }
return false; //Pass on the event to other handlers, just in case
}
get_work_area()->set_allow_layer_clicks(true);
get_work_area()->set_duck_dragger(duck_dragger_);
-// get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
- get_canvas_view()->work_area->reset_cursor();
+ get_canvas_view()->work_area->set_cursor(Gdk::EXCHANGE);
+// get_canvas_view()->work_area->reset_cursor();
App::toolbox->refresh();
get_work_area()->set_allow_layer_clicks(true);
get_work_area()->set_duck_dragger(duck_dragger_);
-// get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
- get_canvas_view()->work_area->reset_cursor();
+ get_canvas_view()->work_area->set_cursor(Gdk::SIZING);
+// get_canvas_view()->work_area->reset_cursor();
App::toolbox->refresh();
App::toolbox->refresh();
-// get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
- get_canvas_view()->work_area->reset_cursor();
+ get_canvas_view()->work_area->set_cursor(Gdk::FLEUR);
+ //get_canvas_view()->work_area->reset_cursor();
load_settings();
}
// Connect a signal
//get_work_area()->signal_user_click().connect(sigc::mem_fun(*this,&studio::StateText_Context::on_user_click));
- get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
+ get_canvas_view()->work_area->set_cursor(Gdk::XTERM);
App::toolbox->refresh();
}