Commit Graph

17 Commits

Author SHA1 Message Date
Christian Kreibich 19eec1c40e Epplet_run_command() now returns the exit code of
the command.


SVN revision: 1177
1999-11-04 15:43:04 +00:00
Michael Jennings 55639cbe7d Thu Nov 4 16:00:26 PST 1999
(KainX)

E-Slides, a slideshow epplet.  This is just the initial version; more features
coming soon.  :-)

Also some API additions/bugfixes.


SVN revision: 1176
1999-11-04 14:53:40 +00:00
Carsten Haitzler d41a4c2b94 misjng prototype :)
SVN revision: 1044
1999-10-30 10:04:44 +00:00
Carsten Haitzler 8c3bb5530a add patches for std buttons for popups.. and fix epplets...
SVN revision: 1040
1999-10-28 23:30:09 +00:00
Michael Jennings 607ee975fe Tue Oct 26 16:06:43 PDT 1999
(KainX)

Okay, don't kill me.  I had to change the API again because it was broken.
Epplet_load_config() now takes no parameters.  I also renamed some functions,
which the following command should help you do:

perl -p -i.bak -e \
	's/config_data_with_def/config_def/g; s/_config_data/_config/g;' \
	<files>

That all goes on a single line, BTW.  And replace <files> with the names of
your .c files.  You must now specify any defaults by calling
Epplet_query_config_def() instead and passing the default to that function.

I also added the ability to right-justify label text by specifying a negative
x coordinate.  See E-Time for a sample.


SVN revision: 989
1999-10-26 15:48:35 +00:00
Michael Jennings d01fc8f7dc Sun Oct 24 13:05:15 PDT 1999
(KainX)

Added Epplet_query_config_data_with_def().  See the header file for syntax.
For some reason, the compiler didn't like it when I spelled out "default."


SVN revision: 964
1999-10-24 13:10:22 +00:00
Mandrake 87606b4ccd Sat Oct 23 21:00:30 PDT 1999
(Mandrake)

Second patch from horms about popup entry removal


SVN revision: 961
1999-10-23 21:07:31 +00:00
Mandrake e75aa717fe Sat Oct 23 10:03:02 PDT 1999
(Mandrake)

Added patch from horms (horms@valinux.com) to allow you to remove popup entries


SVN revision: 958
1999-10-23 10:15:45 +00:00
Michael Jennings 0a4e2ce260 Fri Oct 22 22:48:20 PDT 1999
(KainX)

Multiple instance and config file support for E-Cpu, E-Net, and E-Biff. :-)


SVN revision: 954
1999-10-22 23:12:12 +00:00
Michael Jennings 9898d36b95 Fri Oct 22 21:43:33 PDT 1999
(KainX)

Alright, I've got the config stuff working as planned.  Epplet_Init() has the
same parameters as it used to.  If you use config files, make sure to call
Epplet_load_config() AFTER calling Epplet_Init() but BEFORE attempting to
access config data.

Also note the function name changes:  Epplet_save_config(),
Epplet_query_config_data(), and Epplet_modify_config_data().


SVN revision: 951
1999-10-22 22:09:18 +00:00
Christian Kreibich 5231296117 Ok, the config file management should work now. Lock files are used
for instance accounting, every epplet has its own directory in
~/.enlightenment/epplet_config/<epplet-name>, transparent config file
handling is provided. Users only need to query for settings and change
settings. Config settings are saved automatically on exit, which
means that users MUST call Epplet_cleanup() before exiting. Every
epplet instance has its own config file. Also added a mechanism for
defining default settings.

Updated all epplets accordingly.

Look at ConfigTestEpplet.c for the details. It shows what instance it
is running as and keeps a record on how many times that instance
has been run in the config files.


SVN revision: 949
1999-10-22 16:43:22 +00:00
Carsten Haitzler ab93e42a20 add get data for timers :)
SVN revision: 919
1999-10-20 22:23:29 +00:00
Christian Kreibich e5d23bbf3c The beginnings of a config file manager. Mostly works,
but I haven't tested it enough yet.

The idea is to run
Epplet_load_config_file("~/.whaterver");
assuming that the config file looks e.g. this:

a_number 	123
some_word 	hello
my_string 	hello world

and then query for the keys in the first column using

char * s;

s = Epplet_query_config_file("my_string");
if (s)
  {
    /* s is now "hello world". */
  }


Hope that's a good idea.

Cheers,
-- Christian.


SVN revision: 838
1999-10-18 15:50:58 +00:00
Carsten Haitzler 0a414ad2c2 add 2 calls :)
SVN revision: 836
1999-10-18 15:04:54 +00:00
Carsten Haitzler f11a42a32c add dialog ok call for epplets :)
SVN revision: 825
1999-10-13 22:31:43 +00:00
Carsten Haitzler 9552ddec4a add abotu call....... to header file
SVN revision: 822
1999-10-13 21:14:51 +00:00
Michael Jennings 278d66d3ad Make EROOT and EBIN available to all epplets.
SVN revision: 818
1999-10-13 19:20:44 +00:00