Commit Graph

240 Commits

Author SHA1 Message Date
Carsten Haitzler 3ae0b81aeb ooff by one
SVN revision: 1783
1999-12-29 11:08:09 +00:00
Christian Kreibich e7ef9e0879 Whoopsy.
SVN revision: 1777
1999-12-27 20:05:53 +00:00
Christian Kreibich d4024f2e62 More E-Mountbox stuff. Config dialog now changes dynamically, depending
on whether you have patterns for mathching mountpoint types or not.
Deleting of mountpoint types should work. Still needs more debugging...


SVN revision: 1776
1999-12-27 19:57:37 +00:00
Michael Jennings 4f0e6bbcde Dammit.
SVN revision: 1739
1999-12-22 10:52:54 +00:00
Christian Kreibich f99cb30866 More work on the Mountbox. Changing backgrounds and default icons should
work on runtime now, modifying and adding mountpoint types too. Deleting
still needs to be done. Oh, and untested, btw.

Damn. I'm getting sick.


SVN revision: 1696
1999-12-20 15:44:21 +00:00
Michael Jennings 69f99ab980 Thu Dec 16 19:56:24 PST 1999
(KainX)

API changes here, all in order to make E-Disk and E-MemWatch be able to toggle
between the old arrangement and the new.  So basically, you can now move
gadgets to new locations.


SVN revision: 1647
1999-12-16 21:17:27 +00:00
Michael Jennings 0bb577c446 Wed Dec 15 18:40:51 PST 1999
(KainX)

Dammit.  My Linux version checking was broken in net.c, so users of 2.1 and
2.2 kernels weren't getting outgoing packet counts.  Fixed.


SVN revision: 1634
1999-12-15 20:16:43 +00:00
Richard Barnes 7b7b47d6fa Still cleaning up E-PlayCD docs...
SVN revision: 1625
1999-12-14 20:03:29 +00:00
Richard Barnes 8b98162e80 Make E-PlayCD Help a little more helpful and a little less thuggish...
SVN revision: 1624
1999-12-14 19:57:28 +00:00
Michael Jennings d35dadf73d You keep forgetting this...
SVN revision: 1622
1999-12-14 18:01:58 +00:00
Richard Barnes 743521d44b Forgot the icon. Small adjustment to MAIN file...
SVN revision: 1621
1999-12-14 17:54:01 +00:00
Michael Jennings b46268cef9 Tue Dec 14 15:21:52 PST 1999
(KainX)

StriderZ and I added E-PlayCD as a conditional build.


SVN revision: 1620
1999-12-14 17:23:44 +00:00
Richard Barnes 84f8b53dab Didn't mean to commit that before...
SVN revision: 1619
1999-12-14 16:50:33 +00:00
Richard Barnes 121d23b3de Dammit. That wasn't sposed to happen...
Adding E-PlayCD to repository...


SVN revision: 1618
1999-12-14 16:49:00 +00:00
Michael Jennings f53247828f Mon Dec 13 16:51:48 PST 1999
(KainX)

Added labels for E-MemWatch and E-Disk.


SVN revision: 1614
1999-12-13 19:00:38 +00:00
Christian Kreibich 91bac7739a Added querying for multiple configs. If you have a group of configuration
settings that you want to refer to under the same key (e.g. the apps that
a launcher starts up etc), use

void Epplet_modify_multi_config(char *key, char **values, int num);

And if you want to query for a group of settings, use this:

char **Epplet_query_multi_config(char *key, int *num);

Note that you have to free() the returned array here. The key is internally
encoded into __key__1 for the first string, __key__2 for the second etc.

I put some testing code for this into ConfigTestEpplet.c The epplet will
remember all the command line parameters you give on startup and dump
them.

Also extended E-Mountbox so that the users can now define the patterns
in the device or mountpoint and corresponding icons themselves. Currently
still via the config file, but the dialog is there. Not functional yet,
though.


SVN revision: 1612
1999-12-13 17:38:52 +00:00
Michael Jennings 1e0c8b155d Mon Dec 13 09:54:54 PST 1999
(KainX)

This should fix the seg fault people have been seeing.  I also removed an
Esnprintf() and put the sprintf() back; that was a wrong replacement.


SVN revision: 1604
1999-12-13 12:05:19 +00:00
Tom Gilbert 66096bea2d Sun Dec 12 16:33:12 GMT 1999
(gilbertt)

E-Time wasn't saving its justification setting. Fixed.


SVN revision: 1595
1999-12-12 10:52:36 +00:00
Tom Gilbert 3b2dad59a8 I missed this.
SVN revision: 1592
1999-12-11 17:22:13 +00:00
Tom Gilbert 5efc360e31 Sat Dec 11 17:47:32 GMT 1999
(gilbertt)

Don't try to open "/dev/null" as an image either.

Prevents those:

IMLIB ERROR: Cannot load image: /dev/null
All fallbacks failed.

messages. I have just used a NULL parameter instead, which I believe is
correct.


SVN revision: 1591
1999-12-11 12:18:21 +00:00
Tom Gilbert d0198b2cda Sat Dec 11 13:27:54 GMT 1999
(gilbertt)

Urm. I don't know if this was intended, but E-Slides never actually
Epplet_gadget_show()'s its image... Don't know when this happened...


SVN revision: 1590
1999-12-11 07:57:46 +00:00
Tom Gilbert 415146eafa Sat Dec 11 13:00:12 GMT 1999
(gilbertt)

Commands to view urls in E-UrlWatch are now of the format:
command %s
Where %s is substituted with the url.
Eg. The default is now:
gnome-moz-remote --newwin "%s" &
But things like
netscape -remote openURL(%s)
will now work.

That's a really bad habit of mine :( Thanks to Matthew Crites
<mcrites@primenet.com> for pointing it out.


SVN revision: 1589
1999-12-11 07:36:24 +00:00
Richard Barnes 6974951172 E-Exec was adding blanks to the history-list...
SVN revision: 1583
1999-12-10 15:53:04 +00:00
Michael Jennings 8978e83fb2 Thu Dec 9 19:11:46 PST 1999
(KainX)

E-Magic.  The 8-ball kind.  Customizeable answers and a cool GIMP-rendered
original graphic.


SVN revision: 1567
1999-12-09 21:55:24 +00:00
Tom Gilbert d2f6743a81 Fixed the fixes I made last night. As they didn't actually *fix* anything.
Now the fixes are fixed, and the original problems are fixed, so we are
pretty much fixed as far as I am concerned.


SVN revision: 1566
1999-12-09 18:49:59 +00:00
Christian Kreibich da3b9ce0d6 Damn. Forgot the Makefile.
SVN revision: 1563
1999-12-09 14:19:58 +00:00
Christian Kreibich b9fad5374f Thu Dec 9 14:29:50 EST 1999
(Christian)

The Mountbox reacts to left and right cursor keys now. Also added a Jazz drive
image for piercer <piercer13@home.com>. Config dialog coming soon.


SVN revision: 1562
1999-12-09 14:19:08 +00:00
Tom Gilbert 8a3451c724 Same again here.
SVN revision: 1557
1999-12-08 16:02:47 +00:00
Tom Gilbert eb576d77cb Fixed that thing StriderZ mentioned with the turning off cloaking not
turning off the cloak if the thing is cloaked.

bah.


SVN revision: 1556
1999-12-08 15:57:20 +00:00
Michael Jennings 2e6b8bcbd6 Tue Dec 7 20:02:09 PST 1999
(KainX)

Config file support and a new config dialog for E-Time.  You can set the
strings passed to strftime() for each line, and you can also set the text
justification (right or left).


SVN revision: 1546
1999-12-07 23:03:56 +00:00
Michael Jennings c53dd6e7bf Tue Dec 7 18:02:22 PST 1999
(KainX)

Fixed a seg fault in E-Mountbox if the images in the config file aren't found.
It first falls back on the compiled-in defaults, and if that doesn't work
either, it exits with an error.


SVN revision: 1545
1999-12-07 21:04:58 +00:00
Michael Jennings 276863160e Tue Dec 7 17:13:06 PST 1999
(KainX)

New dialog for E-NetGraph.  This is the only network epplet I use, so I don't
have any plans to add similar interfaces to the other net epplets, but I
recommend that *someone* does so.

Also, I modified E-Slides and E-NetGraph so that if the config file or the
default settings don't provide a valid image directory (for E-Slides) or a
valid network interface (E-NetGraph), rather than immediately exiting, you
will be presented with the config dialog.  Very handy.


SVN revision: 1544
1999-12-07 20:18:09 +00:00
Michael Jennings 35dcbdf93e Mon Dec 6 23:07:32 PST 1999
(KainX)

And one for E-Xss.


SVN revision: 1530
1999-12-07 02:17:08 +00:00
Michael Jennings 7ee92cdd38 Mon Dec 6 21:48:52 PST 1999
(KainX)

Dialog for E-Biff too.


SVN revision: 1528
1999-12-07 00:59:24 +00:00
Michael Jennings 9cbe26bb39 Mon Dec 6 20:18:45 PST 1999
(KainX)

E-Slides now has a full-featured working config dialog.  Damn good work, Tom.


SVN revision: 1523
1999-12-06 23:29:54 +00:00
Michael Jennings 11e876b0a0 Duh =P
SVN revision: 1516
1999-12-06 17:49:31 +00:00
Michael Jennings be1583b088 Mon Dec 6 14:31:34 PST 1999
(KainX)

Applied Tom's patch to E-Slides to support maintaining the aspect ratio when
displaying images in the epplet window.  Also cleaned up the E-MoonClock code
and set the buffer size to 1024 so that everyone will hush. =)


SVN revision: 1515
1999-12-06 17:45:23 +00:00
Michael Jennings d08d658e7f Mon Dec 6 12:53:49 PST 1999
(KainX)

Patches to E-MoonClock from Valdis Kletnieks <valdis.kletnieks@vt.edu>.


SVN revision: 1503
1999-12-06 16:08:41 +00:00
Tom Gilbert a62adeccd3 Just changed the wording in the dialog a smidge.
SVN revision: 1501
1999-12-05 16:42:33 +00:00
Tom Gilbert 6cf1d4f692 Sun Dec 05 19:02:45 GMT 1999
(gilbertt)

Added config dialog to E-Urlwatch, it is much more useable now :)


SVN revision: 1500
1999-12-05 14:28:59 +00:00
Tom Gilbert e6f7c2c4a0 Sat Dec 04 16:59:29 GMT 1999
(gilbertt)

Added config dialog to E-ScreenShoot.


SVN revision: 1496
1999-12-04 12:32:17 +00:00
Tom Gilbert 4c98b7a9dc Sat Dec 04 12:38:14 GMT 1999
(gilbertt)

Okay. E-ScreenSave now has a working config window which actually changes
the things config! Its really basic, 'cos the epplet is really basic, but it
works. Press the configure button to see it :)

It has working Ok, Apply and Cancel buttons, try them and see. There is
always a dilemna over how stuff like this should work, but in my epplets at
least, cancel undoes everything you changed since opening the window, even
stuff you "apply"ed. See it for yourself, it was really easy to do ;)

Hey StriderZ, there's a textbox on there too :) I'll be talking to you later
about that =P


SVN revision: 1495
1999-12-04 08:16:16 +00:00
Tom Gilbert eb5b17c67f Sat Dec 04 01:05:38 GMT 1999
(gilbertt)

So, say hello to Epplet_create_window_config.

It rules ;)

Here's the definition:

Window Epplet_create_window_config(int w,int h,char *title,
         void (*ok_func) (void *data),void *ok_data,
         void (*apply_func) (void *data),void *apply_data,
         void (*cancel_func) (void *data),void *cancel_data);

You can picture what it does, and check it out in E-ScreenSave. (Press the
"Lock" button).

The cool thing is that if you supply NULL for any of the callbacks, that
button won't be added to the dialog. So, for an Ok, Cancel dialog, just
supply NULL for apply_func.

I have added explanation to the epplet.h file, and would like people to bang
at this now? I will set my epplets up to use the new functions fully over
the weekend. This will help me find any problems, as I haven't tested adding
every type of gadget to config windows yet, there may still be redraw issues
I missed.

Its pretty nice now though, and I have checked for memory leaks and bad
handling, please point out anything dubious you see. The api will become
more rich over the next few days, then it should stabilise.

Any feature suggestions, send 'em now :)


SVN revision: 1493
1999-12-03 20:56:49 +00:00
Michael Jennings 180b8b08ea Added stuff to the focus in/out handlers. I skipped Tom's in case he's
testing shit. :-)


SVN revision: 1492
1999-12-03 19:52:28 +00:00
Tom Gilbert 48ce42038e Fri Dec 03 23:47:45 GMT 1999
(gilbertt)

Okay. Lots has changed. It was pretty inconsistant to have loads of
functions returning or requiring a "Window win" paramater, and mine dealing
with "Epplet_window" parameters. I had to lose one, so I lost the one which
caused no breakage. Mine :)

I still use Epplet_window internally to encapsulate data on a per-window
basis. However, all public functions deal with "Window win" again. Now
things are consistant. The Epplet_window type is now private and hidden.

To do this, I have implemented a little lookup function to relate
Epplet_windows to Windows, which should be more than adequate for our needs.

You can now declare a delete event handler for your whole epplet, although I
may change to per-window delete event handlers if people request it.

If you return 1 from the delete event handler, or don't supply one, or
supply NULL, the window will be destroyed for you, if you return 0, the
delete event will be ignored. Use this to do things like saying "hrm, those
two settings cannot coexist" or "that file does not exist" etc.

I'm nearly finished with the window functions now, and will next add
convenience wrappers such as Epplet_create_window_config(...) to add ok,
apply and save buttons and setup callbacks for you, and some other stuff
too.

I'd appreciate it if people would poke around and see what they think, I'm
new at this Xlib stuf...


SVN revision: 1490
1999-12-03 19:34:55 +00:00
Tom Gilbert 34f7e90373 Fri Dec 03 20:22:56 GMT 1999
(gilbertt)

Removed the int x, and int y properties for Epplet_create_window, as they
were pretty pointless, and I hate it when windows decide where they should
go ;)


SVN revision: 1487
1999-12-03 16:05:33 +00:00
Tom Gilbert aad5f10990 Fri Dec 03 20:11:23 GMT 1999
(gilbertt)

Right. You can now specify a "vertical" property for your new window. Works
the same as the vertical parameter in Epplet_init. Uses the same
imageclasses too.

I had a big headache debugging this, it just didn't seem to work, I knew
BrushedMetal (the theme I use) had a different (green) vertical pixmap, but
the windows always came up grey. Just when I was about to go mental, I found
this in epplet.cfg:

__ICLASS __BGN
  __NAME EPPLET_BACKGROUND_HORIZONTAL
  __NORMAL "epplets/images/bg.png"
  __EDGE_SCALING   2 2 2 2
__END

__ICLASS __BGN
  __NAME EPPLET_BACKGROUND_VERTICAL
  __NORMAL "epplets/images/bg.png"
  __EDGE_SCALING   2 2 2 2
__END

Gah. No wonder the images weren't changing!

Is there a reason for this? If not, could it be changed to:

__ICLASS __BGN
  __NAME EPPLET_BACKGROUND_HORIZONTAL
  __NORMAL "epplets/images/bg.png"
  __EDGE_SCALING   2 2 2 2
__END

__ICLASS __BGN
  __NAME EPPLET_BACKGROUND_VERTICAL
  __NORMAL "epplets/images/bg_v.png"
  __EDGE_SCALING   2 2 2 2
__END

Please?

Anyway, the vertical stuff works now, and probably did an hour ago, before I
went off chasing nonexistant bugs :)

I also tidied up some other stuff, and killed another global :)

See E-ScreenSave in cvs for an example, press the "lock" button to see it in
action :)


SVN revision: 1486
1999-12-03 15:59:17 +00:00
Tom Gilbert 137ade0aa3 Fri Dec 03 18:34:47 GMT 1999
(gilbertt)

Hrm. Bye bye hardcoding, hello malloc()ed context stack. Improved the test
app further.


SVN revision: 1484
1999-12-03 14:17:56 +00:00
Tom Gilbert 768eebf738 Fri Dec 03 17:20:15 GMT 1999
(gilbertt)

More config window stuff. Fixed a memleak, and now destroying an
Epplet_window also destroys any child gadgets attached to the window. I
think this works better, let me know otherwise.

I also cleaned up a couple of things, fixed adding buttons to new windows,
and improved the test epplet to be a better demo (E-ScreenSave right now).

I removed the Epplet_draw_window* functions, 'cos I don't need them :) What
I actually needed to do was fix Epplet_draw_image - so I have :)

Lots more to do tonight :)


SVN revision: 1483
1999-12-03 13:07:03 +00:00
Tom Gilbert ded180a361 Thu Dec 02 23:07:45 GMT 1999
(gilbertt)

Ok. More config window stuff.

Fun fun. I had to create a new type, Epplet_window to hold some window info,
and a stack to push and pop contexts for adding gadgets to different new
windows. This stuff works real well, and I am chuffed with it :)

The extra windows now redraw themselves on exposes, and new gadgets can be
added to them successfully. W00p.

I had to implement some new stuff, so please check nothing is broke (I am
not finished, but I don't want to commit code that breaks stuff).

Here are some details on the new stuff :)

---------------
PUBLIC STUFF

typedef struct epplet_window
{
    Window win;
    int w;
    int h;
    Pixmap bg_pmap;
    Pixmap bg_mask;
    Pixmap bg_bg;
}EppWindow;
typedef EppWindow *Epplet_window;

Epplet_window Epplet_create_window(int w,int h,int x,int y,char *title);
void Epplet_window_show(Epplet_window win);
void Epplet_window_hide(Epplet_window win);
void Epplet_window_destroy(Epplet_window win);
void Epplet_window_push_context(Epplet_window newwin);
Epplet_window Epplet_window_pop_context(void);
---------------
PRIVATE STUFF

static Epplet_window context_win;       /* Current context win */
static int          window_stack_pos;   /* For context changes */
static Epplet_window window_stack[20];  /* For context changes */
static Epplet_window mainwin;           /* Always the main epplet window */

static int          window_num = 0;     /* For window list */
static Epplet_window *windows = NULL;   /* List of windows to loop though */

/* For Keeping a list of windows owned by the epplet, to loop through and
 * do stuff with. */
static void         Epplet_register_window(Epplet_window win);
static void         Epplet_unregister_window(Epplet_window win);

/* Redraw all epplet windows (excluding the main epplet window) */
static void         Epplet_draw_windows(void);
/* Redraw window win */
static void         Epplet_draw_window(Epplet_window win);

/* Refresh window backgrounds on theme change */
static void Epplet_refresh_backgrounds(void);

-------------
I also added an item to GadGeneral so that I can find what window a gadget
was created on:

typedef struct gad_general
{
   GadType             type;
   char                visible;
   Epplet_window       parent;
}
GadGeneral;

-------------

Not to mention the reworking of code which draws or handles windows.

I have more tinkering to do in the event handling, to catch delete_events,
and to filter out mouseovers etc for separate windows. Tomorrow :)


SVN revision: 1478
1999-12-02 19:08:48 +00:00