Subject: Crossplatform UI for UADe

From: mld
Date: Tue Apr 12 10:43:22 2005

To: UADE-Developer-discussion
Hi folks,

I want to start working on something that nagged on my mind for quite a while: a kind of crossplatform ui for uade. 

First I try to gather some ideas, what a Cross-Platform GUI should have.

In my opinion, I think it's best to try to keep it simple with as few dependencies as possible and as few as possible "work arounds" for any platform.

The best choice as it seems at the moment, is a kind of stock SDL solution (and we already have sld audio).
Pro: it should probl compile on a wide range of platforms like nix, morphos, OS X, beos and even m$ os but I'm open for other or better suggestions.  Usage is the same on all platform.

Con: we don't have OS integration in look and feel.

Second:
I already toyed a bit around with sdl_SFONT and glued together a textbased  work-in-progress, whose current layout reminds me a bit of the old Amiga Musicdemos (which is not too bad, imo). ;)

As said, any suggestion or/and help with the implemetation (anyone coded out there?) is more than welcome.  

Third:
How to glue it with uade... I am also not sure if it should be a remote or local slave or  even just exec'ing the uade binary.

stay safe,

mld/uade team

---

From: amadeus
Date: Tue Apr 12 12:56:41 2005

To: UADE-Developer-discussion
I think this is an exciting idea as UADE is very close to support all formats  :) 

Have you considered gtk, wxgtk, or wxwidget?

The crossplatform emule clone www.amule.org seams to be very satisfied with wxwidget.

Btw. Is this a Pacman?  :scared:

---

From: mld/uade team
Date: Fri Apr 15 13:00:02 2005

To: UADE-Developer-discussion
Yes, it :scared: is... ;)

ok, some update on the ui front. I think I go for SDL, since using wxwidgets would mean yet another dependency. (But I'm open to any other thoughts)

I started to work on it and I put some first "example"  online at:

 http://mitglied.lycos.de/mldoering/ui2.tar.bz2

It just "draws" some simple text dialogs on on the sdl screen/Window, but there's no interaction yet. (btw. even if it looks a bit like it... No I don't intent to implement a kind of SDLbased Windowmanager, which would be cool *grin*)

Not sure if it's that's right way(tm) to go, though :)

mld/uade 

ps. as I said, I still could need some help and suggestions

---

From: amadeus
Date: Sat Apr 16 22:59:17 2005

To: UADE-Developer-discussion
[quote:db8e4ace76="mld/uade team"]Yes, it :scared: is... ;) [/quote:db8e4ace76]

I most admit I seldon use ghosts in my writings :)

[quote:db8e4ace76="mld/uade team"]ok, some update on the ui front. I think I go for SDL, since using wxwidgets would mean yet another dependency. (But I'm open to any other thoughts)[/quote:db8e4ace76]

Sounds reasonable.

[quote:db8e4ace76="mld/uade team"]
It just "draws" some simple text dialogs on on the sdl screen/Window, but there's no interaction yet. (btw. even if it looks a bit like it... No I don't intent to implement a kind of SDLbased Windowmanager, which would be cool *grin*)
[/quote:db8e4ace76]

Does all SDL programs have this "window/screen", where the actual programs lives inside?

The "Okay" buttons reminds me of Mac OS 8 :)

[quote:db8e4ace76="mld/uade team"]
ps. as I said, I still could need some help and suggestions :D  :D  :)
[/quote:db8e4ace76]

What will it be called? Guade ? :)

---

From: mld/uade team
Date: Mon Apr 25 20:40:29 2005

To: UADE-Developer-discussion
Slow progress on the SDL gui but I'm not dead, just terribly busy... ;)))

ok, hope I'll be able to put something online to the end of the week... And maybe there's more people working with me with this...

Code is still noodles :) I changed the layout now to something more sensible, and implemented some simple button and textbox scrolling callbacks for a start. (Play/Stop, prev/next song and subsongs call some stubs, the textbox scrolls some usage text :)

In theory the design/theme/skin can changed by editing the decor.bmp file to mimick the Desktop Style (so far there's some Amiga MUI-like, KDE's Active-heart and a brushed-metal decor)

---

From: syntheticsw
Date: Thu Apr 28 07:17:09 2005

Hello !

For the UADE Plugin i am using the FLTK library ( http://www.fltk.org ).
Okay, this would add another dependency, but FLTK is small,
lightweight and crossplattform. It runs on Windows, Mac OS X
and X11 systems.

---

From: nicomen
Date: Mon May 9 02:49:54 2005

To: UADE-Developer-discussion
And AmigaOS 4, but so does SDL ;) Keep it up, looking forward to port it/compile it ;)

---

From: mld/uade team
Date: Thu May 12 11:18:02 2005

To: UADE-Developer-discussion
heh, 100 views but just 8 answers... I take it people are interested but don't want to get involved... (as ever ;) )

anyways... I put another work-in progress of the sdl ui online. It's still based on SDL, but the fltk options seems to interesting (an sdl ui is kind of like reinventing the wheel;)

you can find the tar ball at: http://mitglied.lycos.de/mldoering/sdl-ui.tar.bz2

Features:
- buttons are clickable... but don't do anything sensible.
- the textbox scrolls when pressing &lt;up&gt; or &lt;down&gt; key
- &lt;alt&gt;+&lt;return&gt; toggles fullscreen.
- &lt;esc&gt; quits
- there's different example looks... 

Next thing would be, to clean up the whole mess (and mess it is;) and use it as a real control uade.

have fun.

mld

---

From: shd
Date: Thu May 12 13:16:06 2005

To: UADE-Developer-discussion
[quote:0fd808365f="mld/uade team"]heh, 100 views but just 8 answers... I take it people are interested but don't want to get involved... (as ever ;) )
[/quote:0fd808365f]

This is a very good thing also. Imagine if everyone who thought they had something to say on this replied here ;) IMO, it is nice that the number of people involved in discussion is logarithmic to the number of people viewing the post ;)

[quote:0fd808365f]

[/quote:0fd808365f]

Do you perhaps need web space from http://uade.ton.tut.fi/mld/ or something? I can arrange a crypto ftp server for your use, so that you can upload files to the mentioned URL..

---

From: shd
Date: Thu May 12 13:30:07 2005

To: UADE-Developer-discussion
I had a quick look at the source. It compiles and runs! Do you have a coding style in mind? Since this is _your_ project, but closely related to the main project, I would like you to choose a coding style. I can see lots of styles mixed in the C file :-)

Differences I noticed quickly:

 - 1/2/4 space indent vs. tab
 - function(...) { vs. function(...)\n{
 - function(...){ vs. function(...) {
 - foo=bar; vs. foo = bar;
 - random empty lines

If you ask me, go with k&amp;r (with some consistent tab/space policy ;) And please, use return value instead of return(value) ;)

Other issues:

Use #include &lt;stdint.h&gt;, and you will get following _portable_ datatypes:
 uint8_t, uint16_t, ...
 int8_t, int16_t, ..., 
 intptr_t

static Uint8 video_bpp; =&gt; static uint8_t video_bpp;

[quote:bc04230b27="Full Metal Jacket"]Because I am hard, you will not like me.  But the more you hate me, the more you will learn.  I am hard but I am fair.
[/quote:bc04230b27]

Sorry, couldn't resist ;)

---

From: mld/uade team
Date: Fri May 13 07:07:35 2005

To: UADE-Developer-discussion
hehe, never mind... I knew it was bad style. Therefore all the hints about "spaghetti" and "noodles" in my previous posts.

I guess I'll rewrite the whole thing anyway to get a clean start, when there's demand for such a ui at all.

mld
---
"if the answer is "EU" it must have been a silly question!"
--- from a british newscast ---[/quote]

---

From: spot / up rough
Date: Thu Feb 28 01:34:34 2008

DEMAND?!?!

VERY much so! I wanna be able to use it on AmigaOS4 and OSX!