# include <Ecore_WinCE.h>
#endif
-#include "els_pan.h"
-#include "els_scroller.h"
-#include "els_box.h"
-#include "els_icon.h"
-
#include "elm_widget.h"
#define CRITICAL(...) EINA_LOG_DOM_CRIT(_elm_log_dom, __VA_ARGS__)
#define INF(...) EINA_LOG_DOM_INFO(_elm_log_dom, __VA_ARGS__)
#define DBG(...) EINA_LOG_DOM_DBG (_elm_log_dom, __VA_ARGS__)
-#define _(string) gettext(string)
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# define E_(string) _elm_dgettext(string)
+#else
+# define bindtextdomain(domain,dir)
+# define E_(string) (string)
+#endif
+#define N_(string) (string)
typedef struct _Elm_Config Elm_Config;
typedef struct _Elm_Module Elm_Module;
Eina_List *themes;
Eina_List *extension;
Eina_Hash *cache;
+ Eina_Hash *cache_data;
Elm_Theme *ref_theme;
Eina_List *referrers;
const char *theme;
#define ELM_SOFTWARE_SDL (_elm_engines[9])
#define ELM_SOFTWARE_16_SDL (_elm_engines[10])
#define ELM_OPENGL_SDL (_elm_engines[11])
+#define ELM_BUFFER (_elm_engines[12])
+#define ELM_EWS (_elm_engines[13])
#define ELM_FONT_TOKEN_STYLE ":style="
+#define ELM_ACCESS_MODE_OFF 0
+#define ELM_ACCESS_MODE_ON 1
+
struct _Elm_Config
{
- int config_version;
- const char *engine;
- Eina_Bool thumbscroll_enable;
- int thumbscroll_threshold;
- double thumbscroll_momentum_threshold;
- double thumbscroll_friction;
- double thumbscroll_bounce_friction;
- double page_scroll_friction;
- double bring_in_scroll_friction;
- double zoom_friction;
- Eina_Bool thumbscroll_bounce_enable;
- double thumbscroll_border_friction;
- double scale;
- int bgpixmap;
- int compositing;
- Eina_List *font_dirs;
- Eina_List *font_overlays;
- int font_hinting;
- int cache_flush_poll_interval;
- Eina_Bool cache_flush_enable;
- int image_cache;
- int font_cache;
- int edje_cache;
- int edje_collection_cache;
- int finger_size;
- double fps;
- const char *theme;
- const char *modules;
- double tooltip_delay;
- Eina_Bool cursor_engine_only;
- Eina_Bool focus_highlight_enable;
- Eina_Bool focus_highlight_animate;
- int toolbar_shrink_mode;
- Eina_Bool fileselector_expand_enable;
- Eina_Bool inwin_dialogs_enable;
- int icon_size;
- double longpress_timeout;
- Eina_Bool is_mirrored : 1;
- Eina_Bool effect_enable;
+ int config_version;
+ const char *engine;
+ unsigned char vsync;
+ unsigned char thumbscroll_enable;
+ int thumbscroll_threshold;
+ double thumbscroll_momentum_threshold;
+ double thumbscroll_friction;
+ double thumbscroll_bounce_friction;
+ double page_scroll_friction;
+ double bring_in_scroll_friction;
+ double zoom_friction;
+ unsigned char thumbscroll_bounce_enable;
+ double thumbscroll_border_friction;
+ double thumbscroll_sensitivity_friction;
+ double scroll_smooth_amount;
+ double scroll_smooth_history_weight;
+ double scroll_smooth_future_time;
+ double scroll_smooth_time_window;
+ double scale;
+ int bgpixmap;
+ int compositing;
+ Eina_List *font_dirs;
+ Eina_List *font_overlays;
+ int font_hinting;
+ int cache_flush_poll_interval;
+ unsigned char cache_flush_enable;
+ int image_cache;
+ int font_cache;
+ int edje_cache;
+ int edje_collection_cache;
+ int finger_size;
+ double fps;
+ const char *theme;
+ const char *modules;
+ double tooltip_delay;
+ unsigned char cursor_engine_only;
+ unsigned char focus_highlight_enable;
+ unsigned char focus_highlight_animate;
+ int toolbar_shrink_mode;
+ unsigned char fileselector_expand_enable;
+ unsigned char inwin_dialogs_enable;
+ int icon_size;
+ double longpress_timeout;
+ unsigned char effect_enable;
+ unsigned char desktop_entry;
+ Eina_Bool password_show_last;
+ double password_show_last_timeout;
+ double glayer_zoom_finger_factor;
+ double glayer_zoom_wheel_factor;
+ double glayer_zoom_distance_tolerance;
+ double glayer_rotate_angular_tolerance;
+ double glayer_line_min_length;
+ double glayer_line_distance_tolerance;
+ double glayer_line_angular_tolerance;
+ unsigned int glayer_flick_time_limit_ms;
+ double glayer_long_tap_start_timeout;
+ int access_mode;
+ Eina_Bool glayer_continues_enable;
+
+ /* Not part of the EET file */
+ Eina_Bool is_mirrored : 1;
+ Eina_Bool translate : 1;
};
struct _Elm_Module
int references;
};
+int _elm_ews_wm_init(void);
+void _elm_ews_wm_shutdown(void);
+void _elm_ews_wm_rescale(Elm_Theme *th, Eina_Bool use_theme);
+
void _elm_win_shutdown(void);
void _elm_win_rescale(Elm_Theme *th, Eina_Bool use_theme);
+void _elm_win_translate(void);
Eina_Bool _elm_theme_object_set(Evas_Object *parent, Evas_Object *o, const char *clas, const char *group, const char *style);
Eina_Bool _elm_theme_object_icon_set(Evas_Object *parent, Evas_Object *o, const char *group, const char *style);
void _elm_widget_type_clear(void);
void _elm_widget_focus_region_show(const Evas_Object *obj);
+void _elm_widget_top_win_focused_set(Evas_Object *obj, Eina_Bool top_win_focused);
+Eina_Bool _elm_widget_top_win_focused_get(const Evas_Object *obj);
-void _elm_unneed_ethumb(void);
+void _elm_unneed_ethumb(void);
+void _elm_unneed_web(void);
void _elm_rescale(void);
void _elm_widget_mirrored_reload(Evas_Object *obj);
void _elm_config_init(void);
void _elm_config_sub_init(void);
void _elm_config_shutdown(void);
+void _elm_config_sub_shutdown(void);
Eina_Bool _elm_config_save(void);
void _elm_config_reload(void);
const char *_elm_config_current_profile_get(void);
const char *_elm_config_profile_dir_get(const char *prof, Eina_Bool is_user);
Eina_List *_elm_config_profiles_list(void);
+void _elm_config_all_update(void);
void _elm_config_profile_set(const char *profile);
void _elm_config_engine_set(const char *engine);
char *_elm_util_mkup_to_text(const char *mkup);
char *_elm_util_text_to_mkup(const char *text);
+Eina_Bool _elm_video_check(Evas_Object *video);
+
+
extern char *_elm_appname;
extern Elm_Config *_elm_config;
extern const char *_elm_data_dir;
extern const char *_elm_lib_dir;
extern int _elm_log_dom;
extern Eina_List *_elm_win_list;
+extern int _elm_win_deferred_free;
+
+/* Our gettext wrapper, used to disable translation of elm if the app
+ * is not translated. */
+static inline const char *
+_elm_dgettext(const char *string)
+{
+ if (EINA_UNLIKELY(_elm_config->translate == EINA_FALSE))
+ {
+ return string;
+ }
+
+ return dgettext(PACKAGE, string);
+}
+
+
+/* Used by the paste handler */
+void _elm_entry_entry_paste(Evas_Object *obj, const char *entry);
#endif