You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
|
Feb
(7) |
Mar
(5) |
Apr
(4) |
May
(15) |
Jun
(10) |
Jul
(4) |
Aug
(12) |
Sep
(39) |
Oct
(22) |
Nov
(46) |
Dec
(65) |
2002 |
Jan
(19) |
Feb
(27) |
Mar
(50) |
Apr
(73) |
May
(85) |
Jun
(52) |
Jul
(49) |
Aug
(95) |
Sep
(152) |
Oct
(81) |
Nov
(42) |
Dec
(62) |
2003 |
Jan
(45) |
Feb
(47) |
Mar
(101) |
Apr
(110) |
May
(53) |
Jun
(72) |
Jul
(125) |
Aug
(77) |
Sep
(87) |
Oct
(69) |
Nov
(55) |
Dec
(71) |
2004 |
Jan
(127) |
Feb
(68) |
Mar
(93) |
Apr
(102) |
May
(64) |
Jun
(92) |
Jul
(40) |
Aug
(113) |
Sep
(44) |
Oct
(61) |
Nov
(44) |
Dec
(100) |
2005 |
Jan
(57) |
Feb
(51) |
Mar
(101) |
Apr
(73) |
May
(45) |
Jun
(97) |
Jul
(92) |
Aug
(94) |
Sep
(46) |
Oct
(83) |
Nov
(82) |
Dec
(68) |
2006 |
Jan
(92) |
Feb
(116) |
Mar
(84) |
Apr
(66) |
May
(40) |
Jun
(57) |
Jul
(89) |
Aug
(82) |
Sep
(58) |
Oct
(94) |
Nov
(104) |
Dec
(70) |
2007 |
Jan
(86) |
Feb
(108) |
Mar
(193) |
Apr
(84) |
May
(71) |
Jun
(54) |
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ed W <li...@wi...> - 2006-05-12 19:48:09
|
Mark Wardell wrote: > Hi All/Mark, > > I am still having problems using PerlApp since using wxPerl 0.4902 > (now 0.4904), when I exit I get an application error. > If I build without the --gui option, I see an error when I exit: > > "rmtree failed: Directory not empty" It's just one more datapoint, but I got this error when using the SingleInstanceChecker. Curiously if I delete the single instance checker well before I shut down the app then all is fine, but if I kill it during shutdown then I get this error. Could this be what you are seeing? Ed W |
From: Mattia B. <mat...@li...> - 2006-05-12 19:13:47
|
On Fri, 05 May 2006 22:56:31 +0000 Marcus <li...@wo...> wrote: > I copied my Perl directories from one Linux installation to another. > When I run my script I get this dependency issue: > > Can' load .../auto/Wx/Wx.so for module Wx:libwx_gtk2_adv-2.6.so.0 no > such file...then a reference to XSLoader.pm > > I've forgotten how things work under Linux. Do I need to install > wxWidgets? Why would I otherwise need the library "libwx_gtk2_adv-2.6.so.0"? Yes, you need to install wxWidgets too. It is usually safer to either use the RPMS or build wxPerl directly on the machine. Regards Mattia |
From: Gerrit W. <gw...@gr...> - 2006-05-10 13:39:26
|
Hi , upgrading my windows installation to the newest active-state perl and wxperl 0.26 breaks one of my apps using the doc/view framework. When loading a document or creating a new one, my document constructor GenericDocument::new() gets called. But from GenericDocument::OnCreate() i can't get any debug message, so i think it won't never be calledand the doc object remains uninitialized. The same application behaved well under windows before the upgrade, as it did on my linux server running open-suse 10.0 with wxperl 0.25. Have there been any changes to the doc/view framework that i missed, or have i done it the wrong way and it only happend to work by fortune? please can anyone give me a hint? regards, Gerrit Wichert p.s. this are the code snippets concerning doc/view: app::OnInit: ... $this->{oDocManager} = AppDocManager->new( wxDOC_MDI); Wx::DocTemplate->new( $this->{oDocManager}, "Greenstores Lieferantenkarte", "*.gsdc", "", "gsdc", "deliverer-card", "VIEW_DC", 'GenericDocument', 'GenericView', wxDEFAULT_TEMPLATE_FLAGS); my $frame = AppWnd->new( $this->{oDocManager}, undef, 1, "Green-Stores Datenerfassung", [10,10], [950,600]); ... #----------------------------------------------------------------------------- # class AppDocManager #----------------------------------------------------------------------------- package AppDocManager; use vars qw(@ISA); @ISA = qw(Wx::DocManager); { # The default wxWindows untitled name is "unnamedN" (where N is a number) # It's a bit ugly, and you can customise it... my $unnamed_doc_count = 0; sub MakeDefaultName { my ($docmgr, $name) = @_; return "Unbenannt" . ++$unnamed_doc_count; } } #----------------------------------------------------------------------------- # class AppWnd #----------------------------------------------------------------------------- package AppWnd; use strict; use vars qw(@ISA); @ISA=qw(Wx::DocMDIParentFrame); use Wx::Event qw(EVT_MENU EVT_CLOSE); use Wx qw(wxBITMAP_TYPE_ICO wxMENU_TEAROFF wxVERTICAL wxHORIZONTAL wxALL wxEXPAND wxDefaultPosition wxDefaultSize ); sub new { my $class = shift; my ($oManager, $oParent, $nWindowId, $sTitle, $pos, $size) = @_; my ($this) = $class->SUPER::new( $oManager, $oParent, $nWindowId, $sTitle, $pos, $size); $this; } #----------------------------------------------------------------------------- # class GenericDocument #----------------------------------------------------------------------------- package GenericDocument; use vars qw(@ISA); @ISA = qw(Wx::Document); use Data::Dumper; sub new { print STDERR "GenericDocument:new\n"; #<------ This continues to be printed when opening a new document my $class = shift; print STDERR Dumper( @_); my ($this) = $class->SUPER::new( @_); return $this; } sub OnCreate { print STDERR "GenericDocument:OnCreate\n"; #<----- This i can't see under windows any more my $this = shift; my ($sPath, $flags) = @_; print STDERR "Document type: ".$this->GetDocumentName()."\n"; print STDERR Dumper( @_); $this->{oData} = DynDataDoc->new( "deliverer-card"); if ($this->GetDocumentTemplate()->CreateView($this, $flags)) { $this->UpdateAllViews(); return 1 } return 0; } |
From: Mark W. <ma...@ne...> - 2006-05-09 14:02:14
|
Hi All/Mark, I am still having problems using PerlApp since using wxPerl 0.4902 (now 0.4904), when I exit I get an application error. If I build without the --gui option, I see an error when I exit: "rmtree failed: Directory not empty" And I am most definitely NOT using the --clean option. If I use Wx::Package::Win32 (0.07) by using the BEGIN { use Wx::Package::Win32 } command I get the following error on startup but the original error I got when exiting the program disappears. Failed to load shared library '' (error 126: the specified module could not be found.) (this message is repeated six times) I am using WinXP SP2, AS Perl 815 (also tried 817), wxWidgets 2.6.3 and wxPerl 0.4904 (tried all from 0.4902) Thanks for any help. Regards Mark Wardell |
From: Dan S. <da...@si...> - 2006-05-08 19:15:18
|
Okay, so I've been trying to get a perl interface to the wxWebKit class, and have been *mostly* successful. If you've got OS X 10.3 or better, http://www.sidhe.org/~dan/Wx-WebKit-0.02.tar.gz (it's hit CPAN, but not the mirrors yet) gets you access to a webkit control, which is good. Even works (mostly) which is better. (version 0.01 sorta works, except I didn't set @ISA right so you couldn't invoke methods in any parent class. D'oh!) It's that mostly part that has me puzzled, and I'm not sure if there's a bug in my WxPerl code, my XS interface to the wxWebKit class, or in the underlying wxWebKit class itself. I've attached a test program (OS X only) that demonstrates the problem. It's a hacked up wxGlade program, and has a main window split in two, with the HTML rendering widget in the *right* side of the window. If you run this with the USE_WEBKIT environment variable unset, it used wxHtmlWindow, if you have the USE_WEBKIT env variable set (any value) it uses wxWebKitCtrl. The problem is that with the wxWebKitCtrl, the HTML widget is on the *left* side of the window, not the right. (It's on the right, where it should be, with the wxHtmlWindow widget) This is... surprising. The size of the webkit control is correct -- it doesn't take up the whole window, it's just like the upper-left corner coordinates are incorrect. I'm assuming the perl code's correct, since the only code difference between the two html rendering widgets is which is created. It's certainly possible I've bobbled the XS code somewhere, but there's really not all that much to it so if there's a mistake I'm not seeing it. (Not that it wouldn't be a blatantly obvious mistake, of course -- these things usually are :) I'm kinda hoping the problem's not in the underlying Wx 2.6.2 code, since that'll be something of a pain to fix. So, could someone take this and try and duplicate the problem, to see if I screwed something up? -- Dan --------------------------------------it's like this------------------- Dan Sugalski even samurai da...@si... have teddy bears and even teddy bears get drunk |
From: herbert b. <dei...@we...> - 2006-05-08 17:20:30
|
sorry that i cant fix it but with newest perl and wxperl 0.26 you get from controls.pl You must supply either a number or a 1-character string at controls.pl line 1140 even in older version samples.,hope it helpes mille grazie herbert . |
From: Marcus <li...@wo...> - 2006-05-05 22:57:01
|
I copied my Perl directories from one Linux installation to another. When I run my script I get this dependency issue: Can' load .../auto/Wx/Wx.so for module Wx:libwx_gtk2_adv-2.6.so.0 no such file...then a reference to XSLoader.pm I've forgotten how things work under Linux. Do I need to install wxWidgets? Why would I otherwise need the library "libwx_gtk2_adv-2.6.so.0"? Marcus |
From: Marcus <li...@wo...> - 2006-05-03 07:40:57
|
Wednesday, May 3, 2006, 6:38:15 AM, you wrote: Suresh> I am new to wxWidgets. The wxWidgets site: ... Suresh> has 4 demos: Dialogs, Widgets, HTML and Life!. Suresh> If these been translated to wxPerl, where can I find them? This reminds me, do we have a list of wxPerl apps. Shouldn't we have one for both open and closed source. Then developers can study source examples, and see how cool commercial apps can be written in wxPerl. Suresh, wxPerl can be very structured and fairly similar to the C++ counterpart, except for specific syntax. Look at the wxPerl demo and examples. Of course, being Perl you can stick to a neat structure, or make it look quite chaotic...but that's the freedom of Perl we appreciate :-) Marcus |
From: Suresh G. <sgo...@ya...> - 2006-05-03 04:39:48
|
Hello, I am new to wxWidgets. The wxWidgets site: www.wxwidgets.org/binaries.htm has 4 demos: Dialogs, Widgets, HTML and Life!. If these been translated to wxPerl, where can I find them? If not, any advice on how to go about translating them? Thanks, --Suresh |
From: SourceForge.net <no...@so...> - 2006-05-02 21:58:04
|
Patches item #1480707, was opened at 2006-05-02 14:58 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315655&aid=1480707&group_id=15655 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: John Ralls (jralls) Assigned to: Nobody/Anonymous (nobody) Summary: Helpful message with wxLogTraceMask Initial Comment: The latest implementation of Wx::LogTraceMask filters @_ through sprintf. This is nice if one wants to make a nice formatted log message, but it also makes a diagnostic if one messes up and feeds Wx::LogTraceMask only one parameter. To help the user find such goofs (I tend to make them when I convert a LogDebug or a LogError to LogTraceMask), I've added a carp: --- Wx.pm.~1.86.~ 2006-05-02 14:01:32.000000000 -0700 +++ Wx.pm 2006-05-02 14:46:43.000000000 -0700 @@ -257,6 +257,7 @@ # package Wx; +use Carp; # easier to implement than to wrap sub GetMultipleChoices { @@ -281,6 +282,7 @@ sub LogTraceMask { my( $m ) = shift; + carp ("No message for $m") unless @_; my( $t ) = sprintf( shift, @_ ); $t =~ s/\%/\%\%/g; wxLogTraceMask( $m, $t ); } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315655&aid=1480707&group_id=15655 |
From: John R. <jr...@ce...> - 2006-05-02 20:52:23
|
It's taken me a day to get the latest wxPerl CVS update running. The problem is that I set PREFIX when I run Makefile.PL, because I don't want a CVS build overwriting the distribution (yes, wxPerl is included in OSX 4) or release installations of wxPerl. The problem is that MakeMaker creates a file, wxPerl.c, by using the $ (INSTALLSITEARCH) Makefile variable (which is Mattia's doing, in build/Wx/build/MakeMaker/MacOSX_GCC.pm), and that when the PREFIX is set on the Makefile.PL command-line, MakeMaker builds it with quoting. That means that a filename string in wxPerl.c is written as "$(SITEPREFIX)/darwin-thread-multi-2level/auto/Wx/wxPerl.app/Contents/ MacOS/wxPerl". That string gets passed to execv, which tries to stat the file and fails, because the filesystem doesn't know about $ (SITEPREFIX). The easy solution is to also specify INSTALLSITEARCH on the command line. Since some installation things pay attention to INSTALLSITEARCH and others pay attention to PREFIX, it seems that the two should point to the same directory -- but I didn't test to see if that's the case. Mattia, it would be nice to add a note about this to INSTALL.pod. Regards, John Ralls |
From: Mattia B. \<mattia\.barbon\@libero\.it\> <mat...@li...> - 2006-05-02 19:10:42
|
Hi, > Problem is, that I'm using the right mouse button to show a Popupmenu > for the Page, if I click on a Tab. But if I click on a Tab, that isnt > the the current Page, I want to change the Page, to this one first. I suppose you already tried to call SetSelection in the event handler? > So far I tried to use this in the Event Handler for the right button: > > my $hEvent =3D Wx::MouseEvent->new(wxEVT_LEFT_DOWN); > $hEvent->SetId($this->GetId()); > $this->ProcessEvent($hEvent); > > , but without any luck. Even if it worked now, it is not guaranteed to work in the future. In general, synthesizing events and making controls process them is a bad idea. > And since HitTest isnt implemented under wxPerl (and not on all > wxWidgets Ports), I cant determine on which tab the right click was. I added it to wxPerl CVS, FWIW. > Btw: What is the difference between wxWidgets "univ" and "generic" ? Generic is a widget implemented entirely using wxWidgets code (for example wxCalendarCtrl). Univ stands for wxUniversal and is a wxWidgets port (like wxMSW, wxGTK, wxMac,= ...) except it only relies on basic primitives (device context, window) and implements all the controls in a generic way. It is used in wxMGL. Regards Mattia |
From: Mattia B. \<mattia\.barbon\@libero\.it\> <mat...@li...> - 2006-05-02 19:04:54
|
Hi, > Is it possible and is the printing part supported by wxPerl's STC > wrapper? I have no idea... is the printing part supported by wxWidgets' STC? You need to ask this on wx-users (feel free to CC me). I will wrap any missing part of the API. > Generally I think I've not yet understand the principles of printing (D= C > =3D Device Context okay but what does this mean exactly?). > In the examples printing is implemented with a canvas. But what do I do= > if I simply want to print the contents of a Wx::TextCtrl? You can't "simply" invoke some $textctrl->Print( ... ). You need to create a printing DC (as is done in the example) and draw the text on it.= Regards Mattia |
From: Mattia B. \<mattia\.barbon\@libero\.it\> <mat...@li...> - 2006-05-02 16:25:52
|
> All that to say.... <snip tons of cool stuff> > That gives you an idea of how we would like to use the Wx::Data > namespace. This is all working already in our existing > namespace/application, but we wanted to make sure this direction would > be acceptable before refactoring into a CPAN module/bundle. > > Mattia -- is Wx::Data acceptable to you? Ok with me. Data seems a bit generic, but I don't have any suggestion... the people at module-authors are generally helpful with naming suggestions for modules. Regards Mattia |
From: SourceForge.net <no...@so...> - 2006-05-01 22:05:07
|
Patches item #1480054, was opened at 2006-05-01 15:05 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315655&aid=1480054&group_id=15655 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: John Ralls (jralls) Assigned to: Nobody/Anonymous (nobody) Summary: OSX Compatibility with latest wxWidgets CVS HEAD Initial Comment: A few minor changes needed to get wxPerl running with the latest (1May2006) CVS HEAD. MacSetMetalAppearance was recently made private. wxHOURGLASS_CURSOR is defined to a function which returns a const wxCursor*, and for that matter the wxBusyCursor ctor takes a const wxCursor. wx/mediactrl.h has a preprocessor guard statement checking for the existance of wxUSE_MEDIACTRL; if it's not defined including the header is a no-op. --- typemap 2005-10-16 21:03:40.000000000 -0800 +++ typemap 2006-05-01 14:11:08.000000000 -0700 @@ -284,6 +284,7 @@ wxBitmap * O_WXOBJECT Wx_Cursor * O_WXOBJECT wxCursor * O_WXOBJECT +const wxCursor * O_WXOBJECT wxToolTip * O_WXOBJECT Wx_Pen * O_WXOBJECT wxPen * O_WXOBJECT --- XS/Frame.xs 2005-11-22 22:31:57.000000000 -0800 +++ XS/Frame.xs 2006-05-01 14:31:47.000000000 -0700 @@ -138,7 +138,7 @@ wxFrame::Maximize( maximize ) bool maximize -#if defined( __WXMAC__ ) && WXPERL_W_VERSION_GE( 2, 5, 2 ) +#if defined( __WXMAC__ ) && WXPERL_W_VERSION_GE( 2, 5, 2 ) && !WXPERL_W_VERSION_GE( 2, 7, 0 ) void wxFrame::MacSetMetalAppearance( ismetal ) --- Wx.xs 2006-03-10 19:28:32.000000000 -0700 +++ Wx.xs 2006-05-01 14:24:12.000000000 -0700 @@ -29,6 +29,7 @@ #if WXPERL_W_VERSION_GE( 2, 5, 2 ) \ && (defined(__DARWIN__) || defined(__UNIX__)) #define HACK +#define wxUSE_MEDIACTRL 1 #include <wx/html/htmlwin.h> #include <wx/mediactrl.h> #endif @@ -316,8 +317,8 @@ wxString string CODE: #ifdef HACK - delete new wxHtmlWindow(); - delete new wxMediaCtrl(); + delete new wxHtmlWindow; + delete new wxMediaCtrl; #endif RETVAL = wxPluginManager::LoadLibrary( string, wxDL_VERBATIM ); OUTPUT: --- XS/Utils.xs 2006-02-06 18:44:38.000000000 -0700 +++ XS/Utils.xs 2006-05-01 14:09:45.000000000 -0700 @@ -68,7 +68,7 @@ wxBusyCursor* wxBusyCursor::new( cursor = wxHOURGLASS_CURSOR ) - wxCursor* cursor + const wxCursor* cursor void wxBusyCursor::DESTROY() ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=315655&aid=1480054&group_id=15655 |
From: Mike S. <Mik...@Do...> - 2006-04-29 17:34:40
|
Donovan Allen wrote: >At this time, it is Win32 on the front end (the multimedia stuff) and linux on the backend. Some of the components are designed to run on either platform, some are not. I have a poor man's rsyncd system to update the system everyday, but I have to tread carefully with this brute force method ...so the PAR bit would be neat to see. > > Great! We'll try to refactor and release that part of the system as well. |
From: Donovan A. <al...@Zo...> - 2006-04-29 00:00:54
|
FYI, so you know there is interest, I would be keen on playing with the = PAR component and any POE::Loop::Wx improvements that may have happened. = =20 I am using Wx, POE+POE::Loop::Wx, Win32::OLE, XML-RPC & YAML based RPC = system, among a billion other things to build a centralized exhibit = multimedia logic & control system, including (Digital/Analog I/O, = projectors, audio mixers, & DMX In/Out among other hardware interface = things), media playback (and asset management), content "programming", = "program" schedules...yadda yadda yadda. At this time, it is Win32 on the front end (the multimedia stuff) and = linux on the backend. Some of the components are designed to run on = either platform, some are not. I have a poor man's rsyncd system to = update the system everyday, but I have to tread carefully with this = brute force method ...so the PAR bit would be neat to see. -----Original Message----- From: wxp...@li... [mailto:wxp...@li...]On Behalf Of Mike Schroeder Sent: Friday, April 28, 2006 3:07 PM To: wxp...@li... Subject: [wxperl-users] Request for Wx::Data Namespace A little history first... Our company (DonorWare) has been creating a WxPerl front-end to our business logic for the past year and a half. Now we are wanting to refactor our code and provide the application framework back to the Perl community. Also, a while back I sent an email to this list for WxPerl contractors and got some immediate responses -- thank you! One of those contractors (Brad Embree) has been working on Dynamic Panels and Dynamic controls to allow an application to build itself dynamically off of metadata received from data calls. The other contractor (Eriam Schaffter) is about to start on the refactoring project for making Wx frames and controls "data-aware" using POE as the backend event loop. By the way -- this all works in Win32, Linux and OS X. Again, my thanks to Mattia for his help getting the POE::Loop::Wx module working last year. All that to say.... We would like to use the Wx::Data namespace for this "data-aware" POE framework for WxPerl. Here are some examples of what will be done: Wx::Data::Manager -- spawns a POE session to manage data publish/subscribe events between data sources and Wx frames/controls that consume those data sources. Wx::Data::Client::HTTP -- spawns a POE session to asynchronously manage requests to HTTP-based data sources. This is our first one, but we could see the addition of Wx::Data::Manager::SOAP, Wx::Data::Manager::DBI, etc. In this HTTP version we use Data::Serializer to manage serialization, encryption, compression, etc. Wx::Data::Server::HTTP -- used on the server side to create a daemon to respond to requests from Wx::Data::Client::HTTP. This allows you to use your existing business logic modules (or write new ones) that can be used by the controls in your WxPerl app. Wx::Data::Control -- a namespace for creating data-aware controls that can automatically subscribe their data needs to the Wx::Data::Manager, and automatically receive the responses to populate the control. For example, Wx::Data::Control::CodeChoice would make adding a Wx::Choice control that populates itself off of a code table back on your server very simple and trivial. We also have a framework using PAR that requires a minimal binary launcher for the operating system you are running on that then fetches Pure Perl WxPerl code that can be run cross-platform. This allows you to make central updates to your application and your users get a fresh version of your application code each time they login. We could also look at refactoring this and adding to CPAN if anyone is interested. That gives you an idea of how we would like to use the Wx::Data namespace. This is all working already in our existing namespace/application, but we wanted to make sure this direction would be acceptable before refactoring into a CPAN module/bundle. Mattia -- is Wx::Data acceptable to you? Thanks in advance to any feedback or suggestions. Mike. --=20 Mike Schroeder *DonorWare* Mik...@Do... ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, = security? Get stuff done quickly with pre-integrated technology to make your job = easier Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ wxperl-users mailing list wxp...@li... https://lists.sourceforge.net/lists/listinfo/wxperl-users |
From: Mike S. <Mik...@Do...> - 2006-04-28 22:34:51
|
A little history first... Our company (DonorWare) has been creating a WxPerl front-end to our business logic for the past year and a half. Now we are wanting to refactor our code and provide the application framework back to the Perl community. Also, a while back I sent an email to this list for WxPerl contractors and got some immediate responses -- thank you! One of those contractors (Brad Embree) has been working on Dynamic Panels and Dynamic controls to allow an application to build itself dynamically off of metadata received from data calls. The other contractor (Eriam Schaffter) is about to start on the refactoring project for making Wx frames and controls "data-aware" using POE as the backend event loop. By the way -- this all works in Win32, Linux and OS X. Again, my thanks to Mattia for his help getting the POE::Loop::Wx module working last year. All that to say.... We would like to use the Wx::Data namespace for this "data-aware" POE framework for WxPerl. Here are some examples of what will be done: Wx::Data::Manager -- spawns a POE session to manage data publish/subscribe events between data sources and Wx frames/controls that consume those data sources. Wx::Data::Client::HTTP -- spawns a POE session to asynchronously manage requests to HTTP-based data sources. This is our first one, but we could see the addition of Wx::Data::Manager::SOAP, Wx::Data::Manager::DBI, etc. In this HTTP version we use Data::Serializer to manage serialization, encryption, compression, etc. Wx::Data::Server::HTTP -- used on the server side to create a daemon to respond to requests from Wx::Data::Client::HTTP. This allows you to use your existing business logic modules (or write new ones) that can be used by the controls in your WxPerl app. Wx::Data::Control -- a namespace for creating data-aware controls that can automatically subscribe their data needs to the Wx::Data::Manager, and automatically receive the responses to populate the control. For example, Wx::Data::Control::CodeChoice would make adding a Wx::Choice control that populates itself off of a code table back on your server very simple and trivial. We also have a framework using PAR that requires a minimal binary launcher for the operating system you are running on that then fetches Pure Perl WxPerl code that can be run cross-platform. This allows you to make central updates to your application and your users get a fresh version of your application code each time they login. We could also look at refactoring this and adding to CPAN if anyone is interested. That gives you an idea of how we would like to use the Wx::Data namespace. This is all working already in our existing namespace/application, but we wanted to make sure this direction would be acceptable before refactoring into a CPAN module/bundle. Mattia -- is Wx::Data acceptable to you? Thanks in advance to any feedback or suggestions. Mike. -- Mike Schroeder *DonorWare* Mik...@Do... |
From: John R. <jr...@ce...> - 2006-04-28 17:59:58
|
On Apr 28, 2006, at 9:26 AM, Dan Sugalski wrote: > Okay, so I've been doing some fiddling with my app to test some of > the fancier HTML rendering capabilities of the non-WxHTMLWindow > HTML widgets (mozilla and webkit) and I hit what I'd consider a > pretty big annoyance -- these things aren't drop-in replacements > for WxHTMLWindow. > > That is, the basic HTML option in Wx is a window, while WxMozilla > and WxWebKit are both controls. Can't swap in one for another. (And > yeah, I know, the method names are different, but that's easy > enough to deal with) > > Anyway, since I wrote both the Wx::Mozilla and Wx::WebKit wrappers, > I can make things a little different. The question here is, what'd > be best? Would it be better to: > > 1) Have Wx::Mozilla and Wx::WebKit widgets be windows or panels, > and basically be compatible with WxHTMLWindow in usage? (Which'd > make the perl versions different than the underlying C++ widgets) > > 2) Add in a compatibility class in the distributions that provides > a window or panel version of the widgets in addition to the control > version they are by default > > 3) Leave it as is and fix it in my app shims since nobody much > cares anyway. :) > > I'll admit to being tempted towards option #2, with some WxHTML- > compatible methods thrown in as an extra (WebKit has SetPageSource > rather than SetPage to send HTML to the widget, for example) but > I'm not sure if that's really the best way to go about it. > > Suggestions'd be greatly appreciated, thanks. :) Philosophy first: I don't think having the wxPerl wrappers act differently from the underlying wxWidgets is a good idea: It will serve mostly to drive people nuts. Next, terminology: wxControls *are* wxWindows. What you mean to say is that wxHTMLWindow is derived from wxPanel, and wxMozilla and wxWebKit aren't. In fact, wxWebKit is derived from wxControl, but wxMozillaBrowser is derived from wxWindow directly and wxMozillaWindow is derived from wxFrame. Kevin Ollivier, one of the developers of both wxMozilla and wxWebKit, is quite active on wx-...@li.... I suggest you ask there what is the best strategy for replacing a wxHTMLWindow with each of the other html widgets. Make clear at the outset what derived functions from wxPanel or wxScrolledWindow are lacking in wxMozilla and wxWebkit, and which can't be achieved by either plopping one into a wxScrolledWindow or deriving a class which simply inherits from both. Once that's worked out, you can decide whether it makes more sense to execute the strategy in C++ and add wxPerl bindings to it or to do it directly in wxPerl. Regards, John Ralls |
From: Mattia B. \<mattia\.barbon\@libero\.it\> <mat...@li...> - 2006-04-28 17:34:33
|
Hi, > Anyway, since I wrote both the Wx::Mozilla and Wx::WebKit wrappers, I > can make things a little different. The question here is, what'd be > best? Would it be better to: > > 1) Have Wx::Mozilla and Wx::WebKit widgets be windows or panels, and > basically be compatible with WxHTMLWindow in usage? (Which'd make the > perl versions different than the underlying C++ widgets) > > 2) Add in a compatibility class in the distributions that provides a > window or panel version of the widgets in addition to the control > version they are by default > > 3) Leave it as is and fix it in my app shims since nobody much cares an= yway. :) > > I'll admit to being tempted towards option #2, with some Me too. > WxHTML-compatible methods thrown in as an extra (WebKit has > SetPageSource rather than SetPage to send HTML to the widget, for > example) but I'm not sure if that's really the best way to go about > it. FWIW the wxWidgets people's plan is to implement[1] wxHtml-2 which can have the current rendering engine or Mozilla or IE (using the ActiveX) or WebKit or whatever as backend. So they like option 2 as well. Not that this will help you ;-) Regards Mattia [1] in the future [2] [2] no, there are no timetables... |
From: Dan S. <da...@si...> - 2006-04-28 16:27:41
|
Okay, so I've been doing some fiddling with my app to test some of the fancier HTML rendering capabilities of the non-WxHTMLWindow HTML widgets (mozilla and webkit) and I hit what I'd consider a pretty big annoyance -- these things aren't drop-in replacements for WxHTMLWindow. That is, the basic HTML option in Wx is a window, while WxMozilla and WxWebKit are both controls. Can't swap in one for another. (And yeah, I know, the method names are different, but that's easy enough to deal with) Anyway, since I wrote both the Wx::Mozilla and Wx::WebKit wrappers, I can make things a little different. The question here is, what'd be best? Would it be better to: 1) Have Wx::Mozilla and Wx::WebKit widgets be windows or panels, and basically be compatible with WxHTMLWindow in usage? (Which'd make the perl versions different than the underlying C++ widgets) 2) Add in a compatibility class in the distributions that provides a window or panel version of the widgets in addition to the control version they are by default 3) Leave it as is and fix it in my app shims since nobody much cares anyway. :) I'll admit to being tempted towards option #2, with some WxHTML-compatible methods thrown in as an extra (WebKit has SetPageSource rather than SetPage to send HTML to the widget, for example) but I'm not sure if that's really the best way to go about it. Suggestions'd be greatly appreciated, thanks. :) -- Dan --------------------------------------it's like this------------------- Dan Sugalski even samurai da...@si... have teddy bears and even teddy bears get drunk |
From: Manuel R. <m....@te...> - 2006-04-28 09:41:17
|
Hi, did someone already get printing via STC working? Is it possible and is the printing part supported by wxPerl's STC wrapper? Based on http://scintilla.sourceforge.net/ScintillaDoc.html#Printing can someone give me a short example of how it should work and used in wxPerl? Generally I think I've not yet understand the principles of printing (DC =3D Device Context okay but what does this mean exactly?). In the examples printing is implemented with a canvas. But what do I do if I simply want to print the contents of a Wx::TextCtrl?=20 Thanks for giving me some hints... Greetz=20 Manu |
From: <AOu...@fr...> - 2006-04-26 13:23:30
|
Hi, I was wondering, if it's possible to select a Tab in a Notebook using the right mouse button and if, then how ? Problem is, that I'm using the right mouse button to show a Popupmenu for the Page, if I click on a Tab. But if I click on a Tab, that isnt the the current Page, I want to change the Page, to this one first. Until now I have to select the Page first (using left mouse button) and then click it (with right button) to open the Popupmenu. So far I tried to use this in the Event Handler for the right button: my $hEvent = Wx::MouseEvent->new(wxEVT_LEFT_DOWN); $hEvent->SetId($this->GetId()); $this->ProcessEvent($hEvent); , but without any luck. And since HitTest isnt implemented under wxPerl (and not on all wxWidgets Ports), I cant determine on which tab the right click was. Does anyone has any idea how to solve this problem ? Btw: What is the difference between wxWidgets "univ" and "generic" ? Many thanks in advance, Andre |
From: Mattia B. \<mattia\.barbon\@libero\.it\> <mat...@li...> - 2006-04-24 21:50:46
|
Hello, > I was having problem building latest wxWidgets from CVS, so I loaded la= test > Alien::wxWidgets but I got the following errors <snip> Thanks for reporting. I used a slightly different fix in A::w 0.07. Wait until it propagates to CPAN or grab it from PAUSE: ftp://pause.perl.org/pub/PAUSE/authors/id/M/MB/MBARBON/Alien-wxWi= dgets-0.07.tar.gz Regards Mattia |
From: Mark W. <ma...@ne...> - 2006-04-24 07:35:10
|
Hi Mattia, I was having problem building latest wxWidgets from CVS, so I loaded latest Alien::wxWidgets but I got the following errors >perl Build.pl >perl Build Can't locate object method "resume" via package "My::Build::new_from_context_is_broken" at C:/Perl/site/lib/Module/Build/Base.pm line 52. BEGIN failed--compilation aborted at inc/My/Build.pm line 36. Compilation failed in require at C:\Software\Download\Alien-wxWidgets-0.06\_build\lib/My/Build/new_from_conte xt_is_broken.pm line 5. BEGIN failed--compilation aborted at C:\Software\Download\Alien-wxWidgets-0.06\_build\lib/My/Build/new_from_conte xt_is_broken.pm line 5. Compilation failed in require at Build line 26. BEGIN failed--compilation aborted at Build line 26. If I changed the file (new_from_context_is_broken.pm) as below: package My::Build::new_from_context_is_broken; use Module::Build; @ISA = qw( My::Build Module::Build ); use lib qw(lib inc); #use My::Build; #@ISA = qw(My::Build); 1; It build and installed fine. HTH Regards Mark |