[LAD] Phat and pyphat 0.4.1, help needed for future widgets.

audio-mobster audio-mobster at gmx.de
Wed May 2 10:42:44 EDT 2007


Loki Davison schrieb:
> On 5/2/07, audio-mobster <audio-mobster at gmx.de> wrote:
>> Loki Davison schrieb:
>> > Phat is a collection of GTK+ widgets geared toward audio apps.
>> > Bug fixes and a few small feature updates. Most of the work done by
>> > Nedko! ;)
>> >
>> > We need help to implement all of Thorsten's new ideas. Check out
>> > http://thorwil.wordpress.com/ I'm really not able to do much coding at
>> > the moment due to RSI / overuse injury issues. I'm trying to keep away
>> >> from a computer.  There has been some discussion of making phat dual
>> > toolkit, gtk and qt4. Help with this would be very useful too. Contact
>> > me if you want to help and need svn access.
>> >
>> > Phat and pyphat can be download at http://phat.berlios.de/
>> >
>> > Cheers,
>> > Loki
>> > _______________________________________________
>> > Linux-audio-dev mailing list
>> > Linux-audio-dev at lists.linuxaudio.org
>> > http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
>> >
>> Hi
>>
>> I already started implementing a SVG-Cairo version of a knob.
>> I'm playing with bounds and magnetic middle...
>>
>> Greets Uli
>> _______________________________________________
>> Linux-audio-dev mailing list
>> Linux-audio-dev at lists.linuxaudio.org
>> http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
>>
> 
> put it in SVN, then everyone else can play with it too! Give me a yell
> for access.
> 
> Loki
> _______________________________________________
> Linux-audio-dev mailing list
> Linux-audio-dev at lists.linuxaudio.org
> http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev
> 

The sources are derived from cairo-clock:
http://cairographics.org/documentation
The tutorial by Davyd Madeley.

I added first support for scrolling, bounds and magnetic.
See drawing function phat_svg_knob_face_scroll() and
emit_scroll_event_signal().
The button is still upside down.
No shading or translucency yet, I got no compositmanager running.
-------------- next part --------------
all: test_widget

test_widget: test_widget.c phatsvgknob.c phatsvgknob.h phatsvgknob-marshallers.c phatsvgknob-marshallers.h
	gcc -g -o test_widget test_widget.c phatsvgknob.c phatsvgknob-marshallers.c \
		`pkg-config --libs --cflags gtk+-2.0`

phatsvgknob-marshallers.c: phatsvgknob-marshallers.list
	glib-genmarshal --prefix _phatsvgknob_marshal --body $< > $@

phatsvgknob-marshallers.h: phatsvgknob-marshallers.list
	glib-genmarshal --prefix _phatsvgknob_marshal --header $< > $@

clean:	
	-rm -rf test_widget Binaries/test_widget
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phatsvgknob.c
Type: text/x-csrc
Size: 9843 bytes
Desc: not available
Url : http://linuxaudio.org/pipermail/linux-audio-dev/attachments/20070502/2646925d/phatsvgknob-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phatsvgknob.h
Type: text/x-chdr
Size: 2231 bytes
Desc: not available
Url : http://linuxaudio.org/pipermail/linux-audio-dev/attachments/20070502/2646925d/phatsvgknob-0003.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phatsvgknob-marshallers.c
Type: text/x-csrc
Size: 3897 bytes
Desc: not available
Url : http://linuxaudio.org/pipermail/linux-audio-dev/attachments/20070502/2646925d/phatsvgknob-marshallers-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phatsvgknob-marshallers.h
Type: text/x-chdr
Size: 671 bytes
Desc: not available
Url : http://linuxaudio.org/pipermail/linux-audio-dev/attachments/20070502/2646925d/phatsvgknob-marshallers-0003.bin
-------------- next part --------------
# these marshallers are generated with glib-genmarshal(1)
VOID:INT,INT
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_widget.c
Type: text/x-csrc
Size: 1545 bytes
Desc: not available
Url : http://linuxaudio.org/pipermail/linux-audio-dev/attachments/20070502/2646925d/test_widget-0001.bin


More information about the Linux-audio-dev mailing list