Delete the ruler gadget

It does not work well with the new E gadgets infra,
and it was just a simple example
This commit is contained in:
Davide Andreoli 2018-03-06 20:12:06 +01:00
parent 205a16700e
commit 8bacfdf5bd
6 changed files with 0 additions and 141 deletions

View File

@ -1,36 +0,0 @@
# Simple Makefile for Enlightenment (edgar) gadgets
# gadget specific config
GADGET_NAME = ruler
EXTRA_FILES =
# nothing should be changed below this point
GADGET_FILES = __init__.pyc $(GADGET_NAME).edj
prefix = $(shell pkg-config --variable=libdir enlightenment)
gadget_folder = ${prefix}/enlightenment/gadgets/$(GADGET_NAME)
.PHONY: all install clean
all: $(GADGET_FILES) $(EXTRA_FILES)
install: all
@mkdir -p -v ${gadget_folder}
@cp --preserve=mode -v $(GADGET_FILES) $(EXTRA_FILES) $(gadget_folder)
uninstall: all
@rm -rfv ${gadget_folder}
clean:
@rm -fv *.edj *.pyc
EDJE_CC = edje_cc
EDJE_FLAGS = -v -id images/ -fd fonts/
%.edj: %.edc images/*
$(EDJE_CC) $(EDJE_FLAGS) $<
@chmod -v og+r $@
%.pyc: %.py
python3 -c "from py_compile import compile; compile('$<', '$@')"

View File

@ -1,28 +0,0 @@
# This python file use the following encoding: utf-8
import sys
import os
import e
from efl import evas
__gadget_name__ = 'Ruler (HalloWorld)'
__gadget_vers__ = '0.1'
__gadget_auth__ = 'DaveMDS'
__gadget_mail__ = 'dave@gurumeditation.it'
__gadget_desc__ = 'All gadgets sets have a ruler...'
__gadget_vapi__ = 1
class Gadget(e.Gadget):
def __init__(self):
super().__init__()
def instance_orient(self, obj, generic, specific):
super().instance_orient(obj, generic, specific)
if generic == e.E_GADCON_ORIENT_VERT:
obj.signal_emit('gadget,orient,vert', '')
else:
obj.signal_emit('gadget,orient,horiz', '')

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1,77 +0,0 @@
/**
* E17 Ruler Gadget (HalloWorld)
*
* This is the simplest gadget yo can do.
* Ruler will be used as reference, all off the gadgets features will be
* documented here.You can use this file as a skeleton for your new gadgets.
*
* All the thing that is labeled as API are part that must exist in every
* gadget.
*
*/
images {
image: "icon.png" COMP;
image: "ruler_horiz.png" COMP;
image: "ruler_vert.png" COMP;
}
collections {
/**
* API [e/gadget/icon] The group used for the icon of the gadget
*/
group { name: "e/gadgets/ruler/icon";
parts {
part { name: "icon";
description {
state: "default" 0.0;
aspect: 1.0 1.0;
aspect_preference: BOTH;
image {
normal: "icon.png";
}
}
}
}
}
/**
* API [e/gadget/main] The main group of the gadget
* This group is the one that is places on the screen. It's name must be
* e/gadget/main.
*/
group { name: "e/gadgets/ruler/main";
parts {
part { name: "ruler";
description { state: "default" 0.0;
min: 800 70;
max: 800 70;
image {
normal: "ruler_horiz.png";
}
}
description { state: "vertical" 0.0;
min: 70 800;
max: 70 800;
image {
normal: "ruler_vert.png";
}
}
}
}
programs {
program { signal: "gadget,orient,vert";
source: "";
action: STATE_SET "vertical" 0.0;
target: "ruler";
}
program { signal: "gadget,orient,horiz";
source: "";
action: STATE_SET "default" 0.0;
target: "ruler";
}
}
}
}