summaryrefslogtreecommitdiff
path: root/legacy/elementary/data
diff options
context:
space:
mode:
authorHyoyoung Chang <hyoyoung@gmail.com>2012-02-23 07:39:10 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-02-23 07:39:10 +0000
commita9dcddd041c9e4507c95b6e219bc244b725bc89f (patch)
tree806f510aaf63328eef8c5e22e40c53a001b41582 /legacy/elementary/data
parent7ab200383d1b18fb8d409c38a28b6154b8a2416e (diff)
From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_genlist - add edit_mode feature (3/3) As we discussed in 2011 May ( http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg32498.html ). I post edit_mode patch. It almost made by Seunggyun Kim. I fixed some bugs and complaint to current genlist. Two public apis are introduced. +EAPI void elm_genlist_edit_mode_set(Evas_Object *obj, Eina_Bool edit_mode); +EAPI Eina_Bool elm_genlist_edit_mode_get(const Evas_Object *obj); And one attribute is added in genlist item class + const char *edit_item_style; It can used for editing and deleting in genlist. SVN revision: 68309
Diffstat (limited to 'legacy/elementary/data')
-rw-r--r--legacy/elementary/data/themes/widgets/genlist.edc362
1 files changed, 362 insertions, 0 deletions
diff --git a/legacy/elementary/data/themes/widgets/genlist.edc b/legacy/elementary/data/themes/widgets/genlist.edc
index 2be6b25..5d0766c 100644
--- a/legacy/elementary/data/themes/widgets/genlist.edc
+++ b/legacy/elementary/data/themes/widgets/genlist.edc
@@ -9112,4 +9112,366 @@ group { name: "elm/genlist/item_odd/mode/default";
9112 } 9112 }
9113 } 9113 }
9114} 9114}
9115group { name: "elm/genlist/item/edit/default";
9116 data.item: "contents" "elm.edit.icon.1 elm.edit.icon.2";
9117 data.item: "stacking" "above";
9118 data.item: "selectraise" "on";
9115 9119
9120 images {
9121 image: "bt_sm_base1.png" COMP;
9122 image: "bt_sm_shine.png" COMP;
9123 image: "bt_sm_hilight.png" COMP;
9124 image: "ilist_1.png" COMP;
9125 image: "ilist_2.png" COMP;
9126 image: "ilist_item_shadow.png" COMP;
9127 }
9128 parts {
9129 part {
9130 name: "event";
9131 type: RECT;
9132 repeat_events: 1;
9133 description {
9134 state: "default" 0.0;
9135 color: 0 0 0 0;
9136 }
9137 }
9138 part {
9139 name: "base_sh";
9140 mouse_events: 0;
9141 description {
9142 state: "default" 0.0;
9143 align: 0.0 0.0;
9144 min: 0 10;
9145 fixed: 1 1;
9146 rel1 {
9147 to: "base";
9148 relative: 0.0 1.0;
9149 offset: 0 0;
9150 }
9151 rel2 {
9152 to: "base";
9153 relative: 1.0 1.0;
9154 offset: -1 0;
9155 }
9156 image {
9157 normal: "ilist_item_shadow.png";
9158 }
9159 fill.smooth: 0;
9160 }
9161 description {
9162 state: "default" 1.0;
9163 inherit: "default" 0.0;
9164 visible: 0;
9165 }
9166 }
9167 part {
9168 name: "base";
9169 mouse_events: 0;
9170 description {
9171 state: "default" 0.0;
9172 rel1 {
9173 relative: 0.0 0.0;
9174 }
9175 rel2 {
9176 relative: 1.0 1.0;
9177 }
9178 image {
9179 normal: "ilist_1.png";
9180 border: 2 2 2 2;
9181 }
9182 fill.smooth: 0;
9183 }
9184 description {
9185 state: "default" 1.0;
9186 inherit: "default" 0.0;
9187 image.normal: "ilist_2.png";
9188 }
9189 }
9190 part { name: "bg";
9191 clip_to: "disclip";
9192 mouse_events: 0;
9193 description { state: "default" 0.0;
9194 visible: 0;
9195 color: 255 255 255 0;
9196 image {
9197 normal: "bt_sm_base1.png";
9198 border: 6 6 6 6;
9199 }
9200 image.middle: SOLID;
9201 }
9202 description { state: "default" 0.1;
9203 inherit: "default" 0.0;
9204 }
9205 description { state: "selected" 0.0;
9206 inherit: "default" 0.0;
9207 visible: 1;
9208 color: 255 255 255 255;
9209 rel1 {
9210 relative: 0.0 0.0;
9211 offset: -2 -2;
9212 }
9213 rel2 {
9214 to_x: "elm.padding.right";
9215 relative: 1.0 1.0;
9216 offset: 1 1;
9217 }
9218 }
9219 description {
9220 state: "selected" 1.0;
9221 inherit: "selected" 0.0;
9222 }
9223 }
9224 part { name: "elm.padding.left";
9225 type: RECT;
9226 scale: 1;
9227 description { state: "default" 0.0;
9228 min: 10 0;
9229 fixed: 1 0;
9230 visible: 0;
9231 align: 0.0 0.0;
9232 rel2.relative: 0.0 1.0;
9233 }
9234 }
9235 part { name: "elm.padding.right";
9236 type: RECT;
9237 scale: 1;
9238 description { state: "default" 0.0;
9239 min: 5 0;
9240 fixed: 1 0;
9241 visible: 0;
9242 align: 1.0 0.0;
9243 rel1.relative: 1.0 0.0;
9244 }
9245 }
9246 part { name: "fg1";
9247 clip_to: "disclip";
9248 mouse_events: 0;
9249 description { state: "default" 0.0;
9250 visible: 0;
9251 color: 255 255 255 0;
9252 rel1.to: "bg";
9253 rel2.relative: 1.0 0.5;
9254 rel2.to: "bg";
9255 image {
9256 normal: "bt_sm_hilight.png";
9257 border: 6 6 6 0;
9258 }
9259 }
9260 description { state: "selected" 0.0;
9261 inherit: "default" 0.0;
9262 visible: 1;
9263 color: 255 255 255 255;
9264 }
9265 }
9266 part { name: "fg2";
9267 clip_to: "disclip";
9268 mouse_events: 0;
9269 description { state: "default" 0.0;
9270 visible: 0;
9271 color: 255 255 255 0;
9272 rel1.to: "bg";
9273 rel2.to: "bg";
9274 image {
9275 normal: "bt_sm_shine.png";
9276 border: 6 6 6 0;
9277 }
9278 }
9279 description { state: "selected" 0.0;
9280 inherit: "default" 0.0;
9281 visible: 1;
9282 color: 255 255 255 255;
9283 }
9284 }
9285 part { name: "elm.edit.icon.1";
9286 clip_to: "disclip";
9287 type: SWALLOW;
9288 description { state: "default" 0.0;
9289 fixed: 1 0;
9290 align: 1.0 0.5;
9291 color: 255 255 255 255;
9292 rel1 {
9293 to_x: "elm.padding.left";
9294 relative: 1.0 0.0;
9295 }
9296 rel2 {
9297 to_x: "elm.padding.left";
9298 relative: 1.0 1.0;
9299 }
9300 }
9301 description { state: "enabled" 0.0;
9302 inherit: "default" 0.0;
9303 align: 0.0 0.5;
9304 }
9305 }
9306 part { name: "elm.padding.icon1.right";
9307 type: RECT;
9308 scale: 1;
9309 description { state: "default" 0.0;
9310 min: 5 0;
9311 fixed: 1 0;
9312 visible: 0;
9313 align: 0.0 0.0;
9314 rel1 {
9315 relative: 1.0 0.0;
9316 to_x: "elm.edit.icon.1";
9317 }
9318 rel2.to_x: "elm.edit.icon.1";
9319 }
9320 }
9321 part { name: "elm.swallow.edit.content";
9322 clip_to: "disclip";
9323 type: SWALLOW;
9324 mouse_events: 1;
9325 scale: 1;
9326 description { state: "default" 0.0;
9327 rel1 {
9328 relative: 1.0 0.0;
9329 to_x: "elm.padding.icon1.right";
9330 }
9331 rel2 {
9332 relative: 0.0 1.0;
9333 to_x: "elm.padding.icon2.left";
9334 }
9335 }
9336 }
9337 part { name: "elm.padding.icon2.left";
9338 type: RECT;
9339 scale: 1;
9340 description { state: "default" 0.0;
9341 min: 5 0;
9342 fixed: 1 0;
9343 visible: 0;
9344 color: 255 0 255 255;
9345 align: 0.0 0.0;
9346 rel1 {
9347 relative: 0.0 0.0;
9348 to_x: "elm.edit.icon.2";
9349 }
9350 rel2 {
9351 relative: 0.0 1.0;
9352 to_x: "elm.edit.icon.2";
9353 }
9354 }
9355 }
9356 part { name: "elm.edit.icon.2";
9357 clip_to: "disclip";
9358 type: SWALLOW;
9359 description { state: "default" 0.0;
9360 fixed: 1 0;
9361 align: 0.0 0.5;
9362 aspect: 1.0 1.0;
9363 aspect_preference: VERTICAL;
9364 rel1 {
9365 relative: 0.0 0.0;
9366 to_x: "elm.padding.right";
9367 }
9368 rel2 {
9369 relative: 0.0 1.0;
9370 to_x: "elm.padding.right";
9371 }
9372 }
9373 description { state: "enabled" 0.0;
9374 inherit: "default" 0.0;
9375 align: 1.0 0.5;
9376 }
9377 }
9378 part { name: "disclip";
9379 type: RECT;
9380 description { state: "default" 0.0;
9381 rel1.to: "bg";
9382 rel2.to: "bg";
9383 }
9384 description { state: "disabled" 0.0;
9385 inherit: "default" 0.0;
9386 color: 255 255 255 64;
9387 }
9388 }
9389 }
9390 programs {
9391 program {
9392 name: "go_active";
9393 signal: "elm,state,selected";
9394 source: "elm";
9395 script {
9396 new st[31];
9397 new Float:vl;
9398 get_state(PART:"base", st, 30, vl);
9399 set_state(PART:"bg", "selected", vl);
9400 set_state(PART:"fg1", "selected", vl);
9401 set_state(PART:"fg2", "selected", vl);
9402 }
9403 }
9404 program {
9405 name: "go_passive";
9406 signal: "elm,state,unselected";
9407 source: "elm";
9408 script {
9409 new st[31];
9410 new Float:vl;
9411 get_state(PART:"base", st, 30, vl);
9412 set_state(PART:"bg", "default", vl);
9413 set_state(PART:"fg1", "default", vl);
9414 set_state(PART:"fg2", "default", vl);
9415 }
9416 }
9417 program {
9418 name: "odd";
9419 signal: "elm,state,odd";
9420 source: "elm";
9421 action: STATE_SET "default" 1.0;
9422 target: "base_sh";
9423 target: "base";
9424 }
9425 program {
9426 name: "even";
9427 signal: "elm,state,even";
9428 source: "elm";
9429 action: STATE_SET "default" 0.0;
9430 target: "base_sh";
9431 target: "base";
9432 }
9433 program { name: "go_disabled";
9434 signal: "elm,state,disabled";
9435 source: "elm";
9436 action: STATE_SET "disabled" 0.0;
9437 target: "disclip";
9438 }
9439 program { name: "go_enabled";
9440 signal: "elm,state,enabled";
9441 source: "elm";
9442 action: STATE_SET "default" 0.0;
9443 target: "disclip";
9444 }
9445 // edit mode signal
9446 program { name: "edit_mode_enabled_effect";
9447 signal: "elm,state,edit,enabled,effect";
9448 source: "elm";
9449 action: STATE_SET "enabled" 0.0;
9450 transition: DECELERATE 0.7;
9451 target: "elm.edit.icon.1";
9452 target: "elm.edit.icon.2";
9453 }
9454 program { name: "edit_mode_disabled_effect";
9455 signal: "elm,state,edit,disabled,effect";
9456 source: "elm";
9457 action: STATE_SET "default" 0.0;
9458 transition: DECELERATE 0.7;
9459 target: "elm.edit.icon.1";
9460 target: "elm.edit.icon.2";
9461 }
9462 program { name: "edit_mode_enabled";
9463 signal: "elm,state,edit,enabled";
9464 source: "elm";
9465 action: STATE_SET "enabled" 0.0;
9466 target: "elm.edit.icon.1";
9467 target: "elm.edit.icon.2";
9468 }
9469 program { name: "edit_mode_disabled";
9470 signal: "elm,state,edit,disabled";
9471 source: "elm";
9472 action: STATE_SET "default" 0.0;
9473 target: "elm.edit.icon.1";
9474 target: "elm.edit.icon.2";
9475 }
9476 }
9477}