editmenu.items().push_back(Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("gtk-stop"),Gtk::AccelKey(GDK_Escape,static_cast<Gdk::ModifierType>(0)),SLOT_EVENT(EVENT_STOP)));
editmenu.items().push_back(Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("gtk-refresh"),Gtk::AccelKey('k',Gdk::CONTROL_MASK),SLOT_EVENT(EVENT_REFRESH)));
editmenu.items().push_back(Gtk::Menu_Helpers::SeparatorElem());
- editmenu.items().push_back(Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("synfig-rotoscope_bline"),
- sigc::mem_fun(*this, &studio::CanvasView::do_rotoscope_bline)));
- editmenu.items().push_back(Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("synfig-rotoscope_polygon"),
- sigc::mem_fun(*this, &studio::CanvasView::do_rotoscope_poly)));
- editmenu.items().push_back(Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("synfig-eyedrop"),
- sigc::mem_fun(*this, &studio::CanvasView::do_eyedrop)));
- editmenu.items().push_back(Gtk::Menu_Helpers::SeparatorElem());
editmenu.items().push_back(Gtk::Menu_Helpers::StockMenuElem(Gtk::StockID("gtk-properties"),Gtk::AccelKey("F8"),
sigc::mem_fun(canvas_properties,&studio::CanvasProperties::present)
));
}
void
-CanvasView::do_rotoscope_bline()
-{
- smach_.enter(&state_bline);
-}
-
-void
-CanvasView::do_rotoscope()
-{
- smach_.enter(&state_draw);
-}
-
-void
-CanvasView::do_rotoscope_poly()
-{
- smach_.enter(&state_polygon);
-}
-
-void
-CanvasView::do_eyedrop()
-{
- smach_.enter(&state_eyedrop);
-}
-
-void
CanvasView::show_timebar()
{
timebar->show();
dock_dialog->present();
}
-static void
-show_dialog_color()
-{
- App::dialog_color->present();
-}
-
Toolbox::Toolbox():
Gtk::Window(Gtk::WINDOW_TOPLEVEL),
dialog_settings(this,"toolbox")
TOOLBOX_BUTTON(button_undo,"gtk-undo","Undo");
TOOLBOX_BUTTON(button_redo,"gtk-redo","Redo");
ADD_TOOLBOX_BUTTON(button_about,"synfig-about","About Synfig Studio");
- ADD_TOOLBOX_BUTTON(button_color,"synfig-color","Color Dialog");
-
- TOOLBOX_BUTTON(button_rotoscope_bline,"synfig-rotoscope_bline",_("Old Rotoscope BLine"));
- TOOLBOX_BUTTON(button_rotoscope_polygon,"synfig-rotoscope_polygon",_("Rotoscope Polygon"));
- TOOLBOX_BUTTON(button_eyedrop,"synfig-eyedrop",_("Eyedrop Tool"));
- TOOLBOX_BUTTON(button_rotoscope,"synfig-rotoscope_bline",_("Rotoscope 2"));
-
-
button_about->signal_clicked().connect(sigc::ptr_fun(studio::App::dialog_about));
button_new->signal_clicked().connect(sigc::ptr_fun(studio::App::new_instance));
button_save_all->signal_clicked().connect(sigc::ptr_fun(save_all));
button_undo->signal_clicked().connect(sigc::ptr_fun(studio::App::undo));
button_redo->signal_clicked().connect(sigc::ptr_fun(studio::App::redo));
- button_color->signal_clicked().connect(sigc::ptr_fun(show_dialog_color));
// Create the file button cluster
Gtk::Table *file_buttons=manage(new class Gtk::Table(4, 4, false));
button_undo->set_sensitive(false);
button_redo->set_sensitive(false);
- button_rotoscope_bline->set_sensitive(false);
- button_rotoscope->set_sensitive(false);
- button_rotoscope_polygon->set_sensitive(false);
- button_eyedrop->set_sensitive(false);
-
std::list<Gtk::TargetEntry> listTargets;
listTargets.push_back( Gtk::TargetEntry("text/plain") );
icon->show();
button->show();
-
-
-
int row=state_button_map.size()/4;
int col=state_button_map.size()%4;
)
);
-
refresh();
}
// This should probably go elsewhere, but it should
// work fine here with no troubles.
- // These next several lines just adjust the rotoscope buttons
+ // These next several lines just adjust the tool buttons
// so that they are only clickable when they should be.
if(instance && App::get_selected_canvas_view())
{