X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsrc%2Fgui%2Ficoncontroller.cpp;h=953993c81b94d030002420139ab00768bcb16b2e;hb=e141439cbbdfbd8c711386d988d398bb2f2ee47a;hp=87e7edb4d84369d64bcef9d8b8a8fca14a80db42;hpb=077db16bb2200d3f6e936c9da3d8fe2950317eae;p=synfig.git diff --git a/synfig-studio/src/gui/iconcontroller.cpp b/synfig-studio/src/gui/iconcontroller.cpp index 87e7edb..953993c 100644 --- a/synfig-studio/src/gui/iconcontroller.cpp +++ b/synfig-studio/src/gui/iconcontroller.cpp @@ -132,41 +132,57 @@ IconController::IconController(const synfig::String& /*basepath*/) stock_##name=Gtk::StockItem(Gtk::StockID("synfig-" #name),desc); \ Gtk::Stock::add(stock_##name); - INIT_STOCK_ICON(bool,"bool_icon."IMAGE_EXT,_("Bool")); - INIT_STOCK_ICON(integer,"integer_icon."IMAGE_EXT,_("Integer")); - INIT_STOCK_ICON(angle,"angle_icon."IMAGE_EXT,_("Angle")); - INIT_STOCK_ICON(time,"time_icon."IMAGE_EXT,_("Time")); - INIT_STOCK_ICON(real,"real_icon."IMAGE_EXT,_("Real")); - INIT_STOCK_ICON(vector,"vector_icon."IMAGE_EXT,_("Vector")); - INIT_STOCK_ICON(color,"color_icon."IMAGE_EXT,_("Color")); - INIT_STOCK_ICON(segment,"segment_icon."IMAGE_EXT,_("Segment")); - INIT_STOCK_ICON(blinepoint,"blinepoint_icon."IMAGE_EXT,_("BLine Point")); - 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")); - + // Types + INIT_STOCK_ICON(type_bool,"type_bool_icon."IMAGE_EXT,_("Bool")); + INIT_STOCK_ICON(type_integer,"type_integer_icon."IMAGE_EXT,_("Integer")); + INIT_STOCK_ICON(type_angle,"type_angle_icon."IMAGE_EXT,_("Angle")); + INIT_STOCK_ICON(type_time,"type_time_icon."IMAGE_EXT,_("Time")); + INIT_STOCK_ICON(type_real,"type_real_icon."IMAGE_EXT,_("Real")); + INIT_STOCK_ICON(type_vector,"type_vector_icon."IMAGE_EXT,_("Vector")); + INIT_STOCK_ICON(type_color,"type_color_icon."IMAGE_EXT,_("Color")); + INIT_STOCK_ICON(type_segment,"type_segment_icon."IMAGE_EXT,_("Segment")); + INIT_STOCK_ICON(type_blinepoint,"type_blinepoint_icon."IMAGE_EXT,_("BLine Point")); + INIT_STOCK_ICON(type_list,"type_list_icon."IMAGE_EXT,_("List")); + INIT_STOCK_ICON(type_string,"type_string_icon."IMAGE_EXT,_("String")); + INIT_STOCK_ICON(type_canvas,"type_canvas_icon."IMAGE_EXT,_("Canvas")); + INIT_STOCK_ICON(type_gradient,"type_gradient_icon."IMAGE_EXT,_("Gradient")) + + // ToolBox Tools + INIT_STOCK_ICON(normal,"tool_normal_icon."IMAGE_EXT,_("Transform Tool")); + INIT_STOCK_ICON(polygon,"tool_polyline_icon."IMAGE_EXT,_("Polygon Tool")); + INIT_STOCK_ICON(bline,"tool_bline_icon."IMAGE_EXT,_("BLine Tool")); + INIT_STOCK_ICON(eyedrop,"tool_eyedrop_icon."IMAGE_EXT,_("Eyedrop Tool")); + INIT_STOCK_ICON(fill,"tool_fill_icon."IMAGE_EXT,_("Fill Tool")); + INIT_STOCK_ICON(draw,"tool_draw_icon."IMAGE_EXT,_("Draw Tool")); + INIT_STOCK_ICON(sketch,"tool_sketch_icon."IMAGE_EXT,_("Sketch Tool")); + INIT_STOCK_ICON(circle,"tool_circle_icon."IMAGE_EXT,_("Circle Tool")); + INIT_STOCK_ICON(rectangle,"tool_rectangle_icon."IMAGE_EXT,_("Rectangle Tool")); + INIT_STOCK_ICON(smooth_move,"tool_smooth_move_icon."IMAGE_EXT,_("SmoothMove Tool")); + INIT_STOCK_ICON(rotate,"tool_rotate_icon."IMAGE_EXT,"Rotate Tool"); + INIT_STOCK_ICON(width,"tool_width_icon."IMAGE_EXT,_("Width Tool")); + INIT_STOCK_ICON(scale,"tool_scale_icon."IMAGE_EXT,"Scale Tool"); + INIT_STOCK_ICON(zoom,"tool_zoom_icon."IMAGE_EXT,_("Zoom Tool")); + INIT_STOCK_ICON(mirror,"tool_mirror_icon."IMAGE_EXT,_("Mirror Tool")); + INIT_STOCK_ICON(text,"tool_text_icon."IMAGE_EXT,"Text Tool"); + INIT_STOCK_ICON(gradient,"tool_gradient_icon."IMAGE_EXT,_("Gradient Tool")); + INIT_STOCK_ICON(star,"tool_star_icon."IMAGE_EXT,_("Star Tool")); + //ToolBox Others INIT_STOCK_ICON(reset_colors,"reset_colors_icon."IMAGE_EXT,_("Reset Colors")); INIT_STOCK_ICON(swap_colors,"swap_colors_icon."IMAGE_EXT,_("Swap Colors")); INIT_STOCK_ICON(value_node,"valuenode_icon."IMAGE_EXT,_("ValueNode")); INIT_STOCK_ICON(about,"about_icon."IMAGE_EXT,_("About")); INIT_STOCK_ICON(rename,"rename_icon."IMAGE_EXT,_("Rename")); - INIT_STOCK_ICON(canvas_pointer,"canvas_pointer_icon."IMAGE_EXT,_("Rename")); + INIT_STOCK_ICON(canvas,"canvas_icon."IMAGE_EXT,_("Canvas")); INIT_STOCK_ICON(canvas_new,"canvas_icon."IMAGE_EXT,_("New Canvas")); INIT_STOCK_ICON(saveall,"saveall_icon."IMAGE_EXT,_("Save All")); + // Layers INIT_STOCK_ICON(layer,"layer_icon."IMAGE_EXT,_("Layer")); - INIT_STOCK_ICON(layer_pastecanvas,"pastecanvas_icon."IMAGE_EXT,_("Paste Canvas")); - INIT_STOCK_ICON(layer_duplicate,"layer_duplicate_icon."IMAGE_EXT,_("Duplicate Layer")); - INIT_STOCK_ICON(layer_gradient_lineal,"gradient_icon."IMAGE_EXT,_("Lineal Gradient Layer")); - INIT_STOCK_ICON(layer_gradient_radial,"layer_gradient_radial_icon."IMAGE_EXT,_("Radial Gradient Layer")); - INIT_STOCK_ICON(layer_gradient_spiral,"layer_gradient_spiral_icon."IMAGE_EXT,_("Spiral Gradient Layer")); - INIT_STOCK_ICON(layer_gradient_curve,"layer_gradient_curve_icon."IMAGE_EXT,_("Curve Gradient Layer")); - INIT_STOCK_ICON(layer_gradient_conical,"layer_gradient_conical_icon."IMAGE_EXT,_("Conical Gradient Layer")); - INIT_STOCK_ICON(layer_gradient_noise,"layer_gradient_noise_icon."IMAGE_EXT,_("Noise Gradient Layer")); - INIT_STOCK_ICON(layer_checkerboard,"layer_checkerboard_icon."IMAGE_EXT,_("Checker Board Layer")); - INIT_STOCK_ICON(layer_blur,"layer_blur_icon."IMAGE_EXT,_("Blur Layer")); + // Blur Layers + INIT_STOCK_ICON(layer_blur_blur,"layer_blur_blur_icon."IMAGE_EXT,_("Blur Layer")); INIT_STOCK_ICON(layer_blur_motion,"layer_blur_motion_icon."IMAGE_EXT,_("Motion Blur Layer")); INIT_STOCK_ICON(layer_blur_radial,"layer_blur_radial_icon."IMAGE_EXT,_("Radial Blur Layer")); + // Distortion Layers INIT_STOCK_ICON(layer_distortion_curvewarp,"layer_distortion_curvewarp_icon."IMAGE_EXT,_("Curve Warp Layer")); INIT_STOCK_ICON(layer_distortion_insideout,"layer_distortion_insideout_icon."IMAGE_EXT,_("Inside Out Layer")); INIT_STOCK_ICON(layer_distortion_noise,"layer_distortion_noise_icon."IMAGE_EXT,_("Noise Distort Layer")); @@ -174,24 +190,57 @@ IconController::IconController(const synfig::String& /*basepath*/) INIT_STOCK_ICON(layer_distortion_stretch,"layer_distortion_stretch_icon."IMAGE_EXT,_("Stretch Layer")); INIT_STOCK_ICON(layer_distortion_twirl,"layer_distortion_twirl_icon."IMAGE_EXT,_("Twirl Layer")); INIT_STOCK_ICON(layer_distortion_warp,"layer_distortion_warp_icon."IMAGE_EXT,_("Warp Layer")); + // Example Layers + INIT_STOCK_ICON(layer_example_filledrectangle,"layer_example_filledrectangle_icon."IMAGE_EXT,_("Filled Rectangle Layer")); + INIT_STOCK_ICON(layer_example_metaballs,"layer_example_metaballs_icon."IMAGE_EXT,_("Metallballs Layer")); + INIT_STOCK_ICON(layer_example_simplecircle,"layer_example_simplecircle_icon."IMAGE_EXT,_("Simple Circle Layer")); + // Filter Layers INIT_STOCK_ICON(layer_filter_clamp,"layer_filter_clamp_icon."IMAGE_EXT,_("Clamp Layer")); INIT_STOCK_ICON(layer_filter_colorcorrect,"layer_filter_colorcorrect_icon."IMAGE_EXT,_("Color Correct Layer")); - INIT_STOCK_ICON(layer_filter_halftone2,"layer_filter_halftone2_icon."IMAGE_EXT,_("Half Tone 2 Layer")); - INIT_STOCK_ICON(layer_filter_halftone3,"layer_filter_halftone3_icon."IMAGE_EXT,_("Half Tone 3 Layer")); - INIT_STOCK_ICON(layer_filter_luma,"layer_filter_luma_icon."IMAGE_EXT,_("Luma Layer")); - INIT_STOCK_ICON(layer_fractal_mandelbrot,"layer_fractal_mandelbrot_icon."IMAGE_EXT,_("Mandelbrot Set Layer")); + INIT_STOCK_ICON(layer_filter_halftone2,"layer_filter_halftone2_icon."IMAGE_EXT,_("Halftone 2 Layer")); + INIT_STOCK_ICON(layer_filter_halftone3,"layer_filter_halftone3_icon."IMAGE_EXT,_("Halftone 3 Layer")); + INIT_STOCK_ICON(layer_filter_lumakey,"layer_filter_lumakey_icon."IMAGE_EXT,_("Luna Key Layer")); + // Fractal Layers INIT_STOCK_ICON(layer_fractal_julia,"layer_fractal_julia_icon."IMAGE_EXT,_("Julia Set Layer")); - INIT_STOCK_ICON(layer_stylize_bevel,"layer_stylize_bevel_icon."IMAGE_EXT,_("Bevel Layer")); - INIT_STOCK_ICON(layer_stylize_shade,"layer_stylize_shade_icon."IMAGE_EXT,_("Shade Layer")); - INIT_STOCK_ICON(layer_example_metaballs,"layer_example_metaballs_icon."IMAGE_EXT,_("Metaballs Layer")); - INIT_STOCK_ICON(layer_other_XOR,"layer_other_XOR_icon."IMAGE_EXT,_("XOR Pattern Layer")); + INIT_STOCK_ICON(layer_fractal_mandelbrot,"layer_fractal_mandelbrot_icon."IMAGE_EXT,_("Mandelbrot Set Layer")); + // Geometry Layers + INIT_STOCK_ICON(layer_geometry_checkerboard,"layer_geometry_checkerboard_icon."IMAGE_EXT,_("Checker Board Layer")); + INIT_STOCK_ICON(layer_geometry_circle,"layer_geometry_circle_icon."IMAGE_EXT,_("Circle Layer")); + INIT_STOCK_ICON(layer_geometry_outline,"layer_geometry_outline_icon."IMAGE_EXT,_("Outline Layer")); + INIT_STOCK_ICON(layer_geometry_polygon,"layer_geometry_polygon_icon."IMAGE_EXT,_("Polygon Layer")); + INIT_STOCK_ICON(layer_geometry_rectangle,"layer_geometry_rectangle_icon."IMAGE_EXT,_("Rectangle Layer")); + INIT_STOCK_ICON(layer_geometry_region,"layer_geometry_region_icon."IMAGE_EXT,_("Region Layer")); + INIT_STOCK_ICON(layer_geometry_solidcolor,"layer_geometry_solidcolor_icon."IMAGE_EXT,_("Solid Color Layer")); + INIT_STOCK_ICON(layer_geometry_star,"layer_geometry_star_icon."IMAGE_EXT,_("Star Layer")); + // Gradient Layers + INIT_STOCK_ICON(layer_gradient_conical,"layer_gradient_conical_icon."IMAGE_EXT,_("Conical Gradient Layer")); + INIT_STOCK_ICON(layer_gradient_curve,"layer_gradient_curve_icon."IMAGE_EXT,_("Curve Gradient Layer")); + INIT_STOCK_ICON(layer_gradient_noise,"layer_gradient_noise_icon."IMAGE_EXT,_("Noise Gradient Layer")); + INIT_STOCK_ICON(layer_gradient_lineal,"layer_gradient_lineal_icon."IMAGE_EXT,_("Linear Gradient Layer")); + INIT_STOCK_ICON(layer_gradient_radial,"layer_gradient_radial_icon."IMAGE_EXT,_("Radial Gradient Layer")); + INIT_STOCK_ICON(layer_gradient_spiral,"layer_gradient_spiral_icon."IMAGE_EXT,_("Spiral Gradient Layer")); + // Other Layers + INIT_STOCK_ICON(layer_other_duplicate,"layer_other_duplicate_icon."IMAGE_EXT,_("Duplicate Layer")); + INIT_STOCK_ICON(layer_other_importimage,"layer_other_importimage_icon."IMAGE_EXT,_("Import Image Layer")); + INIT_STOCK_ICON(layer_other_pastecanvas,"layer_other_pastecanvas_icon."IMAGE_EXT,_("Paste Canvas Layer")); + INIT_STOCK_ICON(layer_other_plant,"layer_other_plant_icon."IMAGE_EXT,_("Plant Layer")); INIT_STOCK_ICON(layer_other_supersample,"layer_other_supersample_icon."IMAGE_EXT,_("Super Sample Layer")); + INIT_STOCK_ICON(layer_other_text,"layer_other_text_icon."IMAGE_EXT,_("Text Layer")); INIT_STOCK_ICON(layer_other_timeloop,"layer_other_timeloop_icon."IMAGE_EXT,_("Time Loop Layer")); + INIT_STOCK_ICON(layer_other_xorpattern,"layer_other_xorpattern_icon."IMAGE_EXT,_("XOR Pattern Layer")); + // Stylize Layers + INIT_STOCK_ICON(layer_stylize_bevel,"layer_stylize_bevel_icon."IMAGE_EXT,_("Bevel Layer")); + INIT_STOCK_ICON(layer_stylize_shade,"layer_stylize_shade_icon."IMAGE_EXT,_("Shade Layer")); + // Transform Layers + INIT_STOCK_ICON(layer_transform_rotate,"layer_transform_rotate_icon."IMAGE_EXT,_("Rotate Layer")); INIT_STOCK_ICON(layer_transform_translate,"layer_transform_translate_icon."IMAGE_EXT,_("Translate Layer")); + INIT_STOCK_ICON(layer_transform_zoom,"layer_transform_zoom_icon."IMAGE_EXT,_("Zoom Layer")); INIT_STOCK_ICON(plant,"plant_icon."IMAGE_EXT,""); + INIT_STOCK_ICON(info,"info_icon."IMAGE_EXT,_("Info Tool")); 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")); INIT_STOCK_ICON(grid_snap_enable,"grid_snap_enable_icon."IMAGE_EXT,_("Enable Grid Snap")); @@ -209,6 +258,9 @@ IconController::IconController(const synfig::String& /*basepath*/) INIT_STOCK_ICON(meta_data,"meta_data_icon."IMAGE_EXT,_("MetaData")); INIT_STOCK_ICON(navigator,"navigator_icon."IMAGE_EXT,_("Navigator")); INIT_STOCK_ICON(timetrack,"time_track_icon."IMAGE_EXT,_("Time Track")); + INIT_STOCK_ICON(history,"history_icon."IMAGE_EXT,_("History")); + INIT_STOCK_ICON(palette,"palette_icon."IMAGE_EXT,_("Palette")); + INIT_STOCK_ICON(params,"params_icon."IMAGE_EXT,_("Parameters")); INIT_STOCK_ICON(keyframe_lock_all,"keyframe_lock_all."IMAGE_EXT,_("All Keyframes Locked")); INIT_STOCK_ICON(keyframe_lock_past,"keyframe_lock_past."IMAGE_EXT,_("Past Keyframes Locked")); @@ -251,30 +303,8 @@ IconController::IconController(const synfig::String& /*basepath*/) INIT_STOCK_ICON_CLONE(cvs_commit,"gtk-save",_("CVS Commit")); INIT_STOCK_ICON_CLONE(cvs_revert,"gtk-revert",_("CVS Revert")); - // Tools - INIT_STOCK_ICON(normal,"normal_icon."IMAGE_EXT,_("Normal Tool")); - INIT_STOCK_ICON(transform,"transform_icon."IMAGE_EXT,_("Transform 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")); - INIT_STOCK_ICON(draw,"draw_icon."IMAGE_EXT,_("Draw Tool")); - INIT_STOCK_ICON(sketch,"sketch_icon."IMAGE_EXT,_("Sketch Tool")); - INIT_STOCK_ICON(circle,"circle_icon."IMAGE_EXT,_("Circle Tool")); - INIT_STOCK_ICON(rectangle,"rectangle_icon."IMAGE_EXT,_("Rectangle Tool")); - INIT_STOCK_ICON(smooth_move,"smooth_move_icon."IMAGE_EXT,_("SmoothMove Tool")); - INIT_STOCK_ICON(rotate,"rotate_icon."IMAGE_EXT,"Rotate Tool"); - INIT_STOCK_ICON(width,"width_icon."IMAGE_EXT,_("Width Tool")); - INIT_STOCK_ICON(scale,"scale_icon."IMAGE_EXT,"Scale Tool"); - 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")); - -#undef INIT_STOCK_ICON #undef INIT_STOCK_ICON +#undef INIT_STOCK_ICON_CLONE icon_factory->add_default(); @@ -349,43 +379,43 @@ studio::value_icon(synfig::ValueBase::Type type) switch(type) { case ValueBase::TYPE_BOOL: - return Gtk::StockID("synfig-bool"); + return Gtk::StockID("synfig-type_bool"); break; case ValueBase::TYPE_INTEGER: - return Gtk::StockID("synfig-integer"); + return Gtk::StockID("synfig-type_integer"); break; case ValueBase::TYPE_ANGLE: - return Gtk::StockID("synfig-angle"); + return Gtk::StockID("synfig-type_angle"); break; case ValueBase::TYPE_TIME: - return Gtk::StockID("synfig-time"); + return Gtk::StockID("synfig-type_time"); break; case ValueBase::TYPE_REAL: - return Gtk::StockID("synfig-real"); + return Gtk::StockID("synfig-type_real"); break; case ValueBase::TYPE_VECTOR: - return Gtk::StockID("synfig-vector"); + return Gtk::StockID("synfig-type_vector"); break; case ValueBase::TYPE_COLOR: - return Gtk::StockID("synfig-color"); + return Gtk::StockID("synfig-type_color"); break; case ValueBase::TYPE_SEGMENT: - return Gtk::StockID("synfig-segment"); + return Gtk::StockID("synfig-type_segment"); break; case ValueBase::TYPE_BLINEPOINT: - return Gtk::StockID("synfig-blinepoint"); + return Gtk::StockID("synfig-type_blinepoint"); break; case ValueBase::TYPE_LIST: - return Gtk::StockID("synfig-list"); + return Gtk::StockID("synfig-type_list"); break; case ValueBase::TYPE_CANVAS: - return Gtk::StockID("synfig-canvas_pointer"); + return Gtk::StockID("synfig-type_canvas"); break; case ValueBase::TYPE_STRING: - return Gtk::StockID("synfig-string"); + return Gtk::StockID("synfig-type_string"); break; case ValueBase::TYPE_GRADIENT: - return Gtk::StockID("synfig-gradient"); + return Gtk::StockID("synfig-type_gradient"); break; case ValueBase::TYPE_NIL: default: @@ -447,50 +477,14 @@ studio::get_action_stock_id(const synfigapp::Action::BookEntry& action) Gtk::StockID studio::layer_icon(const synfig::String &layer) { - if(layer=="PasteCanvas" || layer=="pastecanvas" || layer=="paste_canvas") - return Gtk::StockID("synfig-layer_pastecanvas"); - else if(layer=="rotate") - return Gtk::StockID("synfig-rotate"); - else if(layer=="zoom") - return Gtk::StockID("synfig-zoom"); - else if(layer=="region") - return Gtk::StockID("synfig-bline"); - else if(layer=="polygon") - return Gtk::StockID("synfig-polygon"); - else if(layer=="outline") - return Gtk::StockID("synfig-width"); - else if(layer=="circle") - 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=="checker_board") - return Gtk::StockID("synfig-layer_checkerboard"); - else if(layer=="duplicate") - return Gtk::StockID("synfig-layer_duplicate"); - else if(layer=="linear_gradient") - return Gtk::StockID("synfig-layer_gradient_lineal"); - else if(layer=="radial_gradient") - return Gtk::StockID("synfig-layer_gradient_radial"); - else if(layer=="spiral_gradient") - return Gtk::StockID("synfig-layer_gradient_spiral"); - else if(layer=="curve_gradient") - return Gtk::StockID("synfig-layer_gradient_curve"); - else if(layer=="conical_gradient") - return Gtk::StockID("synfig-layer_gradient_conical"); - else if(layer=="noise") - return Gtk::StockID("synfig-layer_gradient_noise"); - else if(layer=="blur") - return Gtk::StockID("synfig-layer_blur"); - else if(layer=="radial_blur") - return Gtk::StockID("synfig-layer_blur_radial"); + // Blur Layers + if(layer=="blur") + return Gtk::StockID("synfig-layer_blur_blur"); else if(layer=="MotionBlur") // in the future should be "motion_blur" return Gtk::StockID("synfig-layer_blur_motion"); + else if(layer=="radial_blur") + return Gtk::StockID("synfig-layer_blur_radial"); + // Distortion Layers else if(layer=="curve_warp") return Gtk::StockID("synfig-layer_distortion_curvewarp"); else if(layer=="inside_out") @@ -505,6 +499,14 @@ studio::layer_icon(const synfig::String &layer) return Gtk::StockID("synfig-layer_distortion_twirl"); else if(layer=="warp") return Gtk::StockID("synfig-layer_distortion_warp"); + // Example Layers + else if(layer=="filled_rectangle") + return Gtk::StockID("synfig-layer_example_filledrectangle"); + else if(layer=="metaballs") + return Gtk::StockID("synfig-layer_example_metaballs"); + else if(layer=="simple_circle") + return Gtk::StockID("synfig-layer_example_simplecircle"); + // Filter Layers else if(layer=="clamp") return Gtk::StockID("synfig-layer_filter_clamp"); else if(layer=="colorcorrect") @@ -514,29 +516,71 @@ studio::layer_icon(const synfig::String &layer) else if(layer=="halftone3") return Gtk::StockID("synfig-layer_filter_halftone3"); else if(layer=="lumakey") - return Gtk::StockID("synfig-layer_filter_luma"); + return Gtk::StockID("synfig-layer_filter_lumakey"); + // Fractal Layers else if(layer=="mandelbrot") return Gtk::StockID("synfig-layer_fractal_mandelbrot"); else if(layer=="julia") return Gtk::StockID("synfig-layer_fractal_julia"); - else if(layer=="bevel") - return Gtk::StockID("synfig-layer_stylize_bevel"); - else if(layer=="shade") - return Gtk::StockID("synfig-layer_stylize_shade"); - else if(layer=="metaballs") - return Gtk::StockID("synfig-layer_example_metaballs"); - else if(layer=="simple_circle") - return Gtk::StockID("synfig-circle"); - else if(layer=="filled_rectangle") - return Gtk::StockID("synfig-rectangle"); - else if(layer=="xor_pattern") - return Gtk::StockID("synfig-layer_other_XOR"); + // Geometry Layers + else if(layer=="checker_board") + return Gtk::StockID("synfig-layer_geometry_checkerboard"); + else if(layer=="circle") + return Gtk::StockID("synfig-layer_geometry_circle"); + else if(layer=="outline") + return Gtk::StockID("synfig-layer_geometry_outline"); + else if(layer=="polygon") + return Gtk::StockID("synfig-layer_geometry_polygon"); + else if(layer=="rectangle") + return Gtk::StockID("synfig-layer_geometry_rectangle"); + else if(layer=="region") + return Gtk::StockID("synfig-layer_geometry_region"); + else if(layer=="solid_color" || layer=="SolidColor") + return Gtk::StockID("synfig-layer_geometry_solidcolor"); + else if(layer=="star") + return Gtk::StockID("synfig-layer_geometry_star"); + // Gradient Layers + else if(layer=="conical_gradient") + return Gtk::StockID("synfig-layer_gradient_conical"); + else if(layer=="curve_gradient") + return Gtk::StockID("synfig-layer_gradient_curve"); + else if(layer=="noise") + return Gtk::StockID("synfig-layer_gradient_noise"); + else if(layer=="linear_gradient") + return Gtk::StockID("synfig-layer_gradient_lineal"); + else if(layer=="radial_gradient") + return Gtk::StockID("synfig-layer_gradient_radial"); + else if(layer=="spiral_gradient") + return Gtk::StockID("synfig-layer_gradient_spiral"); + // Other Layers + else if(layer=="duplicate") + return Gtk::StockID("synfig-layer_other_duplicate"); + else if(layer=="importimage" || layer=="import") + return Gtk::StockID("synfig-layer_other_importimage"); + else if(layer=="PasteCanvas" || layer=="pastecanvas" || layer=="paste_canvas") + return Gtk::StockID("synfig-layer_other_pastecanvas"); + else if(layer=="plant") + return Gtk::StockID("synfig-layer_other_plant"); else if(layer=="super_sample") return Gtk::StockID("synfig-layer_other_supersample"); + else if(layer=="text") + return Gtk::StockID("synfig-layer_other_text"); else if(layer=="timeloop") return Gtk::StockID("synfig-layer_other_timeloop"); + else if(layer=="xor_pattern") + return Gtk::StockID("synfig-layer_other_xorpattern"); + // Stylize Layers + else if(layer=="bevel") + return Gtk::StockID("synfig-layer_stylize_bevel"); + else if(layer=="shade") + return Gtk::StockID("synfig-layer_stylize_shade"); + // Transform Layers + else if(layer=="rotate") + return Gtk::StockID("synfig-layer_transform_rotate"); else if(layer=="translate") return Gtk::StockID("synfig-layer_transform_translate"); + else if(layer=="zoom") + return Gtk::StockID("synfig-layer_transform_zoom"); else return Gtk::StockID("synfig-layer"); }