From: Jouke V. <jo...@pv...> - 2004-04-26 12:04:31
|
Hello, Not that I expect anyone to use them, but I thought I'd mention it here on the list anyway. I put the AAC::Pvoice modules, which are the core of the pVoice applications I create, on CPAN. These modules are basically a wrapper around many wxPerl classes and allow the programmer to easily create GUI applications that can be controlled using only two buttons (left and right mouseclick). An example application using these modules is now on PerlMonks: http://www.perlmonks.org/index.pl?node_id=348135 -- Jouke Visser +--------------------------------------------------------------------+ | Speaking at the 2004 O'Reilly | http://www.pvoice.org | | Open Source Convention about pVoice | http://jouke.pvoice.org | | http://conferences.oreilly.com/oscon | jo...@pv... | +--------------------------------------------------------------------+ |
From: Simon F. <sf...@fl...> - 2004-04-26 18:04:09
|
Hi Jouke, On Mon, 26 Apr 2004 14:04:19 +0200, Jouke Visser wrote > Hello, > > Not that I expect anyone to use them, but I thought I'd mention it > here on the list anyway. I put the AAC::Pvoice modules, which are > the core of the pVoice applications I create, on CPAN. These modules > are basically a wrapper around many wxPerl classes and allow the > programmer to easily create GUI applications that can be controlled > using only two buttons > (left and right mouseclick). I'm sure people will use them. I don't have an immediate use for them, but I can imagine uses where I work. wxAccessibility might be of interest to you: http://www.wxwidgets.org/access.htm It would probably compliment AAC::Pvoice rather than replace it. But I think it's still experimental. I just spotted the comment in the AAC::Pvoice::Panel constructor about maximising the window to get the size - does Wx::GetDisplaySize not give you what you need? > An example application using these modules is now on PerlMonks: > http://www.perlmonks.org/index.pl?node_id=348135 I saw that this morning. It looks great. I couldn't compile Audio::BASSXS though. I copied bass.dll and bass.h into the same folder as BASSXS.xs and didn't get much further: D:\dev\build\cpan\Audio-BASSXS-0.01>perl Makefile.PL Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lbass Writing Makefile for Audio::BASSXS D:\dev\compile\cpan\Audio-BASSXS-0.01.tar\Audio-BASSXS-0.01>dmake cp lib/Audio/BASSXS.pm blib\lib\Audio\BASSXS.pm AutoSplitting blib\lib\Audio\BASSXS.pm (blib\lib\auto\Audio\BASSXS) D:\dev\perl\bin\perl.exe D:\dev\perl\lib\ExtUtils/xsubpp -typemap D:\dev\perl\lib\ExtUtils\typemap -typemap typemap BASSXS.xs > BASSXS.xsc && D:\dev\perl\bin\perl.exe -MExtUtils::Command -e mv BASSXS.xsc BASSXS.c Error: 'float' not in typemap in BASSXS.xs, line 83 Error: 'const char *' not in typemap in BASSXS.xs, line 123 Error: 'const char *' not in typemap in BASSXS.xs, line 136 dmake.exe: Error code 1, while making 'BASSXS.c' I'm using gcc 3.2.3 Simon |
From: Peter v. d. L. <lan...@fr...> - 2004-04-26 18:25:42
|
On Mon, 26 Apr 2004 19:04:01 +0000, "Simon Flack" <sf...@fl...> said: > I just spotted the comment in the AAC::Pvoice::Panel constructor about > maximising the window to get the size - does Wx::GetDisplaySize not give > you > what you need? That's really funny, I just yesterday found Wx::GetDisplaySize and got rid of exactly the same maximize trick in my own code. It must be some kind of Dutch disease... ;-) > I saw that this morning. It looks great. I couldn't compile Audio::BASSXS > though. I copied bass.dll and bass.h into the same folder as BASSXS.xs > and > didn't get much further: That BASS stuff looks interesting indeed.... Regards, Peter |
From: Jouke V. <jo...@pv...> - 2004-04-26 20:36:41
|
> That BASS stuff looks interesting indeed.... BASS is extremely interesting :) I wish I found that library earlier. I didn't wrap everything already. For now the config, initialization and stream parts are wrapped. Oh, and yet another documentation flaw: callbacks don't work yet... -- Jouke Visser +--------------------------------------------------------------------+ | Speaking at the 2004 O'Reilly | http://www.pvoice.org | | Open Source Convention about pVoice | http://jouke.pvoice.org | | http://conferences.oreilly.com/oscon | jo...@pv... | +--------------------------------------------------------------------+ |
From: Jouke V. <jo...@pv...> - 2004-04-26 20:35:11
|
> wxAccessibility might be of interest to you: > http://www.wxwidgets.org/access.htm Yes, thanks, I had read that already... > I just spotted the comment in the AAC::Pvoice::Panel constructor about > maximising the window to get the size - does Wx::GetDisplaySize not give you > what you need? It might, I'll try... :) > I saw that this morning. It looks great. I couldn't compile Audio::BASSXS > though. I copied bass.dll and bass.h into the same folder as BASSXS.xs and > didn't get much further: > > D:\dev\build\cpan\Audio-BASSXS-0.01>perl Makefile.PL > Checking if your kit is complete... > Looks good > Note (probably harmless): No library found for -lbass > Writing Makefile for Audio::BASSXS Right. I forgot to mention it compiles against bass.lib :) And then a script won't run without the bass.dll within the path :) > Error: 'float' not in typemap in BASSXS.xs, line 83 > Error: 'const char *' not in typemap in BASSXS.xs, line 123 > Error: 'const char *' not in typemap in BASSXS.xs, line 136 I think it's time to release a new version tomorrow :) I already got a comment from PodMaster that those types should better be defined in the typemap because older Perls don't know about them... Thanks for the feedback :) -- Jouke Visser +--------------------------------------------------------------------+ | Speaking at the 2004 O'Reilly | http://www.pvoice.org | | Open Source Convention about pVoice | http://jouke.pvoice.org | | http://conferences.oreilly.com/oscon | jo...@pv... | +--------------------------------------------------------------------+ |
From: Jouke V. <jo...@pv...> - 2004-04-27 07:16:41
|
Jouke Visser wrote: >> I saw that this morning. It looks great. I couldn't compile Audio::BASSXS >> though. I copied bass.dll and bass.h into the same folder as BASSXS.xs >> and >> didn't get much further: FYI: Audio::BASSXS 0.2 just hit pause. It has a corrected typemap, you still have to have bass.lib in a location the linker can find it. Version 0.1 is available in crazyinsomiac PPM repository: http://crazyinsomniac.perlmonk.org/perl/ppm (for 5.6) http://crazyinsomniac.perlmonk.org/perl/ppm/5.8 (for 5.8) -- Jouke Visser +--------------------------------------------------------------------+ | Speaking at the 2004 O'Reilly | http://www.pvoice.org | | Open Source Convention about pVoice | http://jouke.pvoice.org | | http://conferences.oreilly.com/oscon | jo...@pv... | +--------------------------------------------------------------------+ |
From: Jouke V. <jo...@pv...> - 2004-04-27 08:09:35
|
>> I just spotted the comment in the AAC::Pvoice::Panel constructor about >> maximising the window to get the size - does Wx::GetDisplaySize not >> give you >> what you need? > > It might, I'll try... :) Nope, it doesn't :) I maximize the window to be able to get the size of a panel *inside* a frame. That excludes the window border, which can be any size (WinXP has a thick border around windows by default, Win98 has a thinner border), and even then, pMusic has two panes in a SplitterWindow, and it queries the size of each of the panes to correctly resize images inside the panes... So, thanks for the suggestion, but it won't work... -- Jouke Visser +--------------------------------------------------------------------+ | Speaking at the 2004 O'Reilly | http://www.pvoice.org | | Open Source Convention about pVoice | http://jouke.pvoice.org | | http://conferences.oreilly.com/oscon | jo...@pv... | +--------------------------------------------------------------------+ |
From: Darryl R. <bo...@af...> - 2004-04-27 09:02:53
|
Jouke Visser wrote: >>> I just spotted the comment in the AAC::Pvoice::Panel constructor about >>> maximising the window to get the size - does Wx::GetDisplaySize not >>> give you >>> what you need? >> >> >> It might, I'll try... :) > > Nope, it doesn't :) I maximize the window to be able to get the size of > a panel *inside* a frame. That excludes the window border, which can be > any size (WinXP has a thick border around windows by default, Win98 has > a thinner border), and even then, pMusic has two panes in a > SplitterWindow, and it queries the size of each of the panes to > correctly resize images inside the panes... How about GetClientSize? I'm using: # Stupid hack to get the child panel to completely fill the parent frame $self->{'PANEL'}->SetSize( $self->{'FRAME'}->GetClientSize() ); Cheers Darryl |
From: Jouke V. <jo...@pv...> - 2004-04-27 09:31:39
|
Hi Darryl, > How about GetClientSize? I'm using: > > # Stupid hack to get the child panel to completely fill the parent frame > $self->{'PANEL'}->SetSize( $self->{'FRAME'}->GetClientSize() ); Without having tried that, I would guess that will still only work after calling Maximize(1) and Show(1) on the frame...I know I've tried different combinations before coming up with my current solution...I just don't recall which ones exactly... Without calling Maximize and Show, the frame can have any size... -- Jouke Visser +--------------------------------------------------------------------+ | Speaking at the 2004 O'Reilly | http://www.pvoice.org | | Open Source Convention about pVoice | http://jouke.pvoice.org | | http://conferences.oreilly.com/oscon | jo...@pv... | +--------------------------------------------------------------------+ |