Brief description of class still missing. More...
#include <PropertyCategory.h>
Public Member Functions | |
| PropertyTab * | addTab (uint tab, QString title, PropertyWidget *w, PropertyItem *item) |
| QString | caption () const |
| PropertyTab * | find (uint tab) |
| QIcon | icon () const |
| bool | isEmpty () const |
| PropertyCategory () | |
| void | removeTab (uint tab, PropertyItem *item, ExpandTabWidget *editor) |
| void | setCaption (QString caption) |
| void | setEditor (ExpandTabWidget *editor) |
| void | setIcon (QIcon icon) |
| void | setTag (unsigned int tag) |
| void | setValues () |
| unsigned int | tag () const |
| ~PropertyCategory () | |
Brief description of class still missing.
Full description of class still missing
Description of constructor still missing
{
}
Description of destructor still missing
{
for(QHash<uint, PropertyTab *>::iterator it=_tabs.begin(); it!=_tabs.end(); it++) {
delete it.value();
}
}
| PropertyTab * QGpGuiTools::PropertyCategory::addTab | ( | uint | tab, |
| QString | title, | ||
| PropertyWidget * | w, | ||
| PropertyItem * | item | ||
| ) |
References QGpGuiTools::PropertyTab::addReference(), QGpGuiTools::PropertyTab::setTitle(), and QGpGuiTools::PropertyTab::setWidget().
Referenced by QGpGuiTools::PropertyProxy::addTab().
{
PropertyTab * t=new PropertyTab;
t->setTitle(title);
t->setWidget(w);
_tabs.insert(tab, t);
t->addReference(item);
return t;
}
| QString QGpGuiTools::PropertyCategory::caption | ( | ) | const [inline] |
Referenced by QGpGuiTools::PropertyProxy::addTab(), QGpGuiTools::PropertyProxy::removeTab(), and setCaption().
{return _caption;}
| PropertyTab * QGpGuiTools::PropertyCategory::find | ( | uint | tab | ) |
Referenced by QGpGuiTools::PropertyProxy::setCurrentTab().
{
QHash<uint, PropertyTab *>::iterator it=_tabs.find(tab);
if(it!=_tabs.end()) {
return it.value();
} else {
return 0;
}
}
| QIcon QGpGuiTools::PropertyCategory::icon | ( | ) | const [inline] |
Referenced by setIcon().
{return _icon;}
| bool QGpGuiTools::PropertyCategory::isEmpty | ( | ) | const [inline] |
Referenced by QGpGuiTools::PropertyProxy::removeTab().
{return _tabs.isEmpty();}
| void QGpGuiTools::PropertyCategory::removeTab | ( | uint | tab, |
| PropertyItem * | item, | ||
| ExpandTabWidget * | editor | ||
| ) |
References QGpGuiTools::ExpandTabWidget::isDocked(), and QGpGuiTools::ExpandTabWidget::takeWidget().
Referenced by QGpGuiTools::PropertyProxy::removeTab().
{
QHash<uint, PropertyTab *>::iterator it=_tabs.find(tab);
if(it!=_tabs.end()) {
it.value()->removeReference(item);
if(!it.value()->hasReference()) {
bool deleteTab=true;
if(editor) {
if(editor->isDocked(it.value()->widget()) ) {
editor->takeWidget(it.value()->widget());
} else {
deleteTab=false;
}
}
if(deleteTab) {
delete it.value();
_tabs.erase(it);
}
}
}
}
| void QGpGuiTools::PropertyCategory::setCaption | ( | QString | caption | ) | [inline] |
| void QGpGuiTools::PropertyCategory::setEditor | ( | ExpandTabWidget * | editor | ) |
References QGpGuiTools::ExpandTabWidget::addWidget().
{
for(QHash<uint, PropertyTab *>::iterator it=_tabs.begin(); it!=_tabs.end(); it++) {
editor->addWidget(it.value()->title(), it.value()->widget());
}
}
| void QGpGuiTools::PropertyCategory::setIcon | ( | QIcon | icon | ) | [inline] |
| void QGpGuiTools::PropertyCategory::setTag | ( | unsigned int | tag | ) | [inline] |
Referenced by QGpGuiTools::PropertyProxy::setCurrentTabValues().
{
for(QHash<uint, PropertyTab *>::iterator it=_tabs.begin(); it!=_tabs.end(); it++) {
it.value()->setValues();
}
}
| unsigned int QGpGuiTools::PropertyCategory::tag | ( | ) | const [inline] |
Referenced by QGpGuiTools::PropertyProxy::removeTab(), and setTag().
{return _tag;}