All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
QGpGuiTools::PropertyCategory Class Reference

Brief description of class still missing. More...

#include <PropertyCategory.h>

List of all members.

Public Member Functions

PropertyTabaddTab (uint tab, QString title, PropertyWidget *w, PropertyItem *item)
QString caption () const
PropertyTabfind (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 ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

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();
  }
}

Member Function Documentation

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::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]

References caption().

Referenced by QGpGuiTools::PropertyProxy::addCategory().

{_caption=caption;}

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]

References icon().

Referenced by QGpGuiTools::PropertyProxy::addCategory().

{_icon=icon;}
void QGpGuiTools::PropertyCategory::setTag ( unsigned int  tag) [inline]

References tag().

Referenced by QGpGuiTools::PropertyProxy::addCategory().

{_tag=tag;}

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;}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines