~enlightenment-git/enlightenment-svn/e-modules-extra

« back to all changes in this revision

Viewing changes to eektool/src/e_mod_main.h

  • Committer: leif
  • Date: 2012-04-08 22:55:43 UTC
  • Revision ID: svn-v4:7cbeb6ba-43b4-40fd-8cce-4c39aea84d33:trunk/E-MODULES-EXTRA:69958
New gadget that displays results of a command line

This gadget is inspired by Geektool for Mac OS.
Yet, it misses
    - A GUI font configuration (/inline styles for edje TEXTBLOCKs?)
    - Display/refresh of images

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef E_MOD_MAIN_H
 
2
#define E_MOD_MAIN_H
 
3
 
 
4
#ifdef ENABLE_NLS
 
5
# include <libintl.h>
 
6
# define D_(string) dgettext(PACKAGE, string)
 
7
#else
 
8
# define bindtextdomain(domain,dir)
 
9
# define bind_textdomain_codeset(domain,codeset)
 
10
# define D_(string) (string)
 
11
#endif
 
12
 
 
13
#ifndef __UNUSED__
 
14
# define __UNUSED__ __attribute__((unused))
 
15
#endif
 
16
 
 
17
typedef struct _Config Config;
 
18
typedef struct _Config_Item Config_Item;
 
19
 
 
20
struct _Config
 
21
{
 
22
   E_Module *module;
 
23
   E_Config_Dialog *config_dialog;
 
24
   Eina_List *instances;
 
25
   Eina_List *items;
 
26
   E_Menu *menu;
 
27
};
 
28
 
 
29
struct _Config_Item
 
30
{
 
31
   const char *id;
 
32
 
 
33
   double refresh_interval;
 
34
   Eina_Stringshare *cmd;
 
35
};
 
36
 
 
37
EAPI extern E_Module_Api e_modapi;
 
38
 
 
39
EAPI void *e_modapi_init(E_Module *m);
 
40
EAPI int   e_modapi_shutdown(E_Module *m);
 
41
EAPI int   e_modapi_save(E_Module *m);
 
42
 
 
43
void _config_eektool_module(Config_Item *ci);
 
44
void _eektool_config_updated(Config_Item *ci);
 
45
 
 
46
extern Config *eektool_config;
 
47
 
 
48
#endif