kexi

#include <objecttreeview.h>

Public Slots

void setSelectedWidget (TQWidget *w, bool add=false)
void addItem (ObjectTreeItem *item)
void removeItem (ObjectTreeItem *item)
void renameItem (const TQCString &oldname, const TQCString &newname)

Public Member Functions

 ObjectTreeView (TQWidget *parent=0, const char *name=0, bool tabStop=false)
virtual TQSize sizeHint () const
void setForm (Form *form)
TQString iconNameForClass (const TQCString &classname)

Protected Slots

void displayContextMenu (TDEListView *list, TQListViewItem *item, const TQPoint &p)
void slotColumnSizeChanged (int)
void slotSelectionChanged ()
void slotBeforeFormDestroyed ()

Protected Member Functions

ObjectTreeViewItem * loadTree (ObjectTreeItem *item, ObjectTreeViewItem *parent)
ObjectTreeViewItem * findItem (const TQString &name)

Friends

class TabStopDialog

Detailed Description

A graphical view of Form's ObjectTree. This is a TDEListView 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.

Constructor & Destructor Documentation

◆ ObjectTreeView()

ObjectTreeView::ObjectTreeView ( TQWidget * parent = 0,
const char * name = 0,
bool tabStop = false )

Definition at line 166 of file objecttreeview.cpp.

◆ ~ObjectTreeView()

ObjectTreeView::~ObjectTreeView ( )
virtual

Definition at line 189 of file objecttreeview.cpp.

Member Function Documentation

◆ addItem

void ObjectTreeView::addItem ( ObjectTreeItem * item)
slot

Adds the ObjectTreeItem item in the list, with the appropriate parent.

Definition at line 291 of file objecttreeview.cpp.

◆ displayContextMenu

void ObjectTreeView::displayContextMenu ( TDEListView * list,
TQListViewItem * item,
const TQPoint & p )
protectedslot

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.

◆ findItem()

ObjectTreeViewItem * ObjectTreeView::findItem ( const TQString & name)
protected
Returns
The item whose name is name.

Definition at line 226 of file objecttreeview.cpp.

◆ iconNameForClass()

TQString ObjectTreeView::iconNameForClass ( const TQCString & classname)
Returns
the pixmap name for a given class, to be shown next to the widget name.

Definition at line 201 of file objecttreeview.cpp.

◆ loadTree()

ObjectTreeViewItem * ObjectTreeView::loadTree ( ObjectTreeItem * item,
ObjectTreeViewItem * parent )
protected

Internal function to fill the list.

Definition at line 357 of file objecttreeview.cpp.

◆ removeItem

void ObjectTreeView::removeItem ( ObjectTreeItem * item)
slot

Removess the ObjectTreeItem item from the list.

Definition at line 303 of file objecttreeview.cpp.

◆ renameItem

void ObjectTreeView::renameItem ( const TQCString & oldname,
const TQCString & newname )
slot

Just renames the list item from oldname to newname.

Definition at line 312 of file objecttreeview.cpp.

◆ setForm()

void ObjectTreeView::setForm ( Form * form)

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.

◆ setSelectedWidget

void ObjectTreeView::setSelectedWidget ( TQWidget * w,
bool add = false )
slot

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.

◆ sizeHint()

TQSize ObjectTreeView::sizeHint ( ) const
virtual

Definition at line 194 of file objecttreeview.cpp.

◆ slotBeforeFormDestroyed

void ObjectTreeView::slotBeforeFormDestroyed ( )
protectedslot

Called before Form object is destroyed.

Definition at line 351 of file objecttreeview.cpp.

◆ slotColumnSizeChanged

void ObjectTreeView::slotColumnSizeChanged ( int )
protectedslot

Definition at line 207 of file objecttreeview.cpp.

◆ slotSelectionChanged

void ObjectTreeView::slotSelectionChanged ( )
protectedslot

The selected list item has changed, so we emit a signal to update the Form.

Definition at line 274 of file objecttreeview.cpp.

◆ TabStopDialog

friend class TabStopDialog
friend

Definition at line 125 of file objecttreeview.h.


The documentation for this class was generated from the following files: