From fb4b2e76c89473a2ed5dac208c86dc52f1d48f6f Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 14 Jun 2015 20:23:49 -0300 Subject: [PATCH] Add layer opacity property (fix #225) --- data/widgets/layer_properties.xml | 5 ++- src/app/CMakeLists.txt | 1 + src/app/cmd/set_layer_opacity.cpp | 39 ++++++++++++++++++++ src/app/cmd/set_layer_opacity.h | 43 +++++++++++++++++++++++ src/app/commands/cmd_layer_properties.cpp | 26 ++++++++++++-- src/doc/layer.cpp | 1 + src/doc/layer.h | 4 +++ src/doc/layer_io.cpp | 21 ++++++++--- src/render/render.cpp | 29 ++++++++------- 9 files changed, 148 insertions(+), 21 deletions(-) create mode 100644 src/app/cmd/set_layer_opacity.cpp create mode 100644 src/app/cmd/set_layer_opacity.h diff --git a/data/widgets/layer_properties.xml b/data/widgets/layer_properties.xml index d107ad660..a261adff6 100644 --- a/data/widgets/layer_properties.xml +++ b/data/widgets/layer_properties.xml @@ -1,5 +1,5 @@ - + @@ -9,6 +9,9 @@