add about stuff for the epplets

SVN revision: 823
This commit is contained in:
Carsten Haitzler 1999-10-13 22:16:48 +00:00
parent 9552ddec4a
commit 9288bb6368
6 changed files with 41 additions and 2 deletions

View File

@ -0,0 +1,13 @@
<page columns=1 padding=16 name=front background=bg.png linkcolor=#88dddd>
<font face=aircut3/32 color=#ffffff>
<p align=50%>
E-Clock
<font face=aircut3/18 color=#88eeff>
<p align=50%>
Small Analogue Clock
<font face=aircut3/12 color=#ffffff>
<p align=50%>
By The Rasterman - 1999
<p>
This Epplet does just one thing. It displays the current time on an analogue
clock face with seconds on the red hand. Enjoy.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

View File

@ -1,5 +1,5 @@
#include "epplet.h"
Epplet_gadget b_close;
Epplet_gadget b_close, b_help;
Window win;
double minutes = 20, hours = 12, seconds = 0;
@ -9,6 +9,7 @@ static void cb_in(void *data, Window w);
static void cb_out(void *data, Window w);
static void cb_expose(void *data, Window win, int x, int y, int w, int h);
static void draw_arms(void);
static void cb_help(void *data);
static void
cb_timer(void *data)
@ -47,12 +48,14 @@ static void
cb_in(void *data, Window w)
{
Epplet_gadget_show(b_close);
Epplet_gadget_show(b_help);
}
static void
cb_out(void *data, Window w)
{
Epplet_gadget_hide(b_close);
Epplet_gadget_hide(b_help);
}
static void
@ -61,6 +64,12 @@ cb_expose(void *data, Window win, int x, int y, int w, int h)
draw_arms();
}
static void
cb_help(void *data)
{
Epplet_show_about("E-Clock");
}
static void
draw_arms(void)
{
@ -97,6 +106,9 @@ main(int argc, char **argv)
b_close = Epplet_create_button(NULL, NULL,
2, 2, 0, 0, "CLOSE", 0, NULL,
cb_close, NULL);
b_help = Epplet_create_button(NULL, NULL,
34, 2, 0, 0, "HELP", win, NULL,
cb_help, NULL);
Epplet_gadget_show(Epplet_create_image(2, 2, 44, 44,
EROOT"/epplet_icons/E-Clock-Image.png"));
Epplet_register_focus_in_handler(cb_in, NULL);

View File

@ -2,5 +2,18 @@
<font face=aircut3/32 color=#ffffff>
<p align=50%>
E-Cpu
<font face=aircut3/18 color=#88eeff>
<p align=50%>
The Flaming Cpu monitor.
<font face=aircut3/12 color=#ffffff>
<p align=50%>
By The Rasterman - 1999
<p>
This Epplet displays your CPU usage as a flame. The more CPU activity, the
brighter the flame. when your focus is ont he epplet it will display close,
help and configure butotns - click the configure button (the tool) to bring
up a button that will select one of several color schemes for the flame.
<p>
If you have multpile CPU's the flame will flare in sections at the bottom
depending on which CPU is active - so if you have a dual CPU machine the left
half is for the first CPU, the right is for the 2nd and so on.

View File

@ -27,7 +27,8 @@ EppletTest_epplet_LDFLAGS = -rpath $(libdir):$(pkglibdir)
INCLUDES = -DEBIN=\"$(EBIN)\" -DEROOT=\"$(EROOT)\" -I. -I$(top_srcdir)/api -I$(top_srcdir) -I.. -I$(includedir) -I$(prefix)/include $(X_CFLAGS)
LDADD = $(top_builddir)/api/libepplet.la -L$(libdir) -L$(prefix)/lib $(LIBS) $(X_LIBS)
ABOUT_DOCS = E-Cpu.ABOUT/MAIN E-Cpu.ABOUT/bg.png E-Cpu.ABOUT/aircut3.ttf
ABOUT_DOCS = E-Cpu.ABOUT/MAIN E-Cpu.ABOUT/bg.png E-Cpu.ABOUT/aircut3.ttf \
E-Clock.ABOUT/MAIN E-Clock.ABOUT/bg.png E-Clock.ABOUT/aircut3.ttf
ICONS = E-Load.icon E-Clock.icon E-Net.icon E-Cpu.icon
DATA =E-Clock-Image.png