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

List:       kde-kimageshop
Subject:    Re: Progress Info
From:       Michael Thaler <michael.thaler () ph ! tum ! de>
Date:       2004-09-21 21:37:49
Message-ID: 200409212337.49937.michael.thaler () physik ! tu-muenchen ! de
[Download RAW message or body]

Hello

> I tried to add progress info to the scaling code. To do this I included
> kis_progress_subject.h in kis_paint_device.h and tried to derrive
> KisPaintDevice from KisProgressSubject as done in
> kis_gradient_painter.h and kis_gradient_painter.cc. Unfortunately this does
> not work because both KisPaintDevice and KisProgressSubject are derrived
> from QObject. A possible solution would probably be to not inherit
> KisPaintDevice from QObject because KisProgressSubject is already derrived
> from QObject and so KisPaintDevice is derrived from QObject automatically.
> But somehow this looks clumsy and I think the better solution would be to
> move the scaling code (and also the rotating code, even if the function is
> still empty) to a visitor that is then derrived from KisProgressSubject. I
> have no clue how to do this, so can someone do this for me? That would be
> great!

I just read the chapter about visitors in the Design Patterns book and I think 
actually it is not that hard to put the scaling code into a visitor. I will 
try this tomorrow if noone else wants to do it.

Michael
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

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