On Fri, 2 Mar 2001, Angus Leeming wrote:
> On Friday 02 March 2001 15:42, Edwin Leuven wrote:
> > ....and what *I* don't understand is why people don't join in for a week or
> > two to get the qt2 port working and ditch those f***ing xforms instead.
> blah.
>
> Careful... We've only just recovered from the last time this conversation was
> started!!!!!!!!!!!
They mostly don't join in because they mostly never have. Either that or
they are content with the xforms frontend as is like most of the rest of
the developers (including me) have been for the past umpteen years.
> > And while I am grumbling perhaps someone can give me some xform tips.
> > The find/replace dialog has find-next, find-prev, replace and replace-all
> > buttons. I guess that there need to be callbacks in order for them to
> trigger
> > the necessary. I looked for an example in FormBase but I dont really
> > understand the
> >
> > extern "C" int ...
> >
> > and
> >
> > static_cast<Form...*>
> >
> > stuff.
> >
> > Can someone give me a productive hint that help me further?
I used to have a couple of simple macros to make it easier for people to
work with. You didn't have to think about what or why just name the type
of connection. It seems someone (probably Angus?) removed these several
months ago when most of the [xforms] dialogs moved to FormBase. I still
think they'd make life simpler for people adding the odd new dialog
specific callback but such things are rare so it may be best to just
expose the plumbing.
> > Thanks, Ed.
> >
> > ps. I really want to minimize my understanding of xforms.
Don't we all?
> Sure. Use fdesign to associate all these buttons with the function
> C_FormBaseInputCB. Ultimately, this will pass a FL_OBJECT * to your
> FormFindReplace::input() method. In this method write:
>
> FormFindReplace::input(FL_OBJECT * obj, long)
> {
> if (obj == find-next)
> then find the next occurence
> else if (obj == find-prev)
> find the previos occurence
> ...
> }
>
> That's all you need to know.
Of course you will have read xforms/forms/README by now and realized that
Angus meant to write button_find_next and button_find_prev ;-)
Allan. (ARRae)