EDC Snippets for vim snipmate
authortiago <tiago>
Tue, 13 Jul 2010 13:58:37 +0000 (13:58 +0000)
committertiago <tiago@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 13 Jul 2010 13:58:37 +0000 (13:58 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50222 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

data/vim/snippets/edc.snippets [new file with mode: 0644]

diff --git a/data/vim/snippets/edc.snippets b/data/vim/snippets/edc.snippets
new file mode 100644 (file)
index 0000000..102dbc2
--- /dev/null
@@ -0,0 +1,96 @@
+snippet col
+       collections {
+               ${1}
+       }
+
+snippet images
+       images {
+               ${1}
+       }
+
+snippet image
+       image: "${1:.png}" COMP;
+
+snippet group
+       group { name: ${1};
+               ${2}
+       }
+
+snippet part
+       part { name: "${1}";
+               type: ${2:RECT};
+               mouse_events: 0;
+               description { state: "default" 0.0;
+                       visible: 1;
+                       color: 255 255 255 255;
+                       rel1 {
+                               to_x: "${2:bg}";
+                               to_y: "${3:bg}";
+                               relative: 0.0 0.0;
+                               offset: 0 0;
+                       }
+                       rel2 {
+                               to_x: "${4:bg}";
+                               to_y: "${5:bg}";
+                               relative: 1.0 1.0;
+                               offset: -1 -1;
+                       }
+               }
+       }
+
+snippet bg
+       part { name: "${1:bg}";
+               type: RECT;
+               mouse_events: 0;
+               description { state: "default" 0.0;
+                       visible: 1;
+                       color: 0 0 0 0;
+               }
+       }
+
+snippet event
+       part { name: "${1:event}";
+               type: RECT;
+               mouse_events: 1;
+               description { state: "default" 0.0;
+                       visible: 1;
+                       color: 0 0 0 0;
+               }
+       }
+
+snippet IMAGE
+       part { name: "${1:image}";
+               type: IMAGE;
+               mouse_events: 0;
+               description { state: "default" 0.0;
+                       visible: 1;
+                       image {
+                               normal: "${2}";
+                               border: 0 0 0 0;
+                               middle: 1;
+                       }
+               }
+       }
+
+snippet desc
+       description { state: "${1}";
+               inherit: "default" 0.0;
+               ${2}
+       }
+
+snippet programs
+       programs {
+               ${1}
+       }
+
+snippet program
+       program { name: "${1}";
+               ${2}
+       }
+
+snippet clicked
+       program { name: "${1:mouse_clicked}";
+               signal: "mouse,clicked,${2:1}";
+               source: "${2:event}";
+               action: SIGNAL_EMIT "${3}" "${4}";
+       }