4 if layer, makes new layer of type
8 if starts with '[' creates layer (new interface func?)
9 fgets line with 'this=this' in
15 { "this", PARAM_THIS },
16 { "that", PARAM_THAT },
22 set_param(VikLayer*l,gint type_id,gchar *stuff) { switch(type_id) {
24 layer_set_this(l,stuff);
29 checks thru params strlen() check and strncmp()
32 *now*, what if I could use all this set_param stuff for dynamic dialog box creation?
33 and default (non-interactive) new layers?
35 param name ID explanation type widget type min/min len max/max len default val
36 colorvelocity VEL lower velocity range CUSTOM CUSTOM
37 line_thickness THICK Track Line Thickness INT SPINBUTTON 1 15 1
38 # on read, if outside range, gives error.
40 special stuff like color velocity range?
51 so we need a special get_widget_for_param() thingy.
52 then set_param_from_widget() -> gets widget data does its thing
66 void pop(Stack **stack) {
67 Stack *tmp = (*stack)->under;
72 void push(Stack **stack)
74 Stack *tmp = g_malloc ( sizeof ( Stack ) );
83 new default layer of type (str_to_type) (check interface->name)
85 VikLayer *vl = stack->data;
87 vik_aggregate_layer_add_layer(stack->data, vl);
89 vik_layer_data ( VIK_LAYER_DATA(stack->data), f, vp );