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);
+ get_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::SB_H_DOUBLE_ARROW);
-// get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->set_cursor(Gdk::SB_H_DOUBLE_ARROW);
+// get_work_area()->reset_cursor();
App::toolbox->refresh();
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);
+ get_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
save_settings();
get_work_area()->clear_duck_dragger();
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
keypress_connect.disconnect();
keyrelease_connect.disconnect();
// Connect a signal
//get_work_area()->signal_user_click().connect(sigc::mem_fun(*this,&studio::StateBLine_Context::on_user_click));
- get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
+ get_work_area()->set_cursor(Gdk::CROSSHAIR);
App::toolbox->refresh();
}
save_settings();
App::dialog_tool_options->clear();
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
// Restore layer clicking
get_work_area()->set_allow_layer_clicks(prev_workarea_layer_status_);
// Connect a signal
//get_work_area()->signal_user_click().connect(sigc::mem_fun(*this,&studio::StateCircle_Context::on_user_click));
- get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
+ get_work_area()->set_cursor(Gdk::CROSSHAIR);
App::toolbox->refresh();
}
// Restore layer clicking
get_work_area()->set_allow_layer_clicks(prev_workarea_layer_status_);
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
App::dialog_tool_options->clear();
// Connect a signal
//get_work_area()->signal_user_click().connect(sigc::mem_fun(*this,&studio::StateDraw_Context::on_user_click));
- get_canvas_view()->work_area->set_cursor(Gdk::PENCIL);
+ get_work_area()->set_cursor(Gdk::PENCIL);
App::toolbox->refresh();
get_work_area()->set_type_mask(old_duckmask);
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
// Restore layer clicking
get_work_area()->set_allow_layer_clicks(prev_workarea_layer_status_);
// Turn off layer clicking
get_work_area()->set_allow_layer_clicks(false);
- get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
+ get_work_area()->set_cursor(Gdk::CROSSHAIR);
// clear out the ducks
get_work_area()->clear_ducks();
// Restore layer clicking
// get_work_area()->set_allow_layer_clicks(prev_workarea_layer_status_);
get_work_area()->set_allow_layer_clicks(true);
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
App::dialog_tool_options->clear();
keyrelease_connect=get_work_area()->signal_key_release_event().connect(sigc::mem_fun(*this,&StateNormal_Context::key_released),false);
//these will segfault
-// get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
+// get_work_area()->set_cursor(Gdk::CROSSHAIR);
// get_work_area()->reset_cursor();
App::toolbox->refresh();
save_settings();
get_work_area()->clear_duck_dragger();
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
keypress_connect.disconnect();
keyrelease_connect.disconnect();
// Refresh the work area
get_work_area()->queue_draw();
- get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
+ get_work_area()->set_cursor(Gdk::CROSSHAIR);
// Hide the tables if they are showing
prev_table_status=get_canvas_view()->tables_are_visible();
App::dialog_tool_options->clear();
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
// Enable the time bar
get_canvas_view()->set_sensitive_timebar(true);
// Refresh the work area
get_work_area()->queue_draw();
- get_canvas_view()->work_area->set_cursor(Gdk::DOTBOX);
+ get_work_area()->set_cursor(Gdk::DOTBOX);
// Hide the tables if they are showing
//prev_table_status=get_canvas_view()->tables_are_visible();
// Restore layer clicking
get_work_area()->set_allow_layer_clicks(prev_workarea_layer_status_);
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
App::dialog_tool_options->clear();
get_work_area()->set_allow_layer_clicks(true);
get_work_area()->set_duck_dragger(duck_dragger_);
- get_canvas_view()->work_area->set_cursor(Gdk::EXCHANGE);
-// get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->set_cursor(Gdk::EXCHANGE);
+// get_work_area()->reset_cursor();
App::toolbox->refresh();
save_settings();
get_work_area()->clear_duck_dragger();
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
App::dialog_tool_options->clear();
get_work_area()->set_allow_layer_clicks(true);
get_work_area()->set_duck_dragger(duck_dragger_);
- get_canvas_view()->work_area->set_cursor(Gdk::SIZING);
-// get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->set_cursor(Gdk::SIZING);
+// get_work_area()->reset_cursor();
App::toolbox->refresh();
save_settings();
get_work_area()->clear_duck_dragger();
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
App::dialog_tool_options->clear();
// Turn off layer clicking
get_work_area()->set_allow_layer_clicks(false);
- get_canvas_view()->work_area->set_cursor(Gdk::PENCIL);
+ get_work_area()->set_cursor(Gdk::PENCIL);
// Turn off duck clicking
get_work_area()->set_allow_duck_clicks(false);
StateSketch_Context::~StateSketch_Context()
{
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
App::dialog_tool_options->clear();
App::toolbox->refresh();
- get_canvas_view()->work_area->set_cursor(Gdk::FLEUR);
- //get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->set_cursor(Gdk::FLEUR);
+ //get_work_area()->reset_cursor();
load_settings();
}
save_settings();
get_work_area()->clear_duck_dragger();
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
App::dialog_tool_options->clear();
// Connect a signal
//get_work_area()->signal_user_click().connect(sigc::mem_fun(*this,&studio::StateStar_Context::on_user_click));
- get_canvas_view()->work_area->set_cursor(Gdk::STAR);
+ get_work_area()->set_cursor(Gdk::STAR);
App::toolbox->refresh();
}
// Restore layer clicking
get_work_area()->set_allow_layer_clicks(prev_workarea_layer_status_);
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
App::dialog_tool_options->clear();
// 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::XTERM);
+ get_work_area()->set_cursor(Gdk::XTERM);
App::toolbox->refresh();
}
// Restore layer clicking
get_work_area()->set_allow_layer_clicks(prev_workarea_layer_status_);
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
App::dialog_tool_options->clear();
// Connect a signal
//get_work_area()->signal_user_click().connect(sigc::mem_fun(*this,&studio::StateZoom_Context::on_user_click));
- get_canvas_view()->work_area->set_cursor(Gdk::CROSSHAIR);
+ get_work_area()->set_cursor(Gdk::CROSSHAIR);
App::toolbox->refresh();
}
{
// Restore layer clicking
get_work_area()->set_allow_layer_clicks(prev_workarea_layer_status_);
- get_canvas_view()->work_area->reset_cursor();
+ get_work_area()->reset_cursor();
// Enable the time bar
//get_canvas_view()->set_sensitive_timebar(true);