discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RFC: NSTabView, NSTabViewItem patches


From: Michael Hanni
Subject: RFC: NSTabView, NSTabViewItem patches
Date: Sat, 26 Apr 2003 14:49:16 -0700 (PDT)

Hi,

With the help of Jeff Teunissen I've rolled together some patches for
NSTabView/Item which, I believe, are a good step forward. The patches are
somewhat rough, but I want to get comments so I can make this work for
everyone. Some of the improvements:

1.) Tabs drawn with PS code! (Thanks Jeff!)
2.) content view added (makes things like the content rect and resizing more
palatable.)
3.) tab label drawing no longer deals with the background of the label (this is
in keeping with recent MacOS-X changes.)
4.) tab label text is centered.
5.) tabs are uniform in size (think: tab'ed manilla folders.)
6.) tabs are drawn to what your control colors are set to. (color theme
friendly?)

Things TODO:

   1.) sizing is still a little weird. is -sizeToFit the right idea or should
       everything be sized in addSubview:?
   2.) more tabs than space. (this will be interesting)
   3.) tab drawing functions should be methods so you can subclass and
       customize. (easy)
   4.) add some PSrotates so we can draw the tabs on different edges. (should
be  
       easy)
   5.) smooth out the tab drawing (I screwed up some of Deek's code here.)
   6.) background tab font color is really too dark?

Apps this has been tested to some extent with: Gorm, TalkSoup, nstabview.app
(in Old/ testing).

This is *not* perfect, so I'd love constructive comments! :-)

Patches:
http://deviant-behavior.com/tabview.v2.diff
http://deviant-behavior.com/tabview.h.v2.diff

Boring screenshot:
http://deviant-behavior.com/new-tabs.png

Cheers,

Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]