davemds pushed a commit to branch master.

http://git.enlightenment.org/editors/geany-configs.git/commit/?id=8c1b4ecc12223fb43b936b079246a5768393366c

commit 8c1b4ecc12223fb43b936b079246a5768393366c
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Sat Aug 22 10:29:23 2015 +0200

    Some improvement to the geany configs
    
    * color support for all lazyedc syntax
    * some initial snippets for PythonEFL
    * usefull macro in the dc template
---
 filedefs/filetypes.Edje.conf |  4 ++--
 snippets.conf                |  6 +++++-
 templates/files/main.edc     | 18 ++++++++++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/filedefs/filetypes.Edje.conf b/filedefs/filetypes.Edje.conf
index 88d0f5c..fc421b1 100644
--- a/filedefs/filetypes.Edje.conf
+++ b/filedefs/filetypes.Edje.conf
@@ -18,11 +18,11 @@
 [keywords]
 # primary will draw in BLU (with default colors) and have precedence on 
secondary
 # used for edc properties, like "name:" or "state:"
-primary=item file font tag image base_scale tone inherit_only broadcast_signal 
target_groups script_only script_recursion base external name type state min 
max normal color color2 color3 clip_to signal source action transition target 
targets scale align relative offset inherit to border aspect aspect_preference 
align effect size mouse_events repeat_events ellipsis fixed layout padding 
visible to_x to_y middle smooth x y confine alias color_class border_scale_by 
border_scale after entry_m [...]
+primary=item file font tag base_scale tone inherit_only broadcast_signal 
target_groups script_only script_recursion base external name type state min 
max normal color color2 color3 clip_to signal source action transition target 
targets scale align relative offset inherit to border aspect aspect_preference 
align effect size mouse_events repeat_events ellipsis fixed layout padding 
visible to_x to_y middle smooth x y confine alias color_class border_scale_by 
border_scale after entry_mode se [...]
 
 # secondary will draw in RED (with default colors)
 # used for edc blocks, like "parts{}" or "part{}"
-secondary=RECT TEXT IMAGE SWALLOW TEXTBLOCK GROUP BOX TABLE EXTERNAL PROXY 
SPACER data images set fonts styles style sounds sample vibrations externals 
collections group script parts part description programs program rel1 rel2 box 
text fill dragable limits items table physics movement_freedom faces face map 
rotation params link world sequence
+secondary=RECT rect TEXT text IMAGE image SWALLOW swallow TEXTBLOCK textblock 
GROUP group BOX box TABLE table EXTERNAL external PROXY proxy SPACER spacer 
data images set fonts styles style sounds sample vibrations externals 
collections group script parts part description desc programs program rel1 rel2 
box text fill dragable limits items table physics movement_freedom faces face 
map rotation params link world sequence
 
 
 [lexer_properties]
diff --git a/snippets.conf b/snippets.conf
index aa02108..08de7c4 100644
--- a/snippets.conf
+++ b/snippets.conf
@@ -11,7 +11,11 @@
 # NOTE: default snippets file (with docs) at: /usr/share/geany/snippets.conf
 #
 
-
+[Python]
+# Python-EFL
+expand=size_hint_expand=EXPAND_BOTH
+fill=size_hint_fill=FILL_BOTH
+align=size_hint_align=(0.0,0.5)
 
 [Edje]
 # blocks
diff --git a/templates/files/main.edc b/templates/files/main.edc
index 810a00e..8042e11 100644
--- a/templates/files/main.edc
+++ b/templates/files/main.edc
@@ -1,6 +1,24 @@
 
 {fileheader}
 
+//// GENERIC MACROS ///////////////////////////////////////////////////////////
+#define ASPECT_FILL(_ASPECT) \
+   aspect: _ASPECT _ASPECT; aspect_preference: NONE;
+#define TILED_PATTERN(_WIDTH, _HEIGHT) \
+   fill { size { relative: 0.0 0.0; offset: _WIDTH _HEIGHT; } }
+#define TILED_HORIZ(_WIDTH) \
+   fill { size { relative: 0.0 1.0; offset: _WIDTH 0; } }
+#define FIXED_SIZE(_WIDTH, _HEIGHT) \
+   min: _WIDTH _HEIGHT; max: _WIDTH _HEIGHT; fixed: 1 1;
+#define DBG_SHOW(_PART, _R, _G, _B) \
+   part { name: "dbg_show"_PART; \
+      type: RECT; mouse_events: 0; \
+      description { state: "default" 0.0; \
+         rel1.to: _PART; rel2.to: _PART; \
+         color: _R _G _B 50; } }
+#define SHOW(_PART) DBG_SHOW(_PART, 100, 0, 0)
+
+
 data {
    item: "name" "val";
 }

-- 


Reply via email to