77 IconListBox( TQWidget *parent=0,
const char *name=0, WFlags f=0 );
78 void updateMinimumHeight();
80 void invalidateHeight();
81 void invalidateWidth();
82 void setShowAll(
bool showAll );
85 void slotOnItem( TQListBoxItem *item );
86 virtual void leaveEvent( TQEvent * );
92 TQListBoxItem *mOldItem;
146 KJanusWidget( TQWidget *parent=0,
const char *name=0,
int face=Plain );
158 virtual bool showPage(
int index );
166 virtual int activePageIndex()
const;
174 virtual bool isValid()
const;
181 virtual int face()
const;
189 virtual TQSize minimumSizeHint()
const;
197 virtual TQSize sizeHint()
const;
204 virtual TQFrame *plainPage();
225 virtual TQFrame *addPage(
const TQString &item,
const TQString &header=TQString::null,
226 const TQPixmap &pixmap=TQPixmap() );
242 virtual TQFrame *addPage(
const TQStringList &items,
const TQString &header=TQString::null,
243 const TQPixmap &pixmap=TQPixmap() );
264 virtual TQVBox *addVBoxPage(
const TQString &item,
265 const TQString &header=TQString::null,
266 const TQPixmap &pixmap=TQPixmap() );
280 virtual TQVBox *addVBoxPage(
const TQStringList &items,
281 const TQString &header=TQString::null,
282 const TQPixmap &pixmap=TQPixmap() );
304 virtual TQHBox *addHBoxPage(
const TQString &itemName,
305 const TQString &header=TQString::null,
306 const TQPixmap &pixmap=TQPixmap() );
320 virtual TQHBox *addHBoxPage(
const TQStringList &items,
321 const TQString &header=TQString::null,
322 const TQPixmap &pixmap=TQPixmap() );
347 virtual TQGrid *addGridPage(
int n, Orientation dir,
348 const TQString &itemName,
349 const TQString &header=TQString::null,
350 const TQPixmap &pixmap=TQPixmap() );
364 virtual TQGrid *addGridPage(
int n, Orientation dir,
365 const TQStringList &items,
366 const TQString &header=TQString::null,
367 const TQPixmap &pixmap=TQPixmap() );
378 void removePage( TQWidget *page );
397 virtual int pageIndex( TQWidget *widget )
const;
408 virtual bool setSwallowedWidget( TQWidget *widget );
420 virtual void setTreeListAutoResize(
bool state );
434 virtual void setShowIconsInTreeList(
bool state);
444 virtual void setRootIsDecorated(
bool state );
459 void unfoldTreeList(
bool persist =
false );
469 void addWidgetBelowList( TQWidget * widget );
481 void addButtonBelowList(
const TQString & text, TQObject * recv,
495 void addButtonBelowList(
const KGuiItem & guiitem, TQObject *
496 recv,
const char * slot );
510 virtual void setIconListAllVisible(
bool state );
517 virtual void setFolderIcon(
const TQStringList &path,
const TQPixmap &pixmap);
524 TQString pageTitle(
int index)
const;
532 TQWidget *pageWidget(
int index)
const;
546 virtual void setFocus();
553 virtual void showEvent( TQShowEvent * );
563 virtual bool eventFilter( TQObject *o, TQEvent *e );
567 void slotFontChanged();
569 void slotOnItem(TQListBoxItem *item);
570 void slotItemClicked(TQListViewItem *it);
571 void pageGone(TQObject *obj);
572 void slotReopen(TQListViewItem *item);
575 bool showPage( TQWidget *w );
576 void addPageWidget( TQFrame *page,
const TQStringList &items,
577 const TQString &header,
const TQPixmap &pixmap );
578 void InsertTreeListItem(
const TQStringList &items,
const TQPixmap &pixmap, TQFrame *page);
579 TQWidget *FindParent();
585 TQPtrList<TQWidget> *mPageList;
586 TQStringList *mTitleList;
590 IconListBox *mIconList;
591 TQWidgetStack *mPageStack;
592 TQLabel *mTitleLabel;
593 TQTabWidget *mTabControl;
595 TQWidget *mSwallowPage;
596 TQWidget *mActivePageWidget;
598 TQSplitter::ResizeMode mTreeListResizeMode;
599 bool mShowIconsInTreeList;
600 TQMap<TQListViewItem *, TQWidget *> mTreeListToPageStack;
601 TQMap<TQListBoxItem *, TQWidget *> mIconListToPageStack;
602 TQMap<TQString, TQPixmap> mFolderIconMap;
603 TQMap<TQString, TQStringList> mChildrenNames;
604 TQMap<TQString, TQWidget *> mChildPages;
609 virtual void virtual_hook(
int id,
void* data );
611 class KJanusWidgetPrivate;
612 KJanusWidgetPrivate *d;