class KDevelop

Sandy Meier smeier at
Fri Jun 16 09:12:27 UTC 2000

Am Fre, 16 Jun 2000 schrieben Sie:
> Hmmm,
> That's KDockMainWindow not DockMainWindow - right?
> but these classes are defined as
> class KDockMainWindow : public KTMainWindow
> class KParts:MainWindow : public KTMainWindow, virtual public PartBase
> and we want
> class CKDevelop : public KDockMainWIndow, public KParts::MainWindow
> but that gives us two instances of KTMainWindow - which would be incorrect 
> You'd need
> class KDockMainWindow : public virtual KTMainWindow
> class KParts:MainWindow : public virtual KTMainWindow, virtual public PartBase

As I wrote the only solution would be (in my opinion :-)) a copy of
KDockMainWindow in KDevelop which inherits KParts::MainWindow because we can't
change the inheritence in kdelibs and multiple inheritence isn't possible.:-(
If we can't have 2 classes with the same name in one "address space", one in
the binary and one in the libs maybe we could rename the KDockMainWindow class?


More information about the KDevelop-devel mailing list