From b3a164b7fee49d6522c5f97a1d8a74b3a9fe054f Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Wed, 21 Apr 2010 23:25:07 +0200 Subject: [PATCH] Add controllers for the blur layers as well as icons to the stock --- synfig-studio/images/Makefile.am | 6 + synfig-studio/images/layer_blur_icon.sif | 908 ++++++++++++++++++++++++ synfig-studio/images/layer_blur_motion_icon.sif | 745 +++++++++++++++++++ synfig-studio/images/layer_blur_radial_icon.sif | 582 +++++++++++++++ synfig-studio/src/gtkmm/iconcontroller.cpp | 10 + 5 files changed, 2251 insertions(+) create mode 100644 synfig-studio/images/layer_blur_icon.sif create mode 100644 synfig-studio/images/layer_blur_motion_icon.sif create mode 100644 synfig-studio/images/layer_blur_radial_icon.sif diff --git a/synfig-studio/images/Makefile.am b/synfig-studio/images/Makefile.am index a497271..8d9c85a 100644 --- a/synfig-studio/images/Makefile.am +++ b/synfig-studio/images/Makefile.am @@ -96,6 +96,9 @@ EXTRA_DIST = \ layer_gradient_noise_icon.sif \ layer_gradient_curve_icon.sif \ layer_gradient_conical_icon.sif \ + layer_blur_icon.sif \ + layer_blur_radial_icon.sif \ + layer_blur_motion_icon.sif \ action_set_layer_description_icon.sif \ action_add_to_group_icon.sif \ action_remove_from_group_icon.sif @@ -192,6 +195,9 @@ IMAGES = \ layer_gradient_noise_icon.$(EXT) \ layer_gradient_curve_icon.$(EXT) \ layer_gradient_conical_icon.$(EXT) \ + layer_blur_icon.$(EXT) \ + layer_blur_radial_icon.$(EXT) \ + layer_blur_motion_icon.$(EXT) \ action_set_layer_description_icon.$(EXT) \ action_add_to_group_icon.$(EXT) \ action_remove_from_group_icon.$(EXT) \ diff --git a/synfig-studio/images/layer_blur_icon.sif b/synfig-studio/images/layer_blur_icon.sif new file mode 100644 index 0000000..32fa7d8 --- /dev/null +++ b/synfig-studio/images/layer_blur_icon.sif @@ -0,0 +1,908 @@ + + + Synfig Studio Blur Icon + Placed in the Public Domain in 2010 by Bertrand Grégoire (berteh) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + -2.5847954750 + + + + + + + + + + + + + + + + + + + + + + + + 2.2337062359 + 0.0139259165 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0175705366 + 0.4894979596 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -2.8805663586 + -0.0260595623 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0175703783 + -0.5416163802 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2.6551604271 + 0.3371632099 + + + + + + + + + + + + + + + + + + + + 1.000000 + 1.000000 + 1.000000 + 1.000000 + + + 0.302085 + 0.302085 + 0.302086 + 1.000000 + + + + + + + + + + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -2.1418292522 + 1.9795695543 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1622598022 + 0.3894235194 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -2.1418292522 + 1.9795695543 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1622598022 + 0.3894235194 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.6436706781 + -2.6973056793 + + + + + + + + + + + + + + + + + 0.7186456323 + 0.0020816422 + + + + + + + + + + + + + + + + + 0.744584 + 0.744584 + 0.744585 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -2.1418292522 + 1.9795695543 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1622598022 + 0.3894235194 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -2.1418292522 + 1.9795695543 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1622598022 + 0.3894235194 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.2596156895 + 0.2596156895 + + + + + + + + + + + + + + + + + + + + + diff --git a/synfig-studio/images/layer_blur_motion_icon.sif b/synfig-studio/images/layer_blur_motion_icon.sif new file mode 100644 index 0000000..a7918e7 --- /dev/null +++ b/synfig-studio/images/layer_blur_motion_icon.sif @@ -0,0 +1,745 @@ + + + Synfig Studio Motion Blur Icon + Placed in the Public Domain in 2010 by Bertrand Grégoire (berteh) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + -2.5847954750 + + + + + + + + + + + + + + + + + + + + + + + + 2.8454256058 + -0.0260592941 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0175705366 + 0.4894979596 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -2.8805663586 + -0.0260595623 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0175703783 + -0.5416163802 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.6814911366 + -1.5252420902 + + + + + + + + + + + + + + + + + + + + + 2.2716372013 + 3.4074556828 + + + + + + + + + + + + + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + 1.000000 + 1.000000 + 1.000000 + 1.000000 + + + 0.302085 + 0.302085 + 0.302086 + 1.000000 + + + + + + + + + + + + + + + + + + + + + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -2.1418292522 + 1.9795695543 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1622598022 + 0.3894235194 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -2.1418292522 + 1.9795695543 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1622598022 + 0.3894235194 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.1000000015 + 0.1000000015 + + + + + + + + + + + + + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1810333580 + -0.2081822902 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/synfig-studio/images/layer_blur_radial_icon.sif b/synfig-studio/images/layer_blur_radial_icon.sif new file mode 100644 index 0000000..ac90a3a --- /dev/null +++ b/synfig-studio/images/layer_blur_radial_icon.sif @@ -0,0 +1,582 @@ + + + Synfig Studio Radial Icon + Placed in the Public Domain in 2010 by Bertrand Grégoire (berteh) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + -2.5847954750 + + + + + + + + + + + + + + + + + + + + + + + + 2.6610608101 + -0.0762652457 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0175705366 + 0.4894979596 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -2.8805663586 + -0.0260595623 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.0175703783 + -0.5416163802 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2.6935126781 + -2.7259645462 + + + + + + + + + + + + + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + 0.000000 + 0.000000 + 0.000000 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -2.1418292522 + 1.9795695543 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1622598022 + 0.3894235194 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.860658 + 0.860658 + 0.860659 + 1.000000 + + + + + 0.0000000000 + 0.0000000000 + + + + + + + + + + + + + + + + + + + + + + + + -2.1418292522 + 1.9795695543 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1622598022 + 0.3894235194 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -0.1781001389 + 0.0890500173 + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/synfig-studio/src/gtkmm/iconcontroller.cpp b/synfig-studio/src/gtkmm/iconcontroller.cpp index 408b314..69777e8 100644 --- a/synfig-studio/src/gtkmm/iconcontroller.cpp +++ b/synfig-studio/src/gtkmm/iconcontroller.cpp @@ -172,6 +172,10 @@ IconController::IconController(const synfig::String& /*basepath*/) 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")); + 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")); + INIT_STOCK_ICON(plant,"plant_icon."IMAGE_EXT,""); INIT_STOCK_ICON(group,"group_icon."IMAGE_EXT,_("Group")); @@ -460,6 +464,12 @@ studio::layer_icon(const synfig::String &layer) 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"); + else if(layer=="MotionBlur") // in the future should be "motion_blur" + return Gtk::StockID("synfig-layer_blur_motion"); else return Gtk::StockID("synfig-layer"); } -- 2.7.4