21
.cvsignore
|
@ -1,21 +0,0 @@
|
||||||
ABOUT-NLS
|
|
||||||
mkinstalldirs
|
|
||||||
missing
|
|
||||||
install-sh
|
|
||||||
aclocal.m4
|
|
||||||
Makefile.in
|
|
||||||
configure
|
|
||||||
config.log
|
|
||||||
intl
|
|
||||||
config.status
|
|
||||||
config.cache
|
|
||||||
Makefile
|
|
||||||
stamp-h
|
|
||||||
config.h
|
|
||||||
po
|
|
||||||
stamp-h.in
|
|
||||||
ltmain.sh
|
|
||||||
ltconfig
|
|
||||||
libtool
|
|
||||||
config.sub
|
|
||||||
config.guess
|
|
6
AUTHORS
|
@ -1,6 +0,0 @@
|
||||||
The Rasterman <raster@rasterman.com>
|
|
||||||
Christian Kreibich <cK@whoop.org>
|
|
||||||
Burra <burra@colorado.edu>
|
|
||||||
Graham MacDonald <macdonag@lineone.net>
|
|
||||||
Alan Schmitt <alan.schmitt@inria.fr>
|
|
||||||
Kevin Brosius <cobra@compuserve.com>
|
|
20
COPYING
|
@ -1,20 +0,0 @@
|
||||||
Copyright (C) 2000 Carsten Haitzler and various contributors (see AUTHORS)
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to
|
|
||||||
deal in the Software without restriction, including without limitation the
|
|
||||||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
||||||
sell copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies of the Software, its documentation and marketing & publicity
|
|
||||||
materials, and acknowledgment shall be given in the documentation, materials
|
|
||||||
and software packages that this Software was used.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
||||||
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
||||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
24
ChangeLog
|
@ -1,24 +0,0 @@
|
||||||
Sun Mar 10 18:13:04 2002 Till Adam <till@adam-lilienthal.de>
|
|
||||||
* add E_View_Look class
|
|
||||||
* move view <-> dir and view <-> look <-> layout_dir to observer/observee
|
|
||||||
* re-enable iconbar throbber
|
|
||||||
* fix various small issues
|
|
||||||
|
|
||||||
Wed Mar 06 21:41:07 2002 Till Adam <till@adam-lilienthal.de>
|
|
||||||
* change name of E_View_Model to E_Dir
|
|
||||||
|
|
||||||
Fri Mar 01 17:27:18 2002 Till Adam <till@adam-lilienthal.de>
|
|
||||||
* dnd operations now only affect the currently focused view
|
|
||||||
|
|
||||||
Thu Feb 28 18:45:12 CST 2002 Corey Donohoe <atmos@atmos.org>
|
|
||||||
* Free bgs in e_view_cleanup, it might still be leaking elsewhere though
|
|
||||||
|
|
||||||
Mon Feb 25 18:56:35 2002 Till Adam <till@adam-lilienthal.de>
|
|
||||||
* start of ChangeLog ;)
|
|
||||||
* several views of the same dir are now possible
|
|
||||||
* added class E_File representing a file with stat and icon info
|
|
||||||
* added class E_View_Model representing a dir with list of E_Files
|
|
||||||
* added singleton E_View_Machine holding global lists of Views and
|
|
||||||
View_Models
|
|
||||||
* seperation of icon and file concepts
|
|
||||||
* various small fixes and cleanups
|
|
14
INSTALL
|
@ -1,14 +0,0 @@
|
||||||
COMPILING and INSTALLING:
|
|
||||||
|
|
||||||
If you got a official release tar archive do:
|
|
||||||
./configure
|
|
||||||
|
|
||||||
( otherwise if you got this from enlightenment cvs do: ./autogen.sh )
|
|
||||||
|
|
||||||
Then to compile:
|
|
||||||
make
|
|
||||||
|
|
||||||
To install (run this as root, or the user who handles installs):
|
|
||||||
make install
|
|
||||||
|
|
||||||
NOTE: You MUST make install Enlightenment for it to run properly.
|
|
31
Makefile.am
|
@ -1,31 +0,0 @@
|
||||||
## Process this file with automake to produce Makefile.in
|
|
||||||
|
|
||||||
SUBDIRS = src lib client tools doc
|
|
||||||
|
|
||||||
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
|
|
||||||
config.h.in config.sub configure install-sh \
|
|
||||||
ltconfig ltmain.sh missing mkinstalldirs \
|
|
||||||
stamp-h.in
|
|
||||||
|
|
||||||
install-data-local:
|
|
||||||
@$(NORMAL_INSTALL)
|
|
||||||
if test -d $(srcdir)/data; then \
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir); \
|
|
||||||
(cd $(srcdir); tar -cf - data) | (cd $(DESTDIR)$(pkgdatadir); tar -xf -) \
|
|
||||||
fi
|
|
||||||
|
|
||||||
dist-hook:
|
|
||||||
if test -d data; then \
|
|
||||||
(cd $(srcdir); tar -cf - data) | (cd $(distdir); tar -xf -) \
|
|
||||||
fi
|
|
||||||
|
|
||||||
EXTRA_DIST = README AUTHORS COPYING e.spec
|
|
||||||
|
|
||||||
docs:
|
|
||||||
$(MAKE) -C $(top_srcdir)/doc docs
|
|
||||||
|
|
||||||
if HAVE_JADE
|
|
||||||
html-docs:
|
|
||||||
$(MAKE) -C $(top_srcdir)/doc html-docs
|
|
||||||
endif
|
|
||||||
|
|
145
README
|
@ -1,145 +0,0 @@
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
NOTE: THIS WILL NOT COMPILE. DO NOT EVEN TRY.
|
|
||||||
|
|
||||||
This is only here for historical reasons while we are busy putting together a
|
|
||||||
new codebase (outside of CVS for now). It will come into CVS just as soon as
|
|
||||||
it is sufficiently functional enough to manage windows at the most basic
|
|
||||||
level. It already has a lot of functionality, but this is not considered
|
|
||||||
"good enough" to hit CVS yet.
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Additional notes
|
|
||||||
|
|
||||||
todo
|
|
||||||
entry.c - check 'todo' entries (although nobody uses entries except for
|
|
||||||
me in med, do they?)
|
|
||||||
guides.c - imlib parts that aren't converted yet.
|
|
||||||
text.c
|
|
||||||
menu.c
|
|
||||||
menubuild.c - e_observer_init() call.
|
|
||||||
border.c - use e_evas_new_all in place of the inlined code. cleanup.
|
|
||||||
|
|
||||||
|
|
||||||
+-----------------------------------------------------------------------------+
|
|
||||||
| Enlightenment 0.17.pre CVS Code.... |
|
|
||||||
+-----------------------------------------------------------------------------+
|
|
||||||
The Rasterman - raster@rasterman.com
|
|
||||||
|
|
||||||
*******************************************************************************
|
|
||||||
**************** READ THIS! It is of the UTMOST IMPORTANCE! *******************
|
|
||||||
*******************************************************************************
|
|
||||||
|
|
||||||
This is the source code for Enlightenment 0.17 - If you got this you got it
|
|
||||||
from Enlightenment's CVS repository - or from someone who took it out of the
|
|
||||||
CVS repository.
|
|
||||||
|
|
||||||
The CVS repository is full of code *IN DEVELOPMENT* - that often means it's
|
|
||||||
in the middle of being worked on and may install strange things in strange
|
|
||||||
places, make a mess, and may not even be compatible with a final release. If
|
|
||||||
you at all use this code, you are HEAVILY URGED, when it is finally released,
|
|
||||||
to remove all traces of anything this CVS code base has installed on your
|
|
||||||
system (it is COMPLETELY up to you to keep track of that - do NOT expect any
|
|
||||||
help), and then install the full release on a cleaned system. Don't come
|
|
||||||
asking "can I just keep using CVS" once things are released - that is the
|
|
||||||
reason I put this paragraph here - so you don't ask. The answer is the same
|
|
||||||
as above - if there is a proper final release use that. CVS is really only
|
|
||||||
for those heavily hacking on the code, or whose curiosity is too much to resist
|
|
||||||
not giving it a look and try.
|
|
||||||
|
|
||||||
Now we have that warning over and done with. How to build and install from
|
|
||||||
CVS?
|
|
||||||
|
|
||||||
$ ./autogen.sh && make
|
|
||||||
$ su
|
|
||||||
Password:
|
|
||||||
<- as root ->
|
|
||||||
# make install
|
|
||||||
|
|
||||||
You should be able to use the binary of enlightenment as a window manager.
|
|
||||||
|
|
||||||
you might be advised for cleanliness to do
|
|
||||||
$ ./autogen.sh --prefix=/usr/local/e-17
|
|
||||||
|
|
||||||
so it installs relative to the /usr/local/e-17 directory and keeps all the
|
|
||||||
e-17 development code and data in that tree so it is easily removed when the
|
|
||||||
time comes.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
NOTES: Read these carefully!
|
|
||||||
|
|
||||||
Enlightenment only handles a small subset of ICCCM and thus will have bugs -
|
|
||||||
some applications will not behave correctly and may appear in odd spots or
|
|
||||||
not resize or place themselves properly etc. Expect this - it's code being
|
|
||||||
worked on. Just be happy it does as much as it already does.
|
|
||||||
|
|
||||||
Enlightenment RELIES on lots of libraires that have been written. Ecore,
|
|
||||||
Ebits, Evas, Edb, Imlib2, Efsd just to mention a few. Especially Ebits,
|
|
||||||
Ecore, Efsd, Ferite, and Evas change in CVS often - you will need the absolute
|
|
||||||
latest of these if you wish Enlightenment 0.17 code to run properly or compile.
|
|
||||||
If you update Enlightenment from CVS update these too to get any changes they
|
|
||||||
have in their trees.
|
|
||||||
|
|
||||||
If you want to compile & install E 0.17 you probably install the packages
|
|
||||||
Enlightenment needs in this order:
|
|
||||||
|
|
||||||
(*) imlib2
|
|
||||||
(*) edb
|
|
||||||
(*) imlib2_loaders
|
|
||||||
(*) evas
|
|
||||||
(*) ebits
|
|
||||||
(*) ecore
|
|
||||||
(*) efsd
|
|
||||||
(*) ferite (optional for now, but recommended)
|
|
||||||
(*) e17
|
|
||||||
|
|
||||||
since you got Enlightenment from CVS (if you didn't you should have) you must
|
|
||||||
get all of the above from CVS - because the libraries Enlightenment depends on
|
|
||||||
keep being updated as bugs are found and new features needed - and often they
|
|
||||||
are not released for a while until things settle down, so make sure you get
|
|
||||||
the latest of these from CVS.
|
|
||||||
|
|
||||||
before you start installing the some of the above, some of the packages you
|
|
||||||
will need - if you don't already have them, are:
|
|
||||||
|
|
||||||
(*) freetype (1.1, 1.2 or 1.3 ... NOT 2.0)
|
|
||||||
(*) libxml2
|
|
||||||
(*) libpcre
|
|
||||||
(*) fam
|
|
||||||
|
|
||||||
and possibly ...
|
|
||||||
|
|
||||||
(*) libjpeg
|
|
||||||
(*) libpng
|
|
||||||
(*) zlib
|
|
||||||
(*) libtiff
|
|
||||||
(*) libungif
|
|
16
acconfig.h
|
@ -1,16 +0,0 @@
|
||||||
#undef ENLIGHTENMENT_VERSION
|
|
||||||
#undef ENLIGHTENMENT_MAJOR
|
|
||||||
#undef ENLIGHTENMENT_MINOR
|
|
||||||
#undef ENLIGHTENMENT_MICRO
|
|
||||||
#undef ENABLE_NLS
|
|
||||||
#undef HAVE_CATGETS
|
|
||||||
#undef HAVE_GETTEXT
|
|
||||||
#undef HAVE_LC_MESSAGES
|
|
||||||
#undef HAVE_STPCPY
|
|
||||||
#undef HAVE_LIBSM
|
|
||||||
#undef PACKAGE_LOCALE_DIR
|
|
||||||
#undef PACKAGE_DATA_DIR
|
|
||||||
#undef PACKAGE_SOURCE_DIR
|
|
||||||
#undef PACKAGE_BIN_DIR
|
|
||||||
#undef PACKAGE_LIB_DIR
|
|
||||||
#undef USE_FERITE
|
|
136
acinclude.m4
|
@ -1,136 +0,0 @@
|
||||||
dnl @synopsis AC_PATH_GENERIC(LIBRARY [, MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
|
|
||||||
dnl
|
|
||||||
dnl Runs a LIBRARY-config script and defines LIBRARY_CFLAGS and LIBRARY_LIBS
|
|
||||||
dnl
|
|
||||||
dnl The script must support `--cflags' and `--libs' args.
|
|
||||||
dnl If MINIMUM-VERSION is specified, the script must also support the
|
|
||||||
dnl `--version' arg.
|
|
||||||
dnl If the `--with-library-[exec-]prefix' arguments to ./configure are given,
|
|
||||||
dnl it must also support `--prefix' and `--exec-prefix'.
|
|
||||||
dnl (In other words, it must be like gtk-config.)
|
|
||||||
dnl
|
|
||||||
dnl For example:
|
|
||||||
dnl
|
|
||||||
dnl AC_PATH_GENERIC(Foo, 1.0.0)
|
|
||||||
dnl
|
|
||||||
dnl would run `foo-config --version' and check that it is at least 1.0.0
|
|
||||||
dnl
|
|
||||||
dnl If so, the following would then be defined:
|
|
||||||
dnl
|
|
||||||
dnl FOO_CFLAGS to `foo-config --cflags`
|
|
||||||
dnl FOO_LIBS to `foo-config --libs`
|
|
||||||
dnl
|
|
||||||
dnl At present there is no support for additional "MODULES" (see AM_PATH_GTK)
|
|
||||||
dnl (shamelessly stolen from gtk.m4 and then hacked around a fair amount)
|
|
||||||
dnl
|
|
||||||
dnl @author Angus Lees <gusl@cse.unsw.edu.au>
|
|
||||||
dnl @version $Id$
|
|
||||||
|
|
||||||
AC_DEFUN(AC_PATH_GENERIC,
|
|
||||||
[dnl
|
|
||||||
dnl we're going to need uppercase, lowercase and user-friendly versions of the
|
|
||||||
dnl string `LIBRARY'
|
|
||||||
pushdef([UP], translit([$1], [a-z], [A-Z]))dnl
|
|
||||||
pushdef([DOWN], translit([$1], [A-Z], [a-z]))dnl
|
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Get the cflags and libraries from the LIBRARY-config script
|
|
||||||
dnl
|
|
||||||
AC_ARG_WITH(DOWN-prefix,[ --with-]DOWN[-prefix=PFX Prefix where $1 is installed (optional)],
|
|
||||||
DOWN[]_config_prefix="$withval", DOWN[]_config_prefix="")
|
|
||||||
AC_ARG_WITH(DOWN-exec-prefix,[ --with-]DOWN[-exec-prefix=PFX Exec prefix where $1 is installed (optional)],
|
|
||||||
DOWN[]_config_exec_prefix="$withval", DOWN[]_config_exec_prefix="")
|
|
||||||
|
|
||||||
if test x$DOWN[]_config_exec_prefix != x ; then
|
|
||||||
DOWN[]_config_args="$DOWN[]_config_args --exec-prefix=$DOWN[]_config_exec_prefix"
|
|
||||||
if test x${UP[]_CONFIG+set} != xset ; then
|
|
||||||
UP[]_CONFIG=$DOWN[]_config_exec_prefix/bin/DOWN-config
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if test x$DOWN[]_config_prefix != x ; then
|
|
||||||
DOWN[]_config_args="$DOWN[]_config_args --prefix=$DOWN[]_config_prefix"
|
|
||||||
if test x${UP[]_CONFIG+set} != xset ; then
|
|
||||||
UP[]_CONFIG=$DOWN[]_config_prefix/bin/DOWN-config
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_PATH_PROG(UP[]_CONFIG, DOWN-config, no)
|
|
||||||
ifelse([$2], ,
|
|
||||||
AC_MSG_CHECKING(for $1),
|
|
||||||
AC_MSG_CHECKING(for $1 - version >= $2)
|
|
||||||
)
|
|
||||||
no_[]DOWN=""
|
|
||||||
if test "$UP[]_CONFIG" = "no" ; then
|
|
||||||
no_[]DOWN=yes
|
|
||||||
else
|
|
||||||
UP[]_CFLAGS="`$UP[]_CONFIG $DOWN[]_config_args --cflags`"
|
|
||||||
UP[]_LIBS="`$UP[]_CONFIG $DOWN[]_config_args --libs`"
|
|
||||||
ifelse([$2], , ,[
|
|
||||||
DOWN[]_config_major_version=`$UP[]_CONFIG $DOWN[]_config_args \
|
|
||||||
--version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
|
|
||||||
DOWN[]_config_minor_version=`$UP[]_CONFIG $DOWN[]_config_args \
|
|
||||||
--version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
|
|
||||||
DOWN[]_config_micro_version=`$UP[]_CONFIG $DOWN[]_config_args \
|
|
||||||
--version | sed 's/[[^0-9]]*\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
|
|
||||||
DOWN[]_wanted_major_version="regexp($2, [\<\([0-9]*\)], [\1])"
|
|
||||||
DOWN[]_wanted_minor_version="regexp($2, [\<\([0-9]*\)\.\([0-9]*\)], [\2])"
|
|
||||||
DOWN[]_wanted_micro_version="regexp($2, [\<\([0-9]*\).\([0-9]*\).\([0-9]*\)], [\3])"
|
|
||||||
|
|
||||||
# Compare wanted version to what config script returned.
|
|
||||||
# If I knew what library was being run, i'd probably also compile
|
|
||||||
# a test program at this point (which also extracted and tested
|
|
||||||
# the version in some library-specific way)
|
|
||||||
if test "$DOWN[]_config_major_version" -lt \
|
|
||||||
"$DOWN[]_wanted_major_version" \
|
|
||||||
-o \( "$DOWN[]_config_major_version" -eq \
|
|
||||||
"$DOWN[]_wanted_major_version" \
|
|
||||||
-a "$DOWN[]_config_minor_version" -lt \
|
|
||||||
"$DOWN[]_wanted_minor_version" \) \
|
|
||||||
-o \( "$DOWN[]_config_major_version" -eq \
|
|
||||||
"$DOWN[]_wanted_major_version" \
|
|
||||||
-a "$DOWN[]_config_minor_version" -eq \
|
|
||||||
"$DOWN[]_wanted_minor_version" \
|
|
||||||
-a "$DOWN[]_config_micro_version" -lt \
|
|
||||||
"$DOWN[]_wanted_micro_version" \) ; then
|
|
||||||
# older version found
|
|
||||||
no_[]DOWN=yes
|
|
||||||
echo -n "*** An old version of $1 "
|
|
||||||
echo -n "($DOWN[]_config_major_version"
|
|
||||||
echo -n ".$DOWN[]_config_minor_version"
|
|
||||||
echo ".$DOWN[]_config_micro_version) was found."
|
|
||||||
echo -n "*** You need a version of $1 newer than "
|
|
||||||
echo -n "$DOWN[]_wanted_major_version"
|
|
||||||
echo -n ".$DOWN[]_wanted_minor_version"
|
|
||||||
echo ".$DOWN[]_wanted_micro_version."
|
|
||||||
echo "***"
|
|
||||||
echo "*** If you have already installed a sufficiently new version, this error"
|
|
||||||
echo "*** probably means that the wrong copy of the DOWN-config shell script is"
|
|
||||||
echo "*** being found. The easiest way to fix this is to remove the old version"
|
|
||||||
echo "*** of $1, but you can also set the UP[]_CONFIG environment to point to the"
|
|
||||||
echo "*** correct copy of DOWN-config. (In this case, you will have to"
|
|
||||||
echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf"
|
|
||||||
echo "*** so that the correct libraries are found at run-time)"
|
|
||||||
fi
|
|
||||||
])
|
|
||||||
fi
|
|
||||||
if test "x$no_[]DOWN" = x ; then
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
ifelse([$3], , :, [$3])
|
|
||||||
else
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
if test "$UP[]_CONFIG" = "no" ; then
|
|
||||||
echo "*** The DOWN-config script installed by $1 could not be found"
|
|
||||||
echo "*** If $1 was installed in PREFIX, make sure PREFIX/bin is in"
|
|
||||||
echo "*** your path, or set the UP[]_CONFIG environment variable to the"
|
|
||||||
echo "*** full path to DOWN-config."
|
|
||||||
fi
|
|
||||||
UP[]_CFLAGS=""
|
|
||||||
UP[]_LIBS=""
|
|
||||||
ifelse([$4], , :, [$4])
|
|
||||||
fi
|
|
||||||
AC_SUBST(UP[]_CFLAGS)
|
|
||||||
AC_SUBST(UP[]_LIBS)
|
|
||||||
|
|
||||||
popdef([UP])
|
|
||||||
popdef([DOWN])
|
|
||||||
])
|
|
134
autogen.sh
|
@ -1,134 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# Run this to generate all the initial makefiles, etc.
|
|
||||||
|
|
||||||
abort () {
|
|
||||||
echo "$1 not found or command failed. Aborting!"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
|
|
||||||
srcdir=`dirname $0`
|
|
||||||
PKG_NAME="the package."
|
|
||||||
|
|
||||||
DIE=0
|
|
||||||
|
|
||||||
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
|
|
||||||
echo
|
|
||||||
echo "**Error**: You must have \`autoconf' installed to."
|
|
||||||
echo "Download the appropriate package for your distribution,"
|
|
||||||
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
|
||||||
DIE=1
|
|
||||||
}
|
|
||||||
|
|
||||||
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
|
|
||||||
(libtool --version) < /dev/null > /dev/null 2>&1 || {
|
|
||||||
echo
|
|
||||||
echo "**Error**: You must have \`libtool' installed."
|
|
||||||
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
|
|
||||||
echo "(or a newer version if it is available)"
|
|
||||||
DIE=1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
(automake --version) < /dev/null > /dev/null 2>&1 || {
|
|
||||||
echo
|
|
||||||
echo "**Error**: You must have \`automake' installed."
|
|
||||||
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
|
|
||||||
echo "(or a newer version if it is available)"
|
|
||||||
DIE=1
|
|
||||||
NO_AUTOMAKE=yes
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# if no automake, don't bother testing for aclocal
|
|
||||||
test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
|
|
||||||
echo
|
|
||||||
echo "**Error**: Missing \`aclocal'. The version of \`automake'"
|
|
||||||
echo "installed doesn't appear recent enough."
|
|
||||||
echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz"
|
|
||||||
echo "(or a newer version if it is available)"
|
|
||||||
DIE=1
|
|
||||||
}
|
|
||||||
|
|
||||||
if test "$DIE" -eq 1; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -z "$*"; then
|
|
||||||
echo "**Warning**: I am going to run \`configure' with no arguments."
|
|
||||||
echo "If you wish to pass any to it, please specify them on the"
|
|
||||||
echo \`$0\'" command line."
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $CC in
|
|
||||||
xlc )
|
|
||||||
am_opt=--include-deps;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
for coin in `find $srcdir -name configure.in -print`
|
|
||||||
do
|
|
||||||
dr=`dirname $coin`
|
|
||||||
if test -f $dr/NO-AUTO-GEN; then
|
|
||||||
echo skipping $dr -- flagged as no auto-gen
|
|
||||||
else
|
|
||||||
echo processing $dr
|
|
||||||
macrodirs=`sed -n -e 's,AM_ACLOCAL_INCLUDE(\(.*\)),\1,gp' < $coin`
|
|
||||||
( cd $dr
|
|
||||||
aclocalinclude="$ACLOCAL_FLAGS"
|
|
||||||
for k in $macrodirs; do
|
|
||||||
if test -d $k; then
|
|
||||||
aclocalinclude="$aclocalinclude -I $k"
|
|
||||||
##else
|
|
||||||
## echo "**Warning**: No such directory \`$k'. Ignored."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
|
|
||||||
echo "Running libtoolize..."
|
|
||||||
libtoolize --force --copy || abort "libtoolize"
|
|
||||||
fi
|
|
||||||
echo "Running aclocal $aclocalinclude ..."
|
|
||||||
aclocal $aclocalinclude || abort "aclocal"
|
|
||||||
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
|
|
||||||
echo "Running autoheader..."
|
|
||||||
autoheader || abort "autoheader"
|
|
||||||
fi
|
|
||||||
echo "Running automake --gnu $am_opt ..."
|
|
||||||
automake --add-missing --gnu $am_opt || abort "automake"
|
|
||||||
echo "Running autoconf ..."
|
|
||||||
autoconf || abort "autoconf"
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
#conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
|
|
||||||
|
|
||||||
if test x$NOCONFIGURE = x; then
|
|
||||||
echo Running $srcdir/configure $conf_flags "$@" ...
|
|
||||||
$srcdir/configure $conf_flags "$@" \
|
|
||||||
&& echo Now type \`make\' to compile $PKG_NAME || abort "configure"
|
|
||||||
else
|
|
||||||
echo Skipping configure process.
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
cd data/borders/
|
|
||||||
cd borderless
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-0.shaded-0.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-1.shaded-0.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-0.shaded-1.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-1.shaded-0.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-0.shaded-1.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-1.shaded-1.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-1.shaded-1.bits.db
|
|
||||||
cd ..
|
|
||||||
cd default
|
|
||||||
#ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-0.shaded-0.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-1.shaded-0.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-0.shaded-1.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-1.shaded-0.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-0.shaded-1.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-1.sticky-1.shaded-1.bits.db
|
|
||||||
ln -sf selected-0.sticky-0.shaded-0.bits.db selected-0.sticky-1.shaded-1.bits.db
|
|
||||||
cd ../../fonts
|
|
||||||
ln -sf borzoib.ttf menu.ttf
|
|
||||||
ln -sf borzoib.ttf text.ttf
|
|
167
checker.sh
|
@ -1,167 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# E17 checker script. Makes sure the user has the required programs, and
|
|
||||||
# abort if not.
|
|
||||||
# By Lyle (term) Kempler; same license applies to this as does the source
|
|
||||||
# code it accompanies.
|
|
||||||
|
|
||||||
# TODO:
|
|
||||||
# - Make it check the actual version, and abort if too old.
|
|
||||||
# - Make autogen.sh call it.
|
|
||||||
|
|
||||||
# Base programs.
|
|
||||||
M4=`which m4`
|
|
||||||
AUTOMAKE=`which automake`
|
|
||||||
AUTOCONF=`which autoconf`
|
|
||||||
LIBTOOL=`which libtool`
|
|
||||||
GETTEXT=`which gettext`
|
|
||||||
|
|
||||||
# Our libraries.
|
|
||||||
IMLIB2_CONFIG=`which imlib2-config`
|
|
||||||
EDB_CONFIG=`which edb-config`
|
|
||||||
EVAS_CONFIG=`which evas-config`
|
|
||||||
EFSD_CONFIG=`which efsd-config`
|
|
||||||
ECORE_CONFIG=`which ecore-config`
|
|
||||||
EBITS_CONFIG=`which ebits-config`
|
|
||||||
EWL_CONFIG=`which ewl-config`
|
|
||||||
|
|
||||||
if [ -n "$M4" ]
|
|
||||||
then
|
|
||||||
echo -n "m4 : "
|
|
||||||
$M4 --version
|
|
||||||
else
|
|
||||||
echo "No m4 found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$AUTOMAKE" ]
|
|
||||||
then
|
|
||||||
echo -n "automake: "
|
|
||||||
$AUTOMAKE --version | grep automake
|
|
||||||
else
|
|
||||||
echo "No automake found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$AUTOCONF" ]
|
|
||||||
then
|
|
||||||
echo -n "autoconf: "
|
|
||||||
$AUTOCONF --version | grep utoconf
|
|
||||||
else
|
|
||||||
echo "No autoconf found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$LIBTOOL" ]
|
|
||||||
then
|
|
||||||
echo -n "libtool : "
|
|
||||||
$LIBTOOL --version
|
|
||||||
else
|
|
||||||
echo "No libtool found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$GETTEXT" ]
|
|
||||||
then
|
|
||||||
echo -n "gettext : "
|
|
||||||
$GETTEXT --version | grep gettext
|
|
||||||
else
|
|
||||||
echo "No gettext found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
|
||||||
|
|
||||||
if [ -n "$IMLIB2_CONFIG" ]
|
|
||||||
then
|
|
||||||
echo -n "imlib2-config: "
|
|
||||||
$IMLIB2_CONFIG --version
|
|
||||||
else
|
|
||||||
echo "No imlib2-config found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$EDB_CONFIG" ]
|
|
||||||
then
|
|
||||||
echo -n "edb-config : "
|
|
||||||
$EDB_CONFIG --version
|
|
||||||
else
|
|
||||||
echo "No edb-config found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$EVAS_CONFIG" ]
|
|
||||||
then
|
|
||||||
echo -n "evas-config : "
|
|
||||||
$EVAS_CONFIG --version
|
|
||||||
else
|
|
||||||
echo "No evas-config found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$EFSD_CONFIG" ]
|
|
||||||
then
|
|
||||||
echo -n "efsd-config : "
|
|
||||||
$EFSD_CONFIG --version
|
|
||||||
else
|
|
||||||
echo "No efsd-config found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$ECORE_CONFIG" ]
|
|
||||||
then
|
|
||||||
echo -n "ecore-config : "
|
|
||||||
$ECORE_CONFIG --version
|
|
||||||
else
|
|
||||||
echo "No ecore-config found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$EBITS_CONFIG" ]
|
|
||||||
then
|
|
||||||
echo -n "ebits-config : "
|
|
||||||
$EBITS_CONFIG --version
|
|
||||||
else
|
|
||||||
echo "No ebits-config found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# Information on where to get it goes here.
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
#if [ -n "$EWL_CONFIG" ]
|
|
||||||
#then
|
|
||||||
# echo -n "ewl-config : "
|
|
||||||
# $EWL_CONFIG --version
|
|
||||||
#else
|
|
||||||
# echo "No ewl-config found! This is a requirement for building Enlightenment 0.17."
|
|
||||||
# # Information on where to get it goes here.
|
|
||||||
# echo
|
|
||||||
# exit 1
|
|
||||||
#fi
|
|
||||||
|
|
||||||
if [ "$1" != "autogen" ]
|
|
||||||
then
|
|
||||||
echo
|
|
||||||
echo "All requirements have been met! Happy building."
|
|
||||||
echo
|
|
||||||
exit 0
|
|
||||||
fi
|
|
|
@ -1,5 +0,0 @@
|
||||||
e_ipc_client
|
|
||||||
Makefile.in
|
|
||||||
Makefile
|
|
||||||
.libs
|
|
||||||
.deps
|
|
|
@ -1,11 +0,0 @@
|
||||||
## Process this file with automake to produce Makefile.in
|
|
||||||
|
|
||||||
INCLUDES =
|
|
||||||
|
|
||||||
bin_PROGRAMS = e_ipc_client
|
|
||||||
|
|
||||||
e_ipc_client_SOURCES = \
|
|
||||||
client.c
|
|
||||||
|
|
||||||
e_ipc_client_LDADD =
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
return(0);
|
|
||||||
}
|
|
246
configure.ac
|
@ -1,246 +0,0 @@
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
|
||||||
|
|
||||||
AC_INIT
|
|
||||||
AC_CONFIG_SRCDIR([configure.in])
|
|
||||||
|
|
||||||
ENLIGHTENMENT_MAJOR=0
|
|
||||||
ENLIGHTENMENT_MINOR=17
|
|
||||||
ENLIGHTENMENT_MICRO=pre_0
|
|
||||||
ENLIGHTENMENT_VERSION=$ENLIGHTENMENT_MAJOR.$ENLIGHTENMENT_MINOR.$ENLIGHTENMENT_MICRO
|
|
||||||
|
|
||||||
VERSION=$ENLIGHTENMENT_VERSION
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE(enlightenment, $VERSION)
|
|
||||||
AM_CONFIG_HEADER(config.h)
|
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_VERSION, "$ENLIGHTENMENT_VERSION")
|
|
||||||
AC_SUBST(ENLIGHTENMENT_VERSION)
|
|
||||||
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_MAJOR, "$ENLIGHTENMENT_MAJOR")
|
|
||||||
AC_SUBST(ENLIGHTENMENT_MAJOR)
|
|
||||||
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_MINOR, "$ENLIGHTENMENT_MINOR")
|
|
||||||
AC_SUBST(ENLIGHTENMENT_MINOR)
|
|
||||||
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_MICRO, "$ENLIGHTENMENT_MICRO")
|
|
||||||
AC_SUBST(ENLIGHTENMENT_MICRO)
|
|
||||||
|
|
||||||
AC_ISC_POSIX
|
|
||||||
AC_PROG_CC
|
|
||||||
AM_PROG_CC_STDC
|
|
||||||
AC_HEADER_STDC
|
|
||||||
AC_C_CONST
|
|
||||||
AM_ENABLE_SHARED
|
|
||||||
AM_PROG_LIBTOOL
|
|
||||||
|
|
||||||
AM_WITH_DMALLOC
|
|
||||||
|
|
||||||
dnl Add the languages which your application supports here.
|
|
||||||
ALL_LINGUAS=""
|
|
||||||
|
|
||||||
dnl Set PACKAGE_LOCALE_DIR in config.h.
|
|
||||||
if test "x${prefix}" = "xNONE"; then
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Set PACKAGE_DATA_DIR in config.h.
|
|
||||||
if test "x${datadir}" = 'x${prefix}/share'; then
|
|
||||||
if test "x${prefix}" = "xNONE"; then
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}")
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}")
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Set PACKAGE_BIN_DIR in config.h.
|
|
||||||
if test "x${datadir}" = 'x${prefix}/bin'; then
|
|
||||||
if test "x${prefix}" = "xNONE"; then
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin")
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin")
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Set PACKAGE_LIB_DIR in config.h.
|
|
||||||
if test "x${datadir}" = 'x${prefix}/lib'; then
|
|
||||||
if test "x${prefix}" = "xNONE"; then
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib")
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib")
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Set PACKAGE_SOURCE_DIR in config.h.
|
|
||||||
packagesrcdir=`cd $srcdir && pwd`
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")
|
|
||||||
|
|
||||||
dnl Use -Wall if we have gcc.
|
|
||||||
changequote(,)dnl
|
|
||||||
if test "x$GCC" = "xyes"; then
|
|
||||||
case " $CFLAGS " in
|
|
||||||
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
||||||
*) CFLAGS="$CFLAGS -Wall" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
changequote([,])dnl
|
|
||||||
|
|
||||||
dnl Check for Imlib2.
|
|
||||||
AC_ARG_WITH(imlib2,
|
|
||||||
[ --with-imlib2=DIR use imlib2 in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(imlib2,, [
|
|
||||||
AC_SUBST(imlib2_libs)
|
|
||||||
AC_SUBST(imlib2_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find imlib2: Is imlib2-config in path?))
|
|
||||||
imlib2_libs=`imlib2-config --libs`
|
|
||||||
imlib2_cflags=`imlib2-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Evas.
|
|
||||||
AC_ARG_WITH(evas,
|
|
||||||
[ --with-evas=DIR use evas in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(evas,, [
|
|
||||||
AC_SUBST(evas_libs)
|
|
||||||
AC_SUBST(evas_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find evas: Is evas-config in path?))
|
|
||||||
evas_libs=`evas-config --libs`
|
|
||||||
evas_cflags=`evas-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Edb.
|
|
||||||
AC_ARG_WITH(edb,
|
|
||||||
[ --with-edb=DIR use edb in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(edb,, [
|
|
||||||
AC_SUBST(edb_libs)
|
|
||||||
AC_SUBST(edb_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find edb: Is edb-config in path?))
|
|
||||||
edb_libs=`edb-config --libs`
|
|
||||||
edb_cflags=`edb-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Ebits.
|
|
||||||
AC_ARG_WITH(ebits,
|
|
||||||
[ --with-ebits=DIR use ebits in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(ebits,, [
|
|
||||||
AC_SUBST(ebits_libs)
|
|
||||||
AC_SUBST(ebits_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find ebits: Is ebits-config in path?))
|
|
||||||
ebits_libs=`ebits-config --libs`
|
|
||||||
ebits_cflags=`ebits-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Ecore.
|
|
||||||
AC_ARG_WITH(ecore,
|
|
||||||
[ --with-ecore=DIR use ecore in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(ecore,, [
|
|
||||||
AC_SUBST(ecore_libs)
|
|
||||||
AC_SUBST(ecore_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find ecore: Is ecore-config in path?))
|
|
||||||
ecore_libs=`ecore-config --libs`
|
|
||||||
ecore_cflags=`ecore-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Efsd.
|
|
||||||
AC_ARG_WITH(efsd,
|
|
||||||
[ --with-efsd=DIR use efsd in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(efsd,, [
|
|
||||||
AC_SUBST(efsd_libs)
|
|
||||||
AC_SUBST(efsd_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find efsd: Is efsd-config in path?))
|
|
||||||
efsd_libs=`efsd-config --libs`
|
|
||||||
efsd_cflags=`efsd-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Edb.
|
|
||||||
AC_ARG_WITH(ebg,
|
|
||||||
[ --with-ebg=DIR use ebg in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(ebg,, [
|
|
||||||
AC_SUBST(ebg_libs)
|
|
||||||
AC_SUBST(ebg_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find ebg: Is ebg-config in path?))
|
|
||||||
ebg_libs=`ebg-config --libs`
|
|
||||||
ebg_cflags=`ebg-config --cflags`
|
|
||||||
|
|
||||||
CFLAGS=$imlib2_cflags
|
|
||||||
LIBS=$imlib2_libs
|
|
||||||
dnl Check for db loader.
|
|
||||||
AC_TRY_RUN([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <X11/Xlib.h>
|
|
||||||
#include <Imlib2.h>
|
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
|
||||||
Imlib_Image im;
|
|
||||||
int width;
|
|
||||||
|
|
||||||
im = imlib_load_image("$packagesrcdir/data/test/test.db:/test/image");
|
|
||||||
if (!im) exit(-1);
|
|
||||||
imlib_context_set_image(im);
|
|
||||||
width = imlib_image_get_width();
|
|
||||||
if (width != 7) exit(-1);
|
|
||||||
exit(0);
|
|
||||||
return 0;
|
|
||||||
argv=NULL;
|
|
||||||
argc=0;
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[echo "checking for imlib2 db loader... yes"],
|
|
||||||
[
|
|
||||||
echo "checking for imlib2 db loader... no"
|
|
||||||
AC_MSG_ERROR(Cannot detect db loader: Have you installed imlib2_loaders?)
|
|
||||||
],
|
|
||||||
AC_MSG_ERROR(Sorry. Enlightenment cannot be cross-compiled.))
|
|
||||||
|
|
||||||
|
|
||||||
dnl Checking for Perl:
|
|
||||||
AC_PATH_PROG(PERL,perl,0)
|
|
||||||
AC_SUBST(PERL)
|
|
||||||
|
|
||||||
|
|
||||||
dnl Look for jade for sgml translations.
|
|
||||||
AC_ARG_WITH(dbsheets,
|
|
||||||
[ --with-dbsheets=DIR use DIR to specify your DocBook stylesheets installation path.],
|
|
||||||
DB_STYLESHEETS="$withval", DB_STYLESHEETS="/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh")
|
|
||||||
AC_SUBST(DB_STYLESHEETS)
|
|
||||||
AC_PATH_PROG(JADE, jade)
|
|
||||||
AM_CONDITIONAL(HAVE_JADE, test "x$JADE" != "x" && test -d "$DB_STYLESHEETS")
|
|
||||||
AC_CHECK_LIB(c, dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
|
|
||||||
AC_SUBST(LIBDL)
|
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
|
||||||
Makefile
|
|
||||||
src/Makefile
|
|
||||||
lib/Makefile
|
|
||||||
client/Makefile
|
|
||||||
tools/Makefile
|
|
||||||
doc/Makefile
|
|
||||||
doc/kernel-doc
|
|
||||||
doc/html-customizations.dsl
|
|
||||||
data/scripts/build_iconbar_db.sh
|
|
||||||
])
|
|
||||||
AC_CONFIG_COMMANDS([default],[[
|
|
||||||
chmod +x doc/kernel-doc
|
|
||||||
]],[[]])
|
|
||||||
AC_OUTPUT
|
|
||||||
|
|
242
configure.in
|
@ -1,242 +0,0 @@
|
||||||
dnl Process this file with autoconf to produce a configure script.
|
|
||||||
|
|
||||||
AC_INIT
|
|
||||||
|
|
||||||
ENLIGHTENMENT_MAJOR=0
|
|
||||||
ENLIGHTENMENT_MINOR=17
|
|
||||||
ENLIGHTENMENT_MICRO=pre_0
|
|
||||||
ENLIGHTENMENT_VERSION=$ENLIGHTENMENT_MAJOR.$ENLIGHTENMENT_MINOR.$ENLIGHTENMENT_MICRO
|
|
||||||
|
|
||||||
VERSION=$ENLIGHTENMENT_VERSION
|
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE(enlightenment, $VERSION)
|
|
||||||
AM_CONFIG_HEADER(config.h)
|
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_VERSION, "$ENLIGHTENMENT_VERSION")
|
|
||||||
AC_SUBST(ENLIGHTENMENT_VERSION)
|
|
||||||
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_MAJOR, "$ENLIGHTENMENT_MAJOR")
|
|
||||||
AC_SUBST(ENLIGHTENMENT_MAJOR)
|
|
||||||
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_MINOR, "$ENLIGHTENMENT_MINOR")
|
|
||||||
AC_SUBST(ENLIGHTENMENT_MINOR)
|
|
||||||
AC_DEFINE_UNQUOTED(ENLIGHTENMENT_MICRO, "$ENLIGHTENMENT_MICRO")
|
|
||||||
AC_SUBST(ENLIGHTENMENT_MICRO)
|
|
||||||
|
|
||||||
AC_ISC_POSIX
|
|
||||||
AC_PROG_CC
|
|
||||||
AM_PROG_CC_STDC
|
|
||||||
AC_HEADER_STDC
|
|
||||||
AC_C_CONST
|
|
||||||
AM_ENABLE_SHARED
|
|
||||||
AM_PROG_LIBTOOL
|
|
||||||
|
|
||||||
AM_WITH_DMALLOC
|
|
||||||
|
|
||||||
dnl Add the languages which your application supports here.
|
|
||||||
ALL_LINGUAS=""
|
|
||||||
|
|
||||||
dnl Set PACKAGE_LOCALE_DIR in config.h.
|
|
||||||
if test "x${prefix}" = "xNONE"; then
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Set PACKAGE_DATA_DIR in config.h.
|
|
||||||
if test "x${datadir}" = 'x${prefix}/share'; then
|
|
||||||
if test "x${prefix}" = "xNONE"; then
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}")
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}")
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Set PACKAGE_BIN_DIR in config.h.
|
|
||||||
if test "x${datadir}" = 'x${prefix}/bin'; then
|
|
||||||
if test "x${prefix}" = "xNONE"; then
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${ac_default_prefix}/bin")
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${prefix}/bin")
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_BIN_DIR, "${bindir}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Set PACKAGE_LIB_DIR in config.h.
|
|
||||||
if test "x${datadir}" = 'x${prefix}/lib'; then
|
|
||||||
if test "x${prefix}" = "xNONE"; then
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${ac_default_prefix}/lib")
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${prefix}/lib")
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${libdir}")
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Set PACKAGE_SOURCE_DIR in config.h.
|
|
||||||
packagesrcdir=`cd $srcdir && pwd`
|
|
||||||
AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}")
|
|
||||||
|
|
||||||
dnl Use -Wall if we have gcc.
|
|
||||||
changequote(,)dnl
|
|
||||||
if test "x$GCC" = "xyes"; then
|
|
||||||
case " $CFLAGS " in
|
|
||||||
*[\ \ ]-Wall[\ \ ]*) ;;
|
|
||||||
*) CFLAGS="$CFLAGS -Wall" ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
changequote([,])dnl
|
|
||||||
|
|
||||||
dnl Check for Imlib2.
|
|
||||||
AC_ARG_WITH(imlib2,
|
|
||||||
[ --with-imlib2=DIR use imlib2 in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(imlib2,, [
|
|
||||||
AC_SUBST(imlib2_libs)
|
|
||||||
AC_SUBST(imlib2_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find imlib2: Is imlib2-config in path?))
|
|
||||||
imlib2_libs=`imlib2-config --libs`
|
|
||||||
imlib2_cflags=`imlib2-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Evas.
|
|
||||||
AC_ARG_WITH(evas,
|
|
||||||
[ --with-evas=DIR use evas in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(evas,, [
|
|
||||||
AC_SUBST(evas_libs)
|
|
||||||
AC_SUBST(evas_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find evas: Is evas-config in path?))
|
|
||||||
evas_libs=`evas-config --libs`
|
|
||||||
evas_cflags=`evas-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Edb.
|
|
||||||
AC_ARG_WITH(edb,
|
|
||||||
[ --with-edb=DIR use edb in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(edb,, [
|
|
||||||
AC_SUBST(edb_libs)
|
|
||||||
AC_SUBST(edb_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find edb: Is edb-config in path?))
|
|
||||||
edb_libs=`edb-config --libs`
|
|
||||||
edb_cflags=`edb-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Ebits.
|
|
||||||
AC_ARG_WITH(ebits,
|
|
||||||
[ --with-ebits=DIR use ebits in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(ebits,, [
|
|
||||||
AC_SUBST(ebits_libs)
|
|
||||||
AC_SUBST(ebits_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find ebits: Is ebits-config in path?))
|
|
||||||
ebits_libs=`ebits-config --libs`
|
|
||||||
ebits_cflags=`ebits-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Ecore.
|
|
||||||
AC_ARG_WITH(ecore,
|
|
||||||
[ --with-ecore=DIR use ecore in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(ecore,, [
|
|
||||||
AC_SUBST(ecore_libs)
|
|
||||||
AC_SUBST(ecore_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find ecore: Is ecore-config in path?))
|
|
||||||
ecore_libs=`ecore-config --libs`
|
|
||||||
ecore_cflags=`ecore-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Efsd.
|
|
||||||
AC_ARG_WITH(efsd,
|
|
||||||
[ --with-efsd=DIR use efsd in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(efsd,, [
|
|
||||||
AC_SUBST(efsd_libs)
|
|
||||||
AC_SUBST(efsd_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find efsd: Is efsd-config in path?))
|
|
||||||
efsd_libs=`efsd-config --libs`
|
|
||||||
efsd_cflags=`efsd-config --cflags`
|
|
||||||
|
|
||||||
dnl Check for Edb.
|
|
||||||
AC_ARG_WITH(ebg,
|
|
||||||
[ --with-ebg=DIR use ebg in <DIR>],
|
|
||||||
[CFLAGS="$CFLAGS -I$withval/include"
|
|
||||||
LIBS="-L$withval/lib $LIBS"])
|
|
||||||
|
|
||||||
AC_PATH_GENERIC(ebg,, [
|
|
||||||
AC_SUBST(ebg_libs)
|
|
||||||
AC_SUBST(ebg_cflags)],
|
|
||||||
AC_MSG_ERROR(Cannot find ebg: Is ebg-config in path?))
|
|
||||||
ebg_libs=`ebg-config --libs`
|
|
||||||
ebg_cflags=`ebg-config --cflags`
|
|
||||||
|
|
||||||
CFLAGS=$imlib2_cflags
|
|
||||||
LIBS=$imlib2_libs
|
|
||||||
dnl Check for db loader.
|
|
||||||
AC_TRY_RUN([
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <X11/Xlib.h>
|
|
||||||
#include <Imlib2.h>
|
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
|
||||||
Imlib_Image im;
|
|
||||||
int width;
|
|
||||||
|
|
||||||
im = imlib_load_image("$packagesrcdir/data/test/test.db:/test/image");
|
|
||||||
if (!im) exit(-1);
|
|
||||||
imlib_context_set_image(im);
|
|
||||||
width = imlib_image_get_width();
|
|
||||||
if (width != 7) exit(-1);
|
|
||||||
exit(0);
|
|
||||||
return 0;
|
|
||||||
argv=NULL;
|
|
||||||
argc=0;
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[echo "checking for imlib2 db loader... yes"],
|
|
||||||
[
|
|
||||||
echo "checking for imlib2 db loader... no"
|
|
||||||
AC_MSG_ERROR(Cannot detect db loader: Have you installed imlib2_loaders?)
|
|
||||||
],
|
|
||||||
AC_MSG_ERROR(Sorry. Enlightenment cannot be cross-compiled.))
|
|
||||||
|
|
||||||
|
|
||||||
dnl Checking for Perl:
|
|
||||||
AC_PATH_PROG(PERL,perl,0)
|
|
||||||
AC_SUBST(PERL)
|
|
||||||
|
|
||||||
|
|
||||||
dnl Look for jade for sgml translations.
|
|
||||||
AC_ARG_WITH(dbsheets,
|
|
||||||
[ --with-dbsheets=DIR use DIR to specify your DocBook stylesheets installation path.],
|
|
||||||
DB_STYLESHEETS="$withval", DB_STYLESHEETS="/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh")
|
|
||||||
AC_SUBST(DB_STYLESHEETS)
|
|
||||||
AC_PATH_PROG(JADE, jade)
|
|
||||||
AM_CONDITIONAL(HAVE_JADE, test "x$JADE" != "x" && test -d "$DB_STYLESHEETS")
|
|
||||||
AC_CHECK_LIB(c, dlopen, LIBDL="",[AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
|
|
||||||
AC_SUBST(LIBDL)
|
|
||||||
|
|
||||||
AC_OUTPUT([
|
|
||||||
Makefile
|
|
||||||
src/Makefile
|
|
||||||
lib/Makefile
|
|
||||||
client/Makefile
|
|
||||||
tools/Makefile
|
|
||||||
doc/Makefile
|
|
||||||
doc/kernel-doc
|
|
||||||
doc/html-customizations.dsl
|
|
||||||
data/scripts/build_iconbar_db.sh
|
|
||||||
], [
|
|
||||||
chmod +x doc/kernel-doc
|
|
||||||
])
|
|
|
@ -1,12 +0,0 @@
|
||||||
This directory contains the following epplets:
|
|
||||||
- clock.fe
|
|
||||||
- large time-only display
|
|
||||||
- clock2.fe
|
|
||||||
- more graphical clock display with date as well as time
|
|
||||||
|
|
||||||
To use these epplets, simply copy this directory to ~/.e/desktop/default/.e_epplets. This will show clock.fe by default. In order to use clock2.fe, simply rename clock2.fe to clock.fe.
|
|
||||||
|
|
||||||
Thanks to:
|
|
||||||
- Brian Mattern for helping me get started
|
|
||||||
- Thibaud for the clock2 background graphic
|
|
||||||
- The graphic is from his Saona theme (http://www.deviantart.com/deviation.php?id=73252) for HoverDesk
|
|
|
@ -1,123 +0,0 @@
|
||||||
/*-------------------------------------------------------*
|
|
||||||
* Simple clock epplet *
|
|
||||||
* by Brendon Davidson *
|
|
||||||
* Thanks to Brian Mattern for helping me understand *
|
|
||||||
* how epplets work. *
|
|
||||||
*-------------------------------------------------------*/
|
|
||||||
|
|
||||||
uses String, Time;
|
|
||||||
|
|
||||||
/* global vars */
|
|
||||||
global {
|
|
||||||
object epp;
|
|
||||||
object dateObj;
|
|
||||||
string theDay = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
/* function to update time display */
|
|
||||||
function time_update(object data, number val){
|
|
||||||
string date = Time.ctime(Time.time());
|
|
||||||
string month = String.copySection(date,4,7);
|
|
||||||
string day = String.copySection(date,8,10);
|
|
||||||
string year = String.copySection(date,20,24);
|
|
||||||
string time = String.copySection(date,11,20);
|
|
||||||
number hour = String.toLong(String.copySection(time,0,2));
|
|
||||||
string min = String.copySection(time,3,5);
|
|
||||||
string seconds = String.copySection(time,6,8);
|
|
||||||
string timeofday = "AM";
|
|
||||||
|
|
||||||
if(hour>12||hour==12){
|
|
||||||
timeofday = "PM";
|
|
||||||
hour = hour - 12;
|
|
||||||
}
|
|
||||||
if(hour==0) hour = 12;
|
|
||||||
|
|
||||||
|
|
||||||
/* Is it time to update the date? */
|
|
||||||
if(day!=theDay){
|
|
||||||
theDay = day;
|
|
||||||
switch(month){
|
|
||||||
case "Jan":
|
|
||||||
month = "January";
|
|
||||||
break;
|
|
||||||
case "Feb":
|
|
||||||
month = "February";
|
|
||||||
break;
|
|
||||||
case "Mar":
|
|
||||||
month = "March";
|
|
||||||
break;
|
|
||||||
case "Apr":
|
|
||||||
month = "April";
|
|
||||||
break;
|
|
||||||
case "Jun":
|
|
||||||
month = "June";
|
|
||||||
break;
|
|
||||||
case "Jul":
|
|
||||||
month = "July";
|
|
||||||
break;
|
|
||||||
case "Aug":
|
|
||||||
month = "August";
|
|
||||||
break;
|
|
||||||
case "Sep":
|
|
||||||
month = "September";
|
|
||||||
break;
|
|
||||||
case "Oct":
|
|
||||||
month = "October";
|
|
||||||
break;
|
|
||||||
case "Nov":
|
|
||||||
month = "November";
|
|
||||||
break;
|
|
||||||
case "Dec":
|
|
||||||
month = "December";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
dateObj.setText("$month $day, $year");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
data.setText("$hour:$min:$seconds $timeofday");
|
|
||||||
epp.addTimer("clockTimer",0.5,"time_update",0,data);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* main function */
|
|
||||||
|
|
||||||
/* declare vars */
|
|
||||||
object timeObj;
|
|
||||||
object backgroundObj;
|
|
||||||
|
|
||||||
/* create a new epplet */
|
|
||||||
epp = new Epplet();
|
|
||||||
|
|
||||||
/* move the epplet to desired position*/
|
|
||||||
epp.resize(100, 30);
|
|
||||||
|
|
||||||
/* create background image object for clock */
|
|
||||||
backgroundObj = new EvasObject(epp);
|
|
||||||
backgroundObj.addImage(epp.getEppletDir()+"clock.png");
|
|
||||||
backgroundObj.move(epp.getX(),epp.getY());
|
|
||||||
backgroundObj.setLayer(9998);
|
|
||||||
backgroundObj.show();
|
|
||||||
|
|
||||||
/* create text object for clock display */
|
|
||||||
timeObj = new EvasObject(epp);
|
|
||||||
timeObj.addText("borzoib",6,"Hi");
|
|
||||||
timeObj.move(epp.getX()+epp.getW()-40, epp.getY()+4);
|
|
||||||
timeObj.setLayer(9999);
|
|
||||||
timeObj.setColor(0,0,0,140);
|
|
||||||
timeObj.show();
|
|
||||||
|
|
||||||
/* create text object for date display */
|
|
||||||
dateObj = new EvasObject(epp);
|
|
||||||
dateObj.addText("borzoib",6,"Hello");
|
|
||||||
dateObj.move(epp.getX()+epp.getW()-60,epp.getY()+12);
|
|
||||||
dateObj.setLayer(9999);
|
|
||||||
dateObj.setColor(0,0,0,140);
|
|
||||||
dateObj.show();
|
|
||||||
|
|
||||||
/* update clock display */
|
|
||||||
time_update(timeObj,0);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 6.2 KiB |
|
@ -1,122 +0,0 @@
|
||||||
/*-------------------------------------------------------*
|
|
||||||
* Simple clock epplet *
|
|
||||||
* by Brendon Davidson *
|
|
||||||
* Thanks to Brian Mattern for helping me understand *
|
|
||||||
* how epplets work. *
|
|
||||||
*-------------------------------------------------------*/
|
|
||||||
|
|
||||||
uses String, Time;
|
|
||||||
|
|
||||||
/* global vars */
|
|
||||||
global {
|
|
||||||
object epp;
|
|
||||||
object dateObj;
|
|
||||||
string theDay = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
/* function to update time display */
|
|
||||||
function time_update(object data, number val){
|
|
||||||
string date = Time.ctime(Time.time());
|
|
||||||
string month = String.copySection(date,4,7);
|
|
||||||
string day = String.copySection(date,8,10);
|
|
||||||
string year = String.copySection(date,20,24);
|
|
||||||
string time = String.copySection(date,11,20);
|
|
||||||
number hour = String.toLong(String.copySection(time,0,2));
|
|
||||||
string min = String.copySection(time,3,5);
|
|
||||||
string seconds = String.copySection(time,6,8);
|
|
||||||
string timeofday = "AM";
|
|
||||||
|
|
||||||
if(hour>12||hour==12){
|
|
||||||
timeofday = "PM";
|
|
||||||
hour = hour - 12;
|
|
||||||
}
|
|
||||||
if(hour==0) hour = 12;
|
|
||||||
|
|
||||||
|
|
||||||
/* Is it time to update the date? */
|
|
||||||
if(day!=theDay){
|
|
||||||
theDay = day;
|
|
||||||
switch(month){
|
|
||||||
case "Jan":
|
|
||||||
month = "January";
|
|
||||||
break;
|
|
||||||
case "Feb":
|
|
||||||
month = "February";
|
|
||||||
break;
|
|
||||||
case "Mar":
|
|
||||||
month = "March";
|
|
||||||
break;
|
|
||||||
case "Apr":
|
|
||||||
month = "April";
|
|
||||||
break;
|
|
||||||
case "Jun":
|
|
||||||
month = "June";
|
|
||||||
break;
|
|
||||||
case "Jul":
|
|
||||||
month = "July";
|
|
||||||
break;
|
|
||||||
case "Aug":
|
|
||||||
month = "August";
|
|
||||||
break;
|
|
||||||
case "Sep":
|
|
||||||
month = "September";
|
|
||||||
break;
|
|
||||||
case "Oct":
|
|
||||||
month = "October";
|
|
||||||
break;
|
|
||||||
case "Nov":
|
|
||||||
month = "November";
|
|
||||||
break;
|
|
||||||
case "Dec":
|
|
||||||
month = "December";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
dateObj.setText("$month $day, $year");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
data.setText("$hour:$min:$seconds $timeofday");
|
|
||||||
epp.addTimer("clockTimer",0.5,"time_update",0,data);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* main function */
|
|
||||||
|
|
||||||
/* declare vars */
|
|
||||||
object timeObj;
|
|
||||||
object backgroundObj;
|
|
||||||
|
|
||||||
/* create a new epplet */
|
|
||||||
epp = new Epplet();
|
|
||||||
|
|
||||||
epp.resize(100, 30);
|
|
||||||
|
|
||||||
/* create background image object for clock */
|
|
||||||
backgroundObj = new EvasObject(epp);
|
|
||||||
backgroundObj.addImage(epp.getEppletDir()+"clock.png");
|
|
||||||
backgroundObj.move(epp.getX(),epp.getY());
|
|
||||||
backgroundObj.setLayer(9998);
|
|
||||||
backgroundObj.show();
|
|
||||||
|
|
||||||
/* create text object for clock display */
|
|
||||||
timeObj = new EvasObject(epp);
|
|
||||||
timeObj.addText("borzoib",8,"");
|
|
||||||
timeObj.move(epp.getX()+epp.getW()-33, epp.getY()+6);
|
|
||||||
timeObj.setLayer(9999);
|
|
||||||
timeObj.setColor(0,0,0,140);
|
|
||||||
timeObj.show();
|
|
||||||
|
|
||||||
/* create text object for date display */
|
|
||||||
dateObj = new EvasObject(epp);
|
|
||||||
dateObj.addText("borzoib",8,"");
|
|
||||||
dateObj.move(epp.getX()+epp.getW()-60,epp.getY()+35);
|
|
||||||
dateObj.setLayer(9999);
|
|
||||||
dateObj.setColor(0,0,0,140);
|
|
||||||
dateObj.show();
|
|
||||||
|
|
||||||
/* update clock display */
|
|
||||||
time_update(timeObj,0);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,73 +0,0 @@
|
||||||
/*
|
|
||||||
An ebits version of the desktop switcher.
|
|
||||||
Written by James Carscadden and Brian Mattern
|
|
||||||
|
|
||||||
Use bits named Changer_# where # is 0 - 7 for the buttons. The disabled state
|
|
||||||
is used for the current desktop.
|
|
||||||
*/
|
|
||||||
|
|
||||||
uses Console, String;
|
|
||||||
|
|
||||||
/* define observer function */
|
|
||||||
function changerObserver(object data, number desk)
|
|
||||||
{
|
|
||||||
number i, n;
|
|
||||||
/* get the desktop number as an int. n is passed as a float (0.000000, 1.00000000, ...) and i just want (0, 1, ...) */
|
|
||||||
n = String.toLong(String.copySection("" + desk, 0, 1));
|
|
||||||
Console.println("in changerObserver: " + desk + ", " + n);
|
|
||||||
|
|
||||||
for (i = 0; i < 8; i++)
|
|
||||||
data.setState("Changer_" + i, "normal");
|
|
||||||
data.setState("Changer_" + n, "disabled");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* define callback function */
|
|
||||||
function changer_button_cb(object ev, string c, number b, number x, number y, number ox, number oy, number ow, number oh)
|
|
||||||
{
|
|
||||||
number n, i;
|
|
||||||
|
|
||||||
Console.println("in changer_button_cb: " + c);
|
|
||||||
/* the '+ " "' is included to make it work with broken ferite .99.4 String.copySection() func */
|
|
||||||
n = String.toLong(String.copySection(c + " ", 8, 9));
|
|
||||||
e.flip_to_desktop(n);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------------------main func-------------------------- */
|
|
||||||
|
|
||||||
/* declare vars */
|
|
||||||
object epp;
|
|
||||||
object ebits;
|
|
||||||
number i;
|
|
||||||
|
|
||||||
/* create a new epplet, required */
|
|
||||||
epp = new Epplet();
|
|
||||||
|
|
||||||
/* add an ebits object to the epplet */
|
|
||||||
ebits = new Ebits("changer.bits.db", epp);
|
|
||||||
|
|
||||||
/* move the epplet to the top right corner */
|
|
||||||
epp.move(epp.getViewW() - 100, 0);
|
|
||||||
|
|
||||||
/* set the ebits object as the main epplet bits */
|
|
||||||
epp.setBits(ebits);
|
|
||||||
|
|
||||||
/* display the epplet. this resizes / moves the main epplet bits to the geometry of the epplet */
|
|
||||||
epp.display();
|
|
||||||
|
|
||||||
/* set up callbacks for when button is pressed */
|
|
||||||
ebits.setCallback("Changer_0", "changer_button_cb", ebits);
|
|
||||||
ebits.setCallback("Changer_1", "changer_button_cb", ebits);
|
|
||||||
ebits.setCallback("Changer_2", "changer_button_cb", ebits);
|
|
||||||
ebits.setCallback("Changer_3", "changer_button_cb", ebits);
|
|
||||||
ebits.setCallback("Changer_4", "changer_button_cb", ebits);
|
|
||||||
ebits.setCallback("Changer_5", "changer_button_cb", ebits);
|
|
||||||
ebits.setCallback("Changer_6", "changer_button_cb", ebits);
|
|
||||||
ebits.setCallback("Changer_7", "changer_button_cb", ebits);
|
|
||||||
|
|
||||||
/* e starts on desktop 0, so set it disabled */
|
|
||||||
ebits.setState("Changer_0", "disabled");
|
|
||||||
|
|
||||||
/* add observer, when the desktop is switched, the function "deskSwitchObserver is called, and ebits is passed
|
|
||||||
along with it (although it isn't used);*/
|
|
||||||
epp.addDesktopObserver("changerObserver", ebits);
|
|
||||||
|
|
|
@ -1,122 +0,0 @@
|
||||||
/*
|
|
||||||
An simple example epplet that uses evas objects.
|
|
||||||
Shows 8 buttons in the top right corner. Click on one to go to that deskop.
|
|
||||||
Currently it won't notice if you change desktops by other methods, so it
|
|
||||||
won't update.
|
|
||||||
*/
|
|
||||||
|
|
||||||
uses Console, Array;
|
|
||||||
|
|
||||||
global {
|
|
||||||
array desks;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* set up observer functions */
|
|
||||||
function deskSwitchObserver(object data, number desk)
|
|
||||||
{
|
|
||||||
number i;
|
|
||||||
Console.println("in deskSwitchObserver: " + desk);
|
|
||||||
|
|
||||||
for(i = 0; i < Array.size(desks); i++)
|
|
||||||
{
|
|
||||||
if (i != desk)
|
|
||||||
{
|
|
||||||
desks[i].obj.setColor(255,255,255,128);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
desks[desk].obj.setColor(255,255,255,255);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* set up callback function */
|
|
||||||
function downCB(object d, object ev, number b, number x, number y)
|
|
||||||
{
|
|
||||||
d.obj.setColor(255,255,255,255);
|
|
||||||
}
|
|
||||||
|
|
||||||
function upCB(object d, object ev, number b, number x, number y)
|
|
||||||
{
|
|
||||||
number i;
|
|
||||||
|
|
||||||
e.flip_to_desktop(d.num);
|
|
||||||
|
|
||||||
/* dim all buttons that aren't this one */
|
|
||||||
for(i = 0; i < Array.size(desks); i++)
|
|
||||||
{
|
|
||||||
if (i != d.num)
|
|
||||||
{
|
|
||||||
desks[i].obj.setColor(255,255,255,128);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class DesktopButton
|
|
||||||
{
|
|
||||||
object epp, obj;
|
|
||||||
number num;
|
|
||||||
|
|
||||||
function DesktopButton(object e, number n)
|
|
||||||
{
|
|
||||||
self.epp = e;
|
|
||||||
self.num = n;
|
|
||||||
}
|
|
||||||
|
|
||||||
function setup()
|
|
||||||
{
|
|
||||||
|
|
||||||
self.obj = new EvasObject(self.epp);
|
|
||||||
self.obj.addImage(self.epp.getEppletDir() + "desktop.png");
|
|
||||||
|
|
||||||
self.obj.move(self.epp.getX() + (self.num % 4) * (self.obj.getW() + 5),
|
|
||||||
self.epp.getY() + (self.num / 4) * (self.obj.getH() + 5));
|
|
||||||
self.obj.setLayer(10000);
|
|
||||||
self.obj.setColor(255, 255, 255, 128);
|
|
||||||
self.obj.show();
|
|
||||||
|
|
||||||
self.obj.setCallback("CALLBACK_MOUSE_DOWN", "downCB", self);
|
|
||||||
self.obj.setCallback("CALLBACK_MOUSE_UP", "upCB", self);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* main func */
|
|
||||||
|
|
||||||
/* declare vars */
|
|
||||||
object epp;
|
|
||||||
object bg;
|
|
||||||
number i;
|
|
||||||
|
|
||||||
/* create a new epplet, required */
|
|
||||||
epp = new Epplet();
|
|
||||||
|
|
||||||
/* move the epplet to the top right corner */
|
|
||||||
epp.move(epp.getViewW() - 100, 0);
|
|
||||||
epp.resize(200, 45);
|
|
||||||
|
|
||||||
|
|
||||||
/* set up a transparent background to prevent menu popup */
|
|
||||||
bg = new EvasObject(epp);
|
|
||||||
bg.addRectangle();
|
|
||||||
bg.move(epp.getX(), epp.getY());
|
|
||||||
bg.resize(epp.getW(), epp.getH());
|
|
||||||
bg.setLayer(9999);
|
|
||||||
bg.setColor(255, 255, 255, 0);
|
|
||||||
bg.show();
|
|
||||||
|
|
||||||
/* build DesktopButton's */
|
|
||||||
for (i = 0; i < 8; i++)
|
|
||||||
{
|
|
||||||
Console.println("in loop");
|
|
||||||
desks[] = new DesktopButton(epp, i);
|
|
||||||
desks[i].setup();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* add observer, when the desktop is switched, the function "deskSwitchObserver is called, and passed epp along with it (although it isn't used);*/
|
|
||||||
|
|
||||||
epp.addDesktopObserver("deskSwitchObserver", epp);
|
|
||||||
|
|
||||||
/* start out by highlighting the current desktop */
|
|
||||||
desks[e.get_current_desktop()].obj.setColor(255, 255, 255, 255);
|
|
||||||
|
|
|
@ -1,107 +0,0 @@
|
||||||
|
|
||||||
uses String, File, Console;
|
|
||||||
|
|
||||||
global
|
|
||||||
{
|
|
||||||
object epplet;
|
|
||||||
object eppletBackground;
|
|
||||||
object uptimeLabel;
|
|
||||||
object loadLabel;
|
|
||||||
}
|
|
||||||
|
|
||||||
function create_epplet()
|
|
||||||
{
|
|
||||||
epplet = new Epplet();
|
|
||||||
epplet.resize(127, 24);
|
|
||||||
eppletBackground = new EvasObject(epplet);
|
|
||||||
eppletBackground.addImage(epplet.getEppletDir() + "uptime.png");
|
|
||||||
eppletBackground.move(epplet.getX(), epplet.getY());
|
|
||||||
eppletBackground.setLayer(9998);
|
|
||||||
eppletBackground.show();
|
|
||||||
|
|
||||||
uptimeLabel = new EvasObject(epplet);
|
|
||||||
uptimeLabel.addText("borzoib", 6, "");
|
|
||||||
uptimeLabel.move(epplet.getX() + epplet.getW() - 12 - uptimeLabel.getW(), epplet.getY()+4);
|
|
||||||
uptimeLabel.setLayer(9999);
|
|
||||||
uptimeLabel.setColor(0, 0, 0, 140);
|
|
||||||
uptimeLabel.show();
|
|
||||||
|
|
||||||
loadLabel = new EvasObject(epplet);
|
|
||||||
loadLabel.addText("borzoib", 6,"");
|
|
||||||
loadLabel.move(epplet.getX() + epplet.getW() - 12 - loadLabel.getW(), epplet.getY()+12);
|
|
||||||
loadLabel.setLayer(9999);
|
|
||||||
loadLabel.setColor(0, 0, 0, 140);
|
|
||||||
loadLabel.show();
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_uptime(object data, number val)
|
|
||||||
{
|
|
||||||
object file;
|
|
||||||
number uptime_num, udays, uhours, uminutes;
|
|
||||||
string uptime_str;
|
|
||||||
|
|
||||||
file = new File();
|
|
||||||
|
|
||||||
file->open("/proc/uptime", "r", "");
|
|
||||||
|
|
||||||
uptime_str = file->readln(1024);
|
|
||||||
uptime_str =~ s/ .+//;
|
|
||||||
|
|
||||||
uptime_num = String.toLong(uptime_str);
|
|
||||||
|
|
||||||
file->close();
|
|
||||||
|
|
||||||
udays = uptime_num / 86400;
|
|
||||||
uhours = (uptime_num % 86400) / 3600;
|
|
||||||
uminutes = ((uptime_num % 86400) % 3600) / 60;
|
|
||||||
|
|
||||||
uptime_str = "" + udays + "day";
|
|
||||||
|
|
||||||
if (udays != 1)
|
|
||||||
uptime_str += "s";
|
|
||||||
|
|
||||||
uptime_str += " " + uhours + "hour";
|
|
||||||
|
|
||||||
if (uhours != 1)
|
|
||||||
uptime_str += "s";
|
|
||||||
|
|
||||||
uptime_str += " " + uminutes + "min";
|
|
||||||
|
|
||||||
if (uminutes != 1)
|
|
||||||
uptime_str += "s";
|
|
||||||
|
|
||||||
/* Console.println(uptime_str);*/
|
|
||||||
uptimeLabel.setText(uptime_str);
|
|
||||||
uptimeLabel.move(epplet.getX() + epplet.getW() - 12 - uptimeLabel.getW(), epplet.getY()+4);
|
|
||||||
|
|
||||||
epplet.addTimer("update_uptimeTimer",0.5,"update_uptime",0,data);
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_sysload(object data, number val)
|
|
||||||
{
|
|
||||||
object file;
|
|
||||||
number uptime_num, load_1, load_5, load_15;
|
|
||||||
string load_avg, tmp;
|
|
||||||
|
|
||||||
file = new File();
|
|
||||||
|
|
||||||
file->open("/proc/loadavg", "r", "");
|
|
||||||
|
|
||||||
load_avg = file->readln(1024);
|
|
||||||
|
|
||||||
load_avg = String.copySection(load_avg, 0, 14);
|
|
||||||
|
|
||||||
load_avg =~ s/^([^ ]*) ([^ ]*)/\1, \2,/;
|
|
||||||
|
|
||||||
load_avg = "Load: " + load_avg;
|
|
||||||
|
|
||||||
loadLabel.setText(load_avg);
|
|
||||||
|
|
||||||
loadLabel.move(epplet.getX() + epplet.getW() - 12 - loadLabel.getW(), epplet.getY()+12);
|
|
||||||
epplet.addTimer("update_sysloadTimer",0.5,"update_sysload",0,data);
|
|
||||||
}
|
|
||||||
|
|
||||||
create_epplet();
|
|
||||||
|
|
||||||
update_uptime(epplet, 0);
|
|
||||||
update_sysload(epplet, 0);
|
|
Before Width: | Height: | Size: 175 KiB |
Before Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 156 B |
Before Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 159 B |
Before Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 252 B |
BIN
data/orig/b1.png
Before Width: | Height: | Size: 1.3 KiB |