#include <qpui.h>
Public Member Functions | |
QpuiItem (const QString &name="", QpuiItem *parent=NULL) | |
virtual | ~QpuiItem () |
virtual bool | setName (const QString &newName) |
QString | getName () const |
QString | getPath () const |
QpuiItem * | parent () const |
bool | hasChildren () const |
int | numChildren () const |
int | childNumber () |
virtual bool | isParentOf (QpuiItem *other) |
virtual bool | isDescendentOf (QpuiItem *other) |
QpuiItem * | getChildByName (const QString &name) const |
QpuiItem * | getChildByPath (const QString &path) const |
QpuiItem * | getChildByNumber (int i) const |
virtual bool | removeChild (QpuiItem *child, bool alsoDelete) |
virtual bool | removeChild (int i, bool alsoDelete) |
virtual bool | addChild (QpuiItem *, int position=-1) |
virtual bool | reparent (QpuiItem *, int position=-1) |
void | refreshPath () |
void | clear () |
virtual RootItem * | root () |
virtual QpuiItem * | copyTo (QpuiItem *newParent) |
virtual void | showTabs () |
PageItem * | pageItem () |
virtual void | setDefaultOptions () |
virtual QpFrameType | frameType () |
virtual void | updateAxes () |
virtual void | addCustomColourTableTo (ColourTablePalette &) |
virtual QDomElement | toXMLElement (QDomDocument &) const |
void | fromXMLElement (QDomElement &) |
Public Attributes | |
QpItemType | I_Type |
QTabWidget * | tabWidget |
Protected Attributes | |
QString | _name |
QString | _path |
QpuiItem * | _parent |
QList< QpuiItem * > | _children |
bool | nameLock |
Private Member Functions | |
Vostream & | save (Vostream &, QpuiItem &) |
Friends | |
class | RootItem |
class | PageItem |
class | FrameItem |
class | PanelItem |
class | PlotItem |
Vistream & | operator>> (Vistream &, QpuiItem &) |
QpuiItem::QpuiItem | ( | const QString & | name = "" , |
|
QpuiItem * | parent = NULL | |||
) |
virtual QpuiItem::~QpuiItem | ( | ) | [inline, virtual] |
virtual bool QpuiItem::addChild | ( | QpuiItem * | , | |
int | position = -1 | |||
) | [inline, virtual] |
void QpuiItem::addCustomColourTableTo | ( | ColourTablePalette & | palette | ) | [virtual] |
Reimplemented in SpectrumItem.
int QpuiItem::childNumber | ( | ) | [inline] |
void QpuiItem::clear | ( | ) |
virtual QpFrameType QpuiItem::frameType | ( | ) | [inline, virtual] |
void QpuiItem::fromXMLElement | ( | QDomElement & | el | ) |
QpuiItem * QpuiItem::getChildByName | ( | const QString & | name | ) | const |
QpuiItem * QpuiItem::getChildByNumber | ( | int | i | ) | const |
QpuiItem * QpuiItem::getChildByPath | ( | const QString & | path | ) | const |
QString QpuiItem::getName | ( | ) | const [inline] |
QString QpuiItem::getPath | ( | ) | const [inline] |
bool QpuiItem::hasChildren | ( | ) | const [inline] |
bool QpuiItem::isParentOf | ( | QpuiItem * | other | ) | [virtual] |
int QpuiItem::numChildren | ( | ) | const [inline] |
PageItem* QpuiItem::pageItem | ( | ) |
QpuiItem* QpuiItem::parent | ( | ) | const [inline] |
void QpuiItem::refreshPath | ( | ) |
bool QpuiItem::removeChild | ( | int | i, | |
bool | alsoDelete | |||
) | [virtual] |
bool QpuiItem::removeChild | ( | QpuiItem * | child, | |
bool | alsoDelete | |||
) | [virtual] |
virtual bool QpuiItem::reparent | ( | QpuiItem * | , | |
int | position = -1 | |||
) | [inline, virtual] |
virtual RootItem* QpuiItem::root | ( | ) | [inline, virtual] |
virtual void QpuiItem::setDefaultOptions | ( | ) | [inline, virtual] |
Reimplemented in PageItem, FrameItem, PanelItem, TraceItem, and SpectrumItem.
bool QpuiItem::setName | ( | const QString & | newName | ) | [virtual] |
Reimplemented in PageItem.
virtual void QpuiItem::showTabs | ( | ) | [inline, virtual] |
QDomElement QpuiItem::toXMLElement | ( | QDomDocument & | doc | ) | const [virtual] |
virtual void QpuiItem::updateAxes | ( | ) | [inline, virtual] |
Reimplemented in FrameItem, PanelItem, TraceItem, and SpectrumItem.
QList<QpuiItem*> QpuiItem::_children [protected] |
QString QpuiItem::_name [protected] |
QpuiItem* QpuiItem::_parent [protected] |
QString QpuiItem::_path [protected] |
bool QpuiItem::nameLock [protected] |
QTabWidget* QpuiItem::tabWidget |