summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/wobbly.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/wobbly.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/wobbly.c')
-rw-r--r--beryl-plugins/src/wobbly.c180
1 files changed, 144 insertions, 36 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index db2906d..f3b4b4e 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -482,7 +482,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MAXIMIZE_FRICTION];
o->name = "maximize_friction";
- o->shortDesc = N_("Maximize Friction");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Maximize Friction");
o->longDesc = N_("Spring Friction for maximize effect");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_MAXIMIZE_FRICTION_DEFAULT;
@@ -492,7 +495,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MAXIMIZE_SPRING_K];
o->name = "maximize_spring_k";
- o->shortDesc = N_("Maximize Spring K");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Maximize Spring K");
o->longDesc = N_("Spring Konstant for maximize effect");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_MAXIMIZE_SPRING_K_DEFAULT;
@@ -502,7 +508,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MOVE_FRICTION];
o->name = "move_friction";
- o->shortDesc = N_("Move Friction");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Move Friction");
o->longDesc = N_("Spring Friction for move types");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_FRICTION_DEFAULT;
@@ -512,7 +521,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MOVE_SPRING_K];
o->name = "move_spring_k";
- o->shortDesc = N_("Move Spring K");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Move Spring K");
o->longDesc = N_("Spring Konstant for move types");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_SPRING_K_DEFAULT;
@@ -522,7 +534,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MAP_FRICTION];
o->name = "map_friction";
- o->shortDesc = N_("Map Friction");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Map Friction");
o->longDesc = N_("Spring Friction for map types");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_MAP_FRICTION_DEFAULT;
@@ -532,7 +547,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MAP_SPRING_K];
o->name = "map_spring_k";
- o->shortDesc = N_("Map Spring K");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Map Spring K");
o->longDesc = N_("Spring Konstant for map types");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_MAP_SPRING_K_DEFAULT;
@@ -542,7 +560,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_GRAB_FRICTION];
o->name = "grab_friction";
- o->shortDesc = N_("Grab Friction");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Grab Friction");
o->longDesc = N_("Spring Friction for grab types");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_FRICTION_DEFAULT;
@@ -552,7 +573,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_GRAB_SPRING_K];
o->name = "grab_spring_k";
- o->shortDesc = N_("Grab Spring K");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Grab Spring K");
o->longDesc = N_("Spring Konstant for grab types");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_SPRING_K_DEFAULT;
@@ -562,7 +586,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_FOCUS_FRICTION];
o->name = "focus_friction";
- o->shortDesc = N_("Focus Friction");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Focus Friction");
o->longDesc = N_("Spring Friction for focus types");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_FRICTION_DEFAULT;
@@ -572,7 +599,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_FOCUS_SPRING_K];
o->name = "focus_spring_k";
- o->shortDesc = N_("Focus Spring K");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Focus Spring K");
o->longDesc = N_("Spring Konstant for focus types");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_SPRING_K_DEFAULT;
@@ -582,7 +612,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_GRID_RESOLUTION];
o->name = "grid_resolution";
- o->shortDesc = N_("Grid Resolution");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Grid Resolution");
o->longDesc = N_("Vertex Grid Resolution");
o->type = CompOptionTypeInt;
o->value.i = WOBBLY_GRID_RESOLUTION_DEFAULT;
@@ -591,7 +624,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MIN_GRID_SIZE];
o->name = "min_grid_size";
- o->shortDesc = N_("Minimum Grid Size");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Minimum Grid Size");
o->longDesc = N_("Minimum Vertex Grid Size");
o->type = CompOptionTypeInt;
o->value.i = WOBBLY_MIN_GRID_SIZE_DEFAULT;
@@ -600,7 +636,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MAP_EFFECT];
o->name = "map_effect";
- o->shortDesc = N_("Map Effect");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Map Effect");
o->longDesc = N_("Map Window Effect");
o->type = CompOptionTypeString;
o->value.s = strdup (WOBBLY_MAP_DEFAULT);
@@ -609,7 +648,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_FOCUS_EFFECT];
o->name = "focus_effect";
- o->shortDesc = N_("Focus Effect");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Focus Effect");
o->longDesc = N_("Focus Window Effect");
o->type = CompOptionTypeString;
o->value.s = strdup (WOBBLY_FOCUS_DEFAULT);
@@ -618,7 +660,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MAP_WINDOW_TYPE];
o->name = "map_window_types";
- o->shortDesc = N_("Map Window Types");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Map Window Types");
o->longDesc = N_("Window types that should wobble when mapped");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeString;
@@ -633,7 +678,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_FOCUS_WINDOW_TYPE];
o->name = "focus_window_types";
- o->shortDesc = N_("Focus Window Types");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Focus Window Types");
o->longDesc = N_("Window types that should wobble when focused");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeString;
@@ -646,7 +694,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MOVE_WINDOW_TYPE];
o->name = "move_window_types";
- o->shortDesc = N_("Move Window Types");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Move Window Types");
o->longDesc = N_("Window types that should wobble when moved");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeString;
@@ -661,7 +712,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_GRAB_WINDOW_TYPE];
o->name = "grab_window_types";
- o->shortDesc = N_("Grab Window Types");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Grab Window Types");
o->longDesc = N_("Window types that should wobble when grabbed");
o->type = CompOptionTypeList;
o->value.list.type = CompOptionTypeString;
@@ -674,7 +728,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MAXIMIZE_EFFECT];
o->name = "maximize_effect";
- o->shortDesc = N_("Maximize Effect");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Maximize Effect");
o->longDesc =
N_("Wobble effect when maximizing and unmaximizing windows");
o->type = CompOptionTypeBool;
@@ -682,7 +739,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_MOVE_EFFECT];
o->name = "move_effect";
- o->shortDesc = N_("Move effect");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Move effect");
o->longDesc =
N_("Wobble windows when you move them");
o->type = CompOptionTypeBool;
@@ -690,7 +750,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_BELL_FRICTION];
o->name = "visual_bell_friction";
- o->shortDesc = N_("Visual Bell Friction");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Visual Bell Friction");
o->longDesc = N_("Spring Friction for bell effect");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_FRICTION_DEFAULT;
@@ -700,7 +763,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_BELL_SPRING_K];
o->name = "visual_bell_spring_k";
- o->shortDesc = N_("Visual Bell Spring K");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Visual Bell Spring K");
o->longDesc = N_("Spring Konstant for bell effect");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_SPRING_K_DEFAULT;
@@ -710,14 +776,20 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_USE_RELEASE];
o->name = "release_effect";
- o->shortDesc = N_("Release Effect");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Release Effect");
o->longDesc = N_("Use settings for releasing windows");
o->type = CompOptionTypeBool;
o->value.b = WOBBLY_RELEASE_DEFAULT;
o = &ws->opt[WOBBLY_SCREEN_OPTION_RELEASE_FRICTION];
o->name = "release_friction";
- o->shortDesc = N_("Release Friction");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Release Friction");
o->longDesc = N_("Spring Friction for release effect");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_FRICTION_DEFAULT;
@@ -727,7 +799,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_RELEASE_SPRING_K];
o->name = "release_spring_k";
- o->shortDesc = N_("Release Spring K");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Release Spring K");
o->longDesc = N_("Spring Konstant for release effect");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_SPRING_K_DEFAULT;
@@ -738,14 +813,20 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_URGENT_EFFECT];
o->name = "urgent_effect";
- o->shortDesc = N_("Use urgent effect");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Use urgent effect");
o->longDesc = N_("Make urgent windows wobble");
o->type = CompOptionTypeBool;
o->value.b = WOBBLY_URGENT_EFFECT_DEFAULT;
o = &ws->opt[WOBBLY_SCREEN_OPTION_URGENT_FRICTION];
o->name = "urgent_friction";
- o->shortDesc = N_("Urgent Friction");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Urgent Friction");
o->longDesc = N_("Spring Friction for urgent effect");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_FRICTION_DEFAULT;
@@ -755,7 +836,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_URGENT_SPRING_K];
o->name = "urgent_spring_k";
- o->shortDesc = N_("Urgent Spring K");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Urgent Spring K");
o->longDesc = N_("Spring Konstant for urgent effect");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_SPRING_K_DEFAULT;
@@ -765,7 +849,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_URGENT_VELOCITY];
o->name = "urgent_velocity";
- o->shortDesc = N_("Urgent Velocity");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Urgent Velocity");
o->longDesc = N_("Window velocity for urgent effect");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_URGENT_VELOCITY_DEFAULT;
@@ -775,21 +862,30 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_URGENT_IN];
o->name = "urgent_effect_in";
- o->shortDesc = N_("Urgent effect in");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Urgent effect in");
o->longDesc = N_("Make urgent windows wobble inward");
o->type = CompOptionTypeBool;
o->value.b = WOBBLY_URGENT_IN_DEFAULT;
o = &ws->opt[WOBBLY_SCREEN_OPTION_URGENT_UNIFORM];
o->name = "urgent_effect_uniform";
- o->shortDesc = N_("Urgent effect uniform");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Urgent effect uniform");
o->longDesc = N_("Make urgent windows wobble uniformly");
o->type = CompOptionTypeBool;
o->value.b = WOBBLY_URGENT_UNIFORM_DEFAULT;
o = &ws->opt[WOBBLY_SCREEN_OPTION_EDGE_DISTANCE];
o->name = "edge_distance";
- o->shortDesc = N_("Edge snapping distance");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Edge snapping distance");
o->longDesc = N_("Edge snapping distance");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_EDGE_DISTANCE_DEFAULT;
@@ -799,7 +895,10 @@ wobblyScreenInitOptions (WobblyScreen * ws)
o = &ws->opt[WOBBLY_SCREEN_OPTION_EDGE_VELOCITY];
o->name = "edge_velocity";
- o->shortDesc = N_("Edge snapping velocity");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Edge snapping velocity");
o->longDesc = N_("Edge snapping velocity");
o->type = CompOptionTypeFloat;
o->value.f = WOBBLY_EDGE_VELOCITY_DEFAULT;
@@ -3371,7 +3470,10 @@ wobblyDisplayInitOptions (WobblyDisplay * wd)
o = &wd->opt[WOBBLY_DISPLAY_OPTION_SNAP];
o->name = "snap";
- o->shortDesc = N_("Snap windows modifier");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Snap windows modifier");
o->longDesc =
N_
("Press all of the selected keys while moving windows to cause them to snap");
@@ -3387,14 +3489,20 @@ wobblyDisplayInitOptions (WobblyDisplay * wd)
o = &wd->opt[WOBBLY_DISPLAY_OPTION_DEFAULT_SNAP];
o->name = "default_snap";
- o->shortDesc = N_("Default Snapping to On");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Default Snapping to On");
o->longDesc = N_("Reverse meaning of snapping toggle");
o->type = CompOptionTypeBool;
o->value.b = WOBBLY_DEFAULT_SNAP_DEFAULT;
o = &wd->opt[WOBBLY_DISPLAY_OPTION_SHIVER];
o->name = "shiver";
- o->shortDesc = N_("Shiver");
+ o->group=N_("");
+o->subGroup=N_("");
+o->displayHints="";
+o->shortDesc = N_("Shiver");
o->longDesc = N_("Make window shiver");
o->type = CompOptionTypeAction;
o->value.action.initiate = wobblyShiver;