.TH "KJanusWidget" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KJanusWidget \- Easy to use widget with many layouts.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kjanuswidget.h>\fP
.PP
Inherits \fBQWidget\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBFace\fP { \fBTreeList\fP =  0, \fBTabbed\fP, \fBPlain\fP, \fBSwallow\fP, \fBIconList\fP }"
.br
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBsetFocus\fP ()"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBaboutToShowPage\fP (\fBQWidget\fP *page)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKJanusWidget\fP (\fBQWidget\fP *parent=0, const char *name=0, int face=Plain)"
.br
.ti -1c
.RI "\fB~KJanusWidget\fP ()"
.br
.ti -1c
.RI "virtual bool \fBshowPage\fP (int index)"
.br
.ti -1c
.RI "virtual int \fBactivePageIndex\fP () const "
.br
.ti -1c
.RI "virtual bool \fBisValid\fP () const "
.br
.ti -1c
.RI "virtual int \fBface\fP () const "
.br
.ti -1c
.RI "virtual \fBQSize\fP \fBminimumSizeHint\fP () const "
.br
.ti -1c
.RI "virtual \fBQSize\fP \fBsizeHint\fP () const "
.br
.ti -1c
.RI "virtual \fBQFrame\fP * \fBplainPage\fP ()"
.br
.ti -1c
.RI "virtual \fBQFrame\fP * \fBaddPage\fP (const \fBQString\fP &item, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "virtual \fBQFrame\fP * \fBaddPage\fP (const \fBQStringList\fP &items, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "virtual \fBQVBox\fP * \fBaddVBoxPage\fP (const \fBQString\fP &item, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "virtual \fBQVBox\fP * \fBaddVBoxPage\fP (const \fBQStringList\fP &items, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "virtual \fBQHBox\fP * \fBaddHBoxPage\fP (const \fBQString\fP &itemName, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "virtual \fBQHBox\fP * \fBaddHBoxPage\fP (const \fBQStringList\fP &items, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "virtual \fBQGrid\fP * \fBaddGridPage\fP (int n, Orientation dir, const \fBQString\fP &itemName, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "virtual \fBQGrid\fP * \fBaddGridPage\fP (int n, Orientation dir, const \fBQStringList\fP &items, const \fBQString\fP &header=QString::null, const \fBQPixmap\fP &pixmap=\fBQPixmap\fP())"
.br
.ti -1c
.RI "void \fBremovePage\fP (\fBQWidget\fP *page)"
.br
.ti -1c
.RI "virtual int \fBpageIndex\fP (\fBQWidget\fP *widget) const "
.br
.ti -1c
.RI "virtual bool \fBsetSwallowedWidget\fP (\fBQWidget\fP *widget)"
.br
.ti -1c
.RI "virtual void \fBsetTreeListAutoResize\fP (bool state)"
.br
.ti -1c
.RI "virtual void \fBsetShowIconsInTreeList\fP (bool state)"
.br
.ti -1c
.RI "virtual void \fBsetRootIsDecorated\fP (bool state)"
.br
.ti -1c
.RI "void \fBunfoldTreeList\fP (bool persist=false)"
.br
.ti -1c
.RI "void \fBaddWidgetBelowList\fP (\fBQWidget\fP *widget)"
.br
.ti -1c
.RI "void \fBaddButtonBelowList\fP (const \fBQString\fP &text, \fBQObject\fP *recv, const char *slot)"
.br
.ti -1c
.RI "void \fBaddButtonBelowList\fP (const \fBKGuiItem\fP &guiitem, \fBQObject\fP *recv, const char *slot)"
.br
.ti -1c
.RI "virtual void \fBsetIconListAllVisible\fP (bool state)"
.br
.ti -1c
.RI "virtual void \fBsetFolderIcon\fP (const \fBQStringList\fP &path, const \fBQPixmap\fP &pixmap)"
.br
.ti -1c
.RI "\fBQString\fP \fBpageTitle\fP (int index) const "
.br
.ti -1c
.RI "\fBQWidget\fP * \fBpageWidget\fP (int index) const "
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBshowEvent\fP (\fBQShowEvent\fP *)"
.br
.ti -1c
.RI "virtual bool \fBeventFilter\fP (\fBQObject\fP *o, \fBQEvent\fP *e)"
.br
.ti -1c
.RI "bool \fBshowPage\fP (\fBQWidget\fP *w)"
.br
.ti -1c
.RI "void \fBaddPageWidget\fP (\fBQFrame\fP *page, const \fBQStringList\fP &items, const \fBQString\fP &header, const \fBQPixmap\fP &pixmap)"
.br
.ti -1c
.RI "void \fBInsertTreeListItem\fP (const \fBQStringList\fP &items, const \fBQPixmap\fP &pixmap, \fBQFrame\fP *page)"
.br
.ti -1c
.RI "\fBQWidget\fP * \fBFindParent\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Easy to use widget with many layouts. 

Provides a number of ready to use layouts (faces). It is used as an internal widget in \fBKDialogBase\fP, but can also used as a widget of its own.
.PP
This class provides \fBKJanusWidget::TreeList\fP, \fBKJanusWidget::IconList\fP, \fBKJanusWidget::Tabbed\fP, \fBKJanusWidget::Plain\fP and \fBKJanusWidget::Swallow\fP layouts.
.PP
For all modes it is important that you specify the \fBQWidget::minimumSize()\fP on the page, plain widget or the swallowed widget. If you use a \fBQLayout\fP on the page, plain widget or the swallowed widget this will be taken care of automatically. The size is used when the KJanusWidget determines its own minimum size. You get the minimum size by using the \fBminimumSizeHint()\fP or \fBsizeHint()\fP methods.
.PP
Pages that have been added in TreeList, IconList or Tabbed mode can be removed by simply deleting the page. However, it would be preferable to use the \fBQObject::deleteLater()\fP function on the page as the main event loop may have optimized UI update events of the page by scheduling them for later.
.PP
\fBAuthor:\fP
.RS 4
Espen Sand (espen@kde.org) 
.RE
.PP

.PP
Definition at line 67 of file kjanuswidget.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "\fBenum\fP \fBKJanusWidget::Face\fP"
.PP
\fBEnumeration values: \fP
.in +1c
.TP
\fB\fITreeList \fP\fP
The TreeList face provides a list in the left area and pages in the right. 
.PP
The area are separated by a movable splitter. The style is somewhat similar to the layout in the Control Center. A page is raised by selecting the corresponding tree list item. 
.TP
\fB\fITabbed \fP\fP
The Tabbed face is a common tabbed widget. 
.PP
The procedure for creating a page is similar for creating a TreeList. This has the advantage that if your widget contain too many pages it is trivial to convert it into a TreeList. Just change the face in the KJanusWidget constructor to \fBKJanusWidget::TreeList\fP and you have a tree list layout instead. 
.TP
\fB\fIPlain \fP\fP
The Plain face provides an empty widget (\fBQFrame\fP) where you can place your widgets. 
.PP
The KJanusWidget makes no assumptions regarding the contents so you are free to add whatever you want. 
.TP
\fB\fISwallow \fP\fP
The Swallow face is provided in order to simplify the usage of existing widgets and to allow changing the visible widget. 
.PP
You specify the widget to be displayed by \fBsetSwallowedWidget()\fP. Your widget will be reparented inside the widget. You can specify a Null (0) widget. A empty space is then displayed. 
.TP
\fB\fIIconList \fP\fP
The IconList face provides an icon list in the left area and pages in the right. 
.PP
For each entry the Icon is on top with the text below. The style is somewhat similar to the layout of the Eudora configuation dialog box. A page is raised by selecting the corresponding icon list item. The preferred icon size is 32x32 pixels. 
.PP
Definition at line 89 of file kjanuswidget.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KJanusWidget::KJanusWidget (\fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP, int face = \fCPlain\fP)"
.PP
Constructor where you specify the face. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP Parent of the widget. 
.br
\fIname\fP Widget name. 
.br
\fIface\fP The kind of dialog, Use TreeList, Tabbed, Plain or Swallow. 
.RE
.PP

.PP
Definition at line 87 of file kjanuswidget.cpp.
.PP
References aboutToShowPage(), KListView::addColumn(), QListView::header(), IconList, Plain, QWidget::QWidget(), QLabel::setFont(), QFrame::setFrameStyle(), QTabWidget::setMargin(), QListView::setRootIsDecorated(), KListView::setSorting(), setSwallowedWidget(), Swallow, Tabbed, and TreeList.
.SS "KJanusWidget::~\fBKJanusWidget\fP ()"
.PP
Destructor. 
.PP
Definition at line 203 of file kjanuswidget.cpp.
.SH "Member Function Documentation"
.PP 
.SS "bool KJanusWidget::showPage (int index)\fC [virtual]\fP"
.PP
Raises the page which was added by \fBaddPage()\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP The index of the page you want to raise. 
.RE
.PP

.PP
Definition at line 576 of file kjanuswidget.cpp.
.PP
Referenced by KDialogBase::showPage().
.SS "int KJanusWidget::activePageIndex () const\fC [virtual]\fP"
.PP
Returns the index of the page that are currently displayed. 
.PP
\fBReturns:\fP
.RS 4
The index or -1 if the face is not Tabbed, TreeList or IconList. 
.RE
.PP

.PP
Definition at line 642 of file kjanuswidget.cpp.
.PP
References QTabWidget::currentPage(), IconList, QListView::selectedItem(), Tabbed, and TreeList.
.PP
Referenced by KDialogBase::activePageIndex().
.SS "bool KJanusWidget::isValid () const\fC [virtual]\fP"
.PP
Use this to verify that no memory allocation failed. 
.PP
\fBReturns:\fP
.RS 4
true if the widget was properly created. 
.RE
.PP

.PP
Definition at line 209 of file kjanuswidget.cpp.
.PP
Referenced by KDialogBase::KDialogBase().
.SS "int KJanusWidget::face () const\fC [virtual]\fP"
.PP
Returns the face type. 
.PP
\fBReturns:\fP
.RS 4
The face type. 
.RE
.PP

.PP
Definition at line 221 of file kjanuswidget.cpp.
.SS "\fBQSize\fP KJanusWidget::minimumSizeHint () const\fC [virtual]\fP"
.PP
Returns the minimum size that must be made available for the widget so that UIs can be displayed properly. 
.PP
\fBReturns:\fP
.RS 4
The minimum size. 
.RE
.PP

.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 751 of file kjanuswidget.cpp.
.PP
References QSize::height(), IconList, QWidget::minimumSize(), Plain, QSize::rheight(), QSize::rwidth(), QWidget::style(), Swallow, Tabbed, TreeList, and QSize::width().
.PP
Referenced by sizeHint().
.SS "\fBQSize\fP KJanusWidget::sizeHint () const\fC [virtual]\fP"
.PP
Returns the recommended size for the widget in order to be displayed properly. 
.PP
\fBReturns:\fP
.RS 4
The recommended size. 
.RE
.PP

.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 806 of file kjanuswidget.cpp.
.PP
References minimumSizeHint().
.SS "\fBQFrame\fP * KJanusWidget::plainPage ()\fC [virtual]\fP"
.PP
Returns the empty widget that is available in Plain mode. 
.PP
\fBReturns:\fP
.RS 4
The widget or 0 if the face in not Plain. 
.RE
.PP

.PP
Definition at line 215 of file kjanuswidget.cpp.
.PP
Referenced by KDialogBase::plainPage().
.SS "\fBQFrame\fP * KJanusWidget::addPage (const \fBQString\fP & item, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)\fC [virtual]\fP"
.PP
Add a new page when the class is used in TreeList, IconList or Tabbed mode. 
.PP
The returned widget is empty and you must add your widgets as children to this widget. In most cases you must create a layout manager and associate it with this widget as well.
.PP
Deleting the returned frame will cause the listitem or tab to be removed (you can re-add a page with the same name later.
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP String used in the list or Tab item. 
.br
\fIheader\fP A longer string used in TreeList and IconList mode to describe the contents of a page. If empty, the item string will be used instead. 
.br
\fIpixmap\fP Used in IconList mode or in TreeList mode. You should prefer a pixmap with size 32x32 pixels.
.RE
.PP
\fBReturns:\fP
.RS 4
The empty page or 0 if the face is not TreeList, IconList or Tabbed. 
.RE
.PP

.PP
Definition at line 262 of file kjanuswidget.cpp.
.PP
Referenced by KDialogBase::addPage().
.SS "\fBQFrame\fP * KJanusWidget::addPage (const \fBQStringList\fP & items, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)\fC [virtual]\fP"
.PP
This is like addPage just above, with the difference that the first element is a list of strings. 
.PP
These strings are used to form a path of folders down to the given page. The initial elements are names for the folders, while the last element is the name of the page. Note: This does yet only work for the TreeList face. Later this may be added for the IconList face too. In other faces than the TreeList, all the strings except the last one is ignored. Deleting the returned frame will cause the listitem or tab to be removed (you can re-add a page with the same name later.
.PP
Deleting the returned frame will cause the listitem or tab to be removed (you can re-add a page with the same name later. 
.PP
Definition at line 236 of file kjanuswidget.cpp.
.PP
References endl(), and kdDebug().
.SS "\fBQVBox\fP * KJanusWidget::addVBoxPage (const \fBQString\fP & item, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)\fC [virtual]\fP"
.PP
Add a new page when the class is used in TreeList, IconList or Tabbed mode. 
.PP
The returned widget is empty and you must add your widgets as children to this widget. The returned widget is a \fBQVBox\fP so it contains a \fBQVBoxLayout\fP layout that lines up the child widgets are vertically.
.PP
Deleting the returned frame will cause the listitem or tab to be removed (you can re-add a page with the same name later.
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP String used in the list or Tab item. 
.br
\fIheader\fP A longer string used in TreeList and IconList mode to describe the contents of a page. If empty, the item string will be used instead. 
.br
\fIpixmap\fP Used in IconList mode or in TreeList mode. You should prefer a pixmap with size 32x32 pixels.
.RE
.PP
\fBReturns:\fP
.RS 4
The empty page or 0 if the face is not TreeList, IconList or Tabbed. 
.RE
.PP

.PP
Definition at line 289 of file kjanuswidget.cpp.
.PP
Referenced by KDialogBase::addVBoxPage().
.SS "\fBQVBox\fP * KJanusWidget::addVBoxPage (const \fBQStringList\fP & items, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)\fC [virtual]\fP"
.PP
This is like addVBoxPage just above, with the difference that the first element is a list of strings. 
.PP
These strings are used to form a path of folders down to the given page. The initial elements are names for the folders, while the last element is the name of the page. Note: This does yet only work for the TreeList face. Later this may be added for the IconList face too. In other faces than the TreeList, all the strings except the last one is ignored.
.PP
Deleting the returned frame will cause the listitem or tab to be removed (you can re-add a page with the same name later. 
.PP
Definition at line 272 of file kjanuswidget.cpp.
.PP
References endl(), and kdDebug().
.SS "\fBQHBox\fP * KJanusWidget::addHBoxPage (const \fBQString\fP & itemName, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)\fC [virtual]\fP"
.PP
Add a new page when the class is used in TreeList, IconList or Tabbed mode. 
.PP
The returned widget is empty and you must add your widgets as children to this widget. The returned widget is a \fBQHBox\fP so it contains a \fBQHBoxLayout\fP layout that lines up the child widgets are horizontally.
.PP
Deleting the returned frame will cause the listitem or tab to be removed (you can re-add a page with the same name later.
.PP
\fBParameters:\fP
.RS 4
\fIitemName\fP String used in the list or Tab item. 
.br
\fIheader\fP A longer string used in TreeList and IconList mode to describe the contents of a page. If empty, the item string will be used instead. 
.br
\fIpixmap\fP Used in IconList mode or in TreeList mode. You should prefer a pixmap with size 32x32 pixels.
.RE
.PP
\fBReturns:\fP
.RS 4
The empty page or 0 if the face is not TreeList, IconList or Tabbed. 
.RE
.PP

.PP
Definition at line 314 of file kjanuswidget.cpp.
.PP
Referenced by KDialogBase::addHBoxPage().
.SS "\fBQHBox\fP * KJanusWidget::addHBoxPage (const \fBQStringList\fP & items, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)\fC [virtual]\fP"
.PP
This is like addHBoxPage just above, with the difference that the first element is a list of strings. 
.PP
These strings are used to form a path of folders down to the given page. The initial elements are names for the folders, while the last element is the name of the page. Note: This does yet only work for the TreeList face. Later this may be added for the IconList face too. In other faces than the TreeList, all the strings except the last one is ignored.
.PP
Deleting the returned frame will cause the listitem or tab to be removed (you can re-add a page with the same name later. 
.PP
Definition at line 298 of file kjanuswidget.cpp.
.PP
References endl(), kdDebug(), and QHBox::setSpacing().
.SS "\fBQGrid\fP * KJanusWidget::addGridPage (int n, Orientation dir, const \fBQString\fP & itemName, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)\fC [virtual]\fP"
.PP
Add a new page when the class is used in either TreeList or Tabbed mode. 
.PP
The returned widget is empty and you must add your widgets as children to this widget. The returned widget is a \fBQGrid\fP so it contains a \fBQGridLayout\fP layout that places up the child widgets in a grid.
.PP
Deleting the returned frame will cause the listitem or tab to be removed (you can re-add a page with the same name later.
.PP
\fBParameters:\fP
.RS 4
\fIn\fP Specifies the number of columns if 'dir' is QGrid::Horizontal or the number of rows if 'dir' is QGrid::Vertical. 
.br
\fIdir\fP Can be QGrid::Horizontal or QGrid::Vertical. 
.br
\fIitemName\fP String used in the list or Tab item. 
.br
\fIheader\fP A longer string used in TreeList and IconList mode to describe the contents of a page. If empty, the item string will be used instead. 
.br
\fIpixmap\fP Used in IconList mode or in TreeList mode. You should prefer a pixmap with size 32x32 pixels.
.RE
.PP
\fBReturns:\fP
.RS 4
The empty page or 0 if the face is not TreeList, IconList or Tabbed. 
.RE
.PP

.PP
Definition at line 342 of file kjanuswidget.cpp.
.PP
Referenced by KDialogBase::addGridPage().
.SS "\fBQGrid\fP * KJanusWidget::addGridPage (int n, Orientation dir, const \fBQStringList\fP & items, const \fBQString\fP & header = \fCQString::null\fP, const \fBQPixmap\fP & pixmap = \fC\fBQPixmap\fP()\fP)\fC [virtual]\fP"
.PP
This is like addGridPage just above, with the difference that the first element is a list of strings. 
.PP
These strings are used to form a path of folders down to the given page. The initial elements are names for the folders, while the last element is the name of the page. Note: This does yet only work for the TreeList face. Later this may be added for the IconList face too. In other faces than the TreeList, all the strings except the last one is ignored.
.PP
Deleting the returned frame will cause the listitem or tab to be removed (you can re-add a page with the same name later. 
.PP
Definition at line 323 of file kjanuswidget.cpp.
.PP
References endl(), kdDebug(), and QGrid::setSpacing().
.SS "void KJanusWidget::removePage (\fBQWidget\fP * page)"
.PP
Removes a page created with addPage, addVBoxPage, addHBoxPage or addGridPage. If the page has already been deleted or has already been removed, nothing happens. The widget itself is not deleted. 
.PP
\fBParameters:\fP
.RS 4
\fIpage\fP The widget returned by addPage , addVBoxPage , addHBoxPage or addGridPage . 
.RE
.PP

.PP
Definition at line 1088 of file kjanuswidget.cpp.
.PP
References QMap::begin(), QMap::end(), IconList, QMap::remove(), QTabWidget::removePage(), QWidgetStack::removeWidget(), and TreeList.
.SS "int KJanusWidget::pageIndex (\fBQWidget\fP * widget) const\fC [virtual]\fP"
.PP
Returns the index of a page created with addPage , addVBoxPage , addHBoxPage or addGridPage . 
.PP
You can can compare this index with the value returned from activePageIndex if you need to do some page specific actions in your code.
.PP
The returned index will never change so you can safely use this function once and save the value.
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP The widget returned by addPage , addVBoxPage , addHBoxPage or addGridPage .
.RE
.PP
\fBReturns:\fP
.RS 4
The index or -1 if the face is not Tabbed, TreeList or IconList 
.RE
.PP

.PP
Definition at line 666 of file kjanuswidget.cpp.
.PP
References IconList, Tabbed, and TreeList.
.PP
Referenced by KDialogBase::pageIndex().
.SS "bool KJanusWidget::setSwallowedWidget (\fBQWidget\fP * widget)\fC [virtual]\fP"
.PP
Defines the widget to be swallowed. 
.PP
This method can be used several times. Only the latest defined widget will be shown.
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP The widget to be swallowed. If 0, then an empty rectangle is displayed. 
.RE
.PP

.PP
Definition at line 497 of file kjanuswidget.cpp.
.PP
References QGridLayout::addWidget(), QObject::isWidgetType(), QWidget::layout(), QWidget::reparent(), QWidget::setMinimumSize(), and Swallow.
.PP
Referenced by KJanusWidget(), and KDialogBase::setMainWidget().
.SS "void KJanusWidget::setTreeListAutoResize (bool state)\fC [virtual]\fP"
.PP
This function has only effect in TreeList mode. 
.PP
Defines how the tree list is resized when the widget is resized horizontally. By default the tree list keeps its width when the widget becomes wider.
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP The resize mode. If false (default) the TreeList keeps its current width when the widget becomes wider. 
.RE
.PP

.PP
Definition at line 812 of file kjanuswidget.cpp.
.PP
References TreeList.
.PP
Referenced by KDialogBase::setTreeListAutoResize().
.SS "void KJanusWidget::setShowIconsInTreeList (bool state)\fC [virtual]\fP"
.PP
This function has only effect in TreeList mode. 
.PP
This tells the widgets whether the icons given in the addPage, addVBoxPage, addHBoxPage, or addGridPage methods should be shown in the TreeList.
.PP
Note: This method must be called before calling any of the methods which add icons to the page.
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP If true the icons are shown. 
.RE
.PP

.PP
Definition at line 832 of file kjanuswidget.cpp.
.PP
Referenced by KDialogBase::setShowIconsInTreeList().
.SS "void KJanusWidget::setRootIsDecorated (bool state)\fC [virtual]\fP"
.PP
This function has only effect in TreeList mode. 
.PP
This tells the widgets whether the root should be decorated. For details see \fBQListView::setRootIsDecorated\fP
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP Root will be decorated if true. 
.RE
.PP

.PP
Definition at line 837 of file kjanuswidget.cpp.
.PP
References QListView::setRootIsDecorated(), and TreeList.
.PP
Referenced by KDialogBase::setRootIsDecorated().
.SS "void KJanusWidget::unfoldTreeList (bool persist = \fCfalse\fP)"
.PP
This function has only effect in TreeList mode. 
.PP
This tells the TreeList to unfold the whole tree so that all entries are visible.
.PP
If the list is empty when you call this method newly created entries will not automatically be opened. If the \fCpersist\fP flag is set opened entries cannot be closed again, though.
.PP
\fBParameters:\fP
.RS 4
\fIpersist\fP If true the tree always stays unfolded. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 844 of file kjanuswidget.cpp.
.PP
References QListView::firstChild(), QListViewItem::itemBelow(), QListViewItem::setOpen(), and TreeList.
.PP
Referenced by KDialogBase::unfoldTreeList().
.SS "void KJanusWidget::addWidgetBelowList (\fBQWidget\fP * widget)"
.PP
Add a widget at the bottom of the TreeList/IconList. 
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP The widget to be added. It will be reparented into the KJanusWidget, therefor it will be deleted with the KJanusWidget, too. To be on the save side just don't keep the pointer to this widget. 
.RE
.PP

.PP
Definition at line 858 of file kjanuswidget.cpp.
.PP
References IconList, and TreeList.
.PP
Referenced by KDialogBase::addWidgetBelowList().
.SS "void KJanusWidget::addButtonBelowList (const \fBQString\fP & text, \fBQObject\fP * recv, const char * slot)"
.PP
Add a button at the bottom of the TreeList/IconList. 
.PP
\fBParameters:\fP
.RS 4
\fItext\fP The text on the PushButton. 
.br
\fIrecv\fP The object that is to receive the signal when the button is clicked. 
.br
\fIslot\fP The slot to connect to the clicked signal of the button.
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 866 of file kjanuswidget.cpp.
.PP
References IconList, and TreeList.
.PP
Referenced by KDialogBase::addButtonBelowList().
.SS "void KJanusWidget::addButtonBelowList (const \fBKGuiItem\fP & guiitem, \fBQObject\fP * recv, const char * slot)"
.PP
The same as the above function, but with a \fBKGuiItem\fP providing the text and icon for the button at the bottom of the TreeList/IconList. 
.PP
\fBParameters:\fP
.RS 4
\fIguiitem\fP The text and icon on the PushButton. 
.br
\fIrecv\fP The object that is to receive the signal when the button is clicked. 
.br
\fIslot\fP The slot to connect to the clicked signal of the button.
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 875 of file kjanuswidget.cpp.
.PP
References IconList, and TreeList.
.SS "void KJanusWidget::setIconListAllVisible (bool state)\fC [virtual]\fP"
.PP
This function has only effect in IconList mode. 
.PP
Defines how the icon list widget is displayed. By default it is the widgets in the pages that decide the minimum height of the toplevel widget. A vertical scrollbar can be used in the icon list area.
.PP
\fBParameters:\fP
.RS 4
\fIstate\fP The visibility mode. If true, the minimum height is adjusted so that every icon in the list is visible at the same time. The vertical scrollbar will never be visible. 
.RE
.PP

.PP
Definition at line 824 of file kjanuswidget.cpp.
.PP
References IconList.
.PP
Referenced by KDialogBase::setIconListAllVisible().
.SS "void KJanusWidget::setFolderIcon (const \fBQStringList\fP & path, const \fBQPixmap\fP & pixmap)\fC [virtual]\fP"
.PP
Sets the icon used in TreeList Mode for the given path. 
.PP
\fBParameters:\fP
.RS 4
\fIpath\fP The path for which this icon should be shown. 
.br
\fIpixmap\fP The icon used. 
.RE
.PP

.PP
Definition at line 489 of file kjanuswidget.cpp.
.PP
References QMap::insert().
.PP
Referenced by KDialogBase::setFolderIcon().
.SS "\fBQString\fP KJanusWidget::pageTitle (int index) const"
.PP
Returns the title string associated with a page index in TreeList or IconList mode. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP The index of the page or null if there is no such page. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBpageIndex()\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 1133 of file kjanuswidget.cpp.
.SS "\fBQWidget\fP * KJanusWidget::pageWidget (int index) const"
.PP
Returns the page widget associated with a page index or null if there is no such page. 
.PP
\fBParameters:\fP
.RS 4
\fIindex\fP The index of the page. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBpageIndex()\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 1141 of file kjanuswidget.cpp.
.SS "void KJanusWidget::aboutToShowPage (\fBQWidget\fP * page)\fC [signal]\fP"
.PP
This signal is emitted whenever the current page changes. 
.PP
\fBParameters:\fP
.RS 4
\fIpage\fP the new page. 
.RE
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Referenced by KJanusWidget().
.SS "void KJanusWidget::setFocus ()\fC [virtual, slot]\fP"
.PP
Give the keyboard input focus to the widget. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 725 of file kjanuswidget.cpp.
.PP
References IconList, Plain, QWidget::setFocus(), Swallow, Tabbed, and TreeList.
.SS "void KJanusWidget::showEvent (\fBQShowEvent\fP *)\fC [protected, virtual]\fP"
.PP
Reimplemented to handle the splitter width when the the face is TreeList. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 884 of file kjanuswidget.cpp.
.PP
References TreeList.
.SS "bool KJanusWidget::eventFilter (\fBQObject\fP * o, \fBQEvent\fP * e)\fC [protected, virtual]\fP"
.PP
This function is used internally when in IconList mode. 
.PP
If you reimplement this class a make your own event filter, make sure to call this function from your filter.
.PP
\fBParameters:\fP
.RS 4
\fIo\fP Object that has received an event. 
.br
\fIe\fP The event. 
.RE
.PP

.PP
Definition at line 899 of file kjanuswidget.cpp.
.PP
References QListViewItem::width().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
