summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/blurfx.c
diff options
context:
space:
mode:
authorquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-30 02:17:16 +0000
committerquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-30 02:17:16 +0000
commitbce2b26a717d668f5e1667eae891f173f27d014c (patch)
tree49e744a33e92a14cec49af743f8f713a5e069ed2 /beryl-plugins/src/blurfx.c
parentd4d22dfc8c4fbd2ff320ec136af9e84dcc6485a3 (diff)
downloadmarex-dev-bce2b26a717d668f5e1667eae891f173f27d014c.tar.gz
marex-dev-bce2b26a717d668f5e1667eae891f173f27d014c.tar.bz2
beryl-core, beryl-vidcap, beryl-plugins:
-add new groups system for options -add hints to options -still none of these are filled out -beryl-settings isn't converted to use the new hint checking function yet git-svn-id: file:///beryl/trunk@1462 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/blurfx.c')
-rw-r--r--beryl-plugins/src/blurfx.c145
1 files changed, 116 insertions, 29 deletions
diff --git a/beryl-plugins/src/blurfx.c b/beryl-plugins/src/blurfx.c
index 5567d63..e4b25bb 100644
--- a/beryl-plugins/src/blurfx.c
+++ b/beryl-plugins/src/blurfx.c
@@ -434,7 +434,10 @@ blurfxDisplayInitOptions (BlurfxDisplay * bd)
o = &bd->opt[BLURFX_DISPLAY_OPTION_MOTION_BLUR_TOGGLE];
o->name = "motion_blur_toggle";
- o->shortDesc = N_("Toggle motion blur");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Toggle motion blur");
o->longDesc = N_("Toggle motion blur effect");
o->type = CompOptionTypeAction;
o->value.action.initiate = blurfxToggleMotionBlur;
@@ -713,49 +716,70 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_BLUR_DECORATION];
o->name = "blur_decoration";
- o->shortDesc = N_("Blur decoration");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Blur decoration");
o->longDesc = N_("Blur decorations");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_BLUR_DECORATION_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_BLUR_WINDOWS];
o->name = "blur_windows";
- o->shortDesc = N_("Blur windows");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Blur windows");
o->longDesc = N_("Blur windows");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_BLUR_WINDOWS_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_REFLECTION_DECORATION];
o->name = "reflection_decoration";
- o->shortDesc = N_("Reflection decoration");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Reflection decoration");
o->longDesc = N_("Draw reflection for decorations");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_REFLECTION_DECORATION_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_REFLECTION_WINDOWS];
o->name = "reflection_windows";
- o->shortDesc = N_("Reflection windows");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Reflection windows");
o->longDesc = N_("Draw reflection for windows");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_REFLECTION_WINDOWS_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_BLUR_ON_TRANSFORMED_SCREEN];
o->name = "blur_transformed_screen";
- o->shortDesc = N_("Blur transformed screen");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Blur transformed screen");
o->longDesc = N_("Draw blur if the screen is transformed");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_BLUR_ON_TRANSFORMED_SCREEN_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_BLUR_TRANSFORMED_WINDOW];
o->name = "blur_transformed_window";
- o->shortDesc = N_("Blur transformed window");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Blur transformed window");
o->longDesc = N_("Draw blur if window is transformed");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_BLUR_TRANSFORMED_WINDOW_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_BLUR_SHADER];
o->name = "blur_shader";
- o->shortDesc = N_("Blur Shader");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Blur Shader");
o->longDesc = N_("Blur Shader");
o->type = CompOptionTypeString;
o->value.s = strdup (BLURFX_SCREEN_OPTION_BLUR_SHADER_DEFAULT);
@@ -764,14 +788,20 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_FORCE_NON_FBO_BLUR];
o->name = "force_non_fbo_blur";
- o->shortDesc = N_("Force non fbo blur");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Force non fbo blur");
o->longDesc = N_("Force non fbo blur");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_FORCE_NON_FBO_BLUR_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_NON_FBO_BLUR_STRENGTH];
o->name = "non_fbo_blur_strength";
- o->shortDesc = N_("Non fbo blur strength");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Non fbo blur strength");
o->longDesc = N_("Non fbo mode blur strength");
o->type = CompOptionTypeInt;
o->value.i = BLURFX_SCREEN_OPTION_NON_FBO_BLUR_STRENGTH_DEFAULT;
@@ -780,14 +810,20 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_BLUR_CACHE_TEXTURES];
o->name = "blur_cache";
- o->shortDesc = N_("Use blur cache");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Use blur cache");
o->longDesc = N_("Enables blur cache texture system");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_BLUR_CACHE_TEXTURES_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_NO_BLUR_CACHE_ON_TRANSFORMED_SCREEN];
o->name = "no_cache_when_transformed";
- o->shortDesc = N_("Disable blur cache on transformed screen");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Disable blur cache on transformed screen");
o->longDesc = N_("Disables blur cache on transformed screen");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_NO_BLUR_CACHE_ON_TRANSFORMED_SCREEN_DEFAULT;
@@ -795,14 +831,20 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_DISABLE_DECORATION_ALPHADEP];
o->name = "disable_deco_alpha_dep";
- o->shortDesc = N_("Disable decoration alpha dependency");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Disable decoration alpha dependency");
o->longDesc = N_("Disable decoration alpha dependency");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_DISABLE_DECORATION_ALPHADEP_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_DISABLE_BLUR_ON_SCREENGRAB_OF];
o->name = "disable_blur_on_screengrab_of";
- o->shortDesc = N_("Disable blur on screengrab of");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Disable blur on screengrab of");
o->longDesc =
N_("Disable drawing of blur when an other plugin grabs the input");
o->type = CompOptionTypeList;
@@ -815,7 +857,10 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_REFLECTION_ON_TRANSFORMED_SCREEN];
o->name = "reflection_transformed_screen";
- o->shortDesc = N_("Reflection transformed screen");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Reflection transformed screen");
o->longDesc = N_("Draw reflection if the screen is transformed");
o->type = CompOptionTypeBool;
o->value.b =
@@ -823,14 +868,20 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_REFLECTION_TRANSFORMED_WINDOW];
o->name = "reflection_transformed_window";
- o->shortDesc = N_("Reflection transformed window");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Reflection transformed window");
o->longDesc = N_("Draw reflection if the screen is transformed");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_REFLECTION_TRANSFORMED_WINDOW_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_DISABLE_REFLECTION_ON_SCREENGRAB_OF];
o->name = "disable_reflection_on_screengrab_of";
- o->shortDesc = N_("Disable reflection on screengrab of");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Disable reflection on screengrab of");
o->longDesc =
N_("Disable drawing of reflection when an other plugin grabs the input");
o->type = CompOptionTypeList;
@@ -840,7 +891,10 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_REFLECTION_FILE];
o->name = "reflection_file";
- o->shortDesc = N_("Reflection file");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Reflection file");
o->longDesc = N_("Reflection image file");
o->type = CompOptionTypeString;
o->value.s = strdup (BLURFX_SCREEN_OPTION_REFLECTION_FILE_DEFAULT);
@@ -849,35 +903,50 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_REFLECTION_SCALE];
o->name = "reflection_scale";
- o->shortDesc = N_("Reflection scale");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Reflection scale");
o->longDesc = N_("Scale reflection image");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_REFLECTION_SCALE_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_REFLECTION_PROPORTIONAL];
o->name = "reflection_proportional";
- o->shortDesc = N_("Reflection proportional");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Reflection proportional");
o->longDesc = N_("Scale proportional");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_REFLECTION_PROPORTIONAL_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_REFLECTION_USE_IMAGE_COLOR];
o->name = "reflection_use_image_colors";
- o->shortDesc = N_("Reflection Use Colors");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Reflection Use Colors");
o->longDesc = N_("Do not generate grayscale reflection");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_REFLECTION_USE_IMAGE_COLOR_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_REFLECTION_USE_IMAGE_ALPHA];
o->name = "reflection_use_image_alpha";
- o->shortDesc = N_("Reflection Use Alpha");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Reflection Use Alpha");
o->longDesc = N_("Use image alpha channel");
o->type = CompOptionTypeBool;
o->value.b = BLURFX_SCREEN_OPTION_REFLECTION_USE_IMAGE_ALPHA_DEFAULT;
o = &bs->opt[BLURFX_SCREEN_OPTION_MOTION_BLUR_MODE];
o->name = "motion_blur_mode";
- o->shortDesc = N_("Motion Blur Mode");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Motion Blur Mode");
o->longDesc =
N_("Motion blur mode: simple = uses texture copy and blending; accum ="
" uses gl accumulation buffer; fbo = uses framebuffer objects and float texture;");
@@ -888,7 +957,10 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_MOTION_BLUR_ON_SCREENGRAB_OF];
o->name = "motion_blur_on_screengrab_of";
- o->shortDesc = N_("Motion blur on screengrab of");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Motion blur on screengrab of");
o->longDesc = N_("Activate motion blur on screengrab");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeString;
@@ -897,7 +969,10 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_MOTION_BLUR_ON_TRANSFORMED_SCREEN];
o->name = "motion_blur_on_transformed_screen";
- o->shortDesc = N_("Motion blur on transformed screen");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Motion blur on transformed screen");
o->longDesc = N_("Execute motion blur if the screen is transformed");
o->type = CompOptionTypeBool;
o->value.b =
@@ -905,7 +980,10 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_MOTION_BLUR_STRENGTH];
o->name = "motion_blur_strength";
- o->shortDesc = N_("Motion blur strength");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Motion blur strength");
o->longDesc = N_("Motion blur strength");
o->type = CompOptionTypeFloat;
o->value.f = BLURFX_SCREEN_OPTION_MOTION_BLUR_STRENGTH_DEFAULT;
@@ -915,7 +993,10 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_DISABLE_BLUR_WINDOW_TYPE];
o->name = "disable_blur_window_types";
- o->shortDesc = N_("Disable Blur Window Types");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Disable Blur Window Types");
o->longDesc = N_("Window types for that blur should be disabled");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeString;
@@ -926,7 +1007,10 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_DISABLE_REFLECTION_WINDOW_TYPE];
o->name = "disable_reflection_window_types";
- o->shortDesc = N_("Disable Reflection Window Types");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Disable Reflection Window Types");
o->longDesc = N_("Window types for that reflection should be disabled");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeString;
@@ -937,7 +1021,10 @@ blurfxScreenInitOptions (BlurfxScreen * bs)
o = &bs->opt[BLURFX_SCREEN_OPTION_BLUR_SATURATION];
o->name = "blur_saturation";
- o->shortDesc = N_("Blur saturation");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Blur saturation");
o->longDesc = N_("Blur saturation");
o->type = CompOptionTypeFloat;
o->value.f = BLURFX_SCREEN_OPTION_BLUR_SATURATION_DEFAULT;