summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-02-23 14:46:28 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-02-23 14:46:28 +0000
commit047471c7dce486851db994f853e101e7a7e87773 (patch)
treeea4a3c0196949a1a9d108b8e846d823beac3a6bf /data
parent181bae5598f05d35daa709ea2b5508a87b91b0b5 (diff)
TH - remove old edc junk
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/elm/slider.edc792
1 files changed, 0 insertions, 792 deletions
diff --git a/data/elementary/themes/edc/elm/slider.edc b/data/elementary/themes/edc/elm/slider.edc
index 7752f0bc08..fa05040971 100644
--- a/data/elementary/themes/edc/elm/slider.edc
+++ b/data/elementary/themes/edc/elm/slider.edc
@@ -2906,796 +2906,4 @@ group { name: "elm/slider/range/vertical/default";
2906#undef MASKBITS 2906#undef MASKBITS
2907#undef INVERT 2907#undef INVERT
2908#undef DISABLE 2908#undef DISABLE
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918#if 0
2919 images.image: "slider_run_base_vert.png" COMP;
2920 images.image: "slider_run_bevel_vert.png" COMP;
2921 images.image: "slider_run_base_light_vert.png" COMP;
2922 images.image: "vert_glow_run.png" COMP;
2923 images.image: "vert_glow_range.png" COMP;
2924 images.image: "vert_glow_run_rev.png" COMP;
2925 images.image: "knob_round_small_normal.png" COMP;
2926 images.image: "knob_round_small_selected.png" COMP;
2927 set { name: "knob";
2928 // XXX: add more sizes (at least up to 128x128)
2929 image { image: "knob_sz_24.png" COMP; size: 31 31 32 32; }
2930 image { image: "knob_sz_22.png" COMP; size: 29 29 30 30; }
2931 image { image: "knob_sz_20.png" COMP; size: 27 27 28 28; }
2932 image { image: "knob_sz_18.png" COMP; size: 25 25 26 26; }
2933 image { image: "knob_sz_16.png" COMP; size: 23 23 24 24; }
2934 image { image: "knob_sz_14.png" COMP; size: 21 21 22 22; }
2935 image { image: "knob_sz_12.png" COMP; size: 19 19 20 20; }
2936 image { image: "knob_sz_10.png" COMP; size: 17 17 18 18; }
2937 image { image: "knob_sz_08.png" COMP; size: 15 15 16 16; }
2938 image { image: "knob_sz_06.png" COMP; size: 13 13 14 14; }
2939 image { image: "knob_sz_04.png" COMP; size: 0 0 12 12; }
2940 }
2941#define ICON 1
2942#define LABEL 2
2943#define END 4
2944#define UNITS 8
2945#define MASKBITS 15
2946#define INVERT 16
2947#define DISABLE 32
2948 script {
2949 public slmode;
2950 public range;
2951 public g_timer_id;
2952 public update_glow()
2953 {
2954 new x1,y1,w1,h1;
2955 new x2,y2,w2,h2;
2956 get_geometry(PART:"knob", x1, y1, w1, h1);
2957 get_geometry(PART:"knob2", x2, y2, w2, h2);
2958 if(y2 < y1)
2959 set_state(PART:"glow", "range_reverse", 0.0);
2960 else
2961 set_state(PART:"glow", "range", 0.0);
2962 }
2963 public eval_mode(m) {
2964 new ic = m & ICON;
2965 new l = m & LABEL;
2966 new e = m & END;
2967 new u = m & UNITS;
2968 new d = m & DISABLE;
2969 new i = m & INVERT;
2970 new r = get_int(range);
2971 if (!r) {
2972 if (i) {
2973 if (!d) {
2974 set_state(PART:"base", "default", 0.0);
2975 set_state(PART:"glow", "inverted", 0.0);
2976 } else {
2977 set_state(PART:"base", "disabled", 0.0);
2978 set_state(PART:"glow", "disabled_inverted", 0.0);
2979 }
2980 } else {
2981 if (!d) {
2982 set_state(PART:"base", "default", 0.0);
2983 set_state(PART:"glow", "default", 0.0);
2984 } else {
2985 set_state(PART:"base", "disabled", 0.0);
2986 set_state(PART:"glow", "disabled", 0.0);
2987 }
2988 }
2989 } else if (d) {
2990 new x1,y1,w1,h1;
2991 new x2,y2,w2,h2;
2992 get_geometry(PART:"knob", x1, y1, w1, h1);
2993 get_geometry(PART:"knob2", x2, y2, w2, h2);
2994 set_state(PART:"base", "disabled", 0.0);
2995 if(y2 < y1)
2996 set_state(PART:"glow", "disabled_range_reverse", 0.0);
2997 else
2998 set_state(PART:"glow", "disabled_range", 0.0);
2999 }
3000 if (l) {
3001 if (!d) {
3002 set_state(PART:"elm.text", "visible", 0.0);
3003 } else {
3004 set_state(PART:"elm.text", "disabled_visible", 0.0);
3005 }
3006 } else {
3007 set_state(PART:"elm.text", "default", 0.0);
3008 }
3009 if (u) {
3010 if (!d) {
3011 set_state(PART:"elm.units", "visible", 0.0);
3012 set_state(PART:"limits", "visible", 0.0);
3013 } else {
3014 set_state(PART:"elm.units", "disabled_visible", 0.0);
3015 set_state(PART:"limits", "disabled_visible", 0.0);
3016 }
3017 } else {
3018 set_state(PART:"elm.units", "default", 0.0);
3019 set_state(PART:"limits", "default", 0.0);
3020 }
3021 if (ic) {
3022 set_state(PART:"elm.swallow.icon", "visible", 0.0);
3023 set_state(PART:"sizer_content", "visible", 0.0);
3024 } else {
3025 set_state(PART:"elm.swallow.icon", "default", 0.0);
3026 set_state(PART:"sizer_content", "default", 0.0);
3027 }
3028 if (e) {
3029 set_state(PART:"elm.swallow.end", "visible", 0.0);
3030 set_state(PART:"sizer_content_end", "visible", 0.0);
3031 } else {
3032 set_state(PART:"elm.swallow.end", "default", 0.0);
3033 set_state(PART:"sizer_content_end", "default", 0.0);
3034 }
3035 if (!d) {
3036 set_state(PART:"event", "default", 0.0);
3037 set_state(PART:"dis_clip", "default", 0.0);
3038 } else {
3039 set_state(PART:"event", "disabled", 0.0);
3040 set_state(PART:"dis_clip", "disabled", 0.0);
3041 }
3042 }
3043 }
3044 parts {
3045 part { name: "elm.swallow.bar"; type: SWALLOW;
3046 scale: 1;
3047 description { state: "default" 0.0;
3048 min: 21 42;
3049 max: 21 99999;
3050 align: 0.5 1.0;
3051 rel1.to_y: "elm.text";
3052 rel1.relative: 0.0 1.0;
3053 rel1.offset: 0 2;
3054 rel2.to_y: "limits";
3055 rel2.relative: 1.0 0.0;
3056 rel2.offset: -1 -3;
3057 }
3058 }
3059 part { name: "base"; mouse_events: 0;
3060 description { state: "default" 0.0;
3061 rel1.to: "elm.swallow.bar";
3062 rel2.to: "elm.swallow.bar";
3063 image.normal: "slider_run_base_vert.png";
3064 image.border: 0 0 4 4;
3065 fill.smooth: 0;
3066 min: 5 8;
3067 max: 5 99999;
3068 fixed: 1 0;
3069 }
3070 description { state: "disabled" 0.0;
3071 inherit: "default" 0.0;
3072 image.normal: "slider_run_base_light_vert.png";
3073 }
3074 }
3075 part { name: "glow"; mouse_events: 0;
3076 description { state: "default" 0.0;
3077 image.normal: "vert_glow_run.png";
3078 rel1.offset: 1 1;
3079 rel1.to: "base";
3080 rel2.relative: 1.0 0.5;
3081 rel2.offset: -2 -1;
3082 rel2.to_y: "button";
3083 rel2.to_x: "base";
3084 image.border: 0 0 0 4;
3085 }
3086 description { state: "disabled" 0.0;
3087 inherit: "default" 0.0;
3088 color: 255 255 255 64;
3089 }
3090 description { state: "inverted" 0.0;
3091 image.normal: "vert_glow_run_rev.png";
3092 rel1.relative: 0.0 0.5;
3093 rel1.offset: 1 0;
3094 rel1.to_y: "button";
3095 rel1.to_x: "base";
3096 rel2.offset: -2 -2;
3097 rel2.to: "base";
3098 image.border: 0 0 4 0;
3099 }
3100 description { state: "range" 0.0;
3101 image.normal: "vert_glow_range.png";
3102 rel1.relative: 0.5 1.0;
3103 rel1.offset: -1 -2;
3104 rel1.to_x: "base";
3105 rel1.to_y: "button";
3106 rel2.relative: 0.5 1.0;
3107 rel2.offset: -1 -2;
3108 rel2.to_x: "base";
3109 rel2.to_y: "button2";
3110 fixed: 1 0;
3111 image.border: 0 4 0 0;
3112 }
3113 description { state: "disabled_range" 0.0;
3114 inherit: "range" 0.0;
3115 color: 255 255 255 64;
3116 }
3117 description { state: "range_reverse" 0.0;
3118 inherit: "range" 0.0;
3119 rel1.to_y: "button2";
3120 rel2.to_y: "button";
3121 }
3122 description { state: "disabled_range_reverse" 0.0;
3123 inherit: "range_reverse" 0.0;
3124 color: 255 255 255 64;
3125 }
3126 description { state: "disabled_inverted" 0.0;
3127 inherit: "inverted" 0.0;
3128 color: 255 255 255 64;
3129 }
3130 }
3131 part { name: "bevel"; mouse_events: 0;
3132 description { state: "default" 0.0;
3133 rel1.to: "base";
3134 rel2.to: "base";
3135 image.normal: "slider_run_bevel_vert.png";
3136 image.border: 0 0 5 5;
3137 fill.smooth: 0;
3138 }
3139 }
3140 part { name: "dis_clip"; type: RECT;
3141 description { state: "default" 0.0;
3142 rel1.to: "elm.swallow.icon";
3143 rel2.to: "elm.swallow.end";
3144 }
3145 description { state: "disabled" 0.0;
3146 inherit: "default" 0.0;
3147 color: 255 255 255 64;
3148 }
3149 }
3150 part { name: "elm.swallow.icon"; type: SWALLOW;
3151 clip_to: "dis_clip";
3152 description { state: "default" 0.0;
3153 visible: 0;
3154 align: 0.5 0.0;
3155 rel1.offset: 2 0;
3156 rel1.to_x: "elm.swallow.bar";
3157 rel2.offset: -3 -1;
3158 rel2.relative: 1.0 0.0;
3159 rel2.to_x: "elm.swallow.bar";
3160 fixed: 0 1;
3161 }
3162 description { state: "visible" 0.0;
3163 inherit: "default" 0.0;
3164 visible: 1;
3165 aspect: 1.0 1.0; aspect_preference: VERTICAL;
3166 rel1.offset: 2 2;
3167 rel2.offset: -3 2;
3168 }
3169 }
3170 part { name: "sizer_content"; type: TEXT; mouse_events: 0;
3171 scale: 1;
3172 description { state: "default" 0.0;
3173 fixed: 1 1;
3174 visible: 0;
3175 text { font: FN; size: 10;
3176 min: 0 0;
3177 text_class: "slider_text";
3178 }
3179 }
3180 description { state: "visible" 0.0;
3181 inherit: "default" 0.0;
3182 rel1.to: "elm.swallow.icon";
3183 rel2.to: "elm.swallow.icon";
3184 text {
3185 min: 1 1;
3186 ellipsis: -1;
3187 text: SPACER_TEXT;
3188 }
3189 }
3190 }
3191 part { name: "elm.text"; type: TEXT; mouse_events: 0;
3192 effect: SHADOW BOTTOM;
3193 scale: 1;
3194 description { state: "default" 0.0;
3195 fixed: 0 1;
3196 align: 0.5 0.0;
3197 rel1.to_y: "elm.swallow.icon";
3198 rel1.relative: 0.0 1.0;
3199 rel1.offset: 2 -1;
3200 rel2.to_y: "elm.swallow.icon";
3201 rel2.relative: 1.0 1.0;
3202 rel2.offset: -3 -1;
3203 color: FN_COL_DEFAULT;
3204 color_class: "slider_text";
3205 text { font: FN; size: 10;
3206 text_class: "slider";
3207 min: 1 0;
3208 ellipsis: -1;
3209 align: 0.5 0.0;
3210 }
3211 visible: 0;
3212 }
3213 description { state: "visible" 0.0;
3214 inherit: "default" 0.0;
3215 visible: 1;
3216 rel1.offset: 2 2;
3217 rel2.offset: -3 2;
3218 text.min: 1 1;
3219 text.ellipsis: -1;
3220
3221 }
3222 description { state: "disabled_visible" 0.0;
3223 inherit: "visible" 0.0;
3224 color_class: "slider_text_disabled";
3225 color3: 255 255 255 255;
3226 }
3227 }
3228 part { name: "elm.swallow.end"; type: SWALLOW;
3229 clip_to: "dis_clip";
3230 description { state: "default" 0.0;
3231 visible: 0;
3232 align: 0.5 1.0;
3233 rel1.offset: 2 0;
3234 rel1.relative: 0.0 1.0;
3235 rel2.offset: -3 -1;
3236 fixed: 0 1;
3237 }
3238 description { state: "visible" 0.0;
3239 inherit: "default" 0.0;
3240 visible: 1;
3241 aspect: 1.0 1.0;
3242 aspect_preference: VERTICAL;
3243 rel2.offset: 2 -3;
3244 rel2.offset: -3 -3;
3245 }
3246 }
3247 part { name: "sizer_content_end"; type: TEXT; mouse_events: 0;
3248 scale: 1;
3249 description { state: "default" 0.0;
3250 fixed: 1 1;
3251 visible: 0;
3252 text { font: FN; size: 10;
3253 min: 0 0;
3254 text_class: "slider_text";
3255 }
3256 }
3257 description { state: "visible" 0.0;
3258 inherit: "default" 0.0;
3259 rel1.to: "elm.swallow.end";
3260 rel2.to: "elm.swallow.end";
3261 text {
3262 min: 1 1;
3263 ellipsis: -1;
3264 text: SPACER_TEXT;
3265 }
3266 }
3267 }
3268 alias: "elm.units.min" "limits:elm.units.min";
3269 alias: "elm.units.max" "limits:elm.units.max";
3270 part { name: "limits"; type: GROUP; mouse_events: 0;
3271 source: "elm/slider/hidden/limit";
3272 scale: 1;
3273 description { state: "default" 0.0;
3274 align: 0.5 1.0;
3275 fixed: 1 1;
3276 max: 0 0;
3277 rel1.to_y: "elm.swallow.end";
3278 rel1.relative: 0.0 0.0;
3279 rel1.offset: 2 1;
3280 rel2.to_y: "elm.swallow.end";
3281 rel2.relative: 1.0 0.0;
3282 rel2.offset: -3 0;
3283 }
3284 description { state: "visible" 0.0;
3285 inherit: "default" 0.0;
3286 min: SOURCE;
3287 rel1.offset: 2 -3;
3288 rel2.offset: -3 -3;
3289 }
3290 description { state: "disabled_visible" 0.0;
3291 inherit: "default" 0.0;
3292 rel1.offset: -3 2;
3293 rel2.offset: -3 -3;
3294 color: 255 255 255 64;
3295 }
3296 }
3297 part { name: "elm.units"; type: TEXT; mouse_events: 0;
3298 effect: SHADOW BOTTOM;
3299 scale: 1;
3300 description { state: "default" 0.0;
3301 visible: 0;
3302 fixed: 1 1;
3303 rel1.to_y: "limits";
3304 rel2.to_y: "limits";
3305 color: FN_COL_DEFAULT;
3306 color_class: "slider_text";
3307 text { font: FN; size: 10;
3308 text_class: "slider";
3309 min: 0 0;
3310 align: 0.5 1.0;
3311 ellipsis: -1;
3312 }
3313 }
3314 description { state: "visible" 0.0;
3315 inherit: "default" 0.0;
3316 visible: 1;
3317 text.min: 1 1;
3318 text.ellipsis: -1;
3319 }
3320 description { state: "disabled_visible" 0.0;
3321 inherit: "visible" 0.0;
3322 color_class: "slider_text_disabled";
3323 color3: 255 255 255 255;
3324 }
3325 }
3326 part { name: "button"; type: GROUP; mouse_events: 0;
3327 source: "elm/slider/vertical/indicator/default";
3328 description { state: "default" 0.0;
3329 fixed: 1 1;
3330 rel1.to: "elm.dragable.slider";
3331 rel2.to: "elm.dragable.slider";
3332 }
3333 description { state: "hidden" 0.0;
3334 inherit: "default" 0.0;
3335 visible: 0;
3336 }
3337 }
3338 part { name: "elm.dragable.slider"; type: RECT;
3339 scale: 1;
3340 nomouse;
3341 dragable.x: 0 0 0;
3342 dragable.y: 1 1 0;
3343 dragable.confine: "elm.swallow.bar";
3344 description { state: "default" 0.0;
3345 color: 0 0 0 0;
3346 min: 16 16;
3347 max: 16 16;
3348 fixed: 1 1;
3349 rel1.relative: 0.0 0.5;
3350 rel1.to_x: "elm.swallow.bar";
3351 rel2.relative: 1.0 0.5;
3352 rel2.to_x: "elm.swallow.bar";
3353 }
3354 }
3355 part { name: "knob";
3356 nomouse;
3357 description { state: "default" 0.0;
3358 image.normal: "knob";
3359 fixed: 1 1;
3360 min: 12 12;
3361 step: 2 2;
3362 max: 32 32; // XXX allow bigger sizes with more knob images
3363 rel1.to: "elm.dragable.slider";
3364 rel1.offset: -4 -4;
3365 rel2.to: "elm.dragable.slider";
3366 rel2.offset: 3 3;
3367 }
3368 description { state: "clicked" 0.0;
3369 inherit: "default" 0.0;
3370 }
3371 }
3372 part { name: "slideevent"; type: RECT; repeat_events: 1;
3373 scale: 1;
3374 nomouse;
3375 ignore_flags: ON_HOLD;
3376 dragable.events: "elm.dragable.slider";
3377 description { state: "default" 0.0;
3378 fixed: 1 1;
3379 rel1.to: "elm.dragable.slider";
3380 rel2.to: "elm.dragable.slider";
3381 color: 0 0 0 0;
3382 }
3383 }
3384 part { name: "elm.track.slider"; type: SWALLOW; mouse_events: 0;
3385 description { state: "default" 0.0;
3386 rel1.to: "elm.dragable.slider";
3387 rel2.to: "elm.dragable.slider";
3388 }
3389 }
3390 part { name: "button2"; type: GROUP; mouse_events: 0;
3391 source: "elm/slider/vertical/indicator/default";
3392 description { state: "default" 0.0;
3393 fixed: 1 1;
3394 rel1.to: "elm.dragable2.slider";
3395 rel2.to: "elm.dragable2.slider";
3396 visible: 0;
3397 }
3398 description { state: "hidden" 0.0;
3399 inherit: "default" 0.0;
3400 visible: 0;
3401 }
3402 description { state: "show" 0.0;
3403 inherit: "default" 0.0;
3404 visible: 1;
3405 }
3406 }
3407 part { name: "elm.dragable2.slider"; type: RECT;
3408 scale: 1;
3409 nomouse;
3410 dragable.x: 0 0 0;
3411 dragable.y: 1 1 0;
3412 dragable.confine: "elm.swallow.bar";
3413 description { state: "default" 0.0;
3414 color: 0 0 0 0;
3415 min: 16 16;
3416 max: 16 16;
3417 fixed: 1 1;
3418 rel1.relative: 0.0 0.5;
3419 rel1.to_x: "elm.swallow.bar";
3420 rel2.relative: 1.0 0.5;
3421 rel2.to_x: "elm.swallow.bar";
3422 visible: 0;
3423 }
3424 description { state: "show" 0.0;
3425 inherit: "default" 0.0;
3426 visible: 1;
3427 }
3428 }
3429 part { name: "knob2";
3430 nomouse;
3431 description { state: "default" 0.0;
3432 image.normal: "knob";
3433 fixed: 1 1;
3434 min: 12 12;
3435 step: 2 2;
3436 max: 32 32; // XXX allow bigger sizes with more knob images
3437 rel1.to: "elm.dragable2.slider";
3438 rel1.offset: -4 -4;
3439 rel2.to: "elm.dragable2.slider";
3440 rel2.offset: 3 3;
3441 visible: 0;
3442 }
3443 description { state: "show" 0.0;
3444 inherit: "default" 0.0;
3445 visible: 1;
3446 }
3447 description { state: "clicked" 0.0;
3448 inherit: "default" 0.0;
3449 }
3450 }
3451 part { name: "slideevent2"; type: RECT; repeat_events: 1;
3452 scale: 1;
3453 nomouse;
3454 ignore_flags: ON_HOLD;
3455 dragable.events: "elm.dragable2.slider";
3456 description { state: "default" 0.0;
3457 fixed: 1 1;
3458 rel1.to: "elm.dragable2.slider";
3459 rel2.to: "elm.dragable2.slider";
3460 color: 0 0 0 0;
3461 visible: 0;
3462 }
3463 description { state: "show" 0.0;
3464 inherit: "default" 0.0;
3465 visible: 1;
3466 }
3467 }
3468 part { name: "elm.track2.slider"; type: SWALLOW; mouse_events: 0;
3469 description { state: "default" 0.0;
3470 rel1.to: "elm.dragable2.slider";
3471 rel2.to: "elm.dragable2.slider";
3472 visible: 0;
3473 }
3474 description { state: "show" 0.0;
3475 inherit: "default" 0.0;
3476 visible: 1;
3477 }
3478 }
3479 part { name: "event"; type: RECT;
3480 description { state: "default" 0.0;
3481 color: 0 0 0 0;
3482 visible: 0;
3483 }
3484 description { state: "disabled" 0.0;
3485 inherit: "default" 0.0;
3486 visible: 1;
3487 }
3488 }
3489 }
3490 programs {
3491 program {
3492 signal: "mouse,down,1"; source: "elm.dragable.slider";
3493 action: STATE_SET "clicked" 0.0;
3494 target: "knob";
3495 }
3496 program {
3497 signal: "mouse,up,1"; source: "elm.dragable.slider";
3498 action: STATE_SET "default" 0.0;
3499 target: "knob";
3500 }
3501 program {
3502 signal: "elm,slider,range,enable";
3503 source: "elm";
3504 script {
3505 set_int(range, 1);
3506 set_state(PART:"button2", "show", 0.0);
3507 set_state(PART:"elm.dragable2.slider", "show", 0.0);
3508 set_state(PART:"knob2", "show", 0.0);
3509 set_state(PART:"slideevent2", "show", 0.0);
3510 set_state(PART:"elm.track2.slider", "show", 0.0);
3511 update_glow();
3512 new m = get_int(slmode);
3513 eval_mode(m);
3514 }
3515 }
3516 program {
3517 signal: "elm,slider,range,disable";
3518 source: "elm";
3519 script {
3520 set_int(range, 0);
3521 set_state(PART:"button2", "default", 0.0);
3522 set_state(PART:"elm.dragable2.slider", "default", 0.0);
3523 set_state(PART:"knob2", "default", 0.0);
3524 set_state(PART:"slideevent2", "default", 0.0);
3525 set_state(PART:"elm.track2.slider", "default", 0.0);
3526 set_state(PART:"glow", "default", 0.0);
3527 new m = get_int(slmode);
3528 eval_mode(m);
3529 }
3530 }
3531 program {
3532 signal: "drag";
3533 source: "elm.dragable*";
3534 script {
3535 new r;
3536 r = get_int(range);
3537 if (r)
3538 update_glow();
3539 }
3540 }
3541 program {
3542 signal: "elm,state,indicator,show"; source: "elm";
3543 action: SIGNAL_EMIT "elm,popup,show" "elm";
3544 after: "popup_show2";
3545 }
3546 program {
3547 signal: "elm,state,indicator,hide"; source: "elm";
3548 action: SIGNAL_EMIT "elm,popup,hide" "elm";
3549 after: "popup_hide2";
3550 }
3551 program {
3552 signal: "mouse,down,1"; source: "slideevent";
3553 action: SIGNAL_EMIT "elm,popup,show" "elm";
3554 after: "popup_show2";
3555 }
3556 program { name: "popup_show2";
3557 action: STATE_SET "hidden" 0.0;
3558 target: "button";
3559 }
3560 program {
3561 signal: "mouse,up,1"; source: "slideevent";
3562 action: SIGNAL_EMIT "elm,popup,hide" "elm";
3563 after: "popup_hide2";
3564 }
3565 program { name: "popup_hide2";
3566 action: STATE_SET "default" 0.0;
3567 target: "button";
3568 }
3569 program {
3570 signal: "mouse,down,1"; source: "slideevent2";
3571 action: SIGNAL_EMIT "elm,popup,show" "elm";
3572 after: "popup2_show2";
3573 }
3574 program { name: "popup2_show2";
3575 action: STATE_SET "show" 0.0;
3576 target: "button2";
3577 }
3578 program {
3579 signal: "mouse,up,1"; source: "slideevent2";
3580 action: SIGNAL_EMIT "elm,popup,hide" "elm";
3581 after: "popup2_hide2";
3582 }
3583 program { name: "popup2_hide2";
3584 action: STATE_SET "hidden" 0.0;
3585 target: "button2";
3586 }
3587 program {
3588 signal: "elm,state,text,visible"; source: "elm";
3589 script {
3590 new m = get_int(slmode);
3591 m |= LABEL; set_int(slmode, m);
3592 eval_mode(m);
3593 }
3594 }
3595 program {
3596 signal: "elm,state,text,hidden"; source: "elm";
3597 script {
3598 new m = get_int(slmode);
3599 m &= ~LABEL; set_int(slmode, m);
3600 eval_mode(m);
3601 }
3602 }
3603 program {
3604 signal: "elm,state,icon,visible"; source: "elm";
3605 script {
3606 new m = get_int(slmode);
3607 m |= ICON; set_int(slmode, m);
3608 eval_mode(m);
3609 }
3610 }
3611 program {
3612 signal: "elm,state,icon,hidden"; source: "elm";
3613 script {
3614 new m = get_int(slmode);
3615 m &= ~ICON; set_int(slmode, m);
3616 eval_mode(m);
3617 }
3618 }
3619 program { name: "end_show";
3620 signal: "elm,state,end,visible"; source: "elm";
3621 script {
3622 new m = get_int(slmode);
3623 m |= END; set_int(slmode, m);
3624 eval_mode(m);
3625 }
3626 }
3627 program { name: "end_hide";
3628 signal: "elm,state,end,hidden"; source: "elm";
3629 script {
3630 new m = get_int(slmode);
3631 m &= ~END; set_int(slmode, m);
3632 eval_mode(m);
3633 }
3634 }
3635 program {
3636 signal: "elm,state,units,visible"; source: "elm";
3637 script {
3638 new m = get_int(slmode);
3639 m |= UNITS; set_int(slmode, m);
3640 eval_mode(m);
3641 }
3642 }
3643 program {
3644 signal: "elm,state,units,visible"; source: "elm";
3645 action: SIGNAL_EMIT "limits:limits,visible" "elm";
3646 }
3647 program {
3648 signal: "elm,state,units,hidden"; source: "elm";
3649 action: STATE_SET "default" 0.0;
3650 script {
3651 new m = get_int(slmode);
3652 m &= ~UNITS; set_int(slmode, m);
3653 eval_mode(m);
3654 }
3655 }
3656 program {
3657 signal: "elm,state,units,hidden"; source: "elm";
3658 action: SIGNAL_EMIT "limits:limits,hide" "elm";
3659 }
3660 program {
3661 signal: "elm,state,inverted,on"; source: "elm";
3662 script {
3663 new m = get_int(slmode);
3664 m |= INVERT; set_int(slmode, m);
3665 eval_mode(m);
3666 }
3667 }
3668 program {
3669 signal: "elm,state,inverted,off"; source: "elm";
3670 script {
3671 new m = get_int(slmode);
3672 m &= ~INVERT; set_int(slmode, m);
3673 eval_mode(m);
3674 }
3675 }
3676 program {
3677 signal: "elm,state,disabled"; source: "elm";
3678 script {
3679 new m = get_int(slmode);
3680 m |= DISABLE; set_int(slmode, m);
3681 eval_mode(m);
3682 }
3683 }
3684 program {
3685 signal: "elm,state,enabled"; source: "elm";
3686 script {
3687 new m = get_int(slmode);
3688 m &= ~DISABLE; set_int(slmode, m);
3689 eval_mode(m);
3690 }
3691 }
3692 }
3693#undef ICON
3694#undef LABEL
3695#undef END
3696#undef UNITS
3697#undef MASKBITS
3698#undef INVERT
3699#undef DISABLE
3700#endif
3701} 2909}