[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Precision "display mode" for KoRuler
From:       "Aron Stansvik" <elvstone () gmail ! com>
Date:       2007-11-02 22:11:55
Message-ID: 751a4f870711021511qfaabf7l54fc08ce15f872bd () mail ! gmail ! com
[Download RAW message or body]

2007/11/2, Thomas Zander <zander@kde.org>:
> On Friday 02 November 2007 22:23:58 Aron Stansvik wrote:
> > Hello folks, I've found a JJ for myself :)
> >
> > I would like to take a shot at implementing an alternate display mode
> > for the ruler during Shift-dragging of indents, when the indents are
> > moved without snapping. Something similar, or even identical, to what
> > Microsoft Word has (see attached screenshot).
> >
> > First obvious question; any objections to this?
>
> It would take a TODO off of my list ;)

Great ;)

> > 2) Do it more elegantly using strategies.
>
> Yes, please.
>
> Basically you can delete the current strategy and create a
> MeasurementsPaintingStrategy to replace it in the mousePressEvent.
> I suggest inheriting from the horizontal policy is probably so you only
> have to reimplement the drawRulerStripes method.

Sorry I forgot to say that the ruler should flip over to this display
mode also when changing the page margins, and that it should work also
for the vertical ruler.

So I guess two strategies for me to implement then, one for each
orientation, and each inheriting the existing strategy for the
respective orientation, overriding drawRulerStripes() as you suggest?

> Thanks for looking into this!

Scratching itches :) Thanks for the fast reply!

Aron
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic