org.kde.koala
public class KJanusWidget extends QWidget
UNKNOWN: Easy to use widget with many layouts.
Field Summary | |
---|---|
static int | IconList |
static int | Plain |
static int | Swallow |
static int | Tabbed |
static int | TreeList |
Constructor Summary | |
---|---|
protected | KJanusWidget(Class dummy) |
KJanusWidget(QWidget parent, String name, int face)
Constructor where you specify the face. | |
KJanusWidget(QWidget parent, String name) | |
KJanusWidget(QWidget parent) | |
KJanusWidget() |
Method Summary | |
---|---|
int | activePageIndex()
Returns the index of the page that are currently displayed. |
void | addButtonBelowList(String text, QObject recv, String slot)
Add a button at the bottom of the TreeList/IconList. |
void | addButtonBelowList(KGuiItem guiitem, QObject recv, String slot)
The same as the above function, but with a KGuiItem providing the text
and icon for the button at the bottom of the TreeList/IconList. |
QGrid | addGridPage(int n, int dir, String itemName, String header, QPixmap pixmap)
Add a new page when the class is used in either TreeList or Tabbed
mode. |
QGrid | addGridPage(int n, int dir, String itemName, String header) |
QGrid | addGridPage(int n, int dir, String itemName) |
QGrid | addGridPage(int n, int dir, String[] items, String header, QPixmap pixmap)
This is like addGridPage just above, with the difference that the first
element is a list of strings. |
QGrid | addGridPage(int n, int dir, String[] items, String header) |
QGrid | addGridPage(int n, int dir, String[] items) |
QHBox | addHBoxPage(String itemName, String header, QPixmap pixmap)
Add a new page when the class is used in TreeList, IconList or Tabbed
mode. |
QHBox | addHBoxPage(String itemName, String header) |
QHBox | addHBoxPage(String itemName) |
QHBox | addHBoxPage(String[] items, String header, QPixmap pixmap)
This is like addHBoxPage just above, with the difference that the first
element is a list of strings. |
QHBox | addHBoxPage(String[] items, String header) |
QHBox | addHBoxPage(String[] items) |
QFrame | addPage(String item, String header, QPixmap pixmap)
Add a new page when the class is used in TreeList, IconList or Tabbed
mode. |
QFrame | addPage(String item, String header) |
QFrame | addPage(String item) |
QFrame | addPage(String[] items, String header, QPixmap pixmap)
This is like addPage just above, with the difference that the first
element is a list of strings. |
QFrame | addPage(String[] items, String header) |
QFrame | addPage(String[] items) |
protected void | addPageWidget(QFrame page, String[] items, String header, QPixmap pixmap) |
QVBox | addVBoxPage(String item, String header, QPixmap pixmap)
Add a new page when the class is used in TreeList, IconList or Tabbed
mode. |
QVBox | addVBoxPage(String item, String header) |
QVBox | addVBoxPage(String item) |
QVBox | addVBoxPage(String[] items, String header, QPixmap pixmap)
This is like addVBoxPage just above, with the difference that the first
element is a list of strings. |
QVBox | addVBoxPage(String[] items, String header) |
QVBox | addVBoxPage(String[] items) |
void | addWidgetBelowList(QWidget widget)
Add a widget at the bottom of the TreeList/IconList. |
String | className() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
boolean | eventFilter(QObject o, QEvent e)
This function is used internally when in IconList mode. |
int | face()
Returns the face type. |
protected void | finalize() Deletes the wrapped C++ instance |
protected QWidget | FindParent() |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isValid()
Use this to verify
that no memory allocation failed. |
protected void | InsertTreeListItem(String[] items, QPixmap pixmap, QFrame page) |
QMetaObject | metaObject() |
QSize | minimumSizeHint()
Returns the minimum size that must be made available for the widget
so that UIs can be displayed properly |
int | pageIndex(QWidget widget)
Returns the index of a page created with addPage ,
addVBoxPage , addHBoxPage or addGridPage .
|
String | pageTitle(int index)
Returns the title string associated with a page index in TreeList or IconList mode. |
QWidget | pageWidget(int index)
Returns the page widget associated with a page index or null if there is
no such page. |
QFrame | plainPage()
Returns the empty widget that is available in Plain mode. |
void | removePage(QWidget page) |
void | setFocus()
Give the keyboard input focus to the widget. |
void | setFolderIcon(String[] path, QPixmap pixmap)
Sets the icon used in TreeList Mode for the given path. |
void | setIconListAllVisible(boolean state)
This function has only effect in IconList mode.
|
void | setRootIsDecorated(boolean state)
This function has only effect in TreeList mode.
|
void | setShowIconsInTreeList(boolean state)
This function has only effect in TreeList mode.
|
boolean | setSwallowedWidget(QWidget widget)
Defines the widget to be swallowed.
|
void | setTreeListAutoResize(boolean state)
This function has only effect in TreeList mode.
|
void | showEvent(QShowEvent arg1)
Reimplemented to handle the splitter width when the the face
is TreeList |
boolean | showPage(int index)
Raises the page which was added by addPage(). |
protected boolean | showPage(QWidget w) |
QSize | sizeHint()
Returns the recommended size for the widget in order to be displayed
properly. |
void | unfoldTreeList(boolean persist)
This function has only effect in TreeList mode.
|
void | unfoldTreeList() |
Parameters: parent Parent of the widget. name Widget name. face The kind of dialog, Use TreeList, Tabbed, Plain or Swallow.
UNKNOWN: Constructor where you specify the face.
Returns: The index or -1 if the face is not Tabbed, TreeList or IconList.
UNKNOWN: Returns the index of the page that are currently displayed.
Parameters: text The text on the PushButton. recv The object that is to receive the signal when the button is clicked. slot The slot to connect to the clicked signal of the button.
UNKNOWN: Add a button at the bottom of the TreeList/IconList.
Parameters: guiitem The text and icon on the PushButton. recv The object that is to receive the signal when the button is clicked. slot The slot to connect to the clicked signal of the button.
UNKNOWN: The same as the above function, but with a KGuiItem providing the text and icon for the button at the bottom of the TreeList/IconList.
Parameters: n Specifies the number of columns if 'dir' is QGrid.Horizontal or the number of rows if 'dir' is QGrid.Vertical. dir Can be QGrid.Horizontal or QGrid.Vertical. itemName String used in the list or Tab item. header 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. pixmap Used in IconList mode or in TreeList mode. You should prefer a pixmap with size 32x32 pixels.
Returns: The empty page or 0 if the face is not TreeList, IconList or Tabbed.
UNKNOWN: Add a new page when the class is used in either TreeList or Tabbed mode.
UNKNOWN: This is like addGridPage just above, with the difference that the first element is a list of strings.
Parameters: itemName String used in the list or Tab item. header 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. pixmap Used in IconList mode or in TreeList mode. You should prefer a pixmap with size 32x32 pixels.
Returns: The empty page or 0 if the face is not TreeList, IconList or Tabbed.
UNKNOWN: Add a new page when the class is used in TreeList, IconList or Tabbed mode.
UNKNOWN: This is like addHBoxPage just above, with the difference that the first element is a list of strings.
Parameters: item String used in the list or Tab item. header 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. pixmap Used in IconList mode or in TreeList mode. You should prefer a pixmap with size 32x32 pixels.
Returns: The empty page or 0 if the face is not TreeList, IconList or Tabbed.
UNKNOWN: Add a new page when the class is used in TreeList, IconList or Tabbed mode.
UNKNOWN: This is like addPage just above, with the difference that the first element is a list of strings.
Parameters: item String used in the list or Tab item. header 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. pixmap Used in IconList mode or in TreeList mode. You should prefer a pixmap with size 32x32 pixels.
Returns: The empty page or 0 if the face is not TreeList, IconList or Tabbed.
UNKNOWN: Add a new page when the class is used in TreeList, IconList or Tabbed mode.
UNKNOWN: This is like addVBoxPage just above, with the difference that the first element is a list of strings.
Parameters: widget 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.
UNKNOWN: Add a widget at the bottom of the TreeList/IconList.
Parameters: o Object that has received an event. e The event.
UNKNOWN: This function is used internally when in IconList mode.
Returns: The face type.
UNKNOWN: Returns the face type.
Returns: true if the widget was properly created.
UNKNOWN: Use this to verify that no memory allocation failed.
Returns: The minimum size.
UNKNOWN: Returns the minimum size that must be made available for the widget so that UIs can be displayed properly
Parameters: widget The widget returned by addPage , addVBoxPage , addHBoxPage or addGridPage .
Returns: The index or -1 if the face is not Tabbed, TreeList or IconList
UNKNOWN: Returns the index of a page created with addPage , addVBoxPage , addHBoxPage or addGridPage .
Parameters: index The index of the page or null if there is no such page.
See Also: KJanusWidget
UNKNOWN: Returns the title string associated with a page index in TreeList or IconList mode.
Parameters: index The index of the page.
See Also: KJanusWidget
UNKNOWN: Returns the page widget associated with a page index or null if there is no such page.
Returns: The widget or 0 if the face in not Plain.
UNKNOWN: Returns the empty widget that is available in Plain mode.
Parameters: page The widget returned by addPage , addVBoxPage , addHBoxPage or addGridPage .
UNKNOWN: 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.
UNKNOWN: Give the keyboard input focus to the widget.
Parameters: path The path for which this icon should be shown. pixmap The icon used.
UNKNOWN: Sets the icon used in TreeList Mode for the given path.
Parameters: state 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.
UNKNOWN: This function has only effect in IconList mode.
Parameters: state Root will be decorated if true.
UNKNOWN: This function has only effect in TreeList mode.
Parameters: state If true the icons are shown.
UNKNOWN: This function has only effect in TreeList mode.
Parameters: widget The widget to be swallowed. If 0, then an empty rectangle is displayed.
UNKNOWN: Defines the widget to be swallowed.
Parameters: state The resize mode. If false (default) the TreeList keeps its current width when the widget becomes wider.
UNKNOWN: This function has only effect in TreeList mode.
UNKNOWN: Reimplemented to handle the splitter width when the the face is TreeList
Parameters: index The index of the page you want to raise.
UNKNOWN: Raises the page which was added by addPage().
Returns: The recommended size.
UNKNOWN: Returns the recommended size for the widget in order to be displayed properly.
persist
flag is set opened
entries cannot be closed again, though.Parameters: persist If true the tree always stays unfolded.
UNKNOWN: This function has only effect in TreeList mode.