X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Ficoncontroller.cpp;h=8af935780e70775fd3949945c7302dc25cbded21;hb=6c1f083296e18ba4f16a9b80d2369d9a4272eb12;hp=8521c5acee89d7b268fb6123d1159b1cbc3f1677;hpb=079d558cd0918585fe2d33f70f9be7e72230f722;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/iconcontroller.cpp b/synfig-studio/trunk/src/gtkmm/iconcontroller.cpp index 8521c5a..8af9357 100644 --- a/synfig-studio/trunk/src/gtkmm/iconcontroller.cpp +++ b/synfig-studio/trunk/src/gtkmm/iconcontroller.cpp @@ -7,6 +7,9 @@ ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** Copyright (c) 2007, 2008 Chris Moore +** Copyright (c) 2008 Paul Wise +** Copyright (c) 2009 Gerco Ballintijn +** Copyright (c) 2009 Carlos López ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -83,7 +86,7 @@ IconController::IconController(const synfig::String& /*basepath*/) std::string path_to_icons; #ifdef WIN32 - path_to_icons=basepath+"/../"+IMAGE_DIR; + path_to_icons=basepath+ETL_DIRECTORY_SEPARATOR+".."+ETL_DIRECTORY_SEPARATOR+IMAGE_DIR; #else path_to_icons=IMAGE_DIR; #endif @@ -92,8 +95,11 @@ IconController::IconController(const synfig::String& /*basepath*/) if(synfig_root) { path_to_icons=synfig_root; path_to_icons+=ETL_DIRECTORY_SEPARATOR; - - path_to_icons+="share/pixmaps/synfigstudio"; + path_to_icons+="share"; + path_to_icons+=ETL_DIRECTORY_SEPARATOR; + path_to_icons+="pixmaps"; + path_to_icons+=ETL_DIRECTORY_SEPARATOR; + path_to_icons+="synfigstudio"; } path_to_icons+=ETL_DIRECTORY_SEPARATOR; @@ -145,7 +151,6 @@ IconController::IconController(const synfig::String& /*basepath*/) INIT_STOCK_ICON(list,"list_icon."IMAGE_EXT,_("Rename")); INIT_STOCK_ICON(canvas,"canvas_icon."IMAGE_EXT,_("Canvas")); INIT_STOCK_ICON(string,"string_icon."IMAGE_EXT,_("Rename")); - INIT_STOCK_ICON(gradient,"gradient_icon."IMAGE_EXT,_("Gradient")); INIT_STOCK_ICON(reset_colors,"reset_colors_icon."IMAGE_EXT,_("Reset Colors")); INIT_STOCK_ICON(swap_colors,"swap_colors_icon."IMAGE_EXT,_("Swap Colors")); @@ -157,6 +162,7 @@ IconController::IconController(const synfig::String& /*basepath*/) INIT_STOCK_ICON(saveall,"saveall_icon."IMAGE_EXT,_("Save All")); INIT_STOCK_ICON(layer,"layer_icon."IMAGE_EXT,_("Layer")); INIT_STOCK_ICON(layer_pastecanvas,"pastecanvas_icon."IMAGE_EXT,_("Paste Canvas")); + INIT_STOCK_ICON(plant,"plant_icon."IMAGE_EXT,""); INIT_STOCK_ICON(group,"group_icon."IMAGE_EXT,_("Group")); INIT_STOCK_ICON(grid_enable,"grid_enable_icon."IMAGE_EXT,_("Show Grid")); INIT_STOCK_ICON(grid_disable,"grid_disable_icon."IMAGE_EXT,_("Hide Grid")); @@ -181,6 +187,26 @@ IconController::IconController(const synfig::String& /*basepath*/) INIT_STOCK_ICON(keyframe_lock_future,"keyframe_lock_future."IMAGE_EXT,_("Future Keyframes Locked")); INIT_STOCK_ICON(keyframe_lock_none,"keyframe_lock_none."IMAGE_EXT,_("No Keyframes Locked")); + INIT_STOCK_ICON(set_outline_color,"set_outline_color."IMAGE_EXT,_("Set as Outline")); + INIT_STOCK_ICON(set_fill_color,"set_fill_color."IMAGE_EXT,_("Set as Fill")); + + INIT_STOCK_ICON(seek_begin,"seek_begin."IMAGE_EXT,_("Seek to Begin")); + INIT_STOCK_ICON(seek_prev_frame,"seek_prev_frame."IMAGE_EXT,_("Previous Frame")); + INIT_STOCK_ICON(seek_next_frame,"seek_next_frame."IMAGE_EXT,_("Next Frame")); + INIT_STOCK_ICON(seek_end,"seek_end."IMAGE_EXT,_("Seek to End")); + + INIT_STOCK_ICON(toggle_duck_position,"duck_position_icon."IMAGE_EXT,_("Toogle position ducks")); + INIT_STOCK_ICON(toggle_duck_vertex,"duck_vertex_icon."IMAGE_EXT,_("Toogle vertex ducks")); + INIT_STOCK_ICON(toggle_duck_tangent,"duck_tangent_icon."IMAGE_EXT,_("Toogle tangent ducks")); + INIT_STOCK_ICON(toggle_duck_radius,"duck_radius_icon."IMAGE_EXT,_("Toogle radius ducks")); + INIT_STOCK_ICON(toggle_duck_width,"duck_width_icon."IMAGE_EXT,_("Toogle width ducks")); + INIT_STOCK_ICON(toggle_duck_angle,"duck_angle_icon."IMAGE_EXT,_("Toogle angle ducks")); + + INIT_STOCK_ICON(toggle_show_grid,"show_grid_icon."IMAGE_EXT,_("Toggle show grid")); + INIT_STOCK_ICON(toggle_snap_grid,"snap_grid_icon."IMAGE_EXT,_("Toggle snap grid")); + + INIT_STOCK_ICON(toggle_onion_skin,"onion_skin_icon."IMAGE_EXT,_("Toggle onion skin")); + INIT_STOCK_ICON_CLONE(cvs_add,"gtk-add",_("CVS Add")); INIT_STOCK_ICON_CLONE(cvs_update,"gtk-open",_("CVS Update")); INIT_STOCK_ICON_CLONE(cvs_commit,"gtk-save",_("CVS Commit")); @@ -188,7 +214,7 @@ IconController::IconController(const synfig::String& /*basepath*/) // Tools INIT_STOCK_ICON(normal,"normal_icon."IMAGE_EXT,_("Normal Tool")); - INIT_STOCK_ICON(polygon,"polygon_icon."IMAGE_EXT,_("Polygon Tool")); + INIT_STOCK_ICON(polygon,"polyline_icon."IMAGE_EXT,_("Polygon Tool")); INIT_STOCK_ICON(bline,"bline_icon."IMAGE_EXT,_("BLine Tool")); INIT_STOCK_ICON(eyedrop,"eyedrop_icon."IMAGE_EXT,_("Eyedrop Tool")); INIT_STOCK_ICON(fill,"fill_icon."IMAGE_EXT,_("Fill Tool")); @@ -203,6 +229,9 @@ IconController::IconController(const synfig::String& /*basepath*/) INIT_STOCK_ICON(zoom,"zoom_icon."IMAGE_EXT,_("Zoom Tool")); INIT_STOCK_ICON(info,"info_icon."IMAGE_EXT,_("Info Tool")); INIT_STOCK_ICON(mirror,"mirror_icon."IMAGE_EXT,_("Mirror Tool")); + INIT_STOCK_ICON(text,"text_icon."IMAGE_EXT,"Text Tool"); + INIT_STOCK_ICON(gradient,"gradient_icon."IMAGE_EXT,_("Gradient Tool")); + INIT_STOCK_ICON(star,"star_icon."IMAGE_EXT,_("Star Tool")); icon_factory->add_default(); @@ -384,6 +413,12 @@ studio::layer_icon(const synfig::String &layer) return Gtk::StockID("synfig-circle"); else if(layer=="rectangle") return Gtk::StockID("synfig-rectangle"); + else if(layer=="star") + return Gtk::StockID("synfig-star"); + else if(layer=="plant") + return Gtk::StockID("synfig-plant"); + else if(layer=="text") + return Gtk::StockID("synfig-text"); else if(layer.find("gradient")!=String::npos) return Gtk::StockID("synfig-gradient"); else