Re: status of tabs dialog?


Subject: Re: status of tabs dialog?
From: Stephen Hack (shack@uiuc.edu)
Date: Fri Mar 24 2000 - 01:19:58 CST


On Thu, Mar 23, 2000 at 10:27:40PM -0800, Paul Rohr wrote:
> Stephen,
>
> Thanks for posting the patch. I've read it through to get an idea of what
> work is still remaining, but I'd like you to confirm that the following
> summary is more-or-less accurate:
>
> 1. You've silenced a few more of those annoying unused variable warnings.
>

I think every time I checked in code, I've changed a few of these...

> 2. The fl_TabStop structure is no longer private -- you're actually using
> copies of it in the dialog now as well (even though it's not passed across
> the API boundary).
>
> In that case, the struct should probably be renamed as FL_TabStop, since
> it's no longer private.
>

That's fine. I've not seen any documentation about the naming strategy. Now
that you mention it, it makes quite a bit of sence.

> 3. You've added enums to get around the HACKish cloning of FL_TAB_LEFT and
> friends, which is nice. However, it'd probably be more consistent to rename
> these new typedefs FL_TabType and FL_TabLeader instead.
>
> I'm also tempted to suggest that they should be moved to a public fl_types.h
> file to avoid exposing fl_BlockLayout.h outside the view module, but that's
> being pretty picky.
>

Moving it into a seperate file is something I've debated doing, but never got
around to doing it.

> 4. It looks like a bunch of the tab dialog behaviors have been added to XP
> code, but without a working version, I'm not sure what else might be needed
> there. A useful milestone would be to get some subset of the controls
> completely working.
>

I had a near working version, before I started HACKing away at the FL_TabStop
code. While working on that (after a 5 week break for christmas), I broke
some stuff (i.e., somewhere in the find next tab, i think) and didn't have the
time to drudge through and fix it back up. I also removed my old form of
displaying the tabs, an 'new()' call to save my own personal strings.

Mentioning milestones, another MAJOR bug (i don't have netscape available, but
it's in bug track) is the duplication of tabs. It's not noticable until I
started displaying everything.

> 5. Tab leaders are now parsed from the tabstops property. I couldn't tell
> whether they're displayed in the dialog yet or not, but there's currently no
> way to change them so they can be stored out to the file. It looks like
> that's what you were working on when you stopped.
>

I was working on this BEFORE I started the fl_TabStop enum stuff. Boy there
were quite a few files to be changed. I just love function pointers.

> 6. Tab leaders are not drawn at all. Yet. Since we already have TabRuns,
> it shouldn't be that hard, though.
>

Correct.

> 7. Since the XP and Unix work isn't done yet, you haven't stubbed out the
> dialogs on the other platforms. In addition to the usual cut and paste job
> on the platform-specific stub classes, this will also require stubbing in
> all the new virtual set/gather etc. implementations expected by the XP base
> class.
>
> What else did I miss?
>
> At 06:27 PM 3/20/00 -0600, Stephen Hack wrote:
> >That last thing I did on the Tabs dialog was to create an enumerated type for
> >tab types, instead of cutting and pasting the #defines. There is some bug
> >that I've introduced into the code, and I've not had the time to track it
> >down.
>
> What's the bug? The only suspicious thing I saw in your latest patch was
> at line 150 of fb_LineBreaker.cpp, where you probably want to be calling
> findNextTabStopInLayoutUnits() instead.

But the problem was introduced sometime during the FL_TabStop change over....
Don't know.

> >I've glad somebody has offered to help. The code has some working features,
> >but it's too rough, and broken to check into the main tree.
>
> OK. If you don't want to check it in yet, I won't do so either. :-) That
> can wait until you or Glen have made some more headway.
>
> >This semester, before I graduate,
> >has been extremely busy finding jobs, interviewing, and planning my wedding
> >and honeymoon, etc.
>
> Congratulations!
>

As you sent the email, I've been pounding away at my multimedia assignment...a
video conferencing system... Lots of fun, more C++, all writen from
scratch...

I just love debugging :>

> Paul



This archive was generated by hypermail 2b25 : Fri Mar 24 2000 - 01:15:43 CST