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

Brief description of class still missing. More...

#include <PropertyTab.h>

List of all members.

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
PropertyWidgetwidget () const
 ~PropertyTab ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

{
  _currentItem=0;
  _widget=0;
}

Description of destructor still missing

{
  delete _widget;
}

Member Function Documentation

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;
  }
}
{
  return _references.contains(item);
}
bool QGpGuiTools::PropertyTab::hasReference ( ) const [inline]

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

{return !_references.isEmpty();}

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

{return _references.count();}
{
  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;}

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

References setValues().

Referenced by QGpGuiTools::PropertyCategory::addTab().

{
  _widget=w;
  connect(w, SIGNAL(setProperty(int, QVariant)), this, SLOT(setProperty(int, QVariant)));
  connect(w, SIGNAL(refreshValues()), this, SLOT(setValues()));
}
QString QGpGuiTools::PropertyTab::title ( ) const [inline]
{return _title;}

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

{return _widget;}

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