KFormDesigner::ObjectTreeView Class Reference
#include <objecttreeview.h>
Inheritance diagram for KFormDesigner::ObjectTreeView:

Detailed Description
A graphical view of Form's ObjectTree. This is a KListView which represents an item for each widget in the form. The actually selected widget is written bold and selected. Clicking on a list item selects the corresponding widget in the Form.
Definition at line 67 of file objecttreeview.h.
Public Slots | |
| void | setSelectedWidget (QWidget *w, bool add=false) |
| void | addItem (ObjectTreeItem *item) |
| void | removeItem (ObjectTreeItem *item) |
| void | renameItem (const QCString &oldname, const QCString &newname) |
Public Member Functions | |
| ObjectTreeView (QWidget *parent=0, const char *name=0, bool tabStop=false) | |
| virtual | ~ObjectTreeView () |
| virtual QSize | sizeHint () const |
| void | setForm (Form *form) |
| QString | iconNameForClass (const QCString &classname) |
Protected Slots | |
| void | displayContextMenu (KListView *list, QListViewItem *item, const QPoint &p) |
| void | slotColumnSizeChanged (int) |
| void | slotSelectionChanged () |
| void | slotBeforeFormDestroyed () |
Protected Member Functions | |
| ObjectTreeViewItem * | loadTree (ObjectTreeItem *item, ObjectTreeViewItem *parent) |
| Internal function to fill the list. | |
| ObjectTreeViewItem * | findItem (const QString &name) |
Friends | |
| class | TabStopDialog |
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 166 of file objecttreeview.cpp. References addColumn(), displayContextMenu(), slotColumnSizeChanged(), and slotSelectionChanged(). |
|
|
Definition at line 189 of file objecttreeview.cpp. |
Member Function Documentation
|
|
Adds the ObjectTreeItem item in the list, with the appropriate parent. Definition at line 291 of file objecttreeview.cpp. References findItem(), loadTree(), and KFormDesigner::ObjectTreeItem::parent(). |
|
||||||||||||||||
|
This slot is called when the user right-click a list item. The widget context menu is shown, as inisde the Form. Definition at line 213 of file objecttreeview.cpp. References KFormDesigner::Form::activeContainer(), and KFormDesigner::FormManager::self(). Referenced by ObjectTreeView(). |
|
|
Definition at line 226 of file objecttreeview.cpp. References KFormDesigner::ObjectTreeViewItem::name(). Referenced by addItem(), removeItem(), renameItem(), and setSelectedWidget(). |
|
|
Definition at line 201 of file objecttreeview.cpp. References KFormDesigner::Form::library(). |
|
||||||||||||
|
Internal function to fill the list.
Definition at line 357 of file objecttreeview.cpp. References KFormDesigner::ObjectTreeItem::children(), and KFormDesigner::ObjectTreeViewItem::setOpen(). |
|
|
Removess the ObjectTreeItem item from the list. Definition at line 303 of file objecttreeview.cpp. References findItem(), and KFormDesigner::ObjectTreeItem::name(). |
|
||||||||||||
|
Just renames the list item from oldname to newname. Definition at line 312 of file objecttreeview.cpp. References findItem(). |
|
|
Sets form as the current Form in the list. The list will automatically be filled with an item for each widget in the Form, and selection will be synced. Nothing happens if form is already the current Form. Definition at line 323 of file objecttreeview.cpp. References loadTree(), KFormDesigner::ObjectTreeViewItem::setOpen(), setSelectedWidget(), and slotBeforeFormDestroyed(). Referenced by slotBeforeFormDestroyed(). |
|
||||||||||||
|
Sets the widget w as selected item, so it will be written bold. It is added to current selection if add is true. Definition at line 242 of file objecttreeview.cpp. References findItem(). Referenced by setForm(). |
|
|
Definition at line 194 of file objecttreeview.cpp. |
|
|
Called before Form object is destroyed. Definition at line 351 of file objecttreeview.cpp. References setForm(). Referenced by setForm(). |
|
|
Definition at line 207 of file objecttreeview.cpp. Referenced by ObjectTreeView(). |
|
|
The selected list item has changed, so we emit a signal to update the Form. Definition at line 274 of file objecttreeview.cpp. References KFormDesigner::ObjectTreeViewItem::objectTree(), KFormDesigner::Form::selectedWidgets(), KFormDesigner::Form::selectFormWidget(), and KFormDesigner::Form::setSelectedWidget(). Referenced by ObjectTreeView(). |
Friends And Related Function Documentation
|
|
Definition at line 124 of file objecttreeview.h. |
The documentation for this class was generated from the following files:
