Fwd: Re: class KWin for win32

Jarosław Staniek js at iidea.pl
Sat Jul 22 19:52:52 BST 2006


Thiago Macieira wrote:

> Jarosław Staniek wrote:
>>Inheritance:
>>
>>KWin (interface, only common methods here)
>>
>> : KX11Win (X11-specific methods are added here)
>> : KWindowsWin (stupid name, win32-specific can be added here)
>> : KMacWin (...)
>>
>>What do you think?
> 
> Why inherit at all? One single class should do.
> 
> If there are platform-specific methods, make sure they are properly
> described as such, so that people won't try to call them when not needed.
> 
> I don't have to say we should keep the number of such methods to a
> minimum.

1. Should use "X11" within name of a X11-related method? E.g. as in Qt's 
virtual bool QWidget::x11Event ( XEvent * )

2. Still, is KWin meaningful name? "Win" means something else for quite a few 
devs... What about KWindowManager or KWM?

-- 
regards / pozdrawiam,
  Jaroslaw Staniek / OpenOffice Polska

Sponsored by OpenOffice Polska to work on
* Kexi & KOffice: http://www.kexi-project.org | http://koffice.org/kexi
* KDE3 & KDE4 Libraries For Developing MS Windows Applications:
                   http://www.kdelibs.com
See also:
* Kexi For MS Windows: http://kexi.pl/wiki/index.php/Kexi_for_MS_Windows
* Kexi Support:        http://www.kexi-project.org/support.html




More information about the kde-core-devel mailing list