summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-08-22 10:29:23 +0200
committerDave Andreoli <dave@gurumeditation.it>2015-08-22 10:29:23 +0200
commit8c1b4ecc12223fb43b936b079246a5768393366c (patch)
treefe48980838347e7eb41a6f31e62a91810aa205c9
parente2cb31ce1010aa3ed7cbc193a6b98dd69cbd93d6 (diff)
Some improvement to the geany configs
* color support for all lazyedc syntax * some initial snippets for PythonEFL * usefull macro in the dc template
-rw-r--r--filedefs/filetypes.Edje.conf4
-rw-r--r--snippets.conf6
-rw-r--r--templates/files/main.edc18
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 @@
18[keywords] 18[keywords]
19# primary will draw in BLU (with default colors) and have precedence on secondary 19# primary will draw in BLU (with default colors) and have precedence on secondary
20# used for edc properties, like "name:" or "state:" 20# used for edc properties, like "name:" or "state:"
21primary=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_mode select_mode multiline source source2 source3 source4 source5 source6 text_class text_source ignore_flags cursor_mode in orientation program_source vertical horizontal program_remove part_remove physics_body insert_before insert_after pointer_mode precise_is_inside use_alternate_font_metrics access events threshold spread prefer weight position span limit minmul step tween scale_hint origin repch size_range fit filter homogeneous backface_cull depth z light_on hardness density material sleep damping ignore_part_pos friction restitution mass linear angular center alpha perspective_on on light perspective center zplane focal int double string bool choice gravity rate 21primary=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 select_mode multiline source source2 source3 source4 source5 source6 text_class text_source ignore_flags cursor_mode in orientation program_source vertical horizontal program_remove part_remove physics_body insert_before insert_after pointer_mode precise_is_inside use_alternate_font_metrics access events threshold spread prefer weight position span limit minmul step tween scale_hint origin repch size_range fit filter homogeneous backface_cull depth z light_on hardness density material sleep damping ignore_part_pos friction restitution mass linear angular center alpha perspective_on on light perspective center zplane focal int double string bool choice gravity rate groups target_group vis hid scale noscale precise noprecise repeat norepeat mouse nomouse broadcast nobroadcast before after ignore mask pointer alt_font clip
22 22
23# secondary will draw in RED (with default colors) 23# secondary will draw in RED (with default colors)
24# used for edc blocks, like "parts{}" or "part{}" 24# used for edc blocks, like "parts{}" or "part{}"
25secondary=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 25secondary=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
26 26
27 27
28[lexer_properties] 28[lexer_properties]
diff --git a/snippets.conf b/snippets.conf
index aa02108..08de7c4 100644
--- a/snippets.conf
+++ b/snippets.conf
@@ -11,7 +11,11 @@
11# NOTE: default snippets file (with docs) at: /usr/share/geany/snippets.conf 11# NOTE: default snippets file (with docs) at: /usr/share/geany/snippets.conf
12# 12#
13 13
14 14[Python]
15# Python-EFL
16expand=size_hint_expand=EXPAND_BOTH
17fill=size_hint_fill=FILL_BOTH
18align=size_hint_align=(0.0,0.5)
15 19
16[Edje] 20[Edje]
17# blocks 21# 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 @@
1 1
2{fileheader} 2{fileheader}
3 3
4//// GENERIC MACROS ///////////////////////////////////////////////////////////
5#define ASPECT_FILL(_ASPECT) \
6 aspect: _ASPECT _ASPECT; aspect_preference: NONE;
7#define TILED_PATTERN(_WIDTH, _HEIGHT) \
8 fill { size { relative: 0.0 0.0; offset: _WIDTH _HEIGHT; } }
9#define TILED_HORIZ(_WIDTH) \
10 fill { size { relative: 0.0 1.0; offset: _WIDTH 0; } }
11#define FIXED_SIZE(_WIDTH, _HEIGHT) \
12 min: _WIDTH _HEIGHT; max: _WIDTH _HEIGHT; fixed: 1 1;
13#define DBG_SHOW(_PART, _R, _G, _B) \
14 part { name: "dbg_show"_PART; \
15 type: RECT; mouse_events: 0; \
16 description { state: "default" 0.0; \
17 rel1.to: _PART; rel2.to: _PART; \
18 color: _R _G _B 50; } }
19#define SHOW(_PART) DBG_SHOW(_PART, 100, 0, 0)
20
21
4data { 22data {
5 item: "name" "val"; 23 item: "name" "val";
6} 24}