From kde-devel Tue Nov 05 21:32:03 2002 From: "Troy Corbin Jr." Date: Tue, 05 Nov 2002 21:32:03 +0000 To: kde-devel Subject: Re: Tab-Close button like in mozilla X-MARC-Message: https://marc.info/?l=kde-devel&m=103653193709249 On Tuesday 05 November 2002 01:13 pm, Zack Rusin wrote: > On Tuesday 05 November 2002 10:34, Stephan Binner wrote: > > On Tuesday 05 November 2002 15:56, Willi Richert wrote: > > > is it planned to add such a nice x-Button at the right side of the > > > tab button line like in mozilla, which closes the current tab > > > window? > > > > Don't think so, but rather a close button on every tab. > > Both approaches are impossible with QTabWidget. > > > > If not I would code that. Feedback? > > > > Doug Hanley and Zack Rusin IIRC wanted to work on this too. Work > > together. > > I'll be working on it after we release 3.1, I simply have too many > things to do to even play with it before that. The idea is that we will > have to create a completely new tabbar widget. QTab, QTabBar and > QTabWidget are useless for us. I've been working on a similar widget set, though it does use the current= =20 QTabWidget: http://knights.sourceforge.net/shots/ss06.jpg It uses the 'Close' icon from the user's selected icon set for a consiste= nt=20 look. It also includes a "Grip" which the user can drag to organize the t= abs=20 into different top-level window. ( ie. Dragging a tab onto another tab wi= ll=20 cause it to move to the destination's QTabWidget, while dragging it anywh= ere=20 else will create a new top-level window w/ QTabWidget for it to be attach= ed=20 to. ) The TabManager class is used to organize everything, and it saves t= he=20 widget's geometry on close. It is far from complete, but if anyone is interested in using it, you can= find=20 it in my project's CVS under the following files: tabmanager.* tabbox.* tabpage.* tabgrip.* --=20 Troy Corbin Jr. tcorbin@users.sf.net http://knights.sf.net >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<