[Dialogue] Add the scroller style for dialogue theme set
[framework/uifw/efl-theme-tizen.git] / themes / widgets / genlist / genlist.edc
index 406fbb0..b37c39c 100644 (file)
@@ -1,17 +1,18 @@
 /*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
  *
- *  Licensed under the Apache License, Version 2.0 (the "License");
- *  you may not use this file except in compliance with the License.
- *  You may obtain a copy of the License at
+ * PROPRIETARY/CONFIDENTIAL
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing, software
- *  distributed under the License is distributed on an "AS IS" BASIS,
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *  See the License for the specific language governing permissions and
- *  limitations under the License.
+ * This software is the confidential and proprietary information of SAMSUNG
+ * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
+ * software is owned by Samsung and you shall not disclose such Confidential
+ * Information and shall use it only in accordance with the terms of the license
+ * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
+ * representations or warranties about the suitability of the software, either
+ * express or implied, including but not limited to the implied warranties of
+ * merchantability, fitness for a particular purpose, or non-infringement.
+ * SAMSUNG shall not be liable for any damages suffered by licensee arising out
+ * of or releated to this software.
  *
  */
 
 
 #include "genlist_normal.edc"
 #include "genlist_sweep.edc"
-#include "genlist_group_index.edc"
+#include "genlist_groupindex.edc"
 #include "genlist_expandable.edc"
-#include "genlist_edit.edc"
+#include "genlist_decorate.edc"
+#include "../scroller.edc"
+
+   group { name: "elm/genlist/base/dialogue";
+      alias: "elm/scroller/base/dialogue";
+      inherit: "elm/scroller/base/default";
+
+         script {
+         public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
+         public timer0(val) {
+            new v;
+            v = get_int(sbvis_v);
+            if (v) {
+               v = get_int(sbalways_v);
+               if (!v) {
+                  emit("do-hide-vbar", "");
+                  set_int(sbvis_v, 0);
+               }
+            }
+            v = get_int(sbvis_h);
+            if (v) {
+               v = get_int(sbalways_h);
+               if (!v) {
+                  emit("do-hide-hbar", "");
+                  set_int(sbvis_h, 0);
+               }
+            }
+            set_int(sbvis_timer, 0);
+            return 0;
+         }
+      }
+      parts {
+         part { name: "elm.padding.left";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_16_INC 0;
+               fixed: 1 0;
+               visible: 0;
+               align: 0.0 0.0;
+               rel2.relative: 0.0  1.0;
+               color: GENLIST_PART_BG_COLOR_INC;
+            }
+         }
+         part { name: "elm.padding.right";
+            type: RECT;
+            scale: 1;
+            description { state: "default" 0.0;
+               min: GENLIST_PADDING_16_INC 0;
+               fixed: 1 0;
+               visible: 0;
+               align: 1.0 0.0;
+               rel1.relative: 1.0  0.0;
+               color: GENLIST_PART_BG_COLOR_INC;
+            }
+         }
+         part { name: "elm.swallow.content";
+            clip_to: "clipper";
+            type: SWALLOW;
+            scale: 1;
+            description { state: "default" 0.0;
+               rel1 {
+                  relative: 1.0 0.0;
+                  to_x: "elm.padding.left";
+               }
+               rel2 {
+                  relative: 0.0 1.0;
+                  to_x: "elm.padding.right";
+               }
+               color: 0 0 0 0;
+            }
+         }
+         part { name: "sb_vbar";
+            type: RECT;
+            mouse_events: 0;
+            scale: 1;
+            description { state: "default" 0.0;
+               fixed: 1 1;
+               visible: 0;
+               min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
+               align: 1.0 0.0;
+               rel1 {
+                  relative: 1.0 0.0;
+                  offset:   0 0;
+                  to_y:     "bg";
+                  to_x:     "bg";
+               }
+               rel2 {
+                  relative: 1.0 1.0;
+                  offset:   -1 -1;
+                  to_y:     "sb_hbar";
+                  to_x:     "bg";
+               }
+            }
+         }
+      }
+   }
 
    group { name: "elm/list/base/matchlist";
       script {