diff options
author | mohitkr1 <mohit.kr1@samsung.com> | 2020-12-17 11:40:35 +0530 |
---|---|---|
committer | mohitkr1 <mohit.kr1@samsung.com> | 2020-12-17 12:18:17 +0530 |
commit | 06e6518236f9ad8096580944570d629b2f3cca2d (patch) | |
tree | d18999dc89421a5889056da8a077647809667202 | |
parent | 47f1b3634d2397d2be37e109ab80f0b961ce9a55 (diff) | |
download | share-panel-06e6518236f9ad8096580944570d629b2f3cca2d.tar.gz share-panel-06e6518236f9ad8096580944570d629b2f3cca2d.tar.bz2 share-panel-06e6518236f9ad8096580944570d629b2f3cca2d.zip |
Pushed IoT code for share-panel appsubmit/tizen/20201217.074624
Change-Id: I83276e0b4e9955356f784071e2f61676f69452b8
Signed-off-by: mohitkr1 <mohit.kr1@samsung.com>
117 files changed, 7839 insertions, 0 deletions
diff --git a/Build/appendix.mk b/Build/appendix.mk new file mode 100755 index 0000000..2e06c34 --- /dev/null +++ b/Build/appendix.mk @@ -0,0 +1 @@ +# Appendix
diff --git a/Build/basedef.mk b/Build/basedef.mk new file mode 100755 index 0000000..a762983 --- /dev/null +++ b/Build/basedef.mk @@ -0,0 +1,34 @@ +# Add inputs and outputs from these tool invocations to the build variables + + +OS_NAME := $(shell $(UNAME)) + + +#ifeq ($(origin BUILD_CONFIG), undefined) +BUILD_CONFIG ?= Debug +#endif + +#ifeq ($(origin ARCH), undefined) +ARCH ?= i386 +#endif + +#ifeq ($(origin PROJPATH), undefined) +PROJPATH ?= . +#endif + + +#ifeq ($(origin PROJ_PATH), undefined) +PROJ_PATH ?= $(PROJPATH) +#endif + +#ifeq ($(strip $(OUTPUT_DIR)),) +#OUTPUT_DIR ?= $(PROJ_PATH)/$(BUILD_CONFIG) +#endif + +#ifeq ($(strip $(BUILD_ARCH)),) +BUILD_ARCH ?= $(ARCH) +#endif + +#ifeq ($(strip $(ENVENTOR_PATH)),) +ENVENTOR_PATH ?= $(SDK_TOOLPATH)/enventor +#endif diff --git a/Build/build_c.mk b/Build/build_c.mk new file mode 100755 index 0000000..5fffeea --- /dev/null +++ b/Build/build_c.mk @@ -0,0 +1,113 @@ +# C/C++ build script + + +_FUNC_EXT2O = $(patsubst %.$(3),$(1)/%.o,$(2)) +_FUNC_C2O = $(call _FUNC_EXT2O,$(1),$(2),c) +_FUNC_CPP2O = $(call _FUNC_EXT2O,$(1),$(2),cpp) + + +# parameter : +# $(1) - C/C++ soruce file +# $(2) - output path +# $(3) - .ext +# $(4) - unique id +CONVERT_ESC_EXT_TO_O = $(addprefix $(2)/,$(notdir $(patsubst %.$(3),%-$(4).o,$(1)))) + +#CONVERT_ESC_C_TO_O = $(call CONVERT_ESC_EXT_TO_O,$(1),$(2),c) +#CONVERT_ESC_CPP_TO_O = $(call CONVERT_ESC_EXT_TO_O,$(1),$(2),cpp) + + +# parameter : +# $(1) - encoded one C/C++ soruce file +# $(2) - output path +# $(3) - ext title (C/C++) +# $(4) - ext (c/cpp) +# $(5) - compiler ($(CC)/$(CXX)) +# $(6) - build opt +# $(7) - build opt file +# output : +# $(8) - output files list +define C_BUILD_PROC_RAW +$(call CONVERT_ESC_EXT_TO_O,$(1),$(2),$(4),$(8)) : $(call DECODE_4MAKE,$(1)) $(7) + @echo ' Building file: $$<' + @echo ' Invoking: $(3) Compiler' + $$(call MAKEDIRS,$$(@D)) + $(5) -c "$$<" -o "$$@" $(6) -Wp,@$(7) + @echo ' Finished building: $$<' +$(9) += $(call CONVERT_ESC_EXT_TO_O,$(1),$(2),$(4),$(8)) +endef + + +# parameter : +# $(1) - output paths +# $(2) - src paths +# $(3) - inc paths +# $(4) - inc files +# $(5) - Defs +# $(6) - UnDefs +# $(7) - compiler opt +# $(8) - compiler opt file +# $(9) - ext title (C/C++) +# $(10) - ext (c/cpp) +# $(11) - compiler ($(CC)/$(CXX)) +# output : +# $(12) - OBJS +# return : +# none +define C_PROC_RAW + +_OUTPUT_DIR := $$(strip $(1))# +_SRCS := $(2)# +_INCS := $(3)# +_INC_FILES := $(4)# +_DEFS := $(5)# +_UNDEFS := $(6)# + +_OPT := $(7) +_OPT_FILE := $(8) + +_EXT_TITLE := $(9) +_EXT := $(10) +_COMPILER := $(11) + +#_OUTPUT_FILES := $(12) + +_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_SRCS)) +_ENC_SRCS := $$(filter %.$$(_EXT),$$(_ENC_SRCS)) + +ifneq ($$(strip $$(_SRCS)),) + +_NORMAL_SRCS := $$(filter-out %*.$$(_EXT),$$(_ENC_SRCS)) +_WIDLCARD_SRCS := $$(filter %*.$$(_EXT),$$(_ENC_SRCS)) + +_ALL_SRCS := $$(call DECODE_4MAKE,$$(_NORMAL_SRCS)) \ + $$(foreach var,$$(_WIDLCARD_SRCS),$$(call FIND_FILES_4MAKE,$$(call DECODE_4MAKE,$$(var)))) + +ifneq ($$(strip $$(_ALL_SRCS)),) + +_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_ALL_SRCS)) + +_CDEFS := $$(CDEFS) +_CDEFS += $$(addprefix -D,$$(_DEFS)) +_CDEFS += $$(addprefix -U,$$(_UNDEFS)) + +_ENC_C_INCS := $$(call ENCODE_4MAKE,$$(_INCS)) +_ENC_C_INCS := $$(addprefix -I,$$(_ENC_C_INCS)) + +_ENC_INC_FILES := $$(call ENCODE_4MAKE,$$(_INC_FILES)) +_ENC_INC_FILES += $$(addprefix -include,$$(_ENC_INC_FILES)) + +_C_INCS := $$(call DECODE_4MAKE,$$(_ENC_C_INCS) $$(_ENC_C_INC_FILES)) + +_DEFS := $$(_CDEFS) $$(_C_INCS) -I"pch" $$(_OPT) + +_UNIQUE_ID = $$(firstword $$(shell echo $$(var) | $$(CKSUM))) + +$$(foreach var,$$(_ENC_SRCS),$$(eval $$(call C_BUILD_PROC_RAW,$$(var),$$(_OUTPUT_DIR),$$(_EXT_TITLE),$$(_EXT),$$(_COMPILER),$$(_DEFS),$$(_OPT_FILE),$$(_UNIQUE_ID),$(12)))) + +endif # (_(strip _(_ALL_SRCS)),) + +endif # (_(strip _(_SRCS)),) + + +endef diff --git a/Build/build_edc.mk b/Build/build_edc.mk new file mode 100755 index 0000000..6f85fdd --- /dev/null +++ b/Build/build_edc.mk @@ -0,0 +1,81 @@ +# EDC build script + + +FUNC_EDC2EDJ = $(patsubst %.edc,$(2)/%.edj,$(1)) + +# parameter : +# $(1) - C/C++ soruce file +# $(2) - output path +CONVERT_ESC_EDC_TO_EDJ = $(call CONVERT_4MAKE_TO_OUT,$(call FUNC_EDC2EDJ,$(1),$(2))) + + +# parameter : +# $(1) - encoded one C/C++ soruce file +# $(2) - output path +# $(3) - build opt +# output : +# $(4) - output files list +define EDJ_BUILD_PROC_RAW +$(call CONVERT_ESC_EDC_TO_EDJ,$(1),$(2)) : $(call DECODE_4MAKE,$(1)) + @echo ' Building file: $$<' + @echo ' Invoking: EDC Resource Compiler' + $$(call MAKEDIRS,$$(@D)) + $$(EDJE_CC) $(3) "$$<" "$$@" + @echo ' Finished building: $$<' +$(4) += $(call CONVERT_ESC_EDC_TO_EDJ,$(1),$(2)) +endef + + +# parameter : +# $(1) - output paths +# $(2) - src paths +# $(3) - image inc paths +# $(4) - sound inc paths +# $(5) - font inc paths +# output : +# $(6) - OBJS +# return : +# none +define EDJ_PROC_RAW + +_OUTPUT_DIR := $$(strip $(1))# +_SRCS := $(2)# +_IMAGE_DIRS := $(3)# +_SOUND_DIRS := $(4)# +_FONT_DIRS := $(5)# + +ifneq ($$(strip $$(_SRCS)),) + +_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_SRCS)) + +_NORMAL_SRCS := $$(filter-out %*.edc,$$(_ENC_SRCS)) +_WIDLCARD_SRCS := $$(filter %*.edc,$$(_ENC_SRCS)) + +_ALL_SRCS := $$(call DECODE_4MAKE,$$(_NORMAL_SRCS)) \ + $$(foreach var,$$(_WIDLCARD_SRCS),$$(call FIND_FILES_4MAKE,$$(call DECODE_4MAKE,$$(var)))) + +ifneq ($$(strip $$(_ALL_SRCS)),) + +_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_ALL_SRCS)) + +_COMPILER_FLAGS := -id "$$(ENVENTOR_SHARED_RES_PATH)/images" +_COMPILER_FLAGS += -sd "$$(ENVENTOR_SHARED_RES_PATH)/sounds" +_COMPILER_FLAGS += -fd "$$(ENVENTOR_SHARED_RES_PATH)/fonts" + +ifneq ($$(strip $$(_IMAGE_DIRS)),) +_COMPILER_FLAGS += $$(addprefix -id ,$$(_IMAGE_DIRS)) +endif +ifneq ($$(strip $$(_SOUND_DIRS)),) +_COMPILER_FLAGS += $$(addprefix -sd ,$$(_SOUND_DIRS)) +endif +ifneq ($$(strip $$(_FONT_DIRS)),) +_COMPILER_FLAGS += $$(addprefix -fd ,$$(_FONT_DIRS)) +endif + +$$(foreach var,$$(_ENC_SRCS),$$(eval $$(call EDJ_BUILD_PROC_RAW,$$(var),$$(_OUTPUT_DIR),$$(_COMPILER_FLAGS),$(6)))) + +endif # (_(strip _(_ALL_SRCS)),) + +endif # (_(strip _(_SRCS)),) + +endef diff --git a/Build/build_po.mk b/Build/build_po.mk new file mode 100755 index 0000000..d88d71a --- /dev/null +++ b/Build/build_po.mk @@ -0,0 +1,64 @@ +# PO build script + + +_FUNC_PO2MO = $(patsubst %.po,$(2)/res/locale/%/LC_MESSAGES/$(3).mo,$(notdir $(1))) + + +# parameter : +# $(1) - C/C++ soruce file +# $(2) - output path +# $(3) - app name +CONVERT_ESC_PO_TO_MO = $(call CONVERT_4MAKE_TO_OUT,$(call _FUNC_PO2MO,$(1),$(2),$(3))) + + +# parameter : +# $(1) - encoded one C/C++ soruce file +# $(2) - output path +# $(3) - app name +# output : +# $(4) - output files list +define MO_BUILD_PROC_RAW +$(call CONVERT_ESC_PO_TO_MO,$(1),$(2),$(3)) : $(call DECODE_4MAKE,$(1)) + @echo ' Building file: $$<' + @echo ' Invoking: msgfmt String Formatter' + $$(call MAKEDIRS,$$(@D)) + $$(MSGFMT) -o "$$@" "$$<" + @echo ' Finished building: $$<' +$(4) += $(call CONVERT_ESC_PO_TO_MO,$(1),$(2),$(3)) +endef + + +# parameter : +# $(1) - output dir +# $(2) - src paths +# $(3) - app name +# output : +# $(4) - OBJS + +define MO_PROC_RAW + +_OUTPUT_DIR := $(1) +_SRCS := $(2) +_APPNAME := $(3) + +ifneq ($$(strip $$(_SRCS)),) + +_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_SRCS)) + +_NORMAL_SRCS := $$(filter-out %*.po,$$(_ENC_SRCS)) +_WIDLCARD_SRCS := $$(filter %*.po,$$(_ENC_SRCS)) + +_ALL_SRCS := $$(call DECODE_4MAKE,$$(_NORMAL_SRCS)) \ + $$(foreach var,$$(_WIDLCARD_SRCS),$$(call FIND_FILES_4MAKE,$$(call DECODE_4MAKE,$$(var)))) + +ifneq ($$(strip $$(_ALL_SRCS)),) + +_ENC_SRCS := $$(call ENCODE_4MAKE,$$(_ALL_SRCS)) + +$$(foreach var,$$(_ENC_SRCS),$$(eval $$(call MO_BUILD_PROC_RAW,$$(var),$$(_OUTPUT_DIR),$$(_APPNAME),$(4)))) + +endif # (_(strip _(_ALL_SRCS)),) + +endif # (_(strip _(_SRCS)),) + +endef diff --git a/Build/flags.mk b/Build/flags.mk new file mode 100755 index 0000000..1f3c7f8 --- /dev/null +++ b/Build/flags.mk @@ -0,0 +1,16 @@ + +DEBUG_OP = -g3 +CPP_DEBUG_OP = + +OPTIMIZATION_OP = -O0 +CPP_OPTIMIZATION_OP = + +COMPILE_FLAGS = $(DEBUG_OP) $(OPTIMIZATION_OP) -Wall -c -fmessage-length=0 -fPIC + +CPP_COMPILE_FLAGS = $(CPP_DEBUG_OP) $(CPP_OPTIMIZATION_OP) + +LINK_FLAGS = -shared -Wl,--no-undefined + +AR_FLAGS = + +EDC_COMPILE_FLAGS =
\ No newline at end of file diff --git a/Build/funcs.mk b/Build/funcs.mk new file mode 100755 index 0000000..3ba778b --- /dev/null +++ b/Build/funcs.mk @@ -0,0 +1,50 @@ + +BSLASH := \\# +NULL_CHAR := # +SPACE := \ # +COLON := :# +DOTDOT := ..# +SPACE_ESC := &sp;# +COLON_ESC := &co;# +SPACE_OUT := ~sp~# +COLON_OUT := ~co~# +DOTDOT_OUT := ~dtdt~# + +BSLASH2SLASH = $(subst $(BSLASH),/,$(1)) + +REMOVE_TAIL = $(patsubst %/,%,$(1)) + +#LOWER_CASE = $(shell echo translit($(1),[A-Z],[a-z])|$(M4)) +LOWER_CASE = $(shell echo $(1)|$(TR) [A-Z] [a-z]) + +#ifneq ($(findstring Windows,$(OS)),) +# ... +#endif + +FIND_FILES = $(shell $(FIND) $(1)/$(2) | $(SED) 's/^$(subst /,$(BSLASH)/,$(1))$(BSLASH)///') +FIND_FILES_ESC = $(shell $(FIND) $(1)/$(2) | $(SED) 's/^$(subst /,$(BSLASH)/,$(1))$(BSLASH)///' -e 's/:/$(BSLASH)&co;/g' -e 's/$(BSLASH) /$(BSLASH)&sp;/g') +FIND_FILES_4MAKE = $(shell $(FIND) $(1)/$(2) | $(SED) 's/^$(subst /,$(BSLASH)/,$(1))$(BSLASH)///') + +FIND_FILES_ABS = $(shell $(FIND) $(1)) +FIND_FILES_ABS_4MAKE = $(shell $(FIND) $(1) -e 's/$(BSLASH) /$(BSLASH)&sp;/g') +FIND_FILES_ABS_ESC = $(shell $(FIND) $(1) -e 's/:/$(BSLASH)&co;/g' -e 's/$(BSLASH) /$(BSLASH)&sp;/g') + +FIND_FILES_4MAKE = $(shell $(FIND) $(1) | $(SED) 's/ /\\\ /g') + +#ENCODE_ESC = $(shell echo $(1) | $(SED) -e 's/:/$(BSLASH)&co;/g' -e 's/$(BSLASH) /$(BSLASH)&sp;/g') +#DECODE_ESC = $(shell echo $(1) | $(SED) -e 's/$(BSLASH)&co;/:/g' -e 's/$(BSLASH)&sp;/$(BSLASH) / g') +ENCODE_ESC = $(subst $(SPACE),$(SPACE_ESC),$(subst $(COLON),$(COLON_ESC),$(1))) +DECODE_ESC = $(subst $(COLON_ESC),$(COLON),$(subst $(SPACE_ESC),$(SPACE),$(1))) +ENCODE_4MAKE = $(subst $(SPACE),$(SPACE_ESC),$(1)) +DECODE_4MAKE = $(subst $(SPACE_ESC),$(SPACE),$(1)) + +CONVERT_TO_OUT = $(subst $(DOTDOT),$(DOTDOT_OUT),$(subst $(COLON),$(COLON_OUT),$(subst $(SPACE),$(SPACE_OUT),$(1)))) +CONVERT_ESC_TO_OUT = $(subst $(DOTDOT),$(DOTDOT_OUT),$(subst $(COLON_ESC),$(COLON_OUT),$(subst $(SPACE_ESC),$(SPACE_OUT),$(1)))) +CONVERT_4MAKE_TO_OUT = $(subst $(DOTDOT),$(DOTDOT_OUT),$(subst $(COLON),$(COLON_OUT),$(subst $(SPACE_ESC),$(SPACE_OUT),$(1)))) + +PROC_NO_EXIST = $(if $(wildcard $(1)),,$(call $(2),$(1))) +define MAKEDIRS0 + @echo ' Building directory: $(1)' + @$(MKDIR) $(MKDIR_OP) $(subst $(BSLASH),/,$(1)) +endef +MAKEDIRS = $(call PROC_NO_EXIST,$(1),MAKEDIRS0) diff --git a/Build/makefile b/Build/makefile new file mode 100755 index 0000000..f491b50 --- /dev/null +++ b/Build/makefile @@ -0,0 +1,34 @@ +# +# Usege : make -f <proj_root>/Build/makefile -C <proj_root> +# + +BUILD_SCRIPT_VERSION := 1.1.0 + +.PHONY : app_version app_build app_clean build_version + + +all : app_build + +clean : app_clean + +version : build_version + +#PROJ_ROOT = . +BUILD_ROOT := $(PROJ_PATH)/Build# + +ifeq ($(MAKE_NAME),mingw32-make) +ifneq ($(SHELL),) +OPTIONS += --eval="SHELL=$(SHELL)" +endif +endif + +app_build : + @echo $(MAKE) -f "$(BUILD_ROOT)/makefile.mk" + @$(MAKE_BIN) -f "$(BUILD_ROOT)/makefile.mk" -C "$(PROJ_PATH)" $(OPTIONS) + +app_clean : + @$(MAKE) -f "$(BUILD_ROOT)/makefile.mk" -C "$(PROJ_PATH)" $(OPTIONS) clean + +build_version : + @echo makefile : $(BUILD_SCRIPT_VERSION) + @$(MAKE) -f "$(BUILD_ROOT)/makefile.mk" -C "$(PROJ_PATH)" $(OPTIONS) version diff --git a/Build/makefile.mk b/Build/makefile.mk new file mode 100755 index 0000000..205a3ad --- /dev/null +++ b/Build/makefile.mk @@ -0,0 +1,197 @@ +# +# Usege : make -f <proj_root>/Build/makefile -C <proj_root> +# + +BUILD_SCRIPT_VERSION := 1.2.3 + +.PHONY : app_version app_clean build_version + + +all : app_build + +clean : app_clean + +version : build_version + + +#PROJ_ROOT := $(call BSLASH2SLASH,$(PROJ_PATH)) +PROJ_ROOT := . +BUILD_ROOT := $(PROJ_ROOT)/Build + +include $(BUILD_ROOT)/basedef.mk + +include $(PROJ_ROOT)/project_def.prop +-include $(PROJ_ROOT)/build_def.prop + +include $(BUILD_ROOT)/funcs.mk + +-include $(BUILD_ROOT)/tooldef.mk +-include $(BUILD_ROOT)/flags.mk +-include $(BUILD_ROOT)/platform.mk + + +APPTYPE := $(type) + +OUTPUT_DIR := $(PROJ_ROOT)/$(BUILD_CONFIG) +OBJ_OUTPUT := $(OUTPUT_DIR)/objs + +LOWER_APPNAME := $(call LOWER_CASE,$(APPNAME)) +APPID2 := $(subst $(basename $(APPID)).,,$(APPID)) + +ifeq ($(strip $(APPTYPE)),app) +APPFILE := $(OUTPUT_DIR)/$(LOWER_APPNAME) +endif +ifeq ($(strip $(APPTYPE)),staticLib) +APPFILE := $(OUTPUT_DIR)/lib$(LOWER_APPNAME).a +endif +ifeq ($(strip $(APPTYPE)),sharedLib) +APPFILE := $(OUTPUT_DIR)/lib$(LOWER_APPNAME).so +endif + +ifneq ($(strip $(PLATFORM_INCS)),) +PLATFORM_INCS_FILE := $(OBJ_OUTPUT)/platform_incs_file.inc +endif + +include $(BUILD_ROOT)/build_c.mk + + +ifeq ($(strip $(APPTYPE)),app) +EXT_OP := -fPIE +endif +ifeq ($(strip $(APPTYPE)),staticLib) +EXT_OP := -fPIE +endif +ifeq ($(strip $(APPTYPE)),sharedLib) +EXT_OP := -fPIC +endif + +C_OPT := $(COMPILE_FLAGS) $(TC_COMPILER_MISC) $(RS_COMPILER_MISC) $(EXT_OP) --sysroot="$(SYSROOT)" -Werror-implicit-function-declaration $(M_OPT) $(USER_C_OPTS) +CPP_OPT := $(CPP_COMPILE_FLAGS) $(TC_COMPILER_MISC) $(RS_COMPILER_MISC) $(EXT_OP) --sysroot="$(SYSROOT)" -Werror-implicit-function-declaration $(M_OPT) $(USER_CPP_OPTS) +C_OPT_FILE := $(PLATFORM_INCS_FILE) + +OBJS := # + +# Global C/C++ +ifeq ($(strip $(USER_ROOT)),) +USER_ROOT := $(PROJ_ROOT) +endif +$(eval $(call C_PROC_RAW,$(OBJ_OUTPUT),$(USER_SRCS),$(USER_INC_DIRS),$(USER_INC_FILES),$(USER_DEFS),$(USER_UNDEFS),$(C_OPT),$(C_OPT_FILE),C,c,$(CC),OBJS)) +$(foreach ext,cpp cxx cc c++ C,$(eval $(call C_PROC_RAW,$(OBJ_OUTPUT),$(USER_SRCS),$(USER_INC_DIRS),$(USER_CPP_INC_FILES),$(USER_CPP_DEFS),$(USER_CPP_UNDEFS),$(CPP_OPT),$(C_OPT_FILE),C++,$(ext),$(CXX),OBJS))) + +# Individual C/C++ +ifneq ($(strip $(USER_EXT_C_KEYS)),) +$(foreach var,$(USER_EXT_C_KEYS),$(eval $(call C_PROC_RAW,$(OBJ_OUTPUT),$(USER_EXT_$(var)_SRCS),$(USER_EXT_$(var)_INC_DIRS),$(USER_EXT_$(var)_INC_FILES),$(USER_EXT_$(var)_DEFS),$(USER_EXT_$(var)_UNDEFS),$(C_OPT),$(C_OPT_FILE),C,c,$(CC),OBJS))) +$(foreach ext,cpp cxx cc c++ C,$(foreach var,$(USER_EXT_C_KEYS),$(eval $(call C_PROC_RAW,$(OBJ_OUTPUT),$(USER_EXT_$(var)_SRCS),$(USER_EXT_$(var)_INC_DIRS),$(USER_EXT_$(var)_CPP_INC_FILES),$(USER_EXT_$(var)_CPP_DEFS),$(USER_EXT_$(var)_CPP_UNDEFS),$(CPP_OPT),$(C_OPT_FILE),C++,$(ext),$(CXX),OBJS)))) +endif + + +ifneq ($(strip $(USER_LIB_DIRS)),) +_ENC_USER_LIB_DIRS := $(call ENCODE_4MAKE,$(USER_LIB_DIRS)) +_ENC_USER_LIB_DIRS := $(addprefix -L,$(_ENC_USER_LIB_DIRS)) +LIBPATHS := $(call DECODE_4MAKE,$(_ENC_USER_LIB_DIRS)) +endif + +LIBS += $(addprefix -l,$(USER_LIBS)) + +UOBJS += $(USER_OBJS) + +M_OPT = -MMD -MP -MF"$(@:%.o=%.d)" + +DEPS := $(OBJS:.o=.d) + +ifneq ($(strip $(DEPS)),) +-include $(PROJ_ROOT)/Build/$(DEPS) +endif + + +ifeq ($(strip $(APPTYPE)),app) +$(APPFILE) : $(OBJS) $(UOBJS) + @echo ' Building target: $@' + @echo ' Invoking: C/C++ Linker' + $(call MAKEDIRS,$(@D)) + $(CXX) -o $(APPFILE) $(OBJS) $(UOBJS) $(LIBPATHS) -Xlinker --as-needed $(LIBS) $(LINK_FLAGS) $(TC_LINKER_MISC) $(RS_LINKER_MISC) -pie -lpthread --sysroot="$(SYSROOT)" -Xlinker --version-script="$(PROJ_ROOT)/.exportMap" $(RS_LIB_PATHS) $(RS_LIBRARIES) -Xlinker -rpath="/opt/usr/apps/$(APPID)/lib" -Werror-implicit-function-declaration $(USER_LINK_OPTS) + @echo ' Finished building target: $@' +endif +ifeq ($(strip $(APPTYPE)),staticLib) +$(APPFILE) : $(OBJS) $(UOBJS) + @echo ' Building target: $@' + @echo ' Invoking: Archive utility' + $(call MAKEDIRS,$(@D)) + $(AR) -r $(APPFILE) $(OBJS) $(UOBJS) $(AR_FLAGS) $(USER_LINK_OPTS) + @echo ' Finished building target: $@' +endif +ifeq ($(strip $(APPTYPE)),sharedLib) +$(APPFILE) : $(OBJS) $(UOBJS) + @echo ' Building target: $@' + @echo ' Invoking: C/C++ Linker' + $(call MAKEDIRS,$(@D)) + $(CXX) -o $(APPFILE) $(OBJS) $(UOBJS) $(LIBPATHS) -Xlinker --as-needed $(LIBS) $(LINK_FLAGS) $(TC_LINKER_MISC) $(RS_LINKER_MISC) -shared -lpthread --sysroot="$(SYSROOT)" $(RS_LIB_PATHS) $(RS_LIBRARIES) $(USER_LINK_OPTS) + @echo ' Finished building target: $@' +endif + + +$(OBJ_OUTPUT) : + $(call MAKEDIRS,$@) + +$(OUTPUT_DIR) : + $(call MAKEDIRS,$@) + + +ifneq ($(strip $(PLATFORM_INCS)),) +$(PLATFORM_INCS_FILE) : $(OBJ_OUTPUT) + @echo ' Building inc file: $@' +ifneq ($(findstring Windows,$(OS)),) +ifneq ($(findstring 3.82,$(MAKE_VERSION)),) + $(file > $@,$(PLATFORM_INCS)) +else + @echo $(PLATFORM_INCS) > $@ +endif +else + @echo $(PLATFORM_INCS) > $@ +endif +endif + + +include $(BUILD_ROOT)/build_edc.mk + +#ifeq ($(strip $(ENVENTOR_SHARED_RES_PATH)),) +ENVENTOR_SHARED_RES_PATH ?= $(ENVENTOR_PATH)/share/enventor +#endif + +EDJ_FILES := + +# Global EDCs +ifneq ($(strip $(USER_EDCS)),) +$(eval $(call EDJ_PROC_RAW,$(OUTPUT_DIR),$(USER_EDCS),$(USER_EDCS_IMAGE_DIRS),$(USER_EDCS_SOUND_DIRS),$(USER_EDCS_FONT_DIRS),EDJ_FILES)) +endif + +# Individual EDCs +ifneq ($(strip $(USER_EXT_EDC_KEYS)),) +$(foreach var,$(USER_EXT_EDC_KEYS),$(eval $(call EDJ_PROC_RAW,$(OUTPUT_DIR),$(USER_EXT_$(var)_EDCS),$(USER_EXT_$(var)_EDCS_IMAGE_DIRS),$(USER_EXT_$(var)_EDCS_SOUND_DIRS),$(USER_EXT_$(var)_EDCS_FONT_DIRS),EDJ_FILES))) +endif + + +include $(BUILD_ROOT)/build_po.mk + +MO_FILES := + +# Global POs +ifneq ($(strip $(USER_POS)),) +$(eval $(call MO_PROC_RAW,$(OUTPUT_DIR),$(USER_POS),$(APPID2),MO_FILES)) +endif + + +secondary-outputs : $(EDJ_FILES) $(MO_FILES) + +-include appendix.mk + +app_build : $(OUTPUT_DIR) $(APPFILE) secondary-outputs + @echo ========= done ========= + + +app_clean : + rm -f $(APPFILE) + rm -rf $(OUTPUT_DIR) + +build_version : + @echo makefile.mk : $(BUILD_SCRIPT_VERSION) diff --git a/Build/platform.mk b/Build/platform.mk new file mode 100755 index 0000000..294a38a --- /dev/null +++ b/Build/platform.mk @@ -0,0 +1,15 @@ +# Add inputs and outputs from these tool invocations to the build variables + +SYSROOT = $(SBI_SYSROOT) + +USR_INCS := $(addprefix -I $(SYSROOT),$(PLATFORM_INCS_EX)) + +ifeq ($(strip $(PLATFORM_LIB_PATHS)),) +RS_LIB_PATHS := "$(SYSROOT)/usr/lib" +else +RS_LIB_PATHS := $(addprefix -L$(SYSROOT),$(PLATFORM_LIB_PATHS)) +endif + +RS_LIBRARIES := $(addprefix -l,$(RS_LIBRARIES_EX)) + +PLATFORM_INCS = $(USR_INCS) -I"$(SDK_PATH)/library" diff --git a/Build/prepost.mk b/Build/prepost.mk new file mode 100755 index 0000000..6bb5e2f --- /dev/null +++ b/Build/prepost.mk @@ -0,0 +1,6 @@ + +# Add pre/post build process +PREBUILD_DESC = +PREBUILD_COMMAND = +POSTBUILD_DESC = +POSTBUILD_COMMAND = diff --git a/Build/tooldef.mk b/Build/tooldef.mk new file mode 100755 index 0000000..c62243c --- /dev/null +++ b/Build/tooldef.mk @@ -0,0 +1,70 @@ +# Add inputs and outputs from these tool invocations to the build variables + +ifneq ($(strip $(SHELL_BIN)),) +SHELL = $(SHELL_BIN) +else +SHELL = sh +endif + +ifneq ($(strip $(MKDIR_BIN)),) +MKDIR = $(MKDIR_BIN) +MKDIR_OP = -p +else +MKDIR = mkdir +MKDIR_OP = -p +endif + +ifneq ($(strip $(UNAME_BIN)),) +UNAME = $(UNAME_BIN) +else +UNAME = uname +endif + +ifneq ($(strip $(M4_BIN)),) +M4 = $(M4_BIN) +else +M4 = m4 +endif + +ifneq ($(strip $(TR_BIN)),) +TR = $(TR_BIN) +else +TR = tr +endif + +ifneq ($(strip $(FIND_BIN)),) +FIND = $(FIND_BIN) +else +FIND = find +endif + +ifneq ($(strip $(SED_BIN)),) +SED = $(SED_BIN) +else +SED = sed +endif + +ifneq ($(strip $(GREP_BIN)),) +GREP = $(GREP_BIN) +else +GREP = grep +endif + +ifneq ($(strip $(EDJE_CC_BIN)),) +EDJE_CC = $(EDJE_CC_BIN) +else +EDJE_CC = edje_cc +endif + +ifneq ($(strip $(MSGFMT_BIN)),) +MSGFMT = $(MSGFMT_BIN) +else +MSGFMT = msgfmt +endif + +ifneq ($(strip $(CKSUM_BIN)),) +CKSUM = $(CKSUM_BIN) +else +CKSUM = cksum +endif + diff --git a/CMake/CMakeLists.txt b/CMake/CMakeLists.txt new file mode 100755 index 0000000..ddc568a --- /dev/null +++ b/CMake/CMakeLists.txt @@ -0,0 +1,68 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(share-panel C) + +SET(INSTALL_EXEC_PREFIX "${INSTALL_PREFIX}/bin") +SET(INSTALL_RESDIR "${INSTALL_PREFIX}/res") +SET(INSTALL_IMAGEDIR "${INSTALL_RESDIR}/images") +SET(EDJEDIR "${INSTALL_RESDIR}/edje") +SET(LOCALEDIR "${INSTALL_RESDIR}/locale") +SET(CMAKE_VERBOSE_MAKEFILE 0) + +SET(PROJECT_ROOT_DIR "${CMAKE_SOURCE_DIR}/..") +SET(PROJECT_RESOURCES_DIR "${PROJECT_ROOT_DIR}/res") +SET(PROJECT_EDC_DIR "${PROJECT_RESOURCES_DIR}/edje") +SET(PROJECT_IMAGES_DIR "${PROJECT_RESOURCES_DIR}/images") +SET(PROJECT_PO_DIR "${PROJECT_RESOURCES_DIR}/po") + +INCLUDE(FindPkgConfig) +pkg_check_modules(MENU_PKGS REQUIRED + aul + capi-appfw-application + capi-appfw-app-manager + capi-system-system-settings + capi-base-common + capi-content-mime-type + capi-ui-efl-util + dlog + elementary + evas + feedback + isf + notification + efl-extension + rua +) + +FOREACH (flag ${MENU_PKGS_CFLAGS}) + SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") +ENDFOREACH(flag) + +SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden -Wall -Winline -g -fno-builtin-malloc -fPIC") +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}") +SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie") + +INCLUDE_DIRECTORIES(${PROJECT_ROOT_DIR}/inc) + +ADD_EXECUTABLE(${PROJECT_NAME} + ${PROJECT_ROOT_DIR}/src/index.c + ${PROJECT_ROOT_DIR}/src/grid.c + ${PROJECT_ROOT_DIR}/src/ui_manager.c + ${PROJECT_ROOT_DIR}/src/list.c + ${PROJECT_ROOT_DIR}/src/page.c + ${PROJECT_ROOT_DIR}/src/scroller.c + ${PROJECT_ROOT_DIR}/src/share_panel.c + ${PROJECT_ROOT_DIR}/src/utils.c +) + +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS} -lm) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${MENU_PKGS_LDFLAGS}) + +# Install +INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${INSTALL_EXEC_PREFIX}) + +INSTALL(FILES ${PROJECT_ROOT_DIR}/tizen-manifest.xml DESTINATION ${SYS_PACKAGES_DIR} RENAME org.tizen.share-panel.xml) +INSTALL(DIRECTORY DESTINATION ${PREFIX}/data) +INSTALL(FILES ${PROJECT_ROOT_DIR}/shared/res/share-panel.png DESTINATION ${SYS_ICONS_DIR}) + +# End of a file +ADD_SUBDIRECTORY(res) diff --git a/CMake/res/CMakeLists.txt b/CMake/res/CMakeLists.txt new file mode 100755 index 0000000..6d73268 --- /dev/null +++ b/CMake/res/CMakeLists.txt @@ -0,0 +1,8 @@ +ADD_SUBDIRECTORY(edje) +ADD_SUBDIRECTORY(po) + +INSTALL(FILES + ${PROJECT_RESOURCES_DIR}/A01-1_icon_Menu.png +DESTINATION + ${INSTALL_IMAGEDIR} +) diff --git a/CMake/res/edje/CMakeLists.txt b/CMake/res/edje/CMakeLists.txt new file mode 100755 index 0000000..e8e3c4d --- /dev/null +++ b/CMake/res/edje/CMakeLists.txt @@ -0,0 +1,23 @@ +ADD_CUSTOM_TARGET(item.edj + COMMAND edje_cc -id ${PROJECT_EDC_DIR}/../images ${EDJE_CFLAGS} + ${PROJECT_EDC_DIR}/item.edc item.edj + DEPENDS ${PROJECT_EDC_DIR}/item.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} item.edj) +INSTALL(FILES item.edj DESTINATION ${EDJEDIR}) + +ADD_CUSTOM_TARGET(layout.edj + COMMAND edje_cc -id ${PROJECT_EDC_DIR}/../images ${EDJE_CFLAGS} + ${PROJECT_EDC_DIR}/layout.edc layout.edj + DEPENDS ${PROJECT_EDC_DIR}/layout.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} layout.edj) +INSTALL(FILES layout.edj DESTINATION ${EDJEDIR}) + +ADD_CUSTOM_TARGET(page.edj + COMMAND edje_cc -id ${PROJECT_EDC_DIR}/../images ${EDJE_CFLAGS} + ${PROJECT_EDC_DIR}/page.edc page.edj + DEPENDS ${PROJECT_EDC_DIR}/page.edc +) +ADD_DEPENDENCIES(${PROJECT_NAME} page.edj) +INSTALL(FILES page.edj DESTINATION ${EDJEDIR}) diff --git a/CMake/res/po/CMakeLists.txt b/CMake/res/po/CMakeLists.txt new file mode 100755 index 0000000..1ac0fc9 --- /dev/null +++ b/CMake/res/po/CMakeLists.txt @@ -0,0 +1,26 @@ +# for i18n + +SET(POFILES ar.po az.po bg.po ca.po cs.po da.po de.po el_GR.po en_PH.po en.po en_US.po + es_ES.po es_US.po et.po eu.po fi.po fr_CA.po fr.po ga.po gl.po hi.po hr.po + hu.po hy.po is.po it_IT.po ja_JP.po ka.po kk.po ko_KR.po lt.po lv.po mk.po + nb.po nl.po pl.po pt_BR.po pt_PT.po ro.po ru_RU.po sk.po sl.po sr.po sv.po + tr_TR.po uk.po uz.po zh_CN.po zh_HK.po zh_TW.po) +SET(MSGFMT "/usr/bin/msgfmt") + +MESSAGE(STATUS "po files ---") +FOREACH(pofile ${POFILES}) + SET(pofile ${PROJECT_PO_DIR}/${pofile}) + MESSAGE(STATUS " ${pofile}") + GET_FILENAME_COMPONENT(absPofile ${pofile} ABSOLUTE) + GET_FILENAME_COMPONENT(lang ${absPofile} NAME_WE) + SET(moFile ${CMAKE_CURRENT_BINARY_DIR}/${lang}.mo) + ADD_CUSTOM_COMMAND( + OUTPUT ${moFile} + COMMAND ${MSGFMT} -o ${moFile} ${absPofile} + DEPENDS ${absPofile} + ) + INSTALL(FILES ${moFile} DESTINATION ${LOCALEDIR}/${lang}/LC_MESSAGES RENAME ${PROJECT_NAME}.mo) + SET(moFiles ${moFiles} ${moFile}) +ENDFOREACH(pofile) + +ADD_CUSTOM_TARGET(po ALL DEPENDS ${moFiles}) diff --git a/Doxyfile b/Doxyfile new file mode 100755 index 0000000..6b843c8 --- /dev/null +++ b/Doxyfile @@ -0,0 +1,2311 @@ +# Doxyfile 1.8.6 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project. +# +# All text after a double hash (##) is considered a comment and is placed in +# front of the TAG it is preceding. +# +# All text after a single hash (#) is considered a comment and will be ignored. +# The format is: +# TAG = value [value, ...] +# For lists, items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (\" \"). + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all text +# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv +# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv +# for the list of possible encodings. +# The default value is: UTF-8. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by +# double-quotes, unless you are using Doxywizard) that should identify the +# project for which the documentation is generated. This name is used in the +# title of most generated pages and in a few other places. +# The default value is: My Project. + +PROJECT_NAME = "Share-panel" + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. This +# could be handy for archiving the generated documentation or if some version +# control system is used. + +PROJECT_NUMBER = + +# Using the PROJECT_BRIEF tag one can provide an optional one line description +# for a project that appears at the top of each page and should give viewer a +# quick idea about the purpose of the project. Keep the description short. + +PROJECT_BRIEF = + +# With the PROJECT_LOGO tag one can specify an logo or icon that is included in +# the documentation. The maximum height of the logo should not exceed 55 pixels +# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo +# to the output directory. + +PROJECT_LOGO = + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path +# into which the generated documentation will be written. If a relative path is +# entered, it will be relative to the location where doxygen was started. If +# left blank the current directory will be used. + +OUTPUT_DIRECTORY = + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- +# directories (in 2 levels) under the output directory of each output format and +# will distribute the generated files over these directories. Enabling this +# option can be useful when feeding doxygen a huge amount of source files, where +# putting all generated files in the same directory would otherwise causes +# performance problems for the file system. +# The default value is: NO. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, +# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), +# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, +# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), +# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, +# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, +# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, +# Ukrainian and Vietnamese. +# The default value is: English. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member +# descriptions after the members that are listed in the file and class +# documentation (similar to Javadoc). Set to NO to disable this. +# The default value is: YES. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief +# description of a member or function before the detailed description +# +# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. +# The default value is: YES. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator that is +# used to form the text in various listings. Each string in this list, if found +# as the leading text of the brief description, will be stripped from the text +# and the result, after processing the whole list, is used as the annotated +# text. Otherwise, the brief description is used as-is. If left blank, the +# following values are used ($name is automatically replaced with the name of +# the entity):The $name class, The $name widget, The $name file, is, provides, +# specifies, contains, represents, a, an and the. + +ABBREVIATE_BRIEF = + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# doxygen will generate a detailed section even if there is only a brief +# description. +# The default value is: NO. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. +# The default value is: NO. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path +# before files name in the file list and in the header files. If set to NO the +# shortest path that makes the file name unique will be used +# The default value is: YES. + +FULL_PATH_NAMES = NO + +# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. +# Stripping is only done if one of the specified strings matches the left-hand +# part of the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the path to +# strip. +# +# Note that you can specify absolute paths here, but also relative paths, which +# will be relative from the directory where doxygen is started. +# This tag requires that the tag FULL_PATH_NAMES is set to YES. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the +# path mentioned in the documentation of a class, which tells the reader which +# header file to include in order to use a class. If left blank only the name of +# the header file containing the class definition is used. Otherwise one should +# specify the list of include paths that are normally passed to the compiler +# using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but +# less readable) file names. This can be useful is your file systems doesn't +# support long names like on DOS, Mac, or CD-ROM. +# The default value is: NO. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the +# first line (until the first dot) of a Javadoc-style comment as the brief +# description. If set to NO, the Javadoc-style will behave just like regular Qt- +# style comments (thus requiring an explicit @brief command for a brief +# description.) +# The default value is: NO. + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first +# line (until the first dot) of a Qt-style comment as the brief description. If +# set to NO, the Qt-style will behave just like regular Qt-style comments (thus +# requiring an explicit \brief command for a brief description.) +# The default value is: NO. + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a +# multi-line C++ special comment block (i.e. a block of //! or /// comments) as +# a brief description. This used to be the default behavior. The new default is +# to treat a multi-line C++ comment block as a detailed description. Set this +# tag to YES if you prefer the old behavior instead. +# +# Note that setting this tag to YES also means that rational rose comments are +# not recognized any more. +# The default value is: NO. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the +# documentation from any documented member that it re-implements. +# The default value is: YES. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a +# new page for each member. If set to NO, the documentation of a member will be +# part of the file/class/namespace that contains it. +# The default value is: NO. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen +# uses this value to replace tabs by spaces in code fragments. +# Minimum value: 1, maximum value: 16, default value: 4. + +TAB_SIZE = 4 + +# This tag can be used to specify a number of aliases that act as commands in +# the documentation. An alias has the form: +# name=value +# For example adding +# "sideeffect=@par Side Effects:\n" +# will allow you to put the command \sideeffect (or @sideeffect) in the +# documentation, which will result in a user-defined paragraph with heading +# "Side Effects:". You can put \n's in the value part of an alias to insert +# newlines. + +ALIASES = "privilege=\par Privilege:\n" \ + "privlevel=\par Privilege Level:\n" \ + "feature=\par Feature:\n" \ + "since_tizen=\par Since :\n" \ + "since=\par Since (EFL) :\n" \ + "since_w=\par Since (Wearable) : \n" \ + "since_m=\par Since (Mobile) : \n" \ + "platform=\warning This is not for use by third-party applications." \ + "partner=\warning This is not for use by third-party applications." + +# This tag can be used to specify a number of word-keyword mappings (TCL only). +# A mapping has the form "name=value". For example adding "class=itcl::class" +# will allow you to use the command class in the itcl::class meaning. + +TCL_SUBST = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources +# only. Doxygen will then generate output that is more tailored for C. For +# instance, some of the names that are used will be different. The list of all +# members will be omitted, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or +# Python sources only. Doxygen will then generate output that is more tailored +# for that language. For instance, namespaces will be presented as packages, +# qualified scopes will look different, etc. +# The default value is: NO. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources. Doxygen will then generate output that is tailored for Fortran. +# The default value is: NO. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for VHDL. +# The default value is: NO. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given +# extension. Doxygen has a built-in mapping, but you can override or extend it +# using this tag. The format is ext=language, where ext is a file extension, and +# language is one of the parsers supported by doxygen: IDL, Java, Javascript, +# C#, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. +# +# Note For files without extension you can use no_extension as a placeholder. +# +# Note that for custom extensions you also need to set FILE_PATTERNS otherwise +# the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments +# according to the Markdown format, which allows for more readable +# documentation. See http://daringfireball.net/projects/markdown/ for details. +# The output of markdown processing is further processed by doxygen, so you can +# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in +# case of backward compatibilities issues. +# The default value is: YES. + +MARKDOWN_SUPPORT = YES + +# When enabled doxygen tries to link words that correspond to documented +# classes, or namespaces to their corresponding documentation. Such a link can +# be prevented in individual cases by by putting a % sign in front of the word +# or globally by setting AUTOLINK_SUPPORT to NO. +# The default value is: YES. + +AUTOLINK_SUPPORT = YES + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should set this +# tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); +# versus func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. +# The default value is: NO. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. +# The default value is: NO. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: +# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen +# will parse them like normal C++ but will assume all classes use public instead +# of private inheritance when no explicit protection keyword is present. +# The default value is: NO. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate +# getter and setter methods for a property. Setting this option to YES will make +# doxygen to replace the get and set methods by a property in the documentation. +# This will only work if the methods are indeed getting or setting a simple +# type. If this is not the case, or you want to show the methods anyway, you +# should set this option to NO. +# The default value is: YES. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. +# The default value is: NO. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES to allow class member groups of the same type +# (for instance a group of public functions) to be put as a subgroup of that +# type (e.g. under the Public Functions section). Set it to NO to prevent +# subgrouping. Alternatively, this can be done per class using the +# \nosubgrouping command. +# The default value is: YES. + +SUBGROUPING = YES + +# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions +# are shown inside the group in which they are included (e.g. using \ingroup) +# instead of on a separate page (for HTML and Man pages) or section (for LaTeX +# and RTF). +# +# Note that this feature does not work in combination with +# SEPARATE_MEMBER_PAGES. +# The default value is: NO. + +INLINE_GROUPED_CLASSES = NO + +# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions +# with only public data fields or simple typedef fields will be shown inline in +# the documentation of the scope in which they are defined (i.e. file, +# namespace, or group documentation), provided this scope is documented. If set +# to NO, structs, classes, and unions are shown on a separate page (for HTML and +# Man pages) or section (for LaTeX and RTF). +# The default value is: NO. + +INLINE_SIMPLE_STRUCTS = NO + +# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or +# enum is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically be +# useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. +# The default value is: NO. + +TYPEDEF_HIDES_STRUCT = NO + +# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This +# cache is used to resolve symbols given their name and scope. Since this can be +# an expensive process and often the same symbol appears multiple times in the +# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small +# doxygen will become slower. If the cache is too large, memory is wasted. The +# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range +# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 +# symbols. At the end of a run doxygen will report the cache usage and suggest +# the optimal cache size from a speed point of view. +# Minimum value: 0, maximum value: 9, default value: 0. + +LOOKUP_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. Private +# class members and static file members will be hidden unless the +# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. +# Note: This will also disable the warnings about undocumented members that are +# normally produced when WARNINGS is set to YES. +# The default value is: NO. + +EXTRACT_ALL = NO + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will +# be included in the documentation. +# The default value is: NO. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal +# scope will be included in the documentation. +# The default value is: NO. + +EXTRACT_PACKAGE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file will be +# included in the documentation. +# The default value is: NO. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined +# locally in source files will be included in the documentation. If set to NO +# only classes defined in header files are included. Does not have any effect +# for Java sources. +# The default value is: YES. + +EXTRACT_LOCAL_CLASSES = NO + +# This flag is only useful for Objective-C code. When set to YES local methods, +# which are defined in the implementation section but not in the interface are +# included in the documentation. If set to NO only methods in the interface are +# included. +# The default value is: NO. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base name of +# the file that contains the anonymous namespace. By default anonymous namespace +# are hidden. +# The default value is: NO. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all +# undocumented members inside documented classes or files. If set to NO these +# members will be included in the various overviews, but no documentation +# section is generated. This option has no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. If set +# to NO these classes will be included in the various overviews. This option has +# no effect if EXTRACT_ALL is enabled. +# The default value is: NO. + +HIDE_UNDOC_CLASSES = YES + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend +# (class|struct|union) declarations. If set to NO these declarations will be +# included in the documentation. +# The default value is: NO. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any +# documentation blocks found inside the body of a function. If set to NO these +# blocks will be appended to the function's detailed documentation block. +# The default value is: NO. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation that is typed after a +# \internal command is included. If the tag is set to NO then the documentation +# will be excluded. Set it to YES to include the internal documentation. +# The default value is: NO. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file +# names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. +# The default value is: system dependent. + +CASE_SENSE_NAMES = YES + +# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with +# their full class and namespace scopes in the documentation. If set to YES the +# scope will be hidden. +# The default value is: NO. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of +# the files that are included by a file in the documentation of that file. +# The default value is: YES. + +SHOW_INCLUDE_FILES = YES + +# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each +# grouped member an include statement to the documentation, telling the reader +# which file to include in order to use the member. +# The default value is: NO. + +SHOW_GROUPED_MEMB_INC = NO + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include +# files with double quotes in the documentation rather than with sharp brackets. +# The default value is: NO. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the +# documentation for inline members. +# The default value is: YES. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the +# (detailed) documentation of file and class members alphabetically by member +# name. If set to NO the members will appear in declaration order. +# The default value is: YES. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief +# descriptions of file, namespace and class members alphabetically by member +# name. If set to NO the members will appear in declaration order. Note that +# this will also influence the order of the classes in the class list. +# The default value is: NO. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the +# (brief and detailed) documentation of class members so that constructors and +# destructors are listed first. If set to NO the constructors will appear in the +# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. +# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief +# member documentation. +# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting +# detailed member documentation. +# The default value is: NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy +# of group names into alphabetical order. If set to NO the group names will +# appear in their defined order. +# The default value is: NO. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by +# fully-qualified names, including namespaces. If set to NO, the class list will +# be sorted only by class name, not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the alphabetical +# list. +# The default value is: NO. + +SORT_BY_SCOPE_NAME = NO + +# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper +# type resolution of all parameters of a function it will reject a match between +# the prototype and the implementation of a member function even if there is +# only one candidate or it is obvious which candidate to choose by doing a +# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still +# accept a match between prototype and implementation in such cases. +# The default value is: NO. + +STRICT_PROTO_MATCHING = NO + +# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the +# todo list. This list is created by putting \todo commands in the +# documentation. +# The default value is: YES. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the +# test list. This list is created by putting \test commands in the +# documentation. +# The default value is: YES. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug +# list. This list is created by putting \bug commands in the documentation. +# The default value is: YES. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO) +# the deprecated list. This list is created by putting \deprecated commands in +# the documentation. +# The default value is: YES. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional documentation +# sections, marked by \if <section_label> ... \endif and \cond <section_label> +# ... \endcond blocks. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the +# initial value of a variable or macro / define can have for it to appear in the +# documentation. If the initializer consists of more lines than specified here +# it will be hidden. Use a value of 0 to hide initializers completely. The +# appearance of the value of individual variables and macros / defines can be +# controlled using \showinitializer or \hideinitializer command in the +# documentation regardless of this setting. +# Minimum value: 0, maximum value: 10000, default value: 30. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at +# the bottom of the documentation of classes and structs. If set to YES the list +# will mention the files that were used to generate the documentation. +# The default value is: YES. + +SHOW_USED_FILES = YES + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This +# will remove the Files entry from the Quick Index and from the Folder Tree View +# (if specified). +# The default value is: YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces +# page. This will remove the Namespaces entry from the Quick Index and from the +# Folder Tree View (if specified). +# The default value is: YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command command input-file, where command is the value of the +# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided +# by doxygen. Whatever the program writes to standard output is used as the file +# version. For an example see the documentation. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. To create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. You can +# optionally specify a file name after the option, if omitted DoxygenLayout.xml +# will be used as the name of the layout file. +# +# Note that if you run doxygen from a directory containing a file called +# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE +# tag is left empty. + +LAYOUT_FILE = + +# The CITE_BIB_FILES tag can be used to specify one or more bib files containing +# the reference definitions. This must be a list of .bib files. The .bib +# extension is automatically appended if omitted. This requires the bibtex tool +# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. +# For LaTeX the style of the bibliography can be controlled using +# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the +# search path. Do not use file names with spaces, bibtex cannot handle them. See +# also \cite for info how to create references. + +CITE_BIB_FILES = + +#--------------------------------------------------------------------------- +# Configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated to +# standard output by doxygen. If QUIET is set to YES this implies that the +# messages are off. +# The default value is: NO. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES +# this implies that the warnings are on. +# +# Tip: Turn warnings on while writing the documentation. +# The default value is: YES. + +WARNINGS = YES + +# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate +# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag +# will automatically be disabled. +# The default value is: YES. + +WARN_IF_UNDOCUMENTED = YES + +# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some parameters +# in a documented function, or documenting parameters that don't exist or using +# markup commands wrongly. +# The default value is: YES. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that +# are documented, but have no documentation for their parameters or return +# value. If set to NO doxygen will only warn about wrong or incomplete parameter +# documentation, but not about the absence of documentation. +# The default value is: NO. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that doxygen +# can produce. The string should contain the $file, $line, and $text tags, which +# will be replaced by the file and line number from which the warning originated +# and the warning text. Optionally the format may contain $version, which will +# be replaced by the version of the file (if it could be obtained via +# FILE_VERSION_FILTER) +# The default value is: $file:$line: $text. + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning and error +# messages should be written. If left blank the output is written to standard +# error (stderr). + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# Configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag is used to specify the files and/or directories that contain +# documented source files. You may enter file names like myfile.cpp or +# directories like /usr/src/myproject. Separate the files or directories with +# spaces. +# Note: If this tag is empty the current directory is searched. + +INPUT = src inc + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses +# libiconv (or the iconv built into libc) for the transcoding. See the libiconv +# documentation (see: http://www.gnu.org/software/libiconv) for the list of +# possible encodings. +# The default value is: UTF-8. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank the +# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii, +# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, +# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, +# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, +# *.qsf, *.as and *.js. + +FILE_PATTERNS = *c, *h + +# The RECURSIVE tag can be used to specify whether or not subdirectories should +# be searched for input files as well. +# The default value is: NO. + +RECURSIVE = NO + +# The EXCLUDE tag can be used to specify files and/or directories that should be +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. +# +# Note that relative paths are relative to the directory from which doxygen is +# run. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or +# directories that are symbolic links (a Unix file system feature) are excluded +# from the input. +# The default value is: NO. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test +# +# Note that the wildcards are matched against the file with absolute path, so to +# exclude all test directories use the pattern */test/* + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or directories +# that contain example code fragments that are included (see the \include +# command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and +# *.h) to filter out the source-files in the directories. If left blank all +# files are included. + +EXAMPLE_PATTERNS = + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude commands +# irrespective of the value of the RECURSIVE tag. +# The default value is: NO. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or directories +# that contain images that are to be included in the documentation (see the +# \image command). + +IMAGE_PATH = doxygen_res/ + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command: +# +# <filter> <input-file> +# +# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the +# name of an input file. Doxygen will then use the output that the filter +# program writes to standard output. If FILTER_PATTERNS is specified, this tag +# will be ignored. +# +# Note that the filter must not add or remove lines; it is applied before the +# code is scanned, but not when the output code is generated. If lines are added +# or removed, the anchors will not be placed correctly. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: pattern=filter +# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how +# filters are used. If the FILTER_PATTERNS tag is empty or if none of the +# patterns match the file name, INPUT_FILTER is applied. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER ) will also be used to filter the input files that are used for +# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). +# The default value is: NO. + +FILTER_SOURCE_FILES = NO + +# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file +# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and +# it is also possible to disable source filtering for a specific pattern using +# *.ext= (so without naming a filter). +# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. + +FILTER_SOURCE_PATTERNS = + +# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that +# is part of the input, its contents will be placed on the main page +# (index.html). This can be useful if you have a project on for instance GitHub +# and want to reuse the introduction page also for the doxygen output. + +USE_MDFILE_AS_MAINPAGE = + +#--------------------------------------------------------------------------- +# Configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will be +# generated. Documented entities will be cross-referenced with these sources. +# +# Note: To get rid of all source code in the generated output, make sure that +# also VERBATIM_HEADERS is set to NO. +# The default value is: NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body of functions, +# classes and enums directly into the documentation. +# The default value is: NO. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any +# special comment blocks from generated source code fragments. Normal C, C++ and +# Fortran comments will always remain visible. +# The default value is: YES. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES then for each documented +# function all documented functions referencing it will be listed. +# The default value is: NO. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES then for each documented function +# all documented entities called/used by that function will be listed. +# The default value is: NO. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set +# to YES, then the hyperlinks from functions in REFERENCES_RELATION and +# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will +# link to the documentation. +# The default value is: YES. + +REFERENCES_LINK_SOURCE = YES + +# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the +# source code will show a tooltip with additional information such as prototype, +# brief description and links to the definition and documentation. Since this +# will make the HTML file larger and loading of large files a bit slower, you +# can opt to disable this feature. +# The default value is: YES. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +SOURCE_TOOLTIPS = YES + +# If the USE_HTAGS tag is set to YES then the references to source code will +# point to the HTML generated by the htags(1) tool instead of doxygen built-in +# source browser. The htags tool is part of GNU's global source tagging system +# (see http://www.gnu.org/software/global/global.html). You will need version +# 4.8.6 or higher. +# +# To use it do the following: +# - Install the latest version of global +# - Enable SOURCE_BROWSER and USE_HTAGS in the config file +# - Make sure the INPUT points to the root of the source tree +# - Run doxygen as normal +# +# Doxygen will invoke htags (and that will in turn invoke gtags), so these +# tools must be available from the command line (i.e. in the search path). +# +# The result: instead of the source browser generated by doxygen, the links to +# source code will now point to the output of htags. +# The default value is: NO. +# This tag requires that the tag SOURCE_BROWSER is set to YES. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a +# verbatim copy of the header file for each class for which an include is +# specified. Set to NO to disable this. +# See also: Section \class. +# The default value is: YES. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# Configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all +# compounds will be generated. Enable this if the project contains a lot of +# classes, structs, unions or interfaces. +# The default value is: YES. + +ALPHABETICAL_INDEX = NO + +# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in +# which the alphabetical index list will be split. +# Minimum value: 1, maximum value: 20, default value: 5. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all classes will +# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag +# can be used to specify a prefix (or a list of prefixes) that should be ignored +# while generating the index headers. +# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output +# The default value is: YES. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each +# generated HTML page (for example: .htm, .php, .asp). +# The default value is: .html. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a user-defined HTML header file for +# each generated HTML page. If the tag is left blank doxygen will generate a +# standard header. +# +# To get valid HTML the header file that includes any scripts and style sheets +# that doxygen needs, which is dependent on the configuration options used (e.g. +# the setting GENERATE_TREEVIEW). It is highly recommended to start with a +# default header using +# doxygen -w html new_header.html new_footer.html new_stylesheet.css +# YourConfigFile +# and then modify the file new_header.html. See also section "Doxygen usage" +# for information on how to generate the default header that doxygen normally +# uses. +# Note: The header is subject to change so you typically have to regenerate the +# default header when upgrading to a newer version of doxygen. For a description +# of the possible markers and block names see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each +# generated HTML page. If the tag is left blank doxygen will generate a standard +# footer. See HTML_HEADER for more information on how to generate a default +# footer and what special commands can be used inside the footer. See also +# section "Doxygen usage" for information on how to generate the default footer +# that doxygen normally uses. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style +# sheet that is used by each HTML page. It can be used to fine-tune the look of +# the HTML output. If left blank doxygen will generate a default style sheet. +# See also section "Doxygen usage" for information on how to generate the style +# sheet that doxygen normally uses. +# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as +# it is more robust and this tag (HTML_STYLESHEET) will in the future become +# obsolete. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_STYLESHEET = + +# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user- +# defined cascading style sheet that is included after the standard style sheets +# created by doxygen. Using this option one can overrule certain style aspects. +# This is preferred over using HTML_STYLESHEET since it does not replace the +# standard style sheet and is therefor more robust against future updates. +# Doxygen will copy the style sheet file to the output directory. For an example +# see the documentation. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_STYLESHEET = + +# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the HTML output directory. Note +# that these files will be copied to the base HTML output directory. Use the +# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these +# files. In the HTML_STYLESHEET file, use the file name only. Also note that the +# files will be copied as-is; there are no commands or markers available. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_EXTRA_FILES = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen +# will adjust the colors in the stylesheet and background images according to +# this color. Hue is specified as an angle on a colorwheel, see +# http://en.wikipedia.org/wiki/Hue for more information. For instance the value +# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 +# purple, and 360 is red again. +# Minimum value: 0, maximum value: 359, default value: 220. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors +# in the HTML output. For a value of 0 the output will use grayscales only. A +# value of 255 will produce the most vivid colors. +# Minimum value: 0, maximum value: 255, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the +# luminance component of the colors in the HTML output. Values below 100 +# gradually make the output lighter, whereas values above 100 make the output +# darker. The value divided by 100 is the actual gamma applied, so 80 represents +# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not +# change the gamma. +# Minimum value: 40, maximum value: 240, default value: 80. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting this +# to NO can help when comparing the output of multiple runs. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_TIMESTAMP = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_DYNAMIC_SECTIONS = NO + +# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries +# shown in the various tree structured indices initially; the user can expand +# and collapse entries dynamically later on. Doxygen will expand the tree to +# such a level that at most the specified number of entries are visible (unless +# a fully collapsed tree already exceeds this amount). So setting the number of +# entries 1 will produce a full collapsed tree by default. 0 is a special value +# representing an infinite number of entries and will result in a full expanded +# tree by default. +# Minimum value: 0, maximum value: 9999, default value: 100. +# This tag requires that the tag GENERATE_HTML is set to YES. + +HTML_INDEX_NUM_ENTRIES = 100 + +# If the GENERATE_DOCSET tag is set to YES, additional index files will be +# generated that can be used as input for Apple's Xcode 3 integrated development +# environment (see: http://developer.apple.com/tools/xcode/), introduced with +# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a +# Makefile in the HTML output directory. Running make will produce the docset in +# that directory and running make install will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at +# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_DOCSET = NO + +# This tag determines the name of the docset feed. A documentation feed provides +# an umbrella under which multiple documentation sets from a single provider +# (such as a company or product suite) can be grouped. +# The default value is: Doxygen generated docs. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# This tag specifies a string that should uniquely identify the documentation +# set bundle. This should be a reverse domain-name style string, e.g. +# com.mycompany.MyDocSet. Doxygen will append .docset to the name. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. +# The default value is: org.doxygen.Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. +# The default value is: Publisher. +# This tag requires that the tag GENERATE_DOCSET is set to YES. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three +# additional HTML index files: index.hhp, index.hhc, and index.hhk. The +# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop +# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on +# Windows. +# +# The HTML Help Workshop contains a compiler that can convert all HTML output +# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML +# files are now used as the Windows 98 help format, and will replace the old +# Windows help format (.hlp) on all Windows platforms in the future. Compressed +# HTML files also contain an index, a table of contents, and you can search for +# words in the documentation. The HTML workshop also contains a viewer for +# compressed HTML files. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_HTMLHELP = NO + +# The CHM_FILE tag can be used to specify the file name of the resulting .chm +# file. You can add a path in front of the file if the result should not be +# written to the html output directory. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_FILE = + +# The HHC_LOCATION tag can be used to specify the location (absolute path +# including file name) of the HTML help compiler ( hhc.exe). If non-empty +# doxygen will try to run the HTML help compiler on the generated index.hhp. +# The file has to be specified with full path. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +HHC_LOCATION = + +# The GENERATE_CHI flag controls if a separate .chi index file is generated ( +# YES) or that it should be included in the master .chm file ( NO). +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +GENERATE_CHI = NO + +# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc) +# and project file content. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +CHM_INDEX_ENCODING = + +# The BINARY_TOC flag controls whether a binary table of contents is generated ( +# YES) or a normal table of contents ( NO) in the .chm file. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members to +# the table of contents of the HTML help documentation and to the tree view. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTMLHELP is set to YES. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that +# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help +# (.qch) of the generated HTML documentation. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify +# the file name of the resulting .qch file. The path specified is relative to +# the HTML output folder. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help +# Project output. For more information please see Qt Help Project / Namespace +# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt +# Help Project output. For more information please see Qt Help Project / Virtual +# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- +# folders). +# The default value is: doc. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_VIRTUAL_FOLDER = doc + +# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom +# filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see Qt Help Project / Custom +# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- +# filters). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's filter section matches. Qt Help Project / Filter Attributes (see: +# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHP_SECT_FILTER_ATTRS = + +# The QHG_LOCATION tag can be used to specify the location of Qt's +# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the +# generated .qhp file. +# This tag requires that the tag GENERATE_QHP is set to YES. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be +# generated, together with the HTML files, they form an Eclipse help plugin. To +# install this plugin and make it available under the help contents menu in +# Eclipse, the contents of the directory containing the HTML and XML files needs +# to be copied into the plugins directory of eclipse. The name of the directory +# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. +# After copying Eclipse needs to be restarted before the help appears. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the Eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have this +# name. Each documentation set should have its own identifier. +# The default value is: org.doxygen.Project. +# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# If you want full control over the layout of the generated HTML pages it might +# be necessary to disable the index and replace it with your own. The +# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top +# of each HTML page. A value of NO enables the index and the value YES disables +# it. Since the tabs in the index contain the same information as the navigation +# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +DISABLE_INDEX = NO + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. If the tag +# value is set to YES, a side panel will be generated containing a tree-like +# index structure (just like the one that is generated for HTML Help). For this +# to work a browser that supports JavaScript, DHTML, CSS and frames is required +# (i.e. any modern browser). Windows users are probably better off using the +# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can +# further fine-tune the look of the index. As an example, the default style +# sheet generated by doxygen has an example that shows how to put an image at +# the root of the tree instead of the PROJECT_NAME. Since the tree basically has +# the same information as the tab index, you could consider setting +# DISABLE_INDEX to YES when enabling this option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +GENERATE_TREEVIEW = NO + +# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that +# doxygen will group on one line in the generated HTML documentation. +# +# Note that a value of 0 will completely suppress the enum values from appearing +# in the overview section. +# Minimum value: 0, maximum value: 20, default value: 4. +# This tag requires that the tag GENERATE_HTML is set to YES. + +ENUM_VALUES_PER_LINE = 4 + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used +# to set the initial width (in pixels) of the frame in which the tree is shown. +# Minimum value: 0, maximum value: 1500, default value: 250. +# This tag requires that the tag GENERATE_HTML is set to YES. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to +# external symbols imported via tag files in a separate window. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of LaTeX formulas included as images in +# the HTML documentation. When you change the font size after a successful +# doxygen run you need to manually remove any form_*.png images from the HTML +# output directory to force them to be regenerated. +# Minimum value: 8, maximum value: 50, default value: 10. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are not +# supported properly for IE 6.0, but are supported on all modern browsers. +# +# Note that when changing this option you need to delete any form_*.png files in +# the HTML output directory before the changes have effect. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +FORMULA_TRANSPARENT = YES + +# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see +# http://www.mathjax.org) which uses client side Javascript for the rendering +# instead of using prerendered bitmaps. Use this if you do not have LaTeX +# installed or if you want to formulas look prettier in the HTML output. When +# enabled you may also need to install MathJax separately and configure the path +# to it using the MATHJAX_RELPATH option. +# The default value is: NO. +# This tag requires that the tag GENERATE_HTML is set to YES. + +USE_MATHJAX = NO + +# When MathJax is enabled you can set the default output format to be used for +# the MathJax output. See the MathJax site (see: +# http://docs.mathjax.org/en/latest/output.html) for more details. +# Possible values are: HTML-CSS (which is slower, but has the best +# compatibility), NativeMML (i.e. MathML) and SVG. +# The default value is: HTML-CSS. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_FORMAT = HTML-CSS + +# When MathJax is enabled you need to specify the location relative to the HTML +# output directory using the MATHJAX_RELPATH option. The destination directory +# should contain the MathJax.js script. For instance, if the mathjax directory +# is located at the same level as the HTML output directory, then +# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax +# Content Delivery Network so you can quickly see the result without installing +# MathJax. However, it is strongly recommended to install a local copy of +# MathJax from http://www.mathjax.org before deployment. +# The default value is: http://cdn.mathjax.org/mathjax/latest. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest + +# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax +# extension names that should be enabled during MathJax rendering. For example +# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_EXTENSIONS = + +# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces +# of code that will be used on startup of the MathJax code. See the MathJax site +# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an +# example see the documentation. +# This tag requires that the tag USE_MATHJAX is set to YES. + +MATHJAX_CODEFILE = + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box for +# the HTML output. The underlying search engine uses javascript and DHTML and +# should work on any modern browser. Note that when using HTML help +# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) +# there is already a search function so this one should typically be disabled. +# For large projects the javascript based search engine can be slow, then +# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to +# search using the keyboard; to jump to the search box use <access key> + S +# (what the <access key> is depends on the OS and browser, but it is typically +# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down +# key> to jump into the search results window, the results can be navigated +# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel +# the search. The filter options can be selected when the cursor is inside the +# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys> +# to select a filter and <Enter> or <escape> to activate or cancel the filter +# option. +# The default value is: YES. +# This tag requires that the tag GENERATE_HTML is set to YES. + +SEARCHENGINE = YES + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a web server instead of a web client using Javascript. There +# are two flavours of web server based searching depending on the +# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for +# searching and an index file used by the script. When EXTERNAL_SEARCH is +# enabled the indexing and searching needs to be provided by external tools. See +# the section "External Indexing and Searching" for details. +# The default value is: NO. +# This tag requires that the tag SEARCHENGINE is set to YES. + +SERVER_BASED_SEARCH = NO + +# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP +# script for searching. Instead the search results are written to an XML file +# which needs to be processed by an external indexer. Doxygen will invoke an +# external search engine pointed to by the SEARCHENGINE_URL option to obtain the +# search results. +# +# Doxygen ships with an example indexer ( doxyindexer) and search engine +# (doxysearch.cgi) which are based on the open source search engine library +# Xapian (see: http://xapian.org/). +# +# See the section "External Indexing and Searching" for details. +# The default value is: NO. +# This tag requires that the tag SEARCHENGINE is set to YES. + +EXTERNAL_SEARCH = NO + +# The SEARCHENGINE_URL should point to a search engine hosted by a web server +# which will return the search results when EXTERNAL_SEARCH is enabled. +# +# Doxygen ships with an example indexer ( doxyindexer) and search engine +# (doxysearch.cgi) which are based on the open source search engine library +# Xapian (see: http://xapian.org/). See the section "External Indexing and +# Searching" for details. +# This tag requires that the tag SEARCHENGINE is set to YES. + +SEARCHENGINE_URL = + +# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed +# search data is written to a file for indexing by an external tool. With the +# SEARCHDATA_FILE tag the name of this file can be specified. +# The default file is: searchdata.xml. +# This tag requires that the tag SEARCHENGINE is set to YES. + +SEARCHDATA_FILE = searchdata.xml + +# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the +# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is +# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple +# projects and redirect the results back to the right project. +# This tag requires that the tag SEARCHENGINE is set to YES. + +EXTERNAL_SEARCH_ID = + +# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen +# projects other than the one defined by this configuration file, but that are +# all added to the same external search index. Each project needs to have a +# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of +# to a relative location where the documentation can be found. The format is: +# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ... +# This tag requires that the tag SEARCHENGINE is set to YES. + +EXTRA_SEARCH_MAPPINGS = + +#--------------------------------------------------------------------------- +# Configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES doxygen will generate LaTeX output. +# The default value is: YES. + +GENERATE_LATEX = YES + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: latex. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. +# +# Note that when enabling USE_PDFLATEX this option is only used for generating +# bitmaps for formulas in the HTML output, but not in the Makefile that is +# written to the output directory. +# The default file is: latex. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate +# index for LaTeX. +# The default file is: makeindex. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES doxygen generates more compact LaTeX +# documents. This may be useful for small projects and may help to save some +# trees in general. +# The default value is: NO. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used by the +# printer. +# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x +# 14 inches) and executive (7.25 x 10.5 inches). +# The default value is: a4. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +PAPER_TYPE = a4 + +# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names +# that should be included in the LaTeX output. To get the times font for +# instance you can specify +# EXTRA_PACKAGES=times +# If left blank no extra packages will be included. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the +# generated LaTeX document. The header should contain everything until the first +# chapter. If it is left blank doxygen will generate a standard header. See +# section "Doxygen usage" for information on how to let doxygen write the +# default header to a separate file. +# +# Note: Only use a user-defined header if you know what you are doing! The +# following commands have a special meaning inside the header: $title, +# $datetime, $date, $doxygenversion, $projectname, $projectnumber. Doxygen will +# replace them by respectively the title of the page, the current date and time, +# only the current date, the version number of doxygen, the project name (see +# PROJECT_NAME), or the project number (see PROJECT_NUMBER). +# This tag requires that the tag GENERATE_LATEX is set to YES. + +LATEX_HEADER = + +# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the +# generated LaTeX document. The footer should contain everything after the last +# chapter. If it is left blank doxygen will generate a standard footer. +# +# Note: Only use a user-defined footer if you know what you are doing! +# This tag requires that the tag GENERATE_LATEX is set to YES. + +LATEX_FOOTER = + +# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or +# other source files which should be copied to the LATEX_OUTPUT output +# directory. Note that the files will be copied as-is; there are no commands or +# markers available. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +LATEX_EXTRA_FILES = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is +# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will +# contain links (just like the HTML output) instead of page references. This +# makes the output suitable for online browsing using a PDF viewer. +# The default value is: YES. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +PDF_HYPERLINKS = YES + +# If the LATEX_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate +# the PDF file directly from the LaTeX files. Set this option to YES to get a +# higher quality PDF documentation. +# The default value is: YES. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +USE_PDFLATEX = YES + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode +# command to the generated LaTeX files. This will instruct LaTeX to keep running +# if errors occur, instead of asking the user for help. This option is also used +# when generating formulas in HTML. +# The default value is: NO. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +LATEX_BATCHMODE = NO + +# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the +# index chapters (such as File Index, Compound Index, etc.) in the output. +# The default value is: NO. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +LATEX_HIDE_INDICES = NO + +# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source +# code with syntax highlighting in the LaTeX output. +# +# Note that which sources are shown also depends on other settings such as +# SOURCE_BROWSER. +# The default value is: NO. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +LATEX_SOURCE_CODE = NO + +# The LATEX_BIB_STYLE tag can be used to specify the style to use for the +# bibliography, e.g. plainnat, or ieeetr. See +# http://en.wikipedia.org/wiki/BibTeX and \cite for more info. +# The default value is: plain. +# This tag requires that the tag GENERATE_LATEX is set to YES. + +LATEX_BIB_STYLE = plain + +#--------------------------------------------------------------------------- +# Configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES doxygen will generate RTF output. The +# RTF output is optimized for Word 97 and may not look too pretty with other RTF +# readers/editors. +# The default value is: NO. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: rtf. +# This tag requires that the tag GENERATE_RTF is set to YES. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES doxygen generates more compact RTF +# documents. This may be useful for small projects and may help to save some +# trees in general. +# The default value is: NO. +# This tag requires that the tag GENERATE_RTF is set to YES. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will +# contain hyperlink fields. The RTF file will contain links (just like the HTML +# output) instead of page references. This makes the output suitable for online +# browsing using Word or some other Word compatible readers that support those +# fields. +# +# Note: WordPad (write) and others do not support links. +# The default value is: NO. +# This tag requires that the tag GENERATE_RTF is set to YES. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's config +# file, i.e. a series of assignments. You only have to provide replacements, +# missing definitions are set to their default value. +# +# See also section "Doxygen usage" for information on how to generate the +# default style sheet that doxygen normally uses. +# This tag requires that the tag GENERATE_RTF is set to YES. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an RTF document. Syntax is +# similar to doxygen's config file. A template extensions file can be generated +# using doxygen -e rtf extensionFile. +# This tag requires that the tag GENERATE_RTF is set to YES. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# Configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES doxygen will generate man pages for +# classes and files. +# The default value is: NO. + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. A directory man3 will be created inside the directory specified by +# MAN_OUTPUT. +# The default directory is: man. +# This tag requires that the tag GENERATE_MAN is set to YES. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to the generated +# man pages. In case the manual section does not start with a number, the number +# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is +# optional. +# The default value is: .3. +# This tag requires that the tag GENERATE_MAN is set to YES. + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it +# will generate one additional man file for each entity documented in the real +# man page(s). These additional files only source the real man page, but without +# them the man command would be unable to find the correct page. +# The default value is: NO. +# This tag requires that the tag GENERATE_MAN is set to YES. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# Configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES doxygen will generate an XML file that +# captures the structure of the code including all documentation. +# The default value is: NO. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a +# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of +# it. +# The default directory is: xml. +# This tag requires that the tag GENERATE_XML is set to YES. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify a XML schema, which can be used by a +# validating XML parser to check the syntax of the XML files. +# This tag requires that the tag GENERATE_XML is set to YES. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify a XML DTD, which can be used by a +# validating XML parser to check the syntax of the XML files. +# This tag requires that the tag GENERATE_XML is set to YES. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES doxygen will dump the program +# listings (including syntax highlighting and cross-referencing information) to +# the XML output. Note that enabling this will significantly increase the size +# of the XML output. +# The default value is: YES. +# This tag requires that the tag GENERATE_XML is set to YES. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# Configuration options related to the DOCBOOK output +#--------------------------------------------------------------------------- + +# If the GENERATE_DOCBOOK tag is set to YES doxygen will generate Docbook files +# that can be used to generate PDF. +# The default value is: NO. + +GENERATE_DOCBOOK = NO + +# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in +# front of it. +# The default directory is: docbook. +# This tag requires that the tag GENERATE_DOCBOOK is set to YES. + +DOCBOOK_OUTPUT = docbook + +#--------------------------------------------------------------------------- +# Configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES doxygen will generate an AutoGen +# Definitions (see http://autogen.sf.net) file that captures the structure of +# the code including all documentation. Note that this feature is still +# experimental and incomplete at the moment. +# The default value is: NO. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# Configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES doxygen will generate a Perl module +# file that captures the structure of the code including all documentation. +# +# Note that this feature is still experimental and incomplete at the moment. +# The default value is: NO. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES doxygen will generate the necessary +# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI +# output from the Perl module output. +# The default value is: NO. +# This tag requires that the tag GENERATE_PERLMOD is set to YES. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be nicely +# formatted so it can be parsed by a human reader. This is useful if you want to +# understand what is going on. On the other hand, if this tag is set to NO the +# size of the Perl module output will be much smaller and Perl will parse it +# just the same. +# The default value is: YES. +# This tag requires that the tag GENERATE_PERLMOD is set to YES. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file are +# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful +# so different doxyrules.make files included by the same Makefile don't +# overwrite each other's variables. +# This tag requires that the tag GENERATE_PERLMOD is set to YES. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES doxygen will evaluate all +# C-preprocessor directives found in the sources and include files. +# The default value is: YES. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES doxygen will expand all macro names +# in the source code. If set to NO only conditional compilation will be +# performed. Macro expansion can be done in a controlled way by setting +# EXPAND_ONLY_PREDEF to YES. +# The default value is: NO. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then +# the macro expansion is limited to the macros specified with the PREDEFINED and +# EXPAND_AS_DEFINED tags. +# The default value is: NO. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES the includes files in the +# INCLUDE_PATH will be searched if a #include is found. +# The default value is: YES. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by the +# preprocessor. +# This tag requires that the tag SEARCH_INCLUDES is set to YES. + +INCLUDE_PATH = src inc + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will be +# used. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +INCLUDE_FILE_PATTERNS = *.h *.cpp + +# The PREDEFINED tag can be used to specify one or more macro names that are +# defined before the preprocessor is started (similar to the -D option of e.g. +# gcc). The argument of the tag is a list of macros of the form: name or +# name=definition (no spaces). If the definition and the "=" are omitted, "=1" +# is assumed. To prevent a macro definition from being undefined via #undef or +# recursively expanded use the := operator instead of the = operator. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this +# tag can be used to specify a list of macro names that should be expanded. The +# macro definition that is found in the sources will be used. Use the PREDEFINED +# tag if you want to use a different macro definition that overrules the +# definition found in the source code. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will +# remove all refrences to function-like macros that are alone on a line, have an +# all uppercase name, and do not end with a semicolon. Such function macros are +# typically used for boiler-plate code, and will confuse the parser if not +# removed. +# The default value is: YES. +# This tag requires that the tag ENABLE_PREPROCESSING is set to YES. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration options related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES tag can be used to specify one or more tag files. For each tag +# file the location of the external documentation should be added. The format of +# a tag file without this location is as follows: +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where loc1 and loc2 can be relative or absolute paths or URLs. See the +# section "Linking to external documentation" for more information about the use +# of tag files. +# Note: Each tag file must have an unique name (where the name does NOT include +# the path). If a tag file is not located in the directory in which doxygen is +# run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create a +# tag file that is based on the input files it reads. See section "Linking to +# external documentation" for more information about the usage of tag files. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external class will be listed in the +# class index. If set to NO only the inherited external classes will be listed. +# The default value is: NO. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed in +# the modules index. If set to NO, only the current project's groups will be +# listed. +# The default value is: YES. + +EXTERNAL_GROUPS = YES + +# If the EXTERNAL_PAGES tag is set to YES all external pages will be listed in +# the related pages index. If set to NO, only the current project's pages will +# be listed. +# The default value is: YES. + +EXTERNAL_PAGES = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of 'which perl'). +# The default file (with absolute path) is: /usr/bin/perl. + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES doxygen will generate a class diagram +# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to +# NO turns the diagrams off. Note that this option also works with HAVE_DOT +# disabled, but it is recommended to install and use dot, since it yields more +# powerful graphs. +# The default value is: YES. + +CLASS_DIAGRAMS = YES + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see: +# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# You can include diagrams made with dia in doxygen documentation. Doxygen will +# then run dia to produce the diagram and insert it in the documentation. The +# DIA_PATH tag allows you to specify the directory where the dia binary resides. +# If left empty dia is assumed to be found in the default search path. + +DIA_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide inheritance +# and usage relations if the target is undocumented or is not a class. +# The default value is: YES. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz (see: +# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent +# Bell Labs. The other options in this section have no effect if this option is +# set to NO +# The default value is: NO. + +HAVE_DOT = NO + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed +# to run in parallel. When set to 0 doxygen will base this on the number of +# processors available in the system. You can set it explicitly to a value +# larger than 0 to get control over the balance between CPU load and processing +# speed. +# Minimum value: 0, maximum value: 32, default value: 0. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_NUM_THREADS = 0 + +# When you want a differently looking font n the dot files that doxygen +# generates you can specify the font name using DOT_FONTNAME. You need to make +# sure dot is able to find the font, which can be done by putting it in a +# standard location or by setting the DOTFONTPATH environment variable or by +# setting DOT_FONTPATH to the directory containing the font. +# The default value is: Helvetica. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_FONTNAME = Helvetica + +# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of +# dot graphs. +# Minimum value: 4, maximum value: 24, default value: 10. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the default font as specified with +# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set +# the path where dot can find it using this tag. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_FONTPATH = + +# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for +# each documented class showing the direct and indirect inheritance relations. +# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO. +# The default value is: YES. +# This tag requires that the tag HAVE_DOT is set to YES. + +CLASS_GRAPH = NO + +# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a +# graph for each documented class showing the direct and indirect implementation +# dependencies (inheritance, containment, and class references variables) of the +# class with other documented classes. +# The default value is: YES. +# This tag requires that the tag HAVE_DOT is set to YES. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for +# groups, showing the direct groups dependencies. +# The default value is: YES. +# This tag requires that the tag HAVE_DOT is set to YES. + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. +# The default value is: NO. +# This tag requires that the tag HAVE_DOT is set to YES. + +UML_LOOK = NO + +# If the UML_LOOK tag is enabled, the fields and methods are shown inside the +# class node. If there are many fields or methods and many nodes the graph may +# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the +# number of items for each type to make the size more manageable. Set this to 0 +# for no limit. Note that the threshold may be exceeded by 50% before the limit +# is enforced. So when you set the threshold to 10, up to 15 fields may appear, +# but if the number exceeds 15, the total amount of fields shown is limited to +# 10. +# Minimum value: 0, maximum value: 100, default value: 10. +# This tag requires that the tag HAVE_DOT is set to YES. + +UML_LIMIT_NUM_FIELDS = 10 + +# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and +# collaboration graphs will show the relations between templates and their +# instances. +# The default value is: NO. +# This tag requires that the tag HAVE_DOT is set to YES. + +TEMPLATE_RELATIONS = NO + +# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to +# YES then doxygen will generate a graph for each documented file showing the +# direct and indirect include dependencies of the file with other documented +# files. +# The default value is: YES. +# This tag requires that the tag HAVE_DOT is set to YES. + +INCLUDE_GRAPH = YES + +# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are +# set to YES then doxygen will generate a graph for each documented file showing +# the direct and indirect include dependencies of the file with other documented +# files. +# The default value is: YES. +# This tag requires that the tag HAVE_DOT is set to YES. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH tag is set to YES then doxygen will generate a call +# dependency graph for every global function or class method. +# +# Note that enabling this option will significantly increase the time of a run. +# So in most cases it will be better to enable call graphs for selected +# functions only using the \callgraph command. +# The default value is: NO. +# This tag requires that the tag HAVE_DOT is set to YES. + +CALL_GRAPH = NO + +# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller +# dependency graph for every global function or class method. +# +# Note that enabling this option will significantly increase the time of a run. +# So in most cases it will be better to enable caller graphs for selected +# functions only using the \callergraph command. +# The default value is: NO. +# This tag requires that the tag HAVE_DOT is set to YES. + +CALLER_GRAPH = NO + +# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical +# hierarchy of all classes instead of a textual one. +# The default value is: YES. +# This tag requires that the tag HAVE_DOT is set to YES. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the +# dependencies a directory has on other directories in a graphical way. The +# dependency relations are determined by the #include relations between the +# files in the directories. +# The default value is: YES. +# This tag requires that the tag HAVE_DOT is set to YES. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. +# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order +# to make the SVG files visible in IE 9+ (other browsers do not have this +# requirement). +# Possible values are: png, jpg, gif and svg. +# The default value is: png. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_IMAGE_FORMAT = png + +# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to +# enable generation of interactive SVG images that allow zooming and panning. +# +# Note that this requires a modern browser other than Internet Explorer. Tested +# and working are Firefox, Chrome, Safari, and Opera. +# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make +# the SVG files visible. Older versions of IE do not have SVG support. +# The default value is: NO. +# This tag requires that the tag HAVE_DOT is set to YES. + +INTERACTIVE_SVG = NO + +# The DOT_PATH tag can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the \dotfile +# command). +# This tag requires that the tag HAVE_DOT is set to YES. + +DOTFILE_DIRS = + +# The MSCFILE_DIRS tag can be used to specify one or more directories that +# contain msc files that are included in the documentation (see the \mscfile +# command). + +MSCFILE_DIRS = + +# The DIAFILE_DIRS tag can be used to specify one or more directories that +# contain dia files that are included in the documentation (see the \diafile +# command). + +DIAFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes +# that will be shown in the graph. If the number of nodes in a graph becomes +# larger than this value, doxygen will truncate the graph, which is visualized +# by representing a node as a red box. Note that doxygen if the number of direct +# children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that +# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. +# Minimum value: 0, maximum value: 10000, default value: 50. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs +# generated by dot. A depth value of 3 means that only nodes reachable from the +# root by following a path via at most 3 edges will be shown. Nodes that lay +# further from the root node will be omitted. Note that setting this option to 1 +# or 2 may greatly reduce the computation time needed for large code bases. Also +# note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. +# Minimum value: 0, maximum value: 1000, default value: 0. +# This tag requires that the tag HAVE_DOT is set to YES. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not seem +# to support this out of the box. +# +# Warning: Depending on the platform used, enabling this option may lead to +# badly anti-aliased labels on the edges of a graph (i.e. they become hard to +# read). +# The default value is: NO. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) support +# this, this feature is disabled by default. +# The default value is: NO. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_MULTI_TARGETS = YES + +# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page +# explaining the meaning of the various boxes and arrows in the dot generated +# graphs. +# The default value is: YES. +# This tag requires that the tag HAVE_DOT is set to YES. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES doxygen will remove the intermediate dot +# files that are used to generate the various graphs. +# The default value is: YES. +# This tag requires that the tag HAVE_DOT is set to YES. + +DOT_CLEANUP = YES @@ -0,0 +1,204 @@ +Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + @@ -0,0 +1,3 @@ +Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. +Except as noted, this software is licensed under Apache License, Version 2. +Please, see the LICENSE file for Apache License terms and conditions. diff --git a/build_def.prop b/build_def.prop new file mode 100755 index 0000000..6bb5e2f --- /dev/null +++ b/build_def.prop @@ -0,0 +1,6 @@ + +# Add pre/post build process +PREBUILD_DESC = +PREBUILD_COMMAND = +POSTBUILD_DESC = +POSTBUILD_COMMAND = diff --git a/doc/share_panel_doc.h b/doc/share_panel_doc.h new file mode 100755 index 0000000..648bdea --- /dev/null +++ b/doc/share_panel_doc.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_DOC_H__ +#define __TIZEN_SHARE_PANEL_DOC_H__ + +/** + * @defgroup CAPI_PANEL_SHARE_MODULE Share panel + * @brief If users want to share selected files with other apps, then users can use the share panel.\n + The share panel shows icons of apps which can handle selected files.\n + User can select an app to share them. + * @ingroup CAPI_PANEL_MODULE + * + * @section CAPI_PANEL_SHARE_MODULE_HEADER Required Header + * \#include <share_panel.h> + * @section CAPI_PANEL_SHARE_MODULE_OVERVIEW Overview + * It provides functions for adding an share panel (share_panel_create()) and deleting it (share_panel_destroy()) in an app.\n + * It is shown with (share_panel_show()) and hiden with (share_panel_hide()).\n + */ + +#endif diff --git a/doxygen_res/screenshot.png b/doxygen_res/screenshot.png Binary files differnew file mode 100755 index 0000000..0111050 --- /dev/null +++ b/doxygen_res/screenshot.png diff --git a/inc/conf.h b/inc/conf.h new file mode 100755 index 0000000..8428a1d --- /dev/null +++ b/inc/conf.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_CONF_H__ +#define __TIZEN_SHARE_PANEL_CONF_H__ + +/** + * @defgroup Defines Defines + * @addtogroup Defines + * @{ + */ + +#define BASE_WIDTH 480 /**<Base layout width*/ +#define BASE_HEIGHT 800 /**<Base layout height*/ + +/* ITEM_ICON is changed from 74 to 63 about 87% decrease because of resolution issues. */ +#define ITEM_ICON_WIDTH 63 /**<Width of the item's icon*/ +#define ITEM_ICON_HEIGHT 63 /**<Height of the item's icon*/ + +/* ITEM_WIDTH is changed from 123 to 107 about 87% decrease because of resolution issues. */ +#define ITEM_WIDTH 118 /**<Width of the item*/ +/* ITEM_HEIGHT is changed from 166 to 144 about 87% decrease because of resolution issues. */ +#define ITEM_HEIGHT 144 /**<Height of the item*/ + +#define INDEX_HEIGHT 50 /**<Height of the index*/ +#define TITLE_HEIGHT 54 /**<Height of the title*/ +#define SCROLLER_HEIGHT 300 /**<Height of the scroller*/ + +#define SHARE_PANEL_LINE_MAX 4 /**<Maximum number of items in line*/ + +/* PANEL_HEIGHT is changed from 368 to 320 about 87% decrease because of resolution issues. */ +#define PANEL_HEIGHT (SCROLLER_HEIGHT+INDEX_HEIGHT+TITLE_HEIGHT) /**<Height of the panel*/ + +#define PROJECT "share-panel" /**<Name of the project*/ +#define PACKAGE "org.tizen.share-panel" /**<Share Panel package name*/ + +/** + * @} + */ + +#endif /* __TIZEN_SHARE_PANEL_CONF_H__ */ diff --git a/inc/grid.h b/inc/grid.h new file mode 100755 index 0000000..bc491a4 --- /dev/null +++ b/inc/grid.h @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_GRID_H__ +#define __TIZEN_SHARE_PANEL_GRID_H__ + +#include <Elementary.h> + +/** + * @ingroup View + * @defgroup Grid Grid + * @addtogroup Grid + * @{ + */ + +/** + * @brief Creates grid of applications that meet sharing requirements. + * + * @param page The page widget + * + * @return created grid + */ +extern Evas_Object *_grid_create(Evas_Object *page); + +/** + * @brief Destroys the application grid. + * + * @param grid The grid to be destroyed + */ +extern void _grid_destroy(Evas_Object *grid); + +/** + * @brief Appends item to the application grid. + * + * @param grid The grid widget + * @param item_info The info structure of the item to be appended + * + * @return Elm_Object_Item of the appended item + */ +extern Elm_Object_Item *_grid_append_item(Evas_Object *grid, item_s *item_info); + +/** + * @brief Removes item from the application grid. + * + * @param grid The grid where item is removed + * @param item_info Info structure of the item to be removed + */ +extern void _grid_remove_item(Evas_Object *grid, item_s *item_info); + +/** + * @brief Sends app control launch request related to the given item. + * + * @param item The info structure of the item related with app to be launched + * + * @return app_control_error_e type value + */ +int _app_control_launch(item_s *item); + +/** + * @} + */ + +#endif /* __TIZEN_SHARE_PANEL_GRID_H__ */ diff --git a/inc/index.h b/inc/index.h new file mode 100755 index 0000000..431cf8e --- /dev/null +++ b/inc/index.h @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_INDEX_H__ +#define __TIZEN_SHARE_PANEL_INDEX_H__ + +#include <Evas.h> + +/** + * @ingroup View + * @defgroup Index Index + * @addtogroup Index + * @{ + */ + +/** + * @brief Creates share panel page index. + * + * @param ui_manager The parent layout + * @param count Number of pages + * + * @return created index + */ +extern Evas_Object *_index_create(Evas_Object *ui_manager, unsigned int count); + +/** + * @brief Updates the index status. + * + * @param index The index to be updated + * @param count Number of pages + */ +extern void _index_update(Evas_Object *index, unsigned int count); + +/** + * @brief Destroys index. + * + * @param index The index to be destroyed + */ +extern void _index_destroy(Evas_Object *index); + +/** + * @brief Sets index page. + * + * @param index The index object to be set + * @param idx The index + */ +extern void _index_bring_in(Evas_Object *index, int idx); + +/** + * @} + */ + +#endif //__TIZEN_SHARE_PANEL_INDEX_H__ diff --git a/inc/list.h b/inc/list.h new file mode 100755 index 0000000..8a3476d --- /dev/null +++ b/inc/list.h @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_LIST_H__ +#define __TIZEN_SHARE_PANEL_LIST_H__ + +#include <Elementary.h> + +/** + * @defgroup Model Model + */ + +/** + * @ingroup Model + * @defgroup List List + * @addtogroup List + * @{ + */ + +/** + * @brief Creates list of the sharing data applications. + * + * @param share_panel Share panel info handle + * + * @return created list + */ +Eina_List *_list_create(share_panel_h share_panel); + +/** + * @brief Destroys list of the sharing data applications. + * + * @param list The list to be destroyed. + */ +void _list_destroy(Eina_List *list); + +/** + * @} + */ + +#endif /* __TIZEN_SHARE_PANEL_LIST_H__ */ diff --git a/inc/log.h b/inc/log.h new file mode 100755 index 0000000..fc6ca6b --- /dev/null +++ b/inc/log.h @@ -0,0 +1,108 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_LOG_H__ +#define __TIZEN_SHARE_PANEL_LOG_H__ + +#include <dlog.h> + +/** + * @addtogroup Utils + * @{ + */ + +#define OK (0) +#define FAIL (-1) + +#undef LOG_TAG +#define LOG_TAG "SHARE_PANEL" + +#if defined(D_) +#undef D_ +#endif +#define D_(str) dgettext(PACKAGE, str) + + +#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) + +#if !defined(_D) +#define _D(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, "%s: %s[%d] " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg) +#endif + +#if !defined(_W) +#define _W(fmt, arg...) dlog_print(DLOG_WARN, LOG_TAG, "%s: %s[%d] " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg) +#endif + +#if !defined(_E) +#define _E(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, "%s: %s[%d] " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg) +#endif + +#define retvm_if(expr, val, fmt, arg...) do { \ + if(expr) { \ + _E(fmt, ##arg); \ + _E("(%s) -> %s() return", #expr, __FUNCTION__); \ + return val; \ + } \ +} while (0) + +#define retv_if(expr, val) do { \ + if(expr) { \ + _E("(%s) -> %s() return", #expr, __FUNCTION__); \ + return (val); \ + } \ +} while (0) + +#define retm_if(expr, fmt, arg...) do { \ + if(expr) { \ + _E(fmt, ##arg); \ + _E("(%s) -> %s() return", #expr, __FUNCTION__); \ + return; \ + } \ +} while (0) + +#define ret_if(expr) do { \ + if(expr) { \ + _E("(%s) -> %s() return", #expr, __FUNCTION__); \ + return; \ + } \ +} while (0) + +#define goto_if(expr, val) do { \ + if(expr) { \ + _E("(%s) -> goto", #expr); \ + goto val; \ + } \ +} while (0) + +#define break_if(expr) { \ + if(expr) { \ + _E("(%s) -> break", #expr); \ + break; \ + } \ +} + +#define continue_if(expr) { \ + if(expr) { \ + _E("(%s) -> continue", #expr); \ + continue; \ + } \ +} + +/** + * @} + */ + +#endif /* __TIZEN_SHARE_PANEL_LOG_H__ */ diff --git a/inc/page.h b/inc/page.h new file mode 100755 index 0000000..03f5808 --- /dev/null +++ b/inc/page.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_PAGE_H__ +#define __TIZEN_SHARE_PANEL_PAGE_H__ + +#include <Elementary.h> + +/** + * @ingroup View + * @defgroup Page Page + * @addtogroup Page + * @{ + */ + +/** + * @brief Creates share panel scroller's page. + * + * @param scroller The scroller where to add page + * @param page_width Width of the page + * @param page_height Height of the page + * + * @return created page + */ +extern Evas_Object *_page_create(Evas_Object *scroller, int page_width, int page_height); + +/** + * @brief Destroys scroller's page. + * + * @param page The page to be destroyed + */ +extern void _page_destroy(Evas_Object *page); + +/** + * @} + */ + +#endif /* __TIZEN_SHARE_PANEL_PAGE_H__ */ diff --git a/inc/scroller.h b/inc/scroller.h new file mode 100755 index 0000000..52d82b0 --- /dev/null +++ b/inc/scroller.h @@ -0,0 +1,128 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_SCROLLER_H__ +#define __TIZEN_SHARE_PANEL_SCROLLER_H__ + +#include <Elementary.h> + +/** + * @ingroup View + * @defgroup Scroller Scroller + * @addtogroup Scroller + * @{ + */ + +/** + * @brief Enumerations for share panel event error. + */ +typedef enum { + SCROLLER_EVENT_TYPE_INVALID = 0, + SCROLLER_EVENT_TYPE_SCROLL, + SCROLLER_EVENT_TYPE_APPEND_PAGE, + SCROLLER_EVENT_TYPE_REMOVE_PAGE, + SCROLLER_EVENT_TYPE_MAX, +} scroller_event_type_e; + +/** + * @brief Creates application page scroller. + * + * @param ui_manager The main parent layout + * @param share_panel The share panel info structure + * + * @return created scroller + */ +extern Evas_Object *_scroller_create(Evas_Object *ui_manager, share_panel_s *share_panel); + +/** + * @brief Destroys application page scroller. + * + * @param scroller The scroller to be destroyed + */ +extern void _scroller_destroy(Evas_Object *scroller); + +/** + * @brief Appends new page to the scroller. + * + * @param scroller The scroller widget + * @param page The page to be appended + */ +extern void _scroller_append_page(Evas_Object *scroller, Evas_Object *page); + +/** + * @brief Appends list items into the scroller. + * + * @param scroller The scroller widget + * @param list The list of applications to be appended + * @param page_width Width of the pages to be appended + * @param page_height Height of the pages to be appended + */ +extern void _scroller_append_list(Evas_Object *scroller, Eina_List *list, int page_width, int page_height); + +/** + * @brief Removes list items from the scroller. + * + * @param scroller The scroller widget + * @param list The list of applications to be removed + */ +extern void _scroller_remove_list(Evas_Object *scroller, Eina_List *list); + +/** + * @brief Gets region of the scroller's index. + * + * @param scroller The scroller widget + * + * @return index's region + */ +extern int _scroller_get_region_index(Evas_Object *scroller); + +/** + * @brief Gets the number of pages in scroller's box. + * + * @param scroller The scroller widget + * + * @return number of pages + */ +extern unsigned int _scroller_count(Evas_Object *scroller); + +/** + * @brief Registers scroller event callbacks. + * + * @param scroller The scroller widget + * @param event_type The type of the event + * @param event_cb The callback function to be called + * @param data The data to be passed to the event callback function + * + * @return share_panel_error_e enumeration value + */ +extern int _scroller_register_event_cb(Evas_Object *scroller, int event_type, void (*event_cb)(Evas_Object *scroller, int event_type, void *event_info, void *data), void *data); + +/** + * @brief Unregister scroller event callbacks. + * + * @param scroller The scroller widget + * @param event_type The type of the event + * @param event_cb The scroller's event callback function to be unregistered + * + * @return share_panel_error_e enumeration value + */ +extern int _scroller_unregister_event_cb(Evas_Object *scroller, int event_type, void (*event_cb)(Evas_Object *scroller, int event_type, void *event_info, void *data)); + +/** + * @} + */ + +#endif /* __TIZEN_SHARE_PANEL_SCROLLER_H__ */ diff --git a/inc/share_panel.h b/inc/share_panel.h new file mode 100755 index 0000000..4afa8b7 --- /dev/null +++ b/inc/share_panel.h @@ -0,0 +1,383 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_H__ +#define __TIZEN_SHARE_PANEL_H__ + +#include <Elementary.h> +#include <tizen_error.h> +#include <app_control.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** This definition will be removed */ +#ifndef TIZEN_ERROR_PANEL +#define TIZEN_ERROR_PANEL -0x02850000 +#endif + +/** + * @mainpage Share-Panel documentation + * + * Share-panel application is for sharing content(files, texts, contacts, etc.) using apps that are set for handling particular sharing option. + * + * There are three types of share: + * - APP_CONTROL_OPERATION_SHARE + * - APP_CONTROL_OPERATION_MULTI_SHARE + * - APP_CONTROL_OPERATION_SHARE_TEXT + * + * Share-panel shows you which applications can handle your share request: + * @image html screenshot.png + * \n + * <HR> + * \n + * + * @section overview Detailed Description + * + * @ref share_content \n + * @ref how_share_set_up + * + * @section share_content How to share content? + * \n + * To share content via share-panel you need to use App Control API. Below you can find example of how to share text: + * @code + * app_control_h control; + * app_control_create(&control); + + * app_control_set_operation(control, APP_CONTROL_OPERATION_SHARE_TEXT); + * app_control_add_extra_data(control, APP_CONTROL_DATA_TEXT, "TEST_TEXT"); + * + * app_control_send_launch_request(control, NULL, NULL); + * @endcode + * + * To share one file use APP_CONTROL_OPERATION_SHARE instead of APP_CONTROL_OPERATION_SHARE_TEXT and add file path as uri: + * @code + * app_control_set_uri(control, "file_path"); + * @endcode + * To share more than one file use APP_CONTROL_OPERATION_MULTI_SHARE instead of APP_CONTROL_OPERATION_SHARE_TEXT and add files paths as extra data: + * @code + * app_control_add_extra_data_array(control, APP_CONTROL_DATA_PATH, { "first_path", "second_path" }, count_of_files_to_share); + * @endcode + * + * Share-panel app will display all apps that are registered to share particular content basing on files extension. + * \n\n + * <HR> + * + * @section how_share_set_up How to set up app to be registered as sharing content app and might be displayed in share-panel? + * + * Go to tizen-manifest.xml file of your app. + * Go to 'Advanced' tab and then to 'Application Control' section. + * Click button 'Add...' and edit entry on the buttons left side + * Chose operation from drop-down list as one of: + * - http://tizen.org/appcontrol/operation/multi_share + * - http://tizen.org/appcontrol/operation/share + * - http://tizen.org/appcontrol/operation/share_text + * + * Chose 'Mime' from drop-down list or left empty if your app is able to share all files extension. + * + * + */ + +/** + * @defgroup View View + * @defgroup SPanel Share Panel + * @addtogroup SPanel + * @{ + * @defgroup SPInternal Share Panel Internal + */ + +/** + * @brief Share panel handle. + * @since_tizen 2.4 + */ +typedef struct _share_panel *share_panel_h; + +/** + * @brief Enumeration for values of share-panel response types. + * @since_tizen 2.4 + */ +typedef enum share_panel_error { + SHARE_PANEL_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successfully handled */ + SHARE_PANEL_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Request is not valid, invalid parameter or invalid argument value */ + SHARE_PANEL_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Memory is not enough to handle a new request */ + SHARE_PANEL_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Has no permission to share with */ + SHARE_PANEL_ERROR_ALREADY_EXISTS = TIZEN_ERROR_PANEL | 0x01, /**< There is already a panel in the conformant */ + SHARE_PANEL_ERROR_NOT_INITIALIZED = TIZEN_ERROR_PANEL | 0x02, /**< The panel is not initialized yet */ + SHARE_PANEL_ERROR_INVALID_OPERATION = TIZEN_ERROR_PANEL | 0x04, /**< Invalid operation */ +} share_panel_error_e; + +/** + * @brief Creates a share panel. + * @since_tizen 2.4 + * @privlevel public + * @privilege %http://tizen.org/privilege/packagemanager.info + * @privilege %http://tizen.org/privilege/appmanager.launch + * @remarks The caller app has to check the return value of this function.\n + * + * @param[in] control The app control handler.\n + * This control needs a share operation among below operations.\n + * http://tizen.org/appcontrol/operation/share\n + * http://tizen.org/appcontrol/operation/multi_share\n + * http://tizen.org/appcontrol/operation/share_text\n + * These operations are defined in application/app-control API. + * @param[out] share_panel The share panel handler + * @return @c SHARE_PANEL_ERROR_NONE on success, + * otherwise a negative error value + * @retval #SHARE_PANEL_ERROR_NONE Successful + * @retval #SHARE_PANEL_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #SHARE_PANEL_ERROR_OUT_OF_MEMORY Out of memory + * @retval #SHARE_PANEL_ERROR_PERMISSION_DENIED permission denied + * @retval #SHARE_PANEL_ERROR_INVALID_OPERATION Invalid operation + * + * @see share_panel_destroy() + * @see share_panel_show() + * @see share_panel_hide() + * + * @par Example + * @code + * #include <share_panel.h> + * + * static int app_control(void *data) + * { + * struct appdata *ad = data; + * share_panel_h share_panel = NULL; + * app_control_h control = NULL; + * int ret = APP_CONTROL_ERROR_NONE; + * + * if (!ad) { + * // Error handling + * } + * + * if (!ad->conformant) { + * // Error handling + * } + * + * ret = app_control_create(&control); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * app_control_set_operation(control, "http://tizen.org/appcontrol/operation/share"); + * + * ret = share_panel_create(ad->conformant, control, &share_panel); + * if (SHARE_PANEL_ERROR_NONE != ret) { + * // Error handling + * } + * + * ret = share_panel_show(share_panel); + * if (SHARE_PANEL_ERROR_NONE != ret) { + * // Error handling + * } + * + * ret = app_control_destroy(control); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * + * return 0; + * } + * + * @endcode + */ +extern int share_panel_create(app_control_h control, share_panel_h *share_panel); + +/** + * @brief Destroys the share panel. + * @since_tizen 2.4 + * @remarks The caller app has to check the return value of this function.\n + * + * @param[in] share_panel Share panel handler + * @return @c SHARE_PANEL_ERROR_NONE on success, + * otherwise a negative error value + * @retval #SHARE_PANEL_ERROR_NONE Successful + * @retval #SHARE_PANEL_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #SHARE_PANEL_ERROR_NOT_INITIALIZED The panel is not initialized yet + * + * @see share_panel_create() + * @see share_panel_show() + * @see share_panel_hide() + * + * @par Example + * @code + * #include <share_panel.h> + * + * static int app_terminate(void *data) + * { + * struct appdata *ad = data; + * int ret = APP_CONTROL_ERROR_NONE; + * + * if (!ad) { + * // Error handling + * } + * + * if (!ad->share_panel) { + * // Error handling + * } + * + * ret = share_panel_hide(ad->share_panel); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * + * ret = share_panel_destroy(ad->share_panel); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * ad->share_panel = NULL; + * + * return 0; + * } + * + * @endcode + */ +extern int share_panel_destroy(share_panel_h share_panel); + +/** + * @brief Shows the share panel, asynchronously. + * @since_tizen 2.4 + * @remarks The caller app has to check the return value of this function.\n + * share_panel_show will activate an animation to display the panel. + * + * @param[in] share_panel Share panel handler + * @return @c SHARE_PANEL_ERROR_NONE on success, + * otherwise a negative error value + * @retval #SHARE_PANEL_ERROR_NONE Successful + * @retval #SHARE_PANEL_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #SHARE_PANEL_ERROR_NOT_INITIALIZED The panel is not initialized yet + * + * @see share_panel_create() + * @see share_panel_destroy() + * @see share_panel_hide() + * + * @par Example + * @code + * #include <share_panel.h> + * + * static int app_control(void *data) + * { + * struct appdata *ad = data; + * share_panel_h share_panel = NULL; + * app_control_h control = NULL; + * int ret = APP_CONTROL_ERROR_NONE; + * + * if (!ad) { + * // Error handling + * } + * + * if (!ad->conformant) { + * // Error handling + * } + * + * ret = app_control_create(&control); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * app_control_set_operation(control, "http://tizen.org/appcontrol/operation/share"); + * + * ret = share_panel_create(ad->conformant, control, &share_panel); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * ad->share_panel = share_panel; + * + * ret = share_panel_show(share_panel); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * + * ret = app_control_destroy(control); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * + * return 0; + * } + * @endcode + */ +extern int share_panel_show(share_panel_h share_panel); + +/** + * @brief Hides the share panel, asynchronously. + * @since_tizen 2.4 + * @remarks The caller app has to check the return value of this function.\n + * share_panel_hide will activate an animation to disappear the panel. + * + * @param[in] share_panel Share panel handler + * @return @c SHARE_PANEL_ERROR_NONE on success, + * otherwise a negative error value + * @retval #SHARE_PANEL_ERROR_NONE Successful + * @retval #SHARE_PANEL_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #SHARE_PANEL_ERROR_NOT_INITIALIZED The panel is not initialized yet + * + * @see share_panel_create() + * @see share_panel_destroy() + * @see share_panel_show() + * + * @par Example + * @code + * #include <share_panel.h> + * + * static int app_terminate(void *data) + * { + * struct appdata *ad = data; + * int ret = APP_CONTROL_ERROR_NONE; + * + * if (!ad) { + * // Error handling + * } + * + * if (!ad->share_panel) { + * // Error handling + * } + * + * ret = share_panel_hide(ad->share_panel); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * + * ret = share_panel_destroy(ad->share_panel); + * if (APP_CONTROL_ERROR_NONE != ret) { + * // Error handling + * } + * ad->share_panel = NULL; + * + * return 0; + * } + * + * @endcode + */ +extern int share_panel_hide(share_panel_h share_panel); + +/** + * @brief Reply caller of share-panel application about sharing operation + * result. + * + * @param share_panel share panel handle + * @param result sharing result, true on success, false otherwise + * + * @return SHARE_PANEL_ERROR_NONE on succes, other value on failure. + */ +extern int share_panel_reply(share_panel_h share_panel, bool result); + +/** + * @} + */ + +#ifdef __cplusplus +} +#endif +#endif // __TIZEN_SHARE_PANEL_H__ + diff --git a/inc/share_panel_internal.h b/inc/share_panel_internal.h new file mode 100755 index 0000000..983db4a --- /dev/null +++ b/inc/share_panel_internal.h @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_INTERNAL_H__ +#define __TIZEN_SHARE_PANEL_INTERNAL_H__ + +#include <Elementary.h> +#include <app_control.h> + +#define DATA_KEY_SHARE_PANEL "__dksp__" +#define DATA_KEY_SHARE_PANEL_INFO "__dkspi__" +#define TABBAR_NAME_MORE "More" +#define BUF_SIZE 128 +#define TIZEN_DATA_PATH "http://tizen.org/appcontrol/data/path" +#define DEFAULT_ICON "/usr/share/icons/A01-1_icon_Menu.png" +#define KEY_BACK "XF86Back" + +/** + * @addtogroup SPInternal + * @{ + */ + +/** + * @brief Share panel state enumeration. + */ +enum { + SHARE_PANEL_SHOW_STATE_HIDE, + SHARE_PANEL_SHOW_STATE_HALF, +}; + +/** + * @brief Share panel base info structure. + */ +struct _share_panel { + Evas_Object *win; + Evas_Object *ui_manager; + Evas_Object *scroller; + Evas_Object *index; + + Eina_List *list; + Ecore_Idler *append_idler; + Elm_Transit *transit; + app_control_h control; + + int root_width; + int root_height; + int page_width; + int page_height; + int show_state; + int list_count; + int after_launch; + bool reply_requested; +}; +typedef struct _share_panel share_panel_s; + +/** + * @brief Application related item info structure. + */ +struct _item { + app_control_h caller_control; + share_panel_s *share_panel; + + char *appid; + char *name; + char *icon; + Elm_Object_Item *grid_item; +}; +typedef struct _item item_s; + +/** + * @} + */ + +#endif // __TIZEN_SHARE_PANEL_INTERNAL_H__ diff --git a/inc/ui_manager.h b/inc/ui_manager.h new file mode 100755 index 0000000..c30d20e --- /dev/null +++ b/inc/ui_manager.h @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __TIZEN_SHARE_PANEL_UI_MANAGER_H__ +#define __TIZEN_SHARE_PANEL_UI_MANAGER_H__ + +#include <Elementary.h> + +/** + * @ingroup View + * @defgroup Man UI Manager + * @addtogroup Man + * @{ + */ + +/** + * @brief Creates share panel ui manager. + * + * @param share_panel The share panel main info structure + * + * @return created ui manager + */ +extern Evas_Object *_ui_manager_create(share_panel_s *share_panel); + +/** + * @brief Destroys share panel ui manager. + * + * @param ui_manager The UI to be destroyed + */ +extern void _ui_manager_destroy(Evas_Object *ui_manager); + +/** + * @brief Shows share panel's UI. + * + * @param share_panel The share panel info structure + */ +extern int _ui_manager_show(share_panel_h share_panel); + +/** + * @brief Hides share panel's UI. + * + * @param share_panel The share panel info structure + * + * @return share_panel_error_e enumeration + */ +extern int _ui_manager_hide(share_panel_h share_panel); + +/** + * @} + */ + +#endif /* __TIZEN_SHARE_PANEL_UI_MANAGER_H__ */ diff --git a/inc/utils.h b/inc/utils.h new file mode 100755 index 0000000..c5b8438 --- /dev/null +++ b/inc/utils.h @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef UTILS_H_ +#define UTILS_H_ + +/** + * @defgroup Utils Utilities + * @addtogroup Utils + * @{ + */ + +/** + * @brief Gets share panel's absolute resource path + * + * @param sub_path sub path in res/ folder + * + * @return Absolute path for sub_path + * @remarks The returned path should be released. + */ + +char *utils_get_res_file_path(char *sub_path); + +/** + * @} + */ + +#endif /* UTILS_H_ */ diff --git a/org.tizen.share-panel.manifest b/org.tizen.share-panel.manifest new file mode 100755 index 0000000..97e8c31 --- /dev/null +++ b/org.tizen.share-panel.manifest @@ -0,0 +1,5 @@ +<manifest> + <request> + <domain name="_"/> + </request> +</manifest> diff --git a/packaging/org.tizen.share-panel.spec b/packaging/org.tizen.share-panel.spec new file mode 100755 index 0000000..4669bcd --- /dev/null +++ b/packaging/org.tizen.share-panel.spec @@ -0,0 +1,89 @@ +Name: org.tizen.share-panel +Summary: Share Panel +Version: 0.1.0 +Release: 0 +Group: Applications/Core Applications +License: Apache-2.0 +Source0: %{name}-%{version}.tar.gz + +%if "%{?tizen_profile_name}" == "wearable" +ExcludeArch: %{arm} %ix86 x86_64 +%endif + +%if "%{?tizen_profile_name}" == "tv" +ExcludeArch: %{arm} %ix86 x86_64 +%endif + +BuildRequires: cmake +BuildRequires: edje-tools +BuildRequires: gettext-tools +BuildRequires: hash-signer +BuildRequires: pkgconfig(appcore-efl) +BuildRequires: pkgconfig(aul) +BuildRequires: pkgconfig(capi-appfw-application) +BuildRequires: pkgconfig(capi-appfw-app-manager) +BuildRequires: pkgconfig(capi-system-system-settings) +BuildRequires: pkgconfig(capi-base-common) +BuildRequires: pkgconfig(capi-content-mime-type) +BuildRequires: pkgconfig(capi-ui-efl-util) +BuildRequires: pkgconfig(dlog) +BuildRequires: pkgconfig(ecore) +BuildRequires: pkgconfig(edje) +BuildRequires: pkgconfig(efl-extension) +BuildRequires: pkgconfig(elementary) +BuildRequires: pkgconfig(evas) +BuildRequires: pkgconfig(feedback) +BuildRequires: pkgconfig(isf) +BuildRequires: pkgconfig(notification) +BuildRequires: pkgconfig(libtzplatform-config) +BuildRequires: pkgconfig(rua) + +%description +Description: Share Panel + +%prep +%setup -q + +%build +%define _pkg_dir %{TZ_SYS_RO_APP}/%{name} +%define _pkg_shared_dir %{_pkg_dir}/shared +%define _pkg_data_dir %{_pkg_dir}/data +%define _sys_icons_dir %{_pkg_shared_dir}/res +%define _sys_packages_dir %{TZ_SYS_RO_PACKAGES} +%define _sys_license_dir %{TZ_SYS_SHARE}/license + +cd CMake +cmake . -DINSTALL_PREFIX=%{_pkg_dir} \ + -DSYS_ICONS_DIR=%{_sys_icons_dir} \ + -DSYS_PACKAGES_DIR=%{_sys_packages_dir} +make %{?jobs:-j%jobs} +cd - + +%install +cd CMake +%make_install +cd - + +%define tizen_sign 1 +%define tizen_sign_base %{_pkg_dir} +%define tizen_sign_level public +%define tizen_author_sign 1 +%define tizen_dist_sign 1 +%define _sys_license_dir %{TZ_SYS_SHARE}/license + +mkdir -p %{buildroot}/%{_sys_license_dir} +cp LICENSE %{buildroot}/%{_sys_license_dir}/%{name} + + +%find_lang share-panel + +%files -f share-panel.lang +%manifest %{name}.manifest +%{_pkg_dir}/bin/share-panel +%{_pkg_dir}/res/edje/*.edj +%{_pkg_dir}/res/images/*.png +%{_sys_packages_dir}/%{name}.xml +%{_sys_license_dir}/%{name} +%{_sys_icons_dir}/share-panel.png +%{_pkg_dir}/author-signature.xml +%{_pkg_dir}/signature1.xml diff --git a/project_def.prop b/project_def.prop new file mode 100755 index 0000000..6390792 --- /dev/null +++ b/project_def.prop @@ -0,0 +1,63 @@ + +# Project Name +APPNAME = share-panel + +# Project Type +type = app + +# Project Profile +profile = mobile-4.0 + +# C/CPP Sources +USER_SRCS = src/page.c src/grid.c src/index.c src/list.c src/share_panel.c src/ui_manager.c src/utils.c src/scroller.c + +# EDC Sources +USER_EDCS = + +# PO Sources +USER_POS = res/po/it_IT.po res/po/kk.po res/po/ru_RU.po res/po/el_GR.po res/po/ca.po res/po/fr.po res/po/nl.po res/po/pt_BR.po res/po/sk.po res/po/sv.po res/po/uz.po res/po/ro.po res/po/eu.po res/po/en_PH.po res/po/gu.po res/po/mk.po res/po/zh_SG.po res/po/bn.po res/po/tr_TR.po res/po/zh_CN.po res/po/hr.po res/po/pt_PT.po res/po/sr.po res/po/uk.po res/po/ar.po res/po/hu.po res/po/ta.po res/po/is.po res/po/ka.po res/po/ko_KR.po res/po/fi.po res/po/ml.po res/po/he.po res/po/zh_HK.po res/po/bg.po res/po/es_MX.po res/po/kn.po res/po/es_ES.po res/po/fr_CA.po res/po/fr_FR.po res/po/gl.po res/po/hy.po res/po/te.po res/po/ur.po res/po/mn_MN.po res/po/en_US.po res/po/da.po res/po/en.po res/po/hi.po res/po/es_US.po res/po/ja_JP.po res/po/sl.po res/po/lt.po res/po/nb.po res/po/et.po res/po/zh_TW.po res/po/az.po res/po/cs.po res/po/nl_NL.po res/po/pl.po res/po/ga.po res/po/lv.po res/po/de_DE.po res/po/th.po res/po/de.po res/po/si.po res/po/fa.po + +# User Defines +USER_DEFS = TIZEN_DEPRECATION DEPRECATION_WARNING +USER_CPP_DEFS = + +# User Undefines +USER_UNDEFS = +USER_CPP_UNDEFS = + +# User Libraries +USER_LIBS = + +# User Objects +USER_OBJS = + +# User Includes +## C Compiler +USER_C_INC_DIRS = inc +USER_INC_FILES = +## C++ Compiler +USER_CPP_INC_DIRS = +USER_CPP_INC_FILES = + +USER_INC_DIRS = $(USER_C_INC_DIRS) $(USER_CPP_INC_DIRS) + +# User Library Path +USER_LIB_DIRS = + +# EDC Resource Path +USER_EDCS_IMAGE_DIRS = ${OUTPUT_DIR} edje/images +USER_EDCS_SOUND_DIRS = ${OUTPUT_DIR} edje/sounds +USER_EDCS_FONT_DIRS = ${OUTPUT_DIR} edje/fonts + +# EDC Flags +USER_EXT_EDC_KEYS = EDC0 + +USER_EXT_EDC0_EDCS = res/edje/item.edc res/edje/page.edc res/edje/layout.edc +USER_EXT_EDC0_EDCS_IMAGE_DIRS = ${OUTPUT_DIR} edje/images +USER_EXT_EDC0_EDCS_SOUND_DIRS = ${OUTPUT_DIR} edje/sounds +USER_EXT_EDC0_EDCS_FONT_DIRS = ${OUTPUT_DIR} edje/fonts + +# Resource Filter +USER_RES_INCLUDE = +USER_RES_EXCLUDE = + diff --git a/res/A01-1_icon_Menu.png b/res/A01-1_icon_Menu.png Binary files differnew file mode 100755 index 0000000..962f4cb --- /dev/null +++ b/res/A01-1_icon_Menu.png diff --git a/res/edje/item.edc b/res/edje/item.edc new file mode 100755 index 0000000..0ec1109 --- /dev/null +++ b/res/edje/item.edc @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +collections { + base_scale: 1.7; + group { + name: "grid,icon"; + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + color: 255 255 255 0; + visible: 1; + } + } + part { + name: "icon"; + type: SWALLOW; + scale: 1; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.5 0.55; to: "bg"; } + rel2 { relative: 0.5 0.55; to: "bg"; } + fixed: 1 1; + align: 0.5 0.5; + visible: 1; + } + } + } + } +} //collections diff --git a/res/edje/layout.edc b/res/edje/layout.edc new file mode 100755 index 0000000..6eb47b5 --- /dev/null +++ b/res/edje/layout.edc @@ -0,0 +1,201 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "../../inc/conf.h" + +styles { + style { + name: "text_style"; + base: "font=Tizen:style=Regular font_size=50 color=#3DBACD align=center wrap=mixed ellipsis=-1"; + tag: "br" "\n"; + tag: "hilight" "+ font_weight=Bold"; + tag: "b" "+ font_weight=Bold"; + tag: "tab" "\t"; + } +} + +collections { + base_scale: 2.6; + group { + name: "layout"; + parts { + part { + name: "bg"; + type: RECT; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + visible: 1; + color: 8 8 8 80; + } + } + part { + name: "event"; + type: SWALLOW; + mouse_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; to: "bg"; } + rel2 { relative: 1.0 1.0; to: "bg"; } + visible: 1; + } + } + part { + name: "fixed_bg"; + type: SWALLOW; + repeat_events: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.5 1.0; } + rel2 { relative: 0.5 1.0; } + align: 0.5 1.0; + fixed: 1 1; + visible: 1; + } + description { + state: "1line" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 1.15; } + rel2 { relative: 0.5 1.15; } + } + description { + state: "1line,land" 0.0; + inherit: "default" 0.0; + rel1 { relative: 0.5 1.25; } + rel2 { relative: 0.5 1.25; } + } + } + part { + name: "title,bg"; + type: RECT; + description { + state: "default" 0.0; + rel1 { relative: 0.0 (BASE_HEIGHT-PANEL_HEIGHT)/BASE_HEIGHT; to: "fixed_bg"; } + rel2 { relative: 1.0 (BASE_HEIGHT-(SCROLLER_HEIGHT+INDEX_HEIGHT))/BASE_HEIGHT; to: "fixed_bg"; } + visible: 1; + color: 250 250 250 255; + } + } + part { + name: "title"; + type: TEXTBLOCK; + scale: 1; + description { + rel1.to: "title,bg"; + rel2.to: "title,bg"; + visible: 1; + text { + style: "text_style"; + text: "share panel"; + align: 0.5 0.5; + } + } + } + part { + name: "scroller,bg"; + type: RECT; + description { + state: "default" 0.0; + rel1 { relative: 0.0 (BASE_HEIGHT-(SCROLLER_HEIGHT+INDEX_HEIGHT))/BASE_HEIGHT; to: "fixed_bg"; } + rel2 { relative: 1.0 (BASE_HEIGHT-INDEX_HEIGHT)/BASE_HEIGHT; to: "fixed_bg"; } + visible: 1; + color: 250 250 250 255; + } + } + part { + name: "scroller"; + type: SWALLOW; + scale: 1; + description { + rel1.to: "scroller,bg"; + rel2.to: "scroller,bg"; + visible: 1; + fixed: 1 1; + } + } + part { + name: "index,bg"; + type: RECT; + description { + state: "default" 0.0; + rel1 { relative: 0.0 (BASE_HEIGHT-INDEX_HEIGHT)/BASE_HEIGHT; to: "fixed_bg"; } + rel2 { relative: 1.0 1.0; to: "fixed_bg"; } + visible: 1; + color: 250 250 250 255; + } + } + part { + name: "index"; + type: SWALLOW; + scale: 1; + description { + rel1.to: "index,bg"; + rel2.to: "index,bg"; + visible: 1; + fixed: 1 1; + } + } + part { + name: "blocker"; + type: RECT; + description { + state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + visible: 0; + color: 255 255 255 0; + } + description { + state: "show" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + } + programs { + program { + name: "1line"; + signal: "1line"; + source: "fixed_bg"; + action: STATE_SET "1line" 0.0; + target: "fixed_bg"; + } + program { + name: "1line,land"; + signal: "1line,land"; + source: "fixed_bg"; + action: STATE_SET "1line,land" 0.0; + target: "fixed_bg"; + } + program { + name: "block,hide"; + signal: "hide"; + source: "blocker"; + action: STATE_SET "default" 0.0; + target: "blocker"; + } + program { + name: "block,show"; + signal: "show"; + source: "blocker"; + action: STATE_SET "show" 0.0; + target: "blocker"; + } + } + } //group +} //collections diff --git a/res/edje/page.edc b/res/edje/page.edc new file mode 100755 index 0000000..8765251 --- /dev/null +++ b/res/edje/page.edc @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +collections { + base_scale: 1.7; + group { + name: "page"; + parts { + part { + name: "bg"; + type: SWALLOW; + scale: 1; + mouse_events: 0; + description { + state: "default" 0.0; + rel1 { relative: 0.0 0.0; } + rel2 { relative: 1.0 1.0; } + visible: 1; + } + } + part { + name: "grid"; + type: SWALLOW; + scale: 1; + description { + state: "default" 0.0; + rel1.to: "bg"; + rel2.to: "bg"; + visible: 1; + fixed: 1 1; + } + } + } + } // group +} // collections + + + +// End of file diff --git a/res/po/ar.po b/res/po/ar.po new file mode 100755 index 0000000..a0a9cd7 --- /dev/null +++ b/res/po/ar.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "مشاركة" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "لا توجد تطبيقات متوفرة لفتح الملفات." + diff --git a/res/po/az.po b/res/po/az.po new file mode 100755 index 0000000..307245b --- /dev/null +++ b/res/po/az.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Paylaş" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Faylları açmaq üçün proqram yoxdur." + diff --git a/res/po/bg.po b/res/po/bg.po new file mode 100755 index 0000000..eb2f4f6 --- /dev/null +++ b/res/po/bg.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Споделяне" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Няма достъпни приложения за отваряне на файловете." + diff --git a/res/po/bn.po b/res/po/bn.po new file mode 100755 index 0000000..a4fc1ee --- /dev/null +++ b/res/po/bn.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "শেয়ার করুন" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "ফাইলগুলি খোলার জন্য কোনও অ্যাপ্লিকেশন সুলভ নেই।" + diff --git a/res/po/ca.po b/res/po/ca.po new file mode 100755 index 0000000..dd41224 --- /dev/null +++ b/res/po/ca.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Compartir" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "No hi ha aplicacions disponibles per obrir fitxers" + diff --git a/res/po/cs.po b/res/po/cs.po new file mode 100755 index 0000000..c5cbdf7 --- /dev/null +++ b/res/po/cs.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Sdílet" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Nejsou k dispozici žádné aplikace pro otevření souborů." + diff --git a/res/po/da.po b/res/po/da.po new file mode 100755 index 0000000..257ee55 --- /dev/null +++ b/res/po/da.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Del" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Der er ingen applikationer til åbning af filer." + diff --git a/res/po/de.po b/res/po/de.po new file mode 100755 index 0000000..0272dd9 --- /dev/null +++ b/res/po/de.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Senden" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Keine Anwendungen zum Öffnen der Datei verfügbar." + diff --git a/res/po/de_DE.po b/res/po/de_DE.po new file mode 100755 index 0000000..d403a4a --- /dev/null +++ b/res/po/de_DE.po @@ -0,0 +1,90 @@ +msgid "IDS_ST_MBODY_HOME_SCREEN_WALLPAPER" +msgstr "Hintergrund (Startbildschirm)" + +msgid "IDS_ST_BODY_GALLERY" +msgstr "Galerie" + +msgid "IDS_COM_HEADER_NOTIFICATION" +msgstr "Benachrichtigung" + +msgid "IDS_ST_HEADER_HOME_SCREEN_ABB" +msgstr "Startbildschirm" + +msgid "IDS_ST_BODY_WALLPAPER" +msgstr "Hintergrundbild" + +msgid "IDS_ST_BODY_HOME_SCREEN_SETTINGS" +msgstr "Startseiten-Einstellungen" + +msgid "IDS_ST_BODY_HOME_SCREEN_TYPE" +msgstr "Startanzeige-Typ" + +msgid "IDS_COM_BUTTON_CANCEL" +msgstr "Abbruch" + +msgid "IDS_ST_HEADER_HOME_SCREEN" +msgstr "Startbildschirm" + +msgid "IDS_ST_BODY_DEFAULT_HOME_SCREEN" +msgstr "Klassicher Modus" + +msgid "IDS_ST_BUTTON2_SET_AS_HOME" +msgstr "Home-Taste" + +msgid "IDS_ST_BODY_SELECT_APPLICATION" +msgstr "Anwendung auswählen" + +msgid "IDS_ST_BODY_EASY_MODE" +msgstr "Einfacher Modus" + +msgid "IDS_ST_BODY_THE_OVERALL_LAYOUT_OF_THE_HOME_SCREEN_WILL_BE_SIMPLIFIED" +msgstr "Das generelle Layout des Startbildschirms wird vereinfacht." + +msgid "IDS_ST_BODY_HOME_SCREEN_STYLE" +msgstr "Stil des Startbildschirms" + +msgid "IDS_LCKSCN_BODY_WALLPAPERS" +msgstr "Hintergrund" + +msgid "IDS_SCR_POP_SCREEN_READER_IS_NOT_SUPPORTED_BY_PS_PRESS_THE_BACK_KEY_TO_RETURN_TO_THE_PREVIOUS_SCREEN" +msgstr "Das Bildschirmleseprogramm wird von %s nicht unterstützt. Drücken Sie die Zurück-Taste, um zum vorherigen Bildschirm zurückzukehren." + +msgid "IDS_HELP_BODY_SELECT_AN_OPTION" +msgstr "Option auswählen." + +msgid "IDS_COM_BODY_MENU_ABB" +msgstr "Menü" + +msgid "IDS_HS_OPT_SPIRAL" +msgstr "Spirale" + +msgid "IDS_HS_OPT_INNER_CUBE" +msgstr "Innerer Kubus" + +msgid "IDS_HS_OPT_OUTER_CUBE" +msgstr "Äußerer Kubus" + +msgid "IDS_HS_OPT_CAROUSEL" +msgstr "Karussell" + +msgid "IDS_HS_HEADER_PAGE_NAVIGATION_EFFECT" +msgstr "Effekt für Seitennavigation" + +msgid "IDS_ST_HEADER_SELECT_WALLPAPER_FROM_ABB" +msgstr "Hintergrund auswählen aus" + +msgid "IDS_HS_POP_EASY_MODE_CAN_BE_DISABLED_IN_SETTINGS" +msgstr "Der einfache Modus kann in den Einstellungen deaktiviert werden." + +msgid "IDS_ST_BODY_3D_ROTATION_M_EFFECT" +msgstr "3D-Drehung" + +msgid "IDS_ST_BODY_LOADING_ING" +msgstr "Lädt..." + +msgid "IDS_ST_POP_THE_FONT_SIZE_CAN_BE_INCREASED_TO_MAKE_TEXT_EASIER_TO_READ_CHANGE_THE_FONT_SIZE_NOW_Q" +msgstr "Die Schrift kann vergrößert werden, damit Text leichter lesbar ist. Schriftgröße jetzt ändern?" + +msgid "IDS_ST_SK_CHANGE" +msgstr "Ändern" + diff --git a/res/po/el_GR.po b/res/po/el_GR.po new file mode 100755 index 0000000..deb4e14 --- /dev/null +++ b/res/po/el_GR.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Κοινή χρήση" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Δεν υπάρχουν διαθέσιμες εφαρμογές για το άνοιγμα των αρχείων." + diff --git a/res/po/en.po b/res/po/en.po new file mode 100755 index 0000000..63307ef --- /dev/null +++ b/res/po/en.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Share" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "No applications available to open files." + diff --git a/res/po/en_PH.po b/res/po/en_PH.po new file mode 100755 index 0000000..63307ef --- /dev/null +++ b/res/po/en_PH.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Share" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "No applications available to open files." + diff --git a/res/po/en_US.po b/res/po/en_US.po new file mode 100755 index 0000000..63307ef --- /dev/null +++ b/res/po/en_US.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Share" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "No applications available to open files." + diff --git a/res/po/es_ES.po b/res/po/es_ES.po new file mode 100755 index 0000000..a36c290 --- /dev/null +++ b/res/po/es_ES.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Compartir" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "No hay aplicaciones disponibles para abrir archivos" + diff --git a/res/po/es_MX.po b/res/po/es_MX.po new file mode 100755 index 0000000..d7c53be --- /dev/null +++ b/res/po/es_MX.po @@ -0,0 +1,90 @@ +msgid "IDS_ST_MBODY_HOME_SCREEN_WALLPAPER" +msgstr "Fondo de pantalla de inicio" + +msgid "IDS_ST_BODY_GALLERY" +msgstr "Galería" + +msgid "IDS_COM_HEADER_NOTIFICATION" +msgstr "Notificación" + +msgid "IDS_ST_HEADER_HOME_SCREEN_ABB" +msgstr "Pantalla de inicio" + +msgid "IDS_ST_BODY_WALLPAPER" +msgstr "Fondo de pantalla" + +msgid "IDS_ST_BODY_HOME_SCREEN_SETTINGS" +msgstr "Configuración de pantalla de inicio" + +msgid "IDS_ST_BODY_HOME_SCREEN_TYPE" +msgstr "Tipo de pantalla de inicio" + +msgid "IDS_COM_BUTTON_CANCEL" +msgstr "Cancelar" + +msgid "IDS_ST_HEADER_HOME_SCREEN" +msgstr "Pantalla de inicio" + +msgid "IDS_ST_BODY_DEFAULT_HOME_SCREEN" +msgstr "Pantalla de inicio predeterminada" + +msgid "IDS_ST_BUTTON2_SET_AS_HOME" +msgstr "Def. inicio" + +msgid "IDS_ST_BODY_SELECT_APPLICATION" +msgstr "Seleccionar aplicación" + +msgid "IDS_ST_BODY_EASY_MODE" +msgstr "Modo fácil" + +msgid "IDS_ST_BODY_THE_OVERALL_LAYOUT_OF_THE_HOME_SCREEN_WILL_BE_SIMPLIFIED" +msgstr "Se simplificará el diseño general de la pantalla de inicio." + +msgid "IDS_ST_BODY_HOME_SCREEN_STYLE" +msgstr "Estilo de pantalla de inicio" + +msgid "IDS_LCKSCN_BODY_WALLPAPERS" +msgstr "Fondos de pantalla" + +msgid "IDS_SCR_POP_SCREEN_READER_IS_NOT_SUPPORTED_BY_PS_PRESS_THE_BACK_KEY_TO_RETURN_TO_THE_PREVIOUS_SCREEN" +msgstr "El Lector de pantalla no es compatible con %s. Presione la tecla Atrás para regresar a la pantalla anterior." + +msgid "IDS_HELP_BODY_SELECT_AN_OPTION" +msgstr "Seleccione una opción" + +msgid "IDS_COM_BODY_MENU_ABB" +msgstr "Menú" + +msgid "IDS_HS_OPT_SPIRAL" +msgstr "Espiral" + +msgid "IDS_HS_OPT_INNER_CUBE" +msgstr "Cubo interior" + +msgid "IDS_HS_OPT_OUTER_CUBE" +msgstr "Cubo exterior" + +msgid "IDS_HS_OPT_CAROUSEL" +msgstr "Carrusel" + +msgid "IDS_HS_HEADER_PAGE_NAVIGATION_EFFECT" +msgstr "Efecto de navegación de página" + +msgid "IDS_ST_HEADER_SELECT_WALLPAPER_FROM_ABB" +msgstr "Selec. fondo de pantalla de" + +msgid "IDS_HS_POP_EASY_MODE_CAN_BE_DISABLED_IN_SETTINGS" +msgstr "El modo fácil se puede desactivar en Configuración" + +msgid "IDS_ST_BODY_3D_ROTATION_M_EFFECT" +msgstr "Rotación 3D" + +msgid "IDS_ST_BODY_LOADING_ING" +msgstr "Cargando..." + +msgid "IDS_ST_POP_THE_FONT_SIZE_CAN_BE_INCREASED_TO_MAKE_TEXT_EASIER_TO_READ_CHANGE_THE_FONT_SIZE_NOW_Q" +msgstr "El tamaño de la fuente se puede aumentar para poder leer el texto con más facilidad. ¿Cambiar el tamaño de la fuente ahora?" + +msgid "IDS_ST_SK_CHANGE" +msgstr "Cambiar" + diff --git a/res/po/es_US.po b/res/po/es_US.po new file mode 100755 index 0000000..2dda1d8 --- /dev/null +++ b/res/po/es_US.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Compartir" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "No hay aplicaciones disponibles para abrir los archivos." + diff --git a/res/po/et.po b/res/po/et.po new file mode 100755 index 0000000..2706a15 --- /dev/null +++ b/res/po/et.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Jaga" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Failide avamiseks ei ole saadaval rakendusi." + diff --git a/res/po/eu.po b/res/po/eu.po new file mode 100755 index 0000000..829510f --- /dev/null +++ b/res/po/eu.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Partekatu" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Ez dago aplikaziorik erabilgarri fitxategiak irekitzeko" + diff --git a/res/po/fa.po b/res/po/fa.po new file mode 100755 index 0000000..96b0710 --- /dev/null +++ b/res/po/fa.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "اشتراک" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "برنامهای برای باز کردن فایلها وجود ندارد." + diff --git a/res/po/fi.po b/res/po/fi.po new file mode 100755 index 0000000..e682877 --- /dev/null +++ b/res/po/fi.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Jaa" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Tiedostojen avaamiseen soveltuvia sovelluksia ei ole." + diff --git a/res/po/fr.po b/res/po/fr.po new file mode 100755 index 0000000..991afc9 --- /dev/null +++ b/res/po/fr.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Partager" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Aucune application n'est disponible pour ouvrir des fichiers." + diff --git a/res/po/fr_CA.po b/res/po/fr_CA.po new file mode 100755 index 0000000..991afc9 --- /dev/null +++ b/res/po/fr_CA.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Partager" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Aucune application n'est disponible pour ouvrir des fichiers." + diff --git a/res/po/fr_FR.po b/res/po/fr_FR.po new file mode 100755 index 0000000..81d70be --- /dev/null +++ b/res/po/fr_FR.po @@ -0,0 +1,90 @@ +msgid "IDS_ST_MBODY_HOME_SCREEN_WALLPAPER" +msgstr "Fond d'écran d'accueil" + +msgid "IDS_ST_BODY_GALLERY" +msgstr "Galerie" + +msgid "IDS_COM_HEADER_NOTIFICATION" +msgstr "Notification" + +msgid "IDS_ST_HEADER_HOME_SCREEN_ABB" +msgstr "Écran d'accueil" + +msgid "IDS_ST_BODY_WALLPAPER" +msgstr "Fond d'écran" + +msgid "IDS_ST_BODY_HOME_SCREEN_SETTINGS" +msgstr "Paramètres de l'écran d'accueil" + +msgid "IDS_ST_BODY_HOME_SCREEN_TYPE" +msgstr "Type d'écran d'accueil" + +msgid "IDS_COM_BUTTON_CANCEL" +msgstr "Annuler" + +msgid "IDS_ST_HEADER_HOME_SCREEN" +msgstr "Écran d'accueil" + +msgid "IDS_ST_BODY_DEFAULT_HOME_SCREEN" +msgstr "Écran d'accueil par déf." + +msgid "IDS_ST_BUTTON2_SET_AS_HOME" +msgstr "Accueil" + +msgid "IDS_ST_BODY_SELECT_APPLICATION" +msgstr "Sélectionnez une application" + +msgid "IDS_ST_BODY_EASY_MODE" +msgstr "Mode simplifié" + +msgid "IDS_ST_BODY_THE_OVERALL_LAYOUT_OF_THE_HOME_SCREEN_WILL_BE_SIMPLIFIED" +msgstr "La disposition générale de l'écran d'accueil sera simplifiée." + +msgid "IDS_ST_BODY_HOME_SCREEN_STYLE" +msgstr "Style d'écran d'accueil" + +msgid "IDS_LCKSCN_BODY_WALLPAPERS" +msgstr "Fonds d'écran" + +msgid "IDS_SCR_POP_SCREEN_READER_IS_NOT_SUPPORTED_BY_PS_PRESS_THE_BACK_KEY_TO_RETURN_TO_THE_PREVIOUS_SCREEN" +msgstr "Le lecteur d'écran n'est pas pris en charge par %s. Appuyez sur la touche Retour pour revenir à l'écran d'accueil." + +msgid "IDS_HELP_BODY_SELECT_AN_OPTION" +msgstr "Sélectionnez une option." + +msgid "IDS_COM_BODY_MENU_ABB" +msgstr "Menu" + +msgid "IDS_HS_OPT_SPIRAL" +msgstr "Spirale" + +msgid "IDS_HS_OPT_INNER_CUBE" +msgstr "Cube intérieur" + +msgid "IDS_HS_OPT_OUTER_CUBE" +msgstr "Cube extérieur" + +msgid "IDS_HS_OPT_CAROUSEL" +msgstr "Manège" + +msgid "IDS_HS_HEADER_PAGE_NAVIGATION_EFFECT" +msgstr "Effet de navigation sur la page" + +msgid "IDS_ST_HEADER_SELECT_WALLPAPER_FROM_ABB" +msgstr "Sélec. fond écran depuis" + +msgid "IDS_HS_POP_EASY_MODE_CAN_BE_DISABLED_IN_SETTINGS" +msgstr "Le mode facile peut être désactivé dans Paramètres" + +msgid "IDS_ST_BODY_3D_ROTATION_M_EFFECT" +msgstr "Rotation 3D" + +msgid "IDS_ST_BODY_LOADING_ING" +msgstr "Chargement en cours." + +msgid "IDS_ST_POP_THE_FONT_SIZE_CAN_BE_INCREASED_TO_MAKE_TEXT_EASIER_TO_READ_CHANGE_THE_FONT_SIZE_NOW_Q" +msgstr "Vous pouvez augmenter la taille de la police pour faciliter la lecture du texte. Changer la taille de la police maintenant ?" + +msgid "IDS_ST_SK_CHANGE" +msgstr "Modifier" + diff --git a/res/po/ga.po b/res/po/ga.po new file mode 100755 index 0000000..bb53a8d --- /dev/null +++ b/res/po/ga.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Comhroinn" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Níl feidhmchláir ar fáil le comhaid a oscailt." + diff --git a/res/po/gl.po b/res/po/gl.po new file mode 100755 index 0000000..2496fff --- /dev/null +++ b/res/po/gl.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Compartir" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Non hai ningunha aplicación dispoñible para abrir arquivos" + diff --git a/res/po/gu.po b/res/po/gu.po new file mode 100755 index 0000000..a31477f --- /dev/null +++ b/res/po/gu.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "શેર કરો" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "ફાઇલ્સ ખોલવા માટે કોઈ એપ્લિકેશન ઉપલબ્ધ નથી." + diff --git a/res/po/he.po b/res/po/he.po new file mode 100755 index 0000000..158473f --- /dev/null +++ b/res/po/he.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "שתף" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "אין יישומים זמינים לפתיחת קבצים." + diff --git a/res/po/hi.po b/res/po/hi.po new file mode 100755 index 0000000..5152703 --- /dev/null +++ b/res/po/hi.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "साझा करें" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "फाइलें खोलने के लिए एप्लीकेशंस उपलब्ध नहीं।" + diff --git a/res/po/hr.po b/res/po/hr.po new file mode 100755 index 0000000..a270efa --- /dev/null +++ b/res/po/hr.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Dijeli" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Nema aplikacije za otvaranje datoteka." + diff --git a/res/po/hu.po b/res/po/hu.po new file mode 100755 index 0000000..29fcfc5 --- /dev/null +++ b/res/po/hu.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Megosztás" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Nincs elérhető alkalmazás a fájlok megnyitásához." + diff --git a/res/po/hy.po b/res/po/hy.po new file mode 100755 index 0000000..a59dcab --- /dev/null +++ b/res/po/hy.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Համօգտագործել" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Ֆայլերը բացելու համար մատչելի ծրագրեր չկան:" + diff --git a/res/po/is.po b/res/po/is.po new file mode 100755 index 0000000..f393dec --- /dev/null +++ b/res/po/is.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Deila" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Engin forrit tiltæk til að opna skrár." + diff --git a/res/po/it_IT.po b/res/po/it_IT.po new file mode 100755 index 0000000..a716937 --- /dev/null +++ b/res/po/it_IT.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Condividi" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Nessuna applicazione disponibile per aprire i file." + diff --git a/res/po/ja_JP.po b/res/po/ja_JP.po new file mode 100755 index 0000000..ed4b1d5 --- /dev/null +++ b/res/po/ja_JP.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "共有" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "ファイルを開けるアプリケーションがありません。" + diff --git a/res/po/ka.po b/res/po/ka.po new file mode 100755 index 0000000..c38b013 --- /dev/null +++ b/res/po/ka.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "გაზიარება" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "ამ ფაილების გასახსნელი პროგრამა არ არის." + diff --git a/res/po/kk.po b/res/po/kk.po new file mode 100755 index 0000000..16a0600 --- /dev/null +++ b/res/po/kk.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Бөлісу" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Файлдарды ашатын бағдарламалар жоқ." + diff --git a/res/po/kn.po b/res/po/kn.po new file mode 100755 index 0000000..e6e0ac8 --- /dev/null +++ b/res/po/kn.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "ಹಂಚಿಕೊಳ್ಳಿ" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "ಫೈಲ್ಗಳನ್ನು ತೆರೆಯಲು ಅನ್ವಯಿಸುವಿಕೆಗಳು ಲಭ್ಯವಿಲ್ಲ." + diff --git a/res/po/ko_KR.po b/res/po/ko_KR.po new file mode 100755 index 0000000..c943547 --- /dev/null +++ b/res/po/ko_KR.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "공유" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "파일을 열 수 있는 앱이 없습니다." + diff --git a/res/po/lt.po b/res/po/lt.po new file mode 100755 index 0000000..83a4a95 --- /dev/null +++ b/res/po/lt.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Dalytis" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Nėra programų, kuriomis būtų galima atidaryti failus." + diff --git a/res/po/lv.po b/res/po/lv.po new file mode 100755 index 0000000..1a4d8ca --- /dev/null +++ b/res/po/lv.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Kopīgot" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Nav programmas, ar ko atvērt failus." + diff --git a/res/po/mk.po b/res/po/mk.po new file mode 100755 index 0000000..77058d3 --- /dev/null +++ b/res/po/mk.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Сподели" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Не се достапни апликации за отворање на фајловите." + diff --git a/res/po/ml.po b/res/po/ml.po new file mode 100755 index 0000000..bb15bb0 --- /dev/null +++ b/res/po/ml.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "പങ്കിടുക" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "ഫയലുകള് തുറക്കുന്നതിന് ആപ്ലിക്കേഷനുകള് ഒന്നും ലഭ്യമല്ല." + diff --git a/res/po/mn_MN.po b/res/po/mn_MN.po new file mode 100755 index 0000000..78afc9b --- /dev/null +++ b/res/po/mn_MN.po @@ -0,0 +1,132 @@ +msgid "IDS_COM_SK_CANCEL" +msgstr "Цуцлах" + +msgid "IDS_ST_MBODY_HOME_SCREEN_WALLPAPER" +msgstr "Эхлэл дэлгэцийн зураг" + +msgid "IDS_ST_BODY_GALLERY" +msgstr "Галерей" + +msgid "IDS_COM_HEADER_NOTIFICATION" +msgstr "Мэдэгдэл" + +msgid "IDS_ST_HEADER_HOME_SCREEN_ABB" +msgstr "Эхлэл дэлгэц" + +msgid "IDS_ST_HEADER_LOCK_SCREEN" +msgstr "Түгжих дэлгэц" + +msgid "IDS_ST_BODY_WALLPAPER" +msgstr "Ханын цаас" + +msgid "IDS_ST_BODY_HOME_AND_LOCK_SCREEN" +msgstr "Эхлэл ба түгжих дэлгэц" + +msgid "IDS_ST_BODY_HOME_SCREEN_SETTINGS" +msgstr "Эхлэл дэлгэцийн тохиргоо" + +msgid "IDS_ST_BODY_HOME_SCREEN_TYPE" +msgstr "Эхлэл дэлгэцийн төрөл" + +msgid "IDS_COM_BUTTON_CANCEL" +msgstr "Цуцлах" + +msgid "IDS_ST_HEADER_HOME_SCREEN" +msgstr "Эх дэлгэц" + +msgid "IDS_ST_BODY_DEFAULT_HOME_SCREEN" +msgstr "Өгөгдмөл эхлэл дэлгэц" + +msgid "IDS_ST_BUTTON2_SET_AS_HOME" +msgstr "Үндсэн болгож тогтоох" + +msgid "IDS_ST_BODY_SELECT_APPLICATION" +msgstr "Програм сонгох" + +msgid "IDS_ST_BODY_EASY_MODE" +msgstr "Хялбар горим" + +msgid "IDS_ST_BODY_THE_OVERALL_LAYOUT_OF_THE_HOME_SCREEN_WILL_BE_SIMPLIFIED" +msgstr "Эхлэл дэлгэцийн ерөнхий байрлалыг хялбаршуулна" + +msgid "IDS_ST_BODY_HOME_SCREEN_STYLE" +msgstr "Эхлэл дэлгэцийн хэв маяг" + +msgid "IDS_LCKSCN_BODY_WALLPAPERS" +msgstr "Ханын цааснууд" + +msgid "IDS_SCR_POP_SCREEN_READER_IS_NOT_SUPPORTED_BY_PS_PRESS_THE_BACK_KEY_TO_RETURN_TO_THE_PREVIOUS_SCREEN" +msgstr "Дэлгэц уншигчийг %s дэмждэггүй. Өмнөх дэлгэц рүү буцахын тулд буцах товчлуурыг дар" + +msgid "IDS_HELP_BODY_SELECT_AN_OPTION" +msgstr "Аль нэг сонголтыг идэвхжүүлнэ." + +msgid "IDS_COM_BODY_MENU_ABB" +msgstr "Цэс" + +msgid "IDS_HS_OPT_SPIRAL" +msgstr "Эргүүлэг" + +msgid "IDS_HS_OPT_INNER_CUBE" +msgstr "Дотоод шоо" + +msgid "IDS_HS_OPT_OUTER_CUBE" +msgstr "Гадна шоо" + +msgid "IDS_HS_OPT_CAROUSEL" +msgstr "Морин тойруулга" + +msgid "IDS_HS_HEADER_PAGE_NAVIGATION_EFFECT" +msgstr "Хуудас удирдах эффект" + +msgid "IDS_ST_HEADER_SELECT_WALLPAPER_FROM_ABB" +msgstr "Дэлгэцийн зураг сонгох" + +msgid "IDS_HS_POP_EASY_MODE_CAN_BE_DISABLED_IN_SETTINGS" +msgstr "Хялбар горимыг Тохиргоонд идэвхгүй болгож болно" + +msgid "IDS_HS_OPT_DISABLE_EASY_MODE" +msgstr "Хялбар горим идэвхгүй болгох" + +msgid "IDS_ST_BODY_3D_ROTATION_M_EFFECT" +msgstr "3D эргэлт" + +msgid "IDS_ST_BODY_LOADING_ING" +msgstr "Ачаалж байна..." + +msgid "IDS_ST_POP_THE_FONT_SIZE_CAN_BE_INCREASED_TO_MAKE_TEXT_EASIER_TO_READ_CHANGE_THE_FONT_SIZE_NOW_Q" +msgstr "Бичвэрийг уншихад амар болгохын тулд үсгийн хэмжээг өсгөж болно. Үсгийн хэмжээг одоо өөрчлөх үү?" + +msgid "IDS_ST_SK_CHANGE" +msgstr "Өөрчлөх" + +msgid "IDS_ST_ACHEADER2_HOME_SCREEN_STYLE" +msgstr "ЭХЛЭЛ ДЭЛГЭЦИЙН ХЭВ МАЯГ" + +msgid "IDS_HS_ACHEADER2_HOME_SCREEN" +msgstr "ЭХЛЭЛ ДЭЛГЭЦ" + +msgid "IDS_COM_HEADER_SELECT_WALLPAPER" +msgstr "Select wallpaper" + +msgid "IDS_ST_BODY_SLIDE" +msgstr "Слайд хийх" + +msgid "IDS_ST_BUTTON2_DEFAULT_WALLPAPERS_ABB" +msgstr "Өгөгдмөл ханын цаас" + +msgid "IDS_HS_BUTTON_DISABLE_ABB" +msgstr "Идэвхгүй болг" + +msgid "IDS_STRAVEL_OPT_TRAVEL_WALLPAPER_ABB" +msgstr "Аяллын ханын цаас" + +msgid "IDS_HS_POP_DISABLE_EASY_MODE_Q" +msgstr "Хялбар горим идэвхгүй болгох уу?" + +msgid "IDS_ST_HEADER_CHANGE_FONT_SIZE_ABB" +msgstr "Үсгийн хэмжээг өөрчлөх" + +msgid "IDS_HELP_BODY_CUBE" +msgstr "Шоо" + diff --git a/res/po/nb.po b/res/po/nb.po new file mode 100755 index 0000000..f05e6ad --- /dev/null +++ b/res/po/nb.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Del" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Ingen tilgjengelige apper for å åpne filene." + diff --git a/res/po/nl.po b/res/po/nl.po new file mode 100755 index 0000000..0dc27c0 --- /dev/null +++ b/res/po/nl.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Delen" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Geen applicaties beschikbaar om bestanden te openen." + diff --git a/res/po/nl_NL.po b/res/po/nl_NL.po new file mode 100755 index 0000000..6139c46 --- /dev/null +++ b/res/po/nl_NL.po @@ -0,0 +1,90 @@ +msgid "IDS_ST_MBODY_HOME_SCREEN_WALLPAPER" +msgstr "Achtergrond startscherm" + +msgid "IDS_ST_BODY_GALLERY" +msgstr "Galerij" + +msgid "IDS_COM_HEADER_NOTIFICATION" +msgstr "Melding" + +msgid "IDS_ST_HEADER_HOME_SCREEN_ABB" +msgstr "Startscherm" + +msgid "IDS_ST_BODY_WALLPAPER" +msgstr "Achtergrond" + +msgid "IDS_ST_BODY_HOME_SCREEN_SETTINGS" +msgstr "Instellingen startscherm" + +msgid "IDS_ST_BODY_HOME_SCREEN_TYPE" +msgstr "Type startscherm" + +msgid "IDS_COM_BUTTON_CANCEL" +msgstr "Annuleer" + +msgid "IDS_ST_HEADER_HOME_SCREEN" +msgstr "Startscherm" + +msgid "IDS_ST_BODY_DEFAULT_HOME_SCREEN" +msgstr "Standaard startscherm" + +msgid "IDS_ST_BUTTON2_SET_AS_HOME" +msgstr "Startpagina" + +msgid "IDS_ST_BODY_SELECT_APPLICATION" +msgstr "Applicatie selecteren" + +msgid "IDS_ST_BODY_EASY_MODE" +msgstr "Eenvoudige stand" + +msgid "IDS_ST_BODY_THE_OVERALL_LAYOUT_OF_THE_HOME_SCREEN_WILL_BE_SIMPLIFIED" +msgstr "De algemene indeling van het startscherm wordt vereenvoudigd." + +msgid "IDS_ST_BODY_HOME_SCREEN_STYLE" +msgstr "Stijl startscherm" + +msgid "IDS_LCKSCN_BODY_WALLPAPERS" +msgstr "Achtergronden" + +msgid "IDS_SCR_POP_SCREEN_READER_IS_NOT_SUPPORTED_BY_PS_PRESS_THE_BACK_KEY_TO_RETURN_TO_THE_PREVIOUS_SCREEN" +msgstr "Schermlezer wordt niet ondersteund door %s. Druk op de toets Terug om terug te gaan naar het vorige scherm." + +msgid "IDS_HELP_BODY_SELECT_AN_OPTION" +msgstr "Selecteer een optie." + +msgid "IDS_COM_BODY_MENU_ABB" +msgstr "Menu" + +msgid "IDS_HS_OPT_SPIRAL" +msgstr "Spiraal" + +msgid "IDS_HS_OPT_INNER_CUBE" +msgstr "Binnenste kubus" + +msgid "IDS_HS_OPT_OUTER_CUBE" +msgstr "Buitenste kubus" + +msgid "IDS_HS_OPT_CAROUSEL" +msgstr "Carrousel" + +msgid "IDS_HS_HEADER_PAGE_NAVIGATION_EFFECT" +msgstr "Effect paginanavigatie" + +msgid "IDS_ST_HEADER_SELECT_WALLPAPER_FROM_ABB" +msgstr "Achtergrond selecteren uit" + +msgid "IDS_HS_POP_EASY_MODE_CAN_BE_DISABLED_IN_SETTINGS" +msgstr "Eenvoudige stand kan worden uitgeschakeld in Instellingen" + +msgid "IDS_ST_BODY_3D_ROTATION_M_EFFECT" +msgstr "3D rotatie" + +msgid "IDS_ST_BODY_LOADING_ING" +msgstr "Laden..." + +msgid "IDS_ST_POP_THE_FONT_SIZE_CAN_BE_INCREASED_TO_MAKE_TEXT_EASIER_TO_READ_CHANGE_THE_FONT_SIZE_NOW_Q" +msgstr "Het lettertype kan worden vergroot om de tekst leesbaarder te maken. Tekstgrootte nu wijzigen?" + +msgid "IDS_ST_SK_CHANGE" +msgstr "Wijzigen" + diff --git a/res/po/pl.po b/res/po/pl.po new file mode 100755 index 0000000..f45d2d0 --- /dev/null +++ b/res/po/pl.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Udostępniaj" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Brak dostępnych aplikacji do otwarcia plików." + diff --git a/res/po/pt_BR.po b/res/po/pt_BR.po new file mode 100755 index 0000000..f8c6585 --- /dev/null +++ b/res/po/pt_BR.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Compartilhar" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Nenhum aplicativo disponível para abrir arquivos." + diff --git a/res/po/pt_PT.po b/res/po/pt_PT.po new file mode 100755 index 0000000..039d54f --- /dev/null +++ b/res/po/pt_PT.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Enviar" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Sem aplicações disponíveis para abrir ficheiros." + diff --git a/res/po/ro.po b/res/po/ro.po new file mode 100755 index 0000000..3948d65 --- /dev/null +++ b/res/po/ro.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Partajare" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Nu există aplicaţii disponibile pentru a deschide fişiere." + diff --git a/res/po/ru_RU.po b/res/po/ru_RU.po new file mode 100755 index 0000000..71cb885 --- /dev/null +++ b/res/po/ru_RU.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Доступ" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Нет приложений, позволяющих открыть файлы." + diff --git a/res/po/si.po b/res/po/si.po new file mode 100755 index 0000000..3fde16e --- /dev/null +++ b/res/po/si.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "බෙදාගන්න" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "ගොනු විවෘත කිරීමට යෙදුම් නොමැත." + diff --git a/res/po/sk.po b/res/po/sk.po new file mode 100755 index 0000000..e1ecd6c --- /dev/null +++ b/res/po/sk.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Zdieľať" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Žiadne dostupné aplikácie na otvorenie súborov." + diff --git a/res/po/sl.po b/res/po/sl.po new file mode 100755 index 0000000..b252a87 --- /dev/null +++ b/res/po/sl.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Skupna raba" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Noben program ni na voljo za odpiranje datotek." + diff --git a/res/po/sr.po b/res/po/sr.po new file mode 100755 index 0000000..ac3d980 --- /dev/null +++ b/res/po/sr.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Podeli" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Nijedna aplikacija ne može da otvori fajlove." + diff --git a/res/po/sv.po b/res/po/sv.po new file mode 100755 index 0000000..30f52ae --- /dev/null +++ b/res/po/sv.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Dela" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Inga program tillgängliga för att öppna filer." + diff --git a/res/po/ta.po b/res/po/ta.po new file mode 100755 index 0000000..6daf0ae --- /dev/null +++ b/res/po/ta.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "பகிர்க" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "கோப்புகளை திறக்க எந்த பயன்பாடுகளும் இல்லை." + diff --git a/res/po/te.po b/res/po/te.po new file mode 100755 index 0000000..5c0a55f --- /dev/null +++ b/res/po/te.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "భాగస్వామ్యం చేయి" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "ఫైళ్లను తరవడానికి అప్లికేషన్లు లభ్యంలో లేవు." + diff --git a/res/po/th.po b/res/po/th.po new file mode 100755 index 0000000..737d5d4 --- /dev/null +++ b/res/po/th.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "แชร์" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "ไม่มีแอพพลิเคชั่นที่ใช้ได้ในการเปิดไฟล์" + diff --git a/res/po/tr_TR.po b/res/po/tr_TR.po new file mode 100755 index 0000000..5d2e78a --- /dev/null +++ b/res/po/tr_TR.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Paylaş" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Dosyaları açacak uygulama bulunamadı." + diff --git a/res/po/uk.po b/res/po/uk.po new file mode 100755 index 0000000..0025396 --- /dev/null +++ b/res/po/uk.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Поділитися" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Немає доступних програм для відкриття файлів." + diff --git a/res/po/ur.po b/res/po/ur.po new file mode 100755 index 0000000..0991fbc --- /dev/null +++ b/res/po/ur.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "شراکت" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "فائلز اوپن کرنے کے لیے کوئی ایپلیکشن دستیاب نہیں۔" + diff --git a/res/po/uz.po b/res/po/uz.po new file mode 100755 index 0000000..c00a538 --- /dev/null +++ b/res/po/uz.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "Ulashish" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "Fayllarni ochish uchun ilovalar mavjud emas." + diff --git a/res/po/zh_CN.po b/res/po/zh_CN.po new file mode 100755 index 0000000..be2728b --- /dev/null +++ b/res/po/zh_CN.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "共享" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "无应用程序可用以打开文件。" + diff --git a/res/po/zh_HK.po b/res/po/zh_HK.po new file mode 100755 index 0000000..8c2fb1f --- /dev/null +++ b/res/po/zh_HK.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "共享" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "無應用程式可用以開啟檔案。" + diff --git a/res/po/zh_SG.po b/res/po/zh_SG.po new file mode 100755 index 0000000..e8e6b36 --- /dev/null +++ b/res/po/zh_SG.po @@ -0,0 +1,72 @@ +msgid "IDS_ST_MBODY_HOME_SCREEN_WALLPAPER" +msgstr "主屏墙纸" + +msgid "IDS_ST_BODY_GALLERY" +msgstr "画廊" + +msgid "IDS_COM_HEADER_NOTIFICATION" +msgstr "通知" + +msgid "IDS_ST_HEADER_HOME_SCREEN_ABB" +msgstr "主屏" + +msgid "IDS_ST_BODY_WALLPAPER" +msgstr "墙纸" + +msgid "IDS_ST_BODY_HOME_SCREEN_SETTINGS" +msgstr "主屏设置" + +msgid "IDS_ST_BODY_HOME_SCREEN_TYPE" +msgstr "主屏类型" + +msgid "IDS_COM_BUTTON_CANCEL" +msgstr "取消" + +msgid "IDS_ST_HEADER_HOME_SCREEN" +msgstr "主屏" + +msgid "IDS_ST_BODY_DEFAULT_HOME_SCREEN" +msgstr "默认主屏" + +msgid "IDS_ST_BUTTON2_SET_AS_HOME" +msgstr "设置为首页" + +msgid "IDS_ST_BODY_SELECT_APPLICATION" +msgstr "选择应用程序" + +msgid "IDS_ST_BODY_EASY_MODE" +msgstr "简易模式" + +msgid "IDS_ST_BODY_THE_OVERALL_LAYOUT_OF_THE_HOME_SCREEN_WILL_BE_SIMPLIFIED" +msgstr "主屏的总布局将简化" + +msgid "IDS_ST_BODY_HOME_SCREEN_STYLE" +msgstr "主屏风格" + +msgid "IDS_SCR_POP_SCREEN_READER_IS_NOT_SUPPORTED_BY_PS_PRESS_THE_BACK_KEY_TO_RETURN_TO_THE_PREVIOUS_SCREEN" +msgstr "%s 不支援屏幕阅读器。请按下返回键以回到前一个屏幕" + +msgid "IDS_HELP_BODY_SELECT_AN_OPTION" +msgstr "选择一个选项。" + +msgid "IDS_COM_BODY_MENU_ABB" +msgstr "菜单" + +msgid "IDS_HS_OPT_SPIRAL" +msgstr "螺旋" + +msgid "IDS_HS_OPT_INNER_CUBE" +msgstr "内立方" + +msgid "IDS_HS_OPT_OUTER_CUBE" +msgstr "外立方" + +msgid "IDS_HS_OPT_CAROUSEL" +msgstr "旋转木马轮播" + +msgid "IDS_HS_HEADER_PAGE_NAVIGATION_EFFECT" +msgstr "页面导航效果" + +msgid "IDS_ST_HEADER_SELECT_WALLPAPER_FROM_ABB" +msgstr "选择墙纸来源" + diff --git a/res/po/zh_TW.po b/res/po/zh_TW.po new file mode 100755 index 0000000..0c3165f --- /dev/null +++ b/res/po/zh_TW.po @@ -0,0 +1,6 @@ +msgid "IDS_AM_HEADER_SHARE" +msgstr "共享" + +msgid "IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES" +msgstr "沒有可用以開啟檔案的應用程式。" + diff --git a/shared/res/share-panel.png b/shared/res/share-panel.png Binary files differnew file mode 100755 index 0000000..9765b1b --- /dev/null +++ b/shared/res/share-panel.png diff --git a/src/grid.c b/src/grid.c new file mode 100755 index 0000000..9fad799 --- /dev/null +++ b/src/grid.c @@ -0,0 +1,318 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <Elementary.h> +#include <app.h> +#include <app_manager.h> +#include <app_control_internal.h> +#include <bundle.h> +#include <aul.h> + +#include "share_panel.h" +#include "share_panel_internal.h" + +#include "conf.h" +#include "grid.h" +#include "log.h" +#include "utils.h" + +#define PRIVATE_DATA_KEY_ITEM_INFO "pdkii" + +static struct { + Elm_Gengrid_Item_Class *gic; + char *default_icon; + int index; +} grid_info = { + .gic = NULL, + .default_icon = "/usr/share/icons/A01-1_icon_Menu.png", + .index = 0, +}; + +static char *__text_get(void *data, Evas_Object *obj, const char *part) +{ + item_s *info = data; + retv_if(!info, NULL); + + retv_if(!info->name, NULL); + if (!strcmp(part, "elm.text")) + return strdup(D_(info->name)); + + return NULL; +} + + +static Evas_Object *__add_icon(Evas_Object *parent, const char *file) +{ + const char *real_icon_file = NULL; + Evas_Object *icon = NULL; + Evas_Object *icon_layout = NULL; + + real_icon_file = file; + if (access(real_icon_file, R_OK) != 0) { + _E("Failed to access an icon(%s)", real_icon_file); + real_icon_file = DEFAULT_ICON; + } + + icon = elm_icon_add(parent); + retv_if(!icon, NULL); + + if (elm_image_file_set(icon, real_icon_file, NULL) == EINA_FALSE) { + _E("Icon file is not accessible (%s)", real_icon_file); + evas_object_del(icon); + return NULL; + } + + evas_object_size_hint_min_set(icon, ELM_SCALE_SIZE(ITEM_ICON_WIDTH), ELM_SCALE_SIZE(ITEM_ICON_HEIGHT)); + + elm_image_preload_disabled_set(icon, EINA_TRUE); + elm_image_smooth_set(icon, EINA_TRUE); + elm_image_no_scale_set(icon, EINA_FALSE); + evas_object_show(icon); + + icon_layout = elm_layout_add(parent); + retv_if(!icon_layout, NULL); + + char *edj_path = utils_get_res_file_path("edje/item.edj"); + + elm_layout_file_set(icon_layout, edj_path, "grid,icon"); + evas_object_size_hint_weight_set(icon_layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(icon_layout, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_show(icon_layout); + + elm_object_part_content_set(icon_layout, "icon", icon); + + free(edj_path); + + return icon_layout; +} + +static Evas_Object *__content_get(void *data, Evas_Object *obj, const char *part) +{ + item_s *info = data; + + retv_if(!info, NULL); + + if (!strcmp(part, "elm.swallow.end")) { + Evas_Object *bg = evas_object_rectangle_add(evas_object_evas_get(obj)); + retv_if(!bg, NULL); + + evas_object_size_hint_min_set(bg, ELM_SCALE_SIZE(ITEM_WIDTH), ELM_SCALE_SIZE(ITEM_HEIGHT)); + evas_object_color_set(bg, 0, 0, 0, 0); + evas_object_show(bg); + return bg; + } else if (!strcmp(part, "elm.swallow.icon")) { + retv_if(!info->icon, NULL); + return __add_icon(obj, info->icon); + } else if (!strcmp(part, "selected")) { + + } + return NULL; +} + +static void __del(void *data, Evas_Object *obj) +{ + ret_if(NULL == data); + evas_object_data_del(obj, PRIVATE_DATA_KEY_ITEM_INFO); +} + +int _app_control_launch(item_s *item) +{ + retv_if(!item->caller_control, FAIL); + int ret = APP_CONTROL_ERROR_NONE; + + bundle *control_bundle; + + ret = app_control_export_as_bundle(item->caller_control, &control_bundle); + retv_if(ret != APP_CONTROL_ERROR_NONE, FAIL); + + ret = bundle_add_str(control_bundle, AUL_SVC_K_RUA_STAT_CALLER, "share-panel"); + if (ret != BUNDLE_ERROR_NONE) + { + bundle_free(control_bundle); + return FAIL; + } + + ret = bundle_add_str(control_bundle, AUL_SVC_K_RUA_STAT_TAG, item->appid); + if (ret != BUNDLE_ERROR_NONE) + { + bundle_free(control_bundle); + return FAIL; + } + + ret = aul_forward_app(item->appid, control_bundle); + if (ret < 0) + { + bundle_free(control_bundle); + return FAIL; + } + + bundle_free(control_bundle); + + return OK; +} + +static void __item_selected(void *data, Evas_Object *obj, void *event_info) +{ + _D("__item_selected"); + item_s *item_info = (item_s *) data; + + Elm_Object_Item *selected_item = NULL; + + int ret = 0; + + ret_if(!item_info); + ret_if(!item_info->appid); + ret_if(!item_info->share_panel); + _D("item clicked, launch app : %s", item_info->appid); + + selected_item = elm_gengrid_selected_item_get(obj); + ret_if(!selected_item); + elm_gengrid_item_selected_set(selected_item, EINA_FALSE); + + ret = _app_control_launch(item_info); + + if (ret == FAIL) { + _E("Fail to launch app(%d)", ret); + share_panel_reply(item_info->share_panel, false); + } else + ui_app_exit(); + + item_info->share_panel->after_launch = 1; + + elm_object_signal_emit(item_info->share_panel->ui_manager, "show", "blocker"); +} + +static void __lang_changed_cb(void *data, Evas_Object *grid, void *event_info) +{ + Elm_Object_Item *it = NULL; + int ret = 0; + ret_if(!grid); + + it = elm_gengrid_first_item_get(grid); + while (it) { + app_info_h app_info = NULL; + item_s *item_info = NULL; + char *name = NULL; + + item_info = evas_object_data_get(it, PRIVATE_DATA_KEY_ITEM_INFO); + if (!item_info) { + it = elm_gengrid_item_next_get(it); + continue; + } + + ret = app_info_create(item_info->appid, &app_info); + if (ret != APP_MANAGER_ERROR_NONE && !app_info) { + it = elm_gengrid_item_next_get(it); + continue; + } + + ret = app_info_get_label(app_info, &name); + if (ret == APP_MANAGER_ERROR_NONE && name) { + free(item_info->name); + item_info->name = name; + elm_object_item_part_text_set(it, "elm.text", item_info->name); + elm_gengrid_item_update(it); + } else { + _E("fail to create the app_name from app_info"); + } + + app_info_destroy(app_info); + it = elm_gengrid_item_next_get(it); + } +} + +Evas_Object *_grid_create(Evas_Object *page) +{ + Evas_Object *grid = NULL; + + retv_if(!page, NULL); + + grid = elm_gengrid_add(page); + if (!grid) { + _grid_destroy(grid); + return NULL; + } + + evas_object_size_hint_weight_set(grid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(grid, EVAS_HINT_FILL, EVAS_HINT_FILL); + + elm_gengrid_item_size_set(grid, ELM_SCALE_SIZE(ITEM_WIDTH), ELM_SCALE_SIZE(ITEM_HEIGHT)); + elm_gengrid_align_set(grid, 0.0, 0.0); + elm_gengrid_horizontal_set(grid, EINA_FALSE); + elm_gengrid_multi_select_set(grid, EINA_FALSE); + + grid_info.gic = elm_gengrid_item_class_new(); + if (!grid_info.gic) { + _grid_destroy(grid); + return NULL; + } + + grid_info.gic->func.text_get = __text_get; + grid_info.gic->func.content_get = __content_get; + grid_info.gic->func.state_get = NULL; + grid_info.gic->func.del = __del; + grid_info.gic->item_style = "type2"; + + evas_object_smart_callback_add(grid, "language,changed", __lang_changed_cb, NULL); + + elm_scroller_movement_block_set(grid, ELM_SCROLLER_MOVEMENT_BLOCK_VERTICAL); + evas_object_show(grid); + + return grid; +} + +void _grid_destroy(Evas_Object *grid) +{ + ret_if(!grid); + + evas_object_del(grid); +} + +Elm_Object_Item *_grid_append_item(Evas_Object *grid, item_s *item_info) +{ + Elm_Object_Item *item = NULL; + + retv_if(!grid, NULL); + retv_if(!item_info, NULL); + retv_if(!grid_info.gic, NULL); + + item = elm_gengrid_item_append(grid, grid_info.gic, item_info, __item_selected, item_info); + retv_if(!item, NULL); + evas_object_data_set(item, PRIVATE_DATA_KEY_ITEM_INFO, item_info); + if (item_info->name) + _D("grid append item : %s", item_info->name); + + item_info->grid_item = item; + elm_gengrid_item_show(item, ELM_GENGRID_ITEM_SCROLLTO_NONE); + elm_gengrid_item_update(item); + + return item; +} + +void _grid_remove_item(Evas_Object *grid, item_s *item_info) +{ + Elm_Object_Item *item = NULL; + + ret_if(!grid); + ret_if(!item_info); + + item = item_info->grid_item; + + ret_if(!item); + evas_object_data_del(item, PRIVATE_DATA_KEY_ITEM_INFO); + elm_object_item_del(item); + item_info->grid_item = NULL; +} diff --git a/src/index.c b/src/index.c new file mode 100755 index 0000000..b765153 --- /dev/null +++ b/src/index.c @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <Elementary.h> + +#include "log.h" +#include "index.h" + +#define PRIVATE_DATA_KEY_CUR "pdkc" + + + +void _index_destroy(Evas_Object *index) +{ + ret_if(NULL == index); + + evas_object_data_del(index, PRIVATE_DATA_KEY_CUR); + elm_index_item_clear(index); + evas_object_del(index); +} + + + +Evas_Object *_index_create(Evas_Object *ui_manager, unsigned int count) +{ + Evas_Object *index = NULL; + register int i = 0; + + retv_if(NULL == ui_manager, NULL); + + index = elm_index_add(ui_manager); + retv_if(NULL == index, NULL); + elm_object_style_set(index, "pagecontrol"); + + elm_index_horizontal_set(index, EINA_TRUE); + elm_index_autohide_disabled_set(index, EINA_TRUE); + + for (; i < count; i++) { + elm_index_item_append(index, NULL, NULL, (void *) i); + } + elm_index_level_go(index, 0); + evas_object_data_set(index, PRIVATE_DATA_KEY_CUR, NULL); + evas_object_show(index); + + return index; +} + + + +void _index_update(Evas_Object *index, unsigned int count) +{ + register int i = 0; + int cur_index = 0; + + elm_index_item_clear(index); + + for (; i < count; i++) { + elm_index_item_append(index, NULL, NULL, (void *) i); + } + elm_index_level_go(index, 0); + evas_object_show(index); + + cur_index = (int) evas_object_data_get(index, PRIVATE_DATA_KEY_CUR); + _index_bring_in(index, cur_index); +} + + + +void _index_bring_in(Evas_Object *index, int idx) +{ + Elm_Object_Item *idx_it; + + idx_it = elm_index_item_find(index, (void *) idx); + ret_if(NULL == idx_it); + elm_index_item_selected_set(idx_it, EINA_TRUE); + + evas_object_data_set(index, PRIVATE_DATA_KEY_CUR, (void *) idx); +} diff --git a/src/list.c b/src/list.c new file mode 100755 index 0000000..1addd7f --- /dev/null +++ b/src/list.c @@ -0,0 +1,431 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <Elementary.h> +#include <app_control.h> +#include <app_manager.h> +#include <mime_type.h> + +#include "share_panel.h" +#include "share_panel_internal.h" +#include "log.h" +#include "grid.h" +#include <rua_stat.h> + +typedef struct { + Eina_List *input; + Eina_List *output; +} sort_context_t; + +static bool __app_control_matched_cb(app_control_h service, const char *appid, void *user_data) +{ + Eina_List **list = user_data; + char *caller = NULL; + char *tmp = NULL; + + retv_if(!list, false); + retv_if(!appid, false); + + app_control_get_caller(service, &caller); + + _D("matched app: [%s]", appid); + + tmp = strdup(appid); + retv_if(!tmp, false); + *list = eina_list_append(*list, tmp); + return true; +} + + +static void __create_single_share_list(app_control_h control, Eina_List **list) +{ + app_control_foreach_app_matched(control, __app_control_matched_cb, list); +} + + +static int __get_file_ext(const char *filepath, char **file_ext) +{ + const char *filename = NULL; + char *pdot = NULL; + + retv_if(!filepath, -1); + retv_if(!file_ext, -1); + + filename = ecore_file_file_get(filepath); + + retv_if(!filename, -1); + + pdot = strrchr(filename, '.'); + + if (!pdot) { + return -1; + } else if (pdot != filepath) { + *file_ext = pdot + 1; + return 0; + } else { + return -1; + } +} + + +static inline void __get_mime(const char *file_path, char **mime) +{ + char *ext = NULL; + int res; + + ret_if(!file_path); + + if (strncmp(file_path, "/", 1) == 0) { + res = __get_file_ext(file_path, &ext); + if (0 != res) { + *mime = NULL; + _D("__get_file_ext error.."); + } else { + mime_type_get_mime_type(ext, mime); + _D("mime type: [%s]", *mime); + } + } else if (strncmp(file_path, "file:/", 6) == 0) { + res = __get_file_ext(&file_path[5], &ext); + if (0 != res) { + _D("__get_file_ext error.."); + } else { + mime_type_get_mime_type(ext, mime); + _D("mime type: [%s]", *mime); + } + } else if (strncmp(file_path, "file:///", 8) == 0) { + res = __get_file_ext(&file_path[7], &ext); + if (0 != res) { + _D("__get_file_ext error.."); + } else { + mime_type_get_mime_type(ext, mime); + _D("mime type: [%s]", *mime); + } + } +} + + +static bool __app_control_file_matched_cb(app_control_h service, const char *appid, void *user_data) +{ + Eina_List **sublist = user_data; + + *sublist = eina_list_append(*sublist, strdup(appid)); + return true; +} + + +static void __intersect_match_list_with_mime(Eina_List **matchlist, const char *mime, const char *uri) +{ + app_control_h control; + Eina_List *l = NULL; + Eina_List *ln = NULL; + Eina_List *sublist = NULL; + Eina_List *sub_ln = NULL; + + void *m_list_data = NULL; + void *s_list_data = NULL; + bool exist; + + app_control_create(&control); + app_control_set_operation(control, APP_CONTROL_OPERATION_MULTI_SHARE); + app_control_set_mime(control, mime); + app_control_set_uri(control, uri); + app_control_foreach_app_matched(control, __app_control_file_matched_cb, &sublist); + app_control_destroy(control); + + if (!*matchlist) { + *matchlist = sublist; + return; + } + + EINA_LIST_FOREACH_SAFE(*matchlist, l, ln, m_list_data) { + exist = false; + EINA_LIST_FOREACH(sublist, sub_ln, s_list_data) { + if (!strcmp(m_list_data, s_list_data)) { + _D("[%s] is inlcude!", m_list_data); + exist = true; + break; + } + } + if (!exist) { + _D("[%s] is not include!", m_list_data); + *matchlist = eina_list_remove(*matchlist, m_list_data); + } + } + + if (sublist) { + EINA_LIST_FREE(sublist, m_list_data) { + free(m_list_data); + } + } +} + + +#define CONTACT_MIME "application/vnd.tizen.contact" +static void __create_multi_share_list(app_control_h control, Eina_List **matchlist) +{ + char **data_array = NULL; + char *mime = NULL; + char *contact_mime = NULL; + char *uri = NULL; + Eina_List *mime_list = NULL; + + int i; + int length = 0; + int ret; + + app_control_get_mime(control, &contact_mime); + + if (contact_mime && !strcmp(contact_mime, CONTACT_MIME)) { + _D("caller is contact"); + __intersect_match_list_with_mime(matchlist, contact_mime, uri); + return; + } else { + ret = app_control_get_extra_data_array(control, TIZEN_DATA_PATH, &data_array, &length); + if (ret != APP_CONTROL_ERROR_NONE) { + _E("app_control_get_extra_data_array failed..[%d]", ret); + } + } + for (i = 0; i < length; i++) { + Eina_List *l = NULL; + char *tmp = NULL; + + _D("data_array[%d]= %s", i, data_array[i]); + + __get_mime(data_array[i], &mime); + if (!mime) { + _E("No mime. Setting mime to '*/*' "); + mime = strndup("*/*", 3); + } + + EINA_LIST_FOREACH(mime_list, l, tmp) { + if (!strcmp(tmp, mime)) { + free(mime); + goto out; + } + } + + mime_list = eina_list_prepend(mime_list, mime); + _D("data_array[%d]= %s", i, data_array[i]); + +out: + free(data_array[i]); + } + + free(data_array); + + app_control_get_uri(control, &uri); + + EINA_LIST_FREE(mime_list, mime) { + __intersect_match_list_with_mime(matchlist, mime, uri); + free(mime); + mime = NULL; + } +} + + +static int __applist_compare(const void *com1, const void *com2) +{ + item_s *c1 = (item_s *)com1, *c2 = (item_s *)com2; + int ret = 0; + + ret = strcasecmp(c1->name, c2->name); + + return ret; +} + + +static void __make_applist(share_panel_h share_panel, Eina_List *matchlist, Eina_List **applist) +{ + Eina_List *l; + char *data = NULL; + int ret = 0; + + ret_if(!share_panel); + ret_if(!share_panel->control); + + EINA_LIST_FOREACH(matchlist, l, data) { + item_s *app_s = NULL; + app_info_h app_info = NULL; + + app_s = (item_s *) malloc(sizeof(item_s)); + continue_if(!app_s); + + app_s->appid = strdup(data); + if (!app_s->appid) { + _E("strdup error"); + free(app_s); + continue; + } + ret = app_control_clone(&(app_s->caller_control), share_panel->control); + if (ret != APP_CONTROL_ERROR_NONE) { + _E("fail to clone the share_panel->control"); + free(app_s->appid); + free(app_s); + continue; + } + + ret = app_info_create(data, &app_info); + if (ret != APP_MANAGER_ERROR_NONE || !app_info) { + _E("fail to create the app_info"); + free(app_s->appid); + free(app_s); + continue; + } + + ret = app_info_get_label(app_info, &app_s->name); + if (ret != APP_MANAGER_ERROR_NONE || !app_s->name) { + _E("fail to create the app_name from app_info"); + free(app_s->appid); + free(app_s); + app_info_destroy(app_info); + continue; + } + _D("icon_name : [%s]", app_s->name); + + ret = app_info_get_icon(app_info, &app_s->icon); + if (ret != APP_MANAGER_ERROR_NONE) { + free(app_s->appid); + free(app_s->name); + free(app_s); + app_info_destroy(app_info); + continue; + } + + app_info_destroy(app_info); + + if (!app_s->icon) { + app_s->icon = strdup(DEFAULT_ICON); + } + _D("icon_path : [%s]", app_s->icon); + + app_s->share_panel = share_panel; + *applist = eina_list_append(*applist, app_s); + } +} + +static int check_mime(app_control_h control, char* operation_type) +{ + if (!strcmp(operation_type, APP_CONTROL_OPERATION_SHARE) + || !strcmp(operation_type, APP_CONTROL_OPERATION_MULTI_SHARE)) { + char *mime; + int ret = app_control_get_mime(control, &mime); + retvm_if(ret != APP_CONTROL_ERROR_NONE, FAIL, "app_control_get_mime failed[%d]", ret); + if (mime == NULL) { + ret = app_control_set_mime(control, "*/*"); + if (ret != APP_CONTROL_ERROR_NONE) { + _E("app_control_set_mime failed[%d]", ret); + free(mime); + return FAIL; + } + } + free(mime); + } + return OK; +} + +static int __rua_stat_tag_iter_cb(const char *rua_stat_tag, void *data) +{ + sort_context_t *ctx = data; + item_s *item; + Eina_List *l, *ln; + + _D("Rua tag: %s", rua_stat_tag); + EINA_LIST_FOREACH_SAFE(ctx->input, l, ln, item) { + if (item->appid && !strcasecmp(rua_stat_tag, item->appid)) { + ctx->output = eina_list_append(ctx->output, item); + ctx->input = eina_list_remove_list(ctx->input, l); + break; + } + } + + return 0; +} + +static Eina_List *_list_sort(Eina_List *items) +{ + sort_context_t context; + int err; + + context.input = items; + context.output = NULL; + + // first sort using rua tags names + err = rua_stat_get_stat_tags("share-panel", __rua_stat_tag_iter_cb, &context); + if (err != 0) { + // this may return -1 once when db is not created. + _E("rua_stat_get_stat_tags failed[%d]: %s", err, get_error_message(err)); + } + + // secondly sort alphabetically + context.output = eina_list_merge( + context.output, eina_list_sort(context.input, 0, __applist_compare)); + + return context.output; +} + +Eina_List *_list_create(share_panel_h share_panel) +{ + Eina_List *matchlist = NULL; // List of ID's of matched apps + Eina_List *applist = NULL; // List of item_s's of matched apps + char *operation_type = NULL; + char *data = NULL; + + retv_if(!share_panel, NULL); + retv_if(!share_panel->control, NULL); + + app_control_get_operation(share_panel->control, &operation_type); + retv_if(!operation_type, NULL); + + retv_if(check_mime(share_panel->control, operation_type) == FAIL, NULL); + + if (!strcmp(operation_type, APP_CONTROL_OPERATION_SHARE) + || !strcmp(operation_type, APP_CONTROL_OPERATION_SHARE_TEXT)) { + _D("single share operation"); + __create_single_share_list(share_panel->control, &matchlist); + } else if (!strcmp(operation_type, APP_CONTROL_OPERATION_MULTI_SHARE)) { + _D("multi share operation"); + __create_multi_share_list(share_panel->control, &matchlist); + } else { + _D("Wrong operation"); + return NULL; + } + + __make_applist(share_panel, matchlist, &applist); + + EINA_LIST_FREE(matchlist, data) { + free(data); + } + + return _list_sort(applist); +} + + +void _list_destroy(Eina_List *list) +{ + item_s * item = NULL; + ret_if(!list); + EINA_LIST_FREE(list, item) { + ret_if(!item); + _grid_remove_item(NULL, item); + app_control_destroy(item->caller_control); + free(item->appid); + free(item->name); + free(item->icon); + free(item); + } + eina_list_free(list); +} + diff --git a/src/page.c b/src/page.c new file mode 100755 index 0000000..35593d4 --- /dev/null +++ b/src/page.c @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <Elementary.h> + +#include "share_panel_internal.h" +#include "conf.h" +#include "log.h" +#include "page.h" +#include "utils.h" + +Evas_Object *_page_create(Evas_Object *scroller, int page_width, int page_height) +{ + Evas_Object *page = NULL; + Evas_Object *page_bg = NULL; + Evas *e = NULL; + + char *edj_path = utils_get_res_file_path("edje/page.edj"); + + page = elm_layout_add(scroller); + if(!page) { + free(edj_path); + return NULL; + } + elm_layout_file_set(page, edj_path, "page"); + + e = evas_object_evas_get(scroller); + goto_if(!e, ERROR); + + page_bg = evas_object_rectangle_add(e); + goto_if(!page_bg, ERROR); + evas_object_size_hint_weight_set(page_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_min_set(page_bg, page_width, page_height); + evas_object_size_hint_max_set(page_bg, page_width, page_height); + evas_object_color_set(page_bg, 0, 0, 0, 0); + evas_object_repeat_events_set(page_bg, EINA_TRUE); + evas_object_show(page_bg); + elm_object_part_content_set(page, "bg", page_bg); + + evas_object_show(page); + free(edj_path); + return page; + +ERROR: + free(edj_path); + _page_destroy(page); + return NULL; +} + + + +void _page_destroy(Evas_Object *page) +{ + Evas_Object *bg = NULL; + + ret_if(!page); + + bg = elm_object_part_content_unset(page, "bg"); + if (bg) { + evas_object_del(bg); + } + + evas_object_del(page); +} diff --git a/src/scroller.c b/src/scroller.c new file mode 100755 index 0000000..fa0bea4 --- /dev/null +++ b/src/scroller.c @@ -0,0 +1,328 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <Elementary.h> + +#include "share_panel.h" +#include "share_panel_internal.h" +#include "conf.h" +#include "grid.h" +#include "log.h" +#include "page.h" +#include "scroller.h" + +#define PRIVATE_SCROLLER_IS_SCROLLING "p_is_sc" +#define PRIVATE_DATA_KEY_EVENT_CALLBACK_LIST "pdkec" + + +struct _event_cb { + int event_type; + void (*event_cb)(Evas_Object *scroller, int event_type, void *event_info, void *user_data); + void *user_data; +}; +typedef struct _event_cb event_cb_s; + + +static void __anim_start_cb(void *data, Evas_Object *scroller, void *event_info) +{ + _D("start the scroller(%p) animation", scroller); + evas_object_data_set(scroller, PRIVATE_SCROLLER_IS_SCROLLING, (void *)1); +} + + +static void __anim_stop_cb(void *data, Evas_Object *scroller, void *event_info) +{ + _D("stop the scroller(%p) animation", scroller); + evas_object_data_del(scroller, PRIVATE_SCROLLER_IS_SCROLLING); +} + + +static void __drag_start_cb(void *data, Evas_Object *scroller, void *event_info) +{ + _D("start to drag the scroller(%p)", scroller); +} + + +static void __drag_stop_cb(void *data, Evas_Object *scroller, void *event_info) +{ + _D("stop to drag the scroller(%p) animation", scroller); +} + + +static void __scroll_cb(void *data, Evas_Object *scroller, void *event_info) +{ + share_panel_h share_panel = data; + Eina_List *event_cb_list = NULL; + const Eina_List *l = NULL; + const Eina_List *ln = NULL; + event_cb_s *event_cb_info = NULL; + + ret_if(!share_panel); + ret_if(!scroller); + + event_cb_list = evas_object_data_get(scroller, PRIVATE_DATA_KEY_EVENT_CALLBACK_LIST); + ret_if(!event_cb_list); + + EINA_LIST_FOREACH_SAFE(event_cb_list, l, ln, event_cb_info) { + if (SCROLLER_EVENT_TYPE_SCROLL == event_cb_info->event_type) { + if (event_cb_info->event_cb) { + event_cb_info->event_cb(scroller, SCROLLER_EVENT_TYPE_SCROLL, NULL, event_cb_info->user_data); + } + } + } +} + + +Evas_Object *_scroller_create(Evas_Object *ui_manager, share_panel_h share_panel) +{ + Evas_Object *box = NULL; + Evas_Object *scroller = NULL; + + retv_if(!ui_manager, NULL); + retv_if(!share_panel, NULL); + + scroller = elm_scroller_add(ui_manager); + retv_if(!scroller, NULL); + + elm_scroller_bounce_set(scroller, EINA_FALSE, EINA_FALSE); + elm_scroller_policy_set(scroller, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_OFF); + elm_scroller_page_scroll_limit_set(scroller, 1, 1); + elm_scroller_content_min_limit(scroller, EINA_FALSE, EINA_TRUE); + elm_scroller_single_direction_set(scroller, ELM_SCROLLER_SINGLE_DIRECTION_HARD); + + elm_scroller_page_size_set(scroller, share_panel->page_width, -1); + + elm_object_style_set(scroller, "effect"); + evas_object_show(scroller); + elm_object_scroll_lock_y_set(scroller, EINA_TRUE); + + evas_object_smart_callback_add(scroller, "scroll,anim,start", __anim_start_cb, NULL); + evas_object_smart_callback_add(scroller, "scroll,anim,stop", __anim_stop_cb, NULL); + evas_object_smart_callback_add(scroller, "scroll,drag,start", __drag_start_cb, NULL); + evas_object_smart_callback_add(scroller, "scroll,drag,stop", __drag_stop_cb, share_panel); + evas_object_smart_callback_add(scroller, "scroll", __scroll_cb, share_panel); + + box = elm_box_add(scroller); + goto_if(!box, ERROR); + + elm_box_horizontal_set(box, EINA_TRUE); + elm_box_align_set(box, 0.5, 0.5); + evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(box); + + elm_object_content_set(scroller, box); + + return scroller; + +ERROR: + if (scroller) { + evas_object_del(scroller); + } + return NULL; +} + + +void _scroller_destroy(Evas_Object *scroller) +{ + Evas_Object *box = NULL; + Eina_List *list = NULL; + ret_if(!scroller); + + box = elm_object_content_unset(scroller); + if (box) { + list = elm_box_children_get(box); + if (list) { + _scroller_remove_list(scroller, list); + eina_list_free(list); + } + evas_object_del(box); + } + + evas_object_del(scroller); +} + + +void _scroller_append_page(Evas_Object *scroller, Evas_Object *page) +{ + Evas_Object *box = NULL; + Eina_List *event_cb_list = NULL; + const Eina_List *l = NULL; + const Eina_List *ln = NULL; + event_cb_s *event_cb_info = NULL; + + box = elm_object_content_get(scroller); + ret_if(!box); + + elm_box_pack_end(box, page); + + event_cb_list = evas_object_data_get(scroller, PRIVATE_DATA_KEY_EVENT_CALLBACK_LIST); + ret_if(!event_cb_list); + + EINA_LIST_FOREACH_SAFE(event_cb_list, l, ln, event_cb_info) { + if (SCROLLER_EVENT_TYPE_APPEND_PAGE == event_cb_info->event_type) { + if (event_cb_info->event_cb) { + event_cb_info->event_cb(scroller, SCROLLER_EVENT_TYPE_APPEND_PAGE, NULL, event_cb_info->user_data); + } + } + } +} + +void _scroller_append_list(Evas_Object *scroller, Eina_List *list, int page_width, int page_height) +{ + Evas_Object *page = NULL; + Evas_Object *grid = NULL; + int count = 0; + int i; + + ret_if(!scroller); + ret_if(!list); + + /* We'll implement this part */ + count = eina_list_count(list); + if (!count) { + _D("no apps"); + return; + } + + _D("list count is %d", count); + + for (i = 0; i < count; i++) { + Evas_Object *item = NULL; + if (i % 8 == 0) { + page = _page_create(scroller, page_width, page_height); + ret_if(!page); + _scroller_append_page(scroller, page); + grid = _grid_create(page); + ret_if(!grid); + elm_object_part_content_set(page, "grid", grid); + } + item = _grid_append_item(grid, eina_list_nth(list, i)); + ret_if(!item); + } +} + + +void _scroller_remove_list(Evas_Object *scroller, Eina_List *list) +{ + Evas_Object *page = NULL; + Evas_Object *grid = NULL; + const Eina_List *l, *ln; + + ret_if(!scroller); + ret_if(!list); + + EINA_LIST_FOREACH_SAFE(list, l, ln, page) { + grid = elm_object_part_content_unset(page, "grid"); + continue_if(!grid); + _grid_destroy(grid); + _page_destroy(page); + } +} + + +int _scroller_get_region_index(Evas_Object *scroller) +{ + int index = 0; + int x = 0; + int page_w = 0; + + retv_if(!scroller, 0); + + elm_scroller_region_get(scroller, &x, NULL, NULL, NULL); + elm_scroller_page_size_get(scroller, &page_w, NULL); + + index = x / page_w; + x = x % page_w; + if (x > (page_w / 2)) { + index++; + } + + return index; +} + + +unsigned int _scroller_count(Evas_Object *scroller) +{ + Evas_Object *box = NULL; + Eina_List *list = NULL; + int count = 0; + + retv_if(!scroller, 0); + + box = elm_object_content_get(scroller); + retv_if(!box, 0); + + list = elm_box_children_get(box); + retv_if(!list, 0); + + count = eina_list_count(list); + eina_list_free(list); + + return count; +} + +int _scroller_register_event_cb(Evas_Object *scroller, int event_type, void (*event_cb)(Evas_Object *scroller, int event_type, void *event_info, void *user_data), void *user_data) +{ + Eina_List *event_cb_list = NULL; + event_cb_s *event_cb_info = NULL; + + retv_if(!scroller, SHARE_PANEL_ERROR_INVALID_PARAMETER); + retv_if(event_type <= SCROLLER_EVENT_TYPE_INVALID, SHARE_PANEL_ERROR_INVALID_PARAMETER); + retv_if(event_type >= SCROLLER_EVENT_TYPE_MAX, SHARE_PANEL_ERROR_INVALID_PARAMETER); + retv_if(!event_cb, SHARE_PANEL_ERROR_INVALID_PARAMETER); + + event_cb_info = calloc(1, sizeof(event_cb_s)); + retv_if(!event_cb_info, SHARE_PANEL_ERROR_OUT_OF_MEMORY); + + event_cb_info->event_type = event_type; + event_cb_info->event_cb = event_cb; + event_cb_info->user_data = user_data; + + event_cb_list = evas_object_data_get(scroller, PRIVATE_DATA_KEY_EVENT_CALLBACK_LIST); + event_cb_list = eina_list_append(event_cb_list, event_cb_info); + evas_object_data_set(scroller, PRIVATE_DATA_KEY_EVENT_CALLBACK_LIST, event_cb_list); + + return SHARE_PANEL_ERROR_NONE; +} + + +int _scroller_unregister_event_cb(Evas_Object *scroller, int event_type, void (*event_cb)(Evas_Object *scroller, int event_type, void *event_info, void *user_data)) +{ + Eina_List *event_cb_list = NULL; + const Eina_List *l = NULL; + const Eina_List *ln = NULL; + event_cb_s *event_cb_info = NULL; + + retv_if(!scroller, SHARE_PANEL_ERROR_INVALID_PARAMETER); + retv_if(event_type <= SCROLLER_EVENT_TYPE_INVALID, SHARE_PANEL_ERROR_INVALID_PARAMETER); + retv_if(event_type >= SCROLLER_EVENT_TYPE_MAX, SHARE_PANEL_ERROR_INVALID_PARAMETER); + retv_if(!event_cb, SHARE_PANEL_ERROR_INVALID_PARAMETER); + + event_cb_list = evas_object_data_get(scroller, PRIVATE_DATA_KEY_EVENT_CALLBACK_LIST); + retv_if(!event_cb_list, SHARE_PANEL_ERROR_NOT_INITIALIZED); + + EINA_LIST_FOREACH_SAFE(event_cb_list, l, ln, event_cb_info) { + if (event_cb_info->event_type == event_type + && event_cb_info->event_cb == event_cb) { + event_cb_list = eina_list_remove(event_cb_list, event_cb_info); + break; + } + } + + evas_object_data_set(scroller, PRIVATE_DATA_KEY_EVENT_CALLBACK_LIST, event_cb_list); + + return SHARE_PANEL_ERROR_NONE; +} diff --git a/src/share_panel.c b/src/share_panel.c new file mode 100755 index 0000000..25198d4 --- /dev/null +++ b/src/share_panel.c @@ -0,0 +1,347 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <app.h> +#include <app_control.h> +#include <Elementary.h> +#include <efl_util.h> +#include <system_settings.h> + +#include "share_panel.h" +#include "share_panel_internal.h" +#include "conf.h" +#include "ui_manager.h" +#include "log.h" +#include "scroller.h" +#include "utils.h" + +#ifdef EAPI +#undef EAPI +#define EAPI __attribute__ ((visibility("default"))) +#endif + +#define SHARE_PANEL_DOMAIN "share-panel" +#define TRANSIT_DURATION 0.5f + + +typedef struct custom_effect { + Evas_Coord from_h; + Evas_Coord to_h; +} custom_effect_s; + + +static Eina_Bool _back_key_pressed(void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info) +{ + Evas_Event_Key_Down *ev = event_info; + share_panel_h share_panel = data; + + retv_if(!share_panel, EINA_FALSE); + + _D("KEY PRESSED: %s", ev->key); + if (type == EVAS_CALLBACK_KEY_DOWN && !strncmp(KEY_BACK, ev->key, strlen(KEY_BACK))) { + share_panel_reply(share_panel, false); + ui_app_exit(); + return EINA_TRUE; + } else { + return EINA_FALSE; + } +} + + +static void _rotate_cb(void *data, Evas_Object *obj, void *event) +{ + int angle = 0; + share_panel_h share_panel = data; + + ret_if(!obj); + ret_if(!share_panel); + ret_if(!share_panel->list_count); + ret_if(!share_panel->ui_manager); + + angle = elm_win_rotation_get(obj); + _D("Angle is %d degree", angle); + + if (share_panel->list_count > SHARE_PANEL_LINE_MAX) { + return; + } + + switch(angle) { + case 0: + case 180: + elm_object_signal_emit(share_panel->ui_manager, "1line", "fixed_bg"); + break; + case 90: + case 270: + elm_object_signal_emit(share_panel->ui_manager, "1line,land", "fixed_bg"); + break; + default: + _E("cannot reach here"); + } +} + + +static Evas_Object *__create_win(share_panel_h share_panel) +{ + Evas_Object *win = NULL; + Evas *e = NULL; + Ecore_Evas *ee = NULL; + + win = elm_win_add(NULL, "Share Panel", ELM_WIN_BASIC); + retv_if(!win, NULL); + elm_win_alpha_set(win, EINA_TRUE); + + e = evas_object_evas_get(win); + goto_if(!e, error); + + ee = ecore_evas_ecore_evas_get(e); + goto_if(!ee, error); + + ecore_evas_name_class_set(ee, "SYSTEM_POPUP", "SYSTEM_POPUP"); + + if (elm_win_wm_rotation_supported_get(win)) { + int rots[4] = {0, 90, 180, 270}; + elm_win_wm_rotation_available_rotations_set(win, rots, (sizeof(rots) / sizeof(int))); + } + elm_win_screen_size_get(win, NULL, NULL, &share_panel->root_width, &share_panel->root_height); + _D("screen size is (%d, %d)", share_panel->root_width, share_panel->root_height); + + elm_object_event_callback_add(win, _back_key_pressed, share_panel); + evas_object_smart_callback_add(win, "wm,rotation,changed", _rotate_cb, share_panel); + + efl_util_set_window_opaque_state(win, 0); + + elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_HIDE); + elm_win_borderless_set(win, EINA_TRUE); + evas_object_show(win); + + share_panel->win = win; + + return win; + +error: + if (win) + evas_object_del(win); + + return NULL; +} + + +static void __destroy_win(Evas_Object *win) +{ + evas_object_del(win); +} + + +EAPI int share_panel_create(app_control_h control, share_panel_h *share_panel) +{ + share_panel_h panel = NULL; + + retv_if(!share_panel, SHARE_PANEL_ERROR_INVALID_PARAMETER); + retv_if(!control, SHARE_PANEL_ERROR_INVALID_PARAMETER); + + char *locale_path = utils_get_res_file_path("locale"); + + bindtextdomain(SHARE_PANEL_DOMAIN, locale_path); + + panel = calloc(1, sizeof(share_panel_s)); + if(!panel) { + free(locale_path); + return SHARE_PANEL_ERROR_NOT_INITIALIZED; + } + + goto_if(!__create_win(panel), ERROR); + + if (panel->root_width > panel->root_height) { + panel->page_width = panel->root_height; + } else { + panel->page_width = panel->root_width; + } + panel->page_height = ELM_SCALE_SIZE(SCROLLER_HEIGHT); + + int err = app_control_is_reply_requested(control, &panel->reply_requested); + if (err != APP_CONTROL_ERROR_NONE) { + _E("app_control_is_reply_requested failed: %s", get_error_message(err)); + panel->reply_requested = false; + } + + err = app_control_clone(&panel->control, control); + if (err != APP_CONTROL_ERROR_NONE) { + _E("app_control_clone failed. Unable to reply to share request"); + panel->control = NULL; + panel->reply_requested = false; + } + panel->after_launch = 0; + + panel->ui_manager = _ui_manager_create(panel); + goto_if(!panel->ui_manager, ERROR); + + elm_win_resize_object_add(panel->win, panel->ui_manager); + share_panel_hide(panel); + + *share_panel = panel; + + free(locale_path); + + return SHARE_PANEL_ERROR_NONE; + +ERROR: + if (panel->ui_manager) { + _ui_manager_destroy(panel->ui_manager); + } + free(panel); + free(locale_path); + + return SHARE_PANEL_ERROR_NOT_INITIALIZED; +} + +EAPI int share_panel_reply(share_panel_h share_panel, bool result) +{ + app_control_h reply; + + if (!share_panel->reply_requested) + return SHARE_PANEL_ERROR_NONE; + + retvm_if(!share_panel->control, + SHARE_PANEL_ERROR_NOT_INITIALIZED, + "No request context. Unable to send app_control result"); + + int err = app_control_create(&reply); + retvm_if(err != APP_CONTROL_ERROR_NONE, + SHARE_PANEL_ERROR_INVALID_PARAMETER, + "app_control_create failed: %s", get_error_message(err)); + + err = app_control_reply_to_launch_request(reply, share_panel->control, + result ? APP_CONTROL_RESULT_SUCCEEDED : APP_CONTROL_RESULT_FAILED); + if (err != APP_CONTROL_ERROR_NONE) { + _E("app_control_reply_to_launch_request failed: %s", get_error_message(err)); + app_control_destroy(reply); + return SHARE_PANEL_ERROR_INVALID_PARAMETER; + } + + _D("app_control_reply_to_launch_request, result: %d", result); + app_control_destroy(reply); + return SHARE_PANEL_ERROR_NONE; +} + +EAPI int share_panel_destroy(share_panel_h share_panel) +{ + retv_if(!share_panel, SHARE_PANEL_ERROR_INVALID_PARAMETER); + + _ui_manager_destroy(share_panel->ui_manager); + + if (share_panel->win) { + __destroy_win(share_panel->win); + } + + if (share_panel->control) app_control_destroy(share_panel->control); + free(share_panel); + + return SHARE_PANEL_ERROR_NONE; +} + + +EAPI int share_panel_show(share_panel_h share_panel) +{ + retv_if(!share_panel, SHARE_PANEL_ERROR_INVALID_PARAMETER); + + return _ui_manager_show(share_panel); +} + + +EAPI int share_panel_hide(share_panel_h share_panel) +{ + retv_if(!share_panel, SHARE_PANEL_ERROR_INVALID_PARAMETER); + + return _ui_manager_hide(share_panel); +} + + +static bool _create_cb(void *data) +{ + elm_app_base_scale_set(1.7); + + return true; +} + +static void _app_control(app_control_h control, void *data) +{ + share_panel_h *share_panel = data; + int ret = SHARE_PANEL_ERROR_NONE; + + ret_if(!share_panel); + + ret_if(!control); + + ret = share_panel_create(control, share_panel); + if (SHARE_PANEL_ERROR_NONE != ret) { + _E("Fail to create the share panel"); + return; + } + + share_panel_show(*share_panel); +} + +static void _pause_cb(void *data) +{ + share_panel_h *share_panel = data; + _D("share_panel is paused"); + + if ((*share_panel)->after_launch) + ui_app_exit(); +} + +static void _language_changed(app_event_info_h event_info, void *data) +{ + char *lang = NULL; + int ret = SYSTEM_SETTINGS_ERROR_NONE; + + _D("language changed"); + + ret = system_settings_get_value_string(SYSTEM_SETTINGS_KEY_LOCALE_LANGUAGE, &lang); + if (ret != SYSTEM_SETTINGS_ERROR_NONE) { + _E("Fail to get string value (%d", ret); + return; + } + ret_if(!lang); + elm_language_set(lang); + + free(lang); + +} + + +EAPI int main(int argc, char **argv) +{ + int ret; + ui_app_lifecycle_callback_s lifecycle_callback = {0, }; + app_event_handler_h event_handlers[5] = {NULL, }; + share_panel_h share_panel = NULL; + + lifecycle_callback.create = _create_cb; + lifecycle_callback.pause = _pause_cb; + lifecycle_callback.resume = NULL; + lifecycle_callback.app_control = _app_control; + + ui_app_add_event_handler(&event_handlers[APP_EVENT_LOW_BATTERY], APP_EVENT_LOW_BATTERY, NULL, NULL); + ui_app_add_event_handler(&event_handlers[APP_EVENT_LOW_MEMORY], APP_EVENT_LOW_MEMORY, NULL, NULL); + ui_app_add_event_handler(&event_handlers[APP_EVENT_DEVICE_ORIENTATION_CHANGED], APP_EVENT_DEVICE_ORIENTATION_CHANGED, NULL, NULL); + ui_app_add_event_handler(&event_handlers[APP_EVENT_LANGUAGE_CHANGED], APP_EVENT_LANGUAGE_CHANGED, _language_changed, NULL); + ui_app_add_event_handler(&event_handlers[APP_EVENT_REGION_FORMAT_CHANGED], APP_EVENT_REGION_FORMAT_CHANGED, NULL, NULL); + + ret = ui_app_main(argc, argv, &lifecycle_callback, &share_panel); + + return ret; +} diff --git a/src/ui_manager.c b/src/ui_manager.c new file mode 100755 index 0000000..0abe136 --- /dev/null +++ b/src/ui_manager.c @@ -0,0 +1,323 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <app.h> +#include <Elementary.h> +#include <notification.h> + +#include "share_panel_internal.h" +#include "share_panel.h" + +#include "log.h" +#include "grid.h" +#include "list.h" +#include "page.h" +#include "index.h" +#include "scroller.h" +#include "conf.h" +#include "ui_manager.h" +#include "utils.h" + +#define GROUP_LAYOUT "layout" + + +static void __resize_cb(void *data, Evas *e, Evas_Object *obj, void *event_info) +{ + Evas_Object *ui_manager = obj; + + int x, y, w, h; + + ret_if(!ui_manager); + + evas_object_geometry_get(ui_manager, &x, &y, &w, &h); + _D("%s resize(%d, %d, %d, %d)", data, x, y, w, h); +} + + +static void _scroll_cb(Evas_Object *scroller, int event_type, void *event_info, void *data) +{ + Evas_Object *index = data; + int region_index = 0; + + ret_if(!index); + + region_index = _scroller_get_region_index(scroller); + _index_bring_in(index, region_index); + + _D("Scroller region index is %d", region_index); +} + + +static void _append_page_cb(Evas_Object *scroller, int event_type, void *event_info, void *data) +{ + Evas_Object *index = data; + unsigned int count = 0; + + ret_if(!index); + + count = _scroller_count(scroller); + _index_update(index, count); + + _D("Index was updated as %d", count); +} + + +static void _remove_page_cb(Evas_Object *scroller, int event_type, void *event_info, void *data) +{ + Evas_Object *index = data; + unsigned int count = 0; + + ret_if(!index); + + count = _scroller_count(scroller); + _index_update(index, count); + + _D("Index was updated as %d", count); +} + + +static void __click_back_btn_cb(void *data, Evas_Object *obj, void *event_info) +{ + share_panel_s *share_panel = data; + + ret_if(!share_panel); + + _D("back button clicked, destroy the share-panel"); + share_panel_reply(share_panel, false); + share_panel_destroy(share_panel); +} + + +Evas_Object *__create_back_btn(Evas_Object *ui_manager, share_panel_s *share_panel) +{ + Evas_Object *button = NULL; + + retv_if(!share_panel, NULL); + retv_if(!ui_manager, NULL); + + button = elm_button_add(ui_manager); + retv_if(!button, NULL); + + elm_object_style_set(button, "focus"); + elm_object_part_content_set(ui_manager, "event", button); + evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_show(button); + evas_object_smart_callback_add(button, "clicked", __click_back_btn_cb, share_panel); + + return button; +} + + +void __destroy_back_btn(Evas_Object *button) +{ + ret_if(!button); + + evas_object_del(button); +} + + +Evas_Object *__create_bg_rect(Evas_Object *ui_manager, int width, int height) +{ + Evas_Object *ui_bg = NULL; + + ui_bg = evas_object_rectangle_add(evas_object_evas_get(ui_manager)); + retv_if(!ui_bg, NULL); + + evas_object_size_hint_weight_set(ui_bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_min_set(ui_bg, ELM_SCALE_SIZE(BASE_WIDTH), ELM_SCALE_SIZE(BASE_HEIGHT)); + evas_object_size_hint_max_set(ui_bg, ELM_SCALE_SIZE(BASE_WIDTH), ELM_SCALE_SIZE(BASE_HEIGHT)); + evas_object_color_set(ui_bg, 0, 0, 0, 0); + evas_object_show(ui_bg); + elm_object_part_content_set(ui_manager, "fixed_bg", ui_bg); + + return ui_bg; +} + + +void __destroy_bg_rect(Evas_Object *bg) +{ + ret_if(!bg); + + evas_object_del(bg); +} + + +Evas_Object *_ui_manager_create(share_panel_s *share_panel) +{ + Evas_Object *ui_manager = NULL; + Evas_Object *edje = NULL; + + retv_if(!share_panel, NULL); + + ui_manager = elm_layout_add(share_panel->win); + retv_if(!ui_manager, NULL); + + char *edj_path = utils_get_res_file_path("edje/layout.edj"); + + elm_layout_file_set(ui_manager, edj_path, GROUP_LAYOUT); + evas_object_size_hint_weight_set(ui_manager, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + evas_object_size_hint_align_set(ui_manager, EVAS_HINT_FILL, EVAS_HINT_FILL); + evas_object_show(ui_manager); + + evas_object_event_callback_add(ui_manager, EVAS_CALLBACK_RESIZE, __resize_cb, "ui_manager"); + + evas_object_data_set(ui_manager, DATA_KEY_SHARE_PANEL_INFO, share_panel); + + goto_if(!__create_bg_rect(ui_manager, share_panel->root_width, share_panel->root_height), ERROR); + + goto_if(!__create_back_btn(ui_manager, share_panel), ERROR); + + elm_object_part_text_set(ui_manager, "title", _("IDS_AM_HEADER_SHARE")); + elm_object_domain_translatable_part_text_set(ui_manager, "title", PROJECT, "IDS_AM_HEADER_SHARE"); + + share_panel->index = _index_create(ui_manager, 0); + goto_if(!share_panel->index, ERROR); + elm_object_part_content_set(ui_manager, "index", share_panel->index); + + share_panel->scroller = _scroller_create(ui_manager, share_panel); + goto_if(!share_panel->scroller, ERROR); + elm_object_part_content_set(ui_manager, "scroller", share_panel->scroller); + + if (SHARE_PANEL_ERROR_NONE != _scroller_register_event_cb(share_panel->scroller, + SCROLLER_EVENT_TYPE_SCROLL, _scroll_cb, share_panel->index)) { + _E("cannot register the scroller event"); + } + if (SHARE_PANEL_ERROR_NONE != _scroller_register_event_cb(share_panel->scroller, + SCROLLER_EVENT_TYPE_APPEND_PAGE, _append_page_cb, share_panel->index)) { + _E("cannot register the scroller event"); + } + if (SHARE_PANEL_ERROR_NONE != _scroller_register_event_cb(share_panel->scroller, + SCROLLER_EVENT_TYPE_REMOVE_PAGE, _remove_page_cb, share_panel->index)) { + _E("cannot register the scroller event"); + } + + share_panel->list = _list_create(share_panel); + if (!share_panel->list) { + notification_status_message_post(_("IDS_BT_POP_NO_APPLICATIONS_AVAILABLE_TO_OPEN_FILES")); + ui_app_exit(); + } + + share_panel->list_count = eina_list_count(share_panel->list); + + if (1 == share_panel->list_count) { + item_s *item_info = NULL; + int ret = 0; + + _D("Only one item on the list. Launching."); + + item_info = eina_list_nth(share_panel->list, 0); + goto_if(!item_info, ERROR); + + ret = _app_control_launch(item_info); + + if (ret < 0) { + _E("Fail to launch app(%d)", ret); + } + + ui_app_exit(); + } + + _scroller_append_list(share_panel->scroller + , share_panel->list + , share_panel->page_width + , share_panel->page_height); + + edje = elm_layout_edje_get(ui_manager); + goto_if(!edje, ERROR); + + if (share_panel->list_count <= SHARE_PANEL_LINE_MAX) { + if (share_panel->root_width < share_panel->root_height) { + edje_object_signal_emit(edje, "1line", "fixed_bg"); + } else { + edje_object_signal_emit(edje, "1line,land", "fixed_bg"); + } + } + + edje_object_message_signal_process(edje); + + free(edj_path); + return ui_manager; + +ERROR: + free(edj_path); + _ui_manager_destroy(ui_manager); + return NULL; +} + + +void _ui_manager_destroy(Evas_Object *ui_manager) +{ + Evas_Object *button = NULL; + Evas_Object *bg = NULL; + share_panel_s *share_panel = NULL; + ret_if(!ui_manager); + + share_panel = evas_object_data_del(ui_manager, DATA_KEY_SHARE_PANEL_INFO); + ret_if(!share_panel); + + if (share_panel->list) { + _scroller_remove_list(share_panel->scroller, share_panel->list); + _list_destroy(share_panel->list); + } + + if (share_panel->scroller) { + _scroller_unregister_event_cb(share_panel->scroller, SCROLLER_EVENT_TYPE_SCROLL, _scroll_cb); + _scroller_unregister_event_cb(share_panel->scroller, SCROLLER_EVENT_TYPE_APPEND_PAGE, _append_page_cb); + _scroller_unregister_event_cb(share_panel->scroller, SCROLLER_EVENT_TYPE_REMOVE_PAGE, _remove_page_cb); + _scroller_destroy(share_panel->scroller); + } + + if (share_panel->index) { + _index_destroy(share_panel->index); + } + + button = elm_object_part_content_unset(ui_manager, "effect"); + if(button) { + __destroy_back_btn(button); + } + + bg = elm_object_part_content_unset(ui_manager, "fixed_bg"); + if(bg) { + __destroy_bg_rect(bg); + } + + evas_object_del(ui_manager); +} + + +int _ui_manager_show(share_panel_h share_panel) +{ + retv_if(!share_panel, SHARE_PANEL_ERROR_INVALID_PARAMETER); + retv_if(!share_panel->ui_manager, SHARE_PANEL_ERROR_INVALID_PARAMETER); + + evas_object_show(share_panel->ui_manager); + + share_panel->show_state = SHARE_PANEL_SHOW_STATE_HALF; + + return SHARE_PANEL_ERROR_NONE; +} + + +int _ui_manager_hide(share_panel_h share_panel) +{ + retv_if(!share_panel, SHARE_PANEL_ERROR_INVALID_PARAMETER); + retv_if(!share_panel->ui_manager, SHARE_PANEL_ERROR_INVALID_PARAMETER); + + share_panel->show_state = SHARE_PANEL_SHOW_STATE_HIDE; + evas_object_hide(share_panel->ui_manager); + + return SHARE_PANEL_ERROR_NONE; +} diff --git a/src/utils.c b/src/utils.c new file mode 100755 index 0000000..4592d09 --- /dev/null +++ b/src/utils.c @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include <app_common.h> +#include <stdlib.h> +#include <string.h> +#include <stdio.h> + +#include "log.h" + + +char *utils_get_res_file_path(char *sub_path) +{ + char *res_path = app_get_resource_path(); + if(!res_path) + return NULL; + + size_t absolute_path_size = strlen(res_path) + strlen(sub_path) + 2; + + char *absolute_path = malloc(absolute_path_size); + if(!absolute_path) { + free(res_path); + return NULL; + } + + snprintf(absolute_path, (int)absolute_path_size, "%s%s", res_path, sub_path); + + free(res_path); + + return absolute_path; +} diff --git a/tizen-manifest.xml b/tizen-manifest.xml new file mode 100755 index 0000000..ef3655e --- /dev/null +++ b/tizen-manifest.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<manifest xmlns="http://tizen.org/ns/packages" api-version="4.0" install-location="internal-only" package="org.tizen.share-panel_common" version="1.0.0"> + <profile name="tizeniot"/> + <ui-application appid="org.tizen.share-panel" exec="share-panel" hw-acceleration="on" launch_mode="group" multiple="false" nodisplay="true" process-pool="true" type="capp"> + <label>share-panel</label> + <icon>share-panel.png</icon> + </ui-application> + <privileges> + <privilege>http://tizen.org/privilege/appmanager.launch</privilege> + <privilege>http://tizen.org/privilege/window.priority.set</privilege> + <privilege>http://tizen.org/privilege/packagemanager.info</privilege> + </privileges> +</manifest> |