Enlightenment CVS committal
Author : handyande
Project : misc
Module : engage
Dir : misc/engage/src
Modified Files:
config.c
Log Message:
Slightly more user friently options, hmm, may not be perfect, but it is there now :)
===================================================================
RCS file: /cvsroot/enlightenment/misc/engage/src/config.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- config.c 4 May 2004 15:18:38 -0000 1.11
+++ config.c 5 May 2004 15:53:48 -0000 1.12
@@ -11,31 +11,46 @@
{
int ret;
- ecore_config_default_int("engage.options.width", 1024);
- ecore_config_default_int("engage.options.height", 100);
- ecore_config_default_theme("engage.options.theme", "gentoo");
+ ecore_config_create_int("engage.options.width", 1024, 'W', "width",
+ "The overall width of the application area");
+ ecore_config_create_int("engage.options.height", 100, 'H', "height",
+ "The overall height of the application area");
+ ecore_config_create_theme("engage.options.theme", "gentoo", 't', "theme",
+ "The theme name to use (minus path and extension)");
/* not technically correct - iconsets should do this, but it looks better for
everything bar 'gentoo' - and we all have the others installed ;) */
ecore_config_set_theme_preview_group("engage.options.theme", "Terminal");
- ecore_config_default_string("engage.options.engine", "software");
+ ecore_config_create_string("engage.options.engine", "software", 'e',"engine",
+ "The X11 engine to use - either software or gl");
options.icon_path = PACKAGE_DATA_DIR "/icons/";
- ecore_config_default_int_bound("engage.options.mode", OM_BELOW, 0, 1, 1);
- ecore_config_default_int_bound("engage.options.grab_min_icons", 1, 0, 1, 1);
- ecore_config_default_int_bound("engage.options.grab_app_icons", 1, 0, 1, 1);
+ ecore_config_create_int_bound("engage.options.mode", OM_BELOW, 0, 1, 1, 'm',
+ "mode", "The display mode, 0 = ontop + shaped, 1 = below + transp");
+ ecore_config_create_int_bound("engage.options.grab_min_icons", 1, 0, 1, 1,'g',
+ "grab-min", "Capture the icons of minimised applications");
+ ecore_config_create_int_bound("engage.options.grab_app_icons", 1, 0, 1, 1,'G',
+ "grab-app", "Capture the icons of all running applications");
- ecore_config_default_int("engage.options.size", 32);
- ecore_config_default_int("engage.options.spacing", 4);
- ecore_config_default_float("engage.options.zoom_factor", 2.0);
- ecore_config_default_int("engage.options.arrow_size", 6);
- ecore_config_default_float("engage.options.zoom_duration", 0.1);
+ ecore_config_create_int("engage.options.size", 32, 's', "size",
+ "Size of icons in default state");
+ ecore_config_create_int("engage.options.spacing", 4, 'S', "spacing",
+ "Space in pixels between each icon");
+ ecore_config_create_float("engage.options.zoom_factor", 2.0, 'z', "zoom",
+ "Zoom factor of the icons - 1.0 == 100% == nozoom");
+ ecore_config_create_int("engage.options.arrow_size", 6, 'a', "arrow-size",
+ "Size (in pixels) of the status arrows");
+ ecore_config_create_float("engage.options.zoom_duration", 0.1, 'd',
+ "zoom-time", "Time taken (in seconds) for icons to zoom");
options.tt_txt_color = 0x00000000;
options.tt_shd_color = 0x7f000000;
options.bg_fore = 0x7f000000;
options.bg_back = 0x7fffffff;
- ecore_config_default_string("engage.options.tt_fa", "Vera");
- ecore_config_default_int("engage.options.tt_fs", 8);
- ecore_config_default_float("engage.options.icon_appear_duration", 0.1);
+ ecore_config_create_string("engage.options.tt_fa", "Vera", 'f', "font",
+ "The font to use for application titles etc.");
+ ecore_config_create_int("engage.options.tt_fs", 8, 'F', "font-size",
+ "The font size (in points)");
+ ecore_config_create_float("engage.options.icon_appear_duration", 0.1, 'D',
+ "appear-time", "Time taken (in seconds) for new icons to appear");
ecore_config_load();
ret = ecore_config_args_parse(argc, argv);
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs