add template dir for mrk new
This commit is contained in:
parent
a765645b45
commit
01af8bc9c0
|
@ -0,0 +1 @@
|
|||
@DEVMAIL@
|
|
@ -0,0 +1,26 @@
|
|||
PROJ: @APPNAME@
|
||||
PROJICON: app/@APPDOM@.png
|
||||
BRIEF: @APPDESC@
|
||||
VERSION: @APPVER@
|
||||
LICENSE: @APPCOPY@
|
||||
COPYING: COPYING AUTHORS
|
||||
NEEDS: @EFLVER@
|
||||
DOMAIN: @APPDOM@
|
||||
CONTACT: @DEVMAIL@
|
||||
CATEGORY: @APPCATEGORIES@
|
||||
TAGS: @APPTAGS@
|
||||
|
||||
DESKTOP: app/@APPDOM@.desktop
|
||||
ICON: app/@APPDOM@.png
|
||||
|
||||
BIN: bin/@APPDOM@
|
||||
SRC:
|
||||
src/main.c
|
||||
src/main.h
|
||||
DEPS:
|
||||
elementary eina evas ecore edje eo emotion eldbus eio efreet efreet-mime efreet-trash eeze eet ecore-ipc ecore-file ecore-con ecore-audio
|
||||
INC: src/bin
|
||||
|
||||
DATA:
|
||||
README > share/@APPDOM@/README
|
||||
data/bg.jpg > share/@APPDOM@/bg/bg.jpg
|
|
@ -0,0 +1,23 @@
|
|||
@APPNAME@
|
||||
|
||||
By: @DEVMAIL@
|
||||
License: @APPCOPY@
|
||||
|
||||
@APPDESC@
|
||||
|
||||
Some build instructions using Marrakesh:
|
||||
|
||||
To build from source:
|
||||
mrk build
|
||||
|
||||
To package up source to give to others:
|
||||
mrk src
|
||||
|
||||
To create a binary package from the build:
|
||||
mrk bin
|
||||
|
||||
To install the binary package above:
|
||||
mrk inst FILE.mkb
|
||||
|
||||
To check your project is able to be distributed:
|
||||
mrk check
|
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
#Encoding=UTF-8
|
||||
Type=Application
|
||||
Name=@APPNAME@
|
||||
Exec=@APPDOM@
|
||||
Icon=@APPDOM@
|
||||
Categories=E
|
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
Binary file not shown.
After Width: | Height: | Size: 584 KiB |
|
@ -0,0 +1,65 @@
|
|||
#include "main.h"
|
||||
|
||||
static void
|
||||
_cb_button_clicked(void *data, Evas_Object *obj EINA_UNUSED , void *info EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win = data;
|
||||
|
||||
evas_object_del(win);
|
||||
}
|
||||
|
||||
EAPI_MAIN int
|
||||
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
|
||||
{
|
||||
Evas_Object *win, *bg, *bx, *lb, *bt;
|
||||
char buf[PATH_MAX];
|
||||
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
|
||||
elm_app_compile_lib_dir_set(PACKAGE_LIB_DIR);
|
||||
elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
|
||||
elm_app_info_set(elm_main, "@APPDOM@", "README");
|
||||
|
||||
win = elm_win_add(NULL, "@APPNAME@", ELM_WIN_BASIC);
|
||||
if (!win) return -1;
|
||||
elm_win_title_set(win, "@APPNAME@");
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
snprintf(buf, sizeof(buf), "%s/bg/bg.jpg", elm_app_data_dir_get());
|
||||
elm_bg_file_set(bg, buf, NULL);
|
||||
elm_win_resize_object_add(win, bg);
|
||||
evas_object_show(bg);
|
||||
|
||||
bx = elm_box_add(win);
|
||||
evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
elm_win_resize_object_add(win, bx);
|
||||
evas_object_show(bx);
|
||||
|
||||
lb = elm_label_add(win);
|
||||
elm_label_line_wrap_set(lb, ELM_WRAP_WORD);
|
||||
elm_object_text_set(lb,
|
||||
"<b>Hello World</b><br>"
|
||||
"<br>"
|
||||
"This is my first EFL App! I hope it's good"
|
||||
);
|
||||
evas_object_size_hint_weight_set(lb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(lb, EVAS_HINT_FILL, 0.5);
|
||||
elm_box_pack_end(bx, lb);
|
||||
evas_object_show(lb);
|
||||
|
||||
bt = elm_button_add(win);
|
||||
elm_object_text_set(bt, "Close Window");
|
||||
evas_object_smart_callback_add(bt, "clicked", _cb_button_clicked, win);
|
||||
evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, 0.0);
|
||||
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
|
||||
elm_box_pack_end(bx, bt);
|
||||
evas_object_show(bt);
|
||||
|
||||
evas_object_show(win);
|
||||
|
||||
elm_run();
|
||||
return 0;
|
||||
}
|
||||
ELM_MAIN()
|
|
@ -0,0 +1 @@
|
|||
#include <Elementary.h>
|
|
@ -0,0 +1,5 @@
|
|||
developer
|
||||
media
|
||||
system
|
||||
terminal
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
1.10
|
||||
1.11
|
|
@ -0,0 +1,11 @@
|
|||
video
|
||||
audio
|
||||
media
|
||||
film
|
||||
movies
|
||||
music
|
||||
player
|
||||
terminal
|
||||
emulator
|
||||
system
|
||||
tool
|
Loading…
Reference in New Issue