Some improvement to the geany configs

* color support for all lazyedc syntax
* some initial snippets for PythonEFL
* usefull macro in the dc template
This commit is contained in:
Davide Andreoli 2015-08-22 10:29:23 +02:00
parent e2cb31ce10
commit 8c1b4ecc12
3 changed files with 25 additions and 3 deletions

View File

@ -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_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
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 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
# 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]

View File

@ -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

View File

@ -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";
}