KDockMainWindow should get new parents!

John Birch jbb at kdevelop.de
Fri Jun 16 22:48:18 UTC 2000


Good Morning,

You'll have to merge the current KParts::MainWindow functionality (and API) 
into this new class, but that doesn't look too hard to do.

It seems a much better approach to me. I thought you'd get a better solution 
by the time I woke :-))

jbb

On Sat, 17 Jun 2000, you wrote:
> Hi,
>
> I took a look at KPart::MainWindow. That class is:
>
>   #include <ktmainwindow.h>
>
>   namespace KParts
>   {
>   class MainWindowPrivate;
>
>   /** ...*/
>   class MainWindow : public KTMainWindow, virtual public PartBase
>   {
>    ...
>
> You see KPart::MainWindow is actually a special KTMainWindow with PartBase
> functionality, additionally.
> The class KTMainWindow itself is located in kdelibs/kdeui.
>
> Well, after all, please forgot my suggestion to inherit KDockMainWindow
> from KPart::MainWindow! I checked it all deeper and come to this
> conclusion: Since KDockMainWindow is a special KTMainWindow (because it
> adds
> dock-functionality), the best would be to provide this new additional
> class:
>
>   #include <dockwidget.h>
>
>   namespace KParts
>   {
>   class DockMainWindowPrivate;
>
>   /** ...*/
>   class DockMainWindow : public KDockMainWindow, virtual public PartBase
>   {
>    ...
>
> The files will be kpart/dockmainwindow.h and kpart/dockmainwindow.cpp
>
> ==> So we don't need to touch the Dockwidget class set in kdelibs/kdeui.
> :-) ==> We will get a new kind of KPart
> ==> kdelibs will only be extended, not hurted in binary-compatibility.
>
> At the moment, to my mind, this is the best solution.
> What do you think about that??? Do I miss something?
>
> Ciao,
>   F at lk
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com




More information about the KDevelop-devel mailing list