paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] want to run my dll idea for pg past anyone who cares


From: Alexander Pipelka
Subject: Re: [paragui-users] want to run my dll idea for pg past anyone who cares to look
Date: 05 Jun 2002 11:11:46 +0200

Unfortunately, a clean implementation for the stable branch is currently
impossible (if there is any using the current callback mechanism).

But i think using the first option would be a better choice (Sorry
Andrew :)) because it fits (a bit) better into the current framework.
Additionally the transition to 1.1.x would be the same as for *usual*
message callbacks (libsigc++).

But maybe an unknown option three exists ?

>From the latest discussions i see the following changes for the unstable
branch:

- Redesign the XML layout loader (factory?)
- Add libsigc++ callbacks for tag processing
- Move all static variables into PG_Application (or corresponding
classes). This would mean that it's possible to run multiple
PG_Application objects with different themes and behaviour in one
application (and would fix some static linking issues).


Alex

Am Die, 2002-06-04 um 23.21 schrieb Andrew Ford:
> I think I like the second option better.  The first
> one tries to cram the callback into the widget event
> framework, and it doesn't really fit since the event
> isn't being passed through the widget hierarchy.  The
> bad part about the second is that I can't think of
> another place that paragui uses such a callback,
> meaning that it's yet another way of doing things.
> The layout parser can tell when it sees a non-standard
> tag, can't it?
> 
> Andrew.
> 
> --- Alexander Pipelka <address@hidden> wrote:
> > Yeah. Just noticed the flaw in the concept :)
> > 
> > Ok. 2 opportunities:
> > 
> > - the previous solution with the following
> > extension:
> > typedef struct {
> >   const char* tag;  // name of my tag in the head
> > section
> >   const char** atts;        // list of attributes in the
> > tag
> > } PG_XMLTagAtts
> > 
> > PARAGUI_CALLBACK(my_xmlhandler) {
> >   PG_XMLTagAtts* atts = (PG_XMLTagAtts*)data;
> > 
> >   char+ mytag = atts->tag;
> > 
> >   if(strcmp(mytag, "mytag") == 0) {
> >     char* mystring = PG_Layout::GetParamStr(atts,
> > "customtagname");
> >     int myint = PG_Layout::GetParamInt(atts,
> > "customint");
> >   }
> > }
> > 
> > <head>
> >   <mytag customtagname="mystring" customint="666"/>
> > </head>
> > 
> > - register a simple callback function
> > bool ProcessHeadAtts(PG_XMLTagAtts* atts);
> > 
> > 
> > Alex
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users
> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]