Brief description of class still missing. More...
#include <PropertyTab.h>
Public Slots | |
| void | setValues () |
Public Member Functions | |
| void | addReference (PropertyItem *item) |
| bool | contains (PropertyItem *item) |
| bool | hasReference () const |
| PropertyTab () | |
| int | referenceCount () const |
| void | removeReference (PropertyItem *item) |
| void | setTitle (QString t) |
| void | setWidget (PropertyWidget *w) |
| QString | title () const |
| PropertyWidget * | widget () const |
| ~PropertyTab () | |
Brief description of class still missing.
Full description of class still missing
Description of constructor still missing
{
_currentItem=0;
_widget=0;
}
Description of destructor still missing
{
delete _widget;
}
| void QGpGuiTools::PropertyTab::addReference | ( | PropertyItem * | item | ) |
Referenced by QGpGuiTools::PropertyProxy::addReference(), and QGpGuiTools::PropertyCategory::addTab().
{
QSet<PropertyItem *>::iterator it=_references.find(item);
if(it!=_references.end()) {
if(item==_currentItem) return;
_currentItem=item;
} else {
_references.insert(item);
_currentItem=item;
}
}
| bool QGpGuiTools::PropertyTab::contains | ( | PropertyItem * | item | ) |
{
return _references.contains(item);
}
| bool QGpGuiTools::PropertyTab::hasReference | ( | ) | const [inline] |
Referenced by QGpGuiTools::PropertyProxy::hasReference().
{return !_references.isEmpty();}
| int QGpGuiTools::PropertyTab::referenceCount | ( | ) | const [inline] |
Referenced by QGpGuiTools::PropertyProxy::referenceCount().
{return _references.count();}
| void QGpGuiTools::PropertyTab::removeReference | ( | PropertyItem * | item | ) |
{
QSet<PropertyItem *>::iterator it=_references.find(item);
if(it!=_references.end()) {
_references.erase(it);
if(_currentItem==item) {
if(_references.isEmpty()) {
_currentItem=0;
return;
} else {
_currentItem=*_references.begin();
}
}
}
}
| void QGpGuiTools::PropertyTab::setTitle | ( | QString | t | ) | [inline] |
Referenced by QGpGuiTools::PropertyCategory::addTab().
{_title=t;}
| void QGpGuiTools::PropertyTab::setValues | ( | ) | [slot] |
Set widget controls from object current values.
References QGpGuiTools::PropertyItem::properties(), QGpGuiTools::PropertyWidget::reset(), and QGpGuiTools::PropertyWidget::setWidgets().
Referenced by setWidget().
{
_widget->reset();
for(QSet<PropertyItem *>::iterator it=_references.begin();it!=_references.end();it++) {
if(*it!=_currentItem) {
(*it)->properties(_widget);
}
}
if(_currentItem) _currentItem->properties(_widget); // Set this one first to view its property values
_widget->setWidgets();
}
| void QGpGuiTools::PropertyTab::setWidget | ( | PropertyWidget * | w | ) |
References setValues().
Referenced by QGpGuiTools::PropertyCategory::addTab().
| QString QGpGuiTools::PropertyTab::title | ( | ) | const [inline] |
{return _title;}
| PropertyWidget* QGpGuiTools::PropertyTab::widget | ( | ) | const [inline] |
Referenced by QGpGuiTools::PropertyProxy::currentTabWidget().
{return _widget;}