Definition at line 38 of file YQTree.h.
YQTree::YQTree |
( |
YWidget * |
parent, |
|
|
const std::string & |
label, |
|
|
bool |
multiSelection, |
|
|
bool |
recursiveSelection |
|
) |
| |
void YQTree::buildDisplayTree |
( |
YQTreeItem * |
parentItem, |
|
|
YItemIterator |
begin, |
|
|
YItemIterator |
end |
|
) |
| |
|
protected |
Build a tree of items that will be displayed (YQTreeItems) from the original items between iterators 'begin' and 'end' as child items of 'parentItem' (or as toplevel items if 'parentItem' is 0).
Definition at line 132 of file YQTree.cc.
YTreeItem * YQTree::currentItem |
( |
| ) |
|
|
virtual |
Return the the item that currently has the keyboard focus or 0 if no item currently has the keyboard focus.
Reimplemented from YMultiSelectionBox.
Definition at line 417 of file YQTree.cc.
void YQTree::deleteAllItems |
( |
| ) |
|
|
virtual |
Delete all items.
Reimplemented from YSelectionWidget.
Definition at line 257 of file YQTree.cc.
void YQTree::deselectAllItems |
( |
| ) |
|
|
virtual |
Deselect all items.
Reimplemented from YSelectionWidget.
Definition at line 231 of file YQTree.cc.
Open the branch of 'item' recursively to its toplevel item.
Definition at line 200 of file YQTree.cc.
int YQTree::preferredHeight |
( |
| ) |
|
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 372 of file YQTree.cc.
int YQTree::preferredWidth |
( |
| ) |
|
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 365 of file YQTree.cc.
void YQTree::rebuildTree |
( |
| ) |
|
|
virtual |
Rebuild the displayed tree from the internally stored YTreeItems.
The application should call this (once) after all items have been added with addItem(). YTree::addItems() calls this automatically.
Implemented from YTree.
Definition at line 122 of file YQTree.cc.
void YQTree::selectItem |
( |
YItem * |
item, |
|
|
bool |
selected = true |
|
) |
| |
|
virtual |
Select or deselect an item.
Reimplemented from YSelectionWidget.
Definition at line 154 of file YQTree.cc.
Select an item via the corresponding YQTreItem.
Definition at line 177 of file YQTree.cc.
void YQTree::selectItem |
( |
QTreeWidgetItem * |
item, |
|
|
bool |
selected, |
|
|
bool |
recursive |
|
) |
| |
|
protected |
Select or deselect an item, recursively
Definition at line 266 of file YQTree.cc.
void YQTree::setEnabled |
( |
bool |
enabled | ) |
|
|
virtual |
Set enabled/disbled state.
Reimplemented from YWidget.
Definition at line 389 of file YQTree.cc.
bool YQTree::setKeyboardFocus |
( |
| ) |
|
|
virtual |
Accept the keyboard focus.
Definition at line 397 of file YQTree.cc.
void YQTree::setLabel |
( |
const std::string & |
label | ) |
|
|
virtual |
Change the label text.
Reimplemented from YSelectionWidget.
Definition at line 115 of file YQTree.cc.
void YQTree::setSize |
( |
int |
newWidth, |
|
|
int |
newHeight |
|
) |
| |
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 383 of file YQTree.cc.
void YQTree::slotActivated |
( |
QTreeWidgetItem * |
item | ) |
|
|
protectedslot |
Propagate a double click or pressing the space key on a tree item.
This will trigger an 'Activated' event if 'notify' is set.
Definition at line 356 of file YQTree.cc.
void YQTree::slotContextMenu |
( |
const QPoint & |
pos | ) |
|
|
protectedslot |
Propagate a context menu selection
This will trigger an 'ContextMenuActivated' event if 'notifyContextMenu' is set.
Definition at line 405 of file YQTree.cc.
void YQTree::slotItemChanged |
( |
QTreeWidgetItem * |
item | ) |
|
|
protectedslot |
Propagate a tree item change.
This will trigger a 'ValueChanged' event if 'notify' is set.
Definition at line 289 of file YQTree.cc.
void YQTree::slotItemCollapsed |
( |
QTreeWidgetItem * |
item | ) |
|
|
protectedslot |
Propagate an "item collapsed" event to the underlying YTreeItem.
Definition at line 220 of file YQTree.cc.
void YQTree::slotItemExpanded |
( |
QTreeWidgetItem * |
item | ) |
|
|
protectedslot |
Propagate an "item expanded" event to the underlying YTreeItem.
Definition at line 209 of file YQTree.cc.
void YQTree::slotSelectionChanged |
( |
| ) |
|
|
protectedslot |
Propagate a tree item selection.
This will trigger a 'SelectionChanged' event if 'notify' is set.
Definition at line 340 of file YQTree.cc.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-qt-libyui-qt-master-2.46.1/src/YQTree.h
- /builddir/build/BUILD/libyui-qt-libyui-qt-master-2.46.1/src/YQTree.cc