Re: POW 19.12.99 questions


Subject: Re: POW 19.12.99 questions
From: sam th (sam@bur-jud-118-039.rh.uchicago.edu)
Date: Wed May 17 2000 - 03:32:49 CDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 17 May 2000, Alexey Sintutin wrote:

> Hello guys!
>
> Sorry for boring, but is there somebody who can answer my questions
> regarding POW 19.12.99?
> The questions are:
> 1. I draw tab arrows using the polyLine method, which has no the Color
> argument. What do you think is better, to add a new polyLine method with the
> Color argument (Polygon) or to draw arrows using bitmaps?

Are you suggesting this just for closed curves? Or are you talking about
the line color itself? Either way, adding a color option doesn't seem
that bad. Additonally, there is no need for a new method. We can just
change the declaration from

void GR_UnixGraphics::polyLine(UT_Point * pts, UT_uint32 nPoints);

to

void GR_UnixGraphics::polyLine(UT_Point * pts, UT_uint32 nPoints,
UT_ColorType color=black /*or whatever the default is*/);

I'm pretty sure that this will do everything we want. At least that's
what my Stroustrup book tells me. But others more versed in C++ may
correct me.

> 2. I did not begin to write a new class for the Paragraph Break run, but
> there is an easier decision: to add the Paragraph Break sign after last run
> of every last paragraph line (see the following sample code). What is your
> opinion about the decision? Is it good? Can we use it until the Paragraph
> Break run has been written?
>
> FV_View* pView = m_pBL->getDocLayout()->getView();
> UT_ASSERT(pView);
> if(!pView->getShowPara()){
> return;
> }
> UT_ASSERT(m_pLine);
> if(m_pLine->isLastLineInBlock() && isLastRunOnLine()){
> // TODO draw the ParaBreak Sign
> }
> 3. I think it will good if we will create the drawLine method with the
> PenStyle argument, which draws solid, dotted, dashed, etc. lines. The method
> permit us to vary the editor with dotted column break line, etc. What do you
> think?

This is an excellent idea, in my humble opinion. Especially if you're
planning to provide the code. :-)

> 4. A selection rectangle is higher and wider than a line on one pixel and I
> have to draw column boundaries higher and wider then column sise on 2
> pixels. Is the size of selection rectangle correct? If no, I am ready to
> change size of selection rectangle and correct the POW code.
>
>
> Bye, Alexey.
>
>

           
                                     sam th
                                     sam@uchicago.edu
                                http://sam.rh.uchicago.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5Ilkyt+kM0Mq9M/wRAihsAKDZqdwTAmMJ12uli9jalPHc85NSHwCfTUdH
9I1plXY2ytmCue50TL067tc=
=+Wbp
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2b25 : Wed May 17 2000 - 03:32:52 CDT