All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Signals | Public Member Functions | Protected Member Functions
QGpGuiTools::PropertyWidget Class Reference

Brief description of class still missing. More...

#include <PropertyWidget.h>

Inheritance diagram for QGpGuiTools::PropertyWidget:
GeopsyGui::ChronogramProperties GeopsyGui::PicksProperties GeopsyGui::SignalsProperties GroupProperties NAModelsPlotProperties SciFigs::AxisFormatProperties SciFigs::AxisScaleProperties SciFigs::GraphContentFormatProperties SciFigs::GraphContentLayerProperties SciFigs::GraphicObjectGeometryProperties SciFigs::GraphicObjectIdProperties SciFigs::GraphicObjectPrintProperties SciFigs::GraphicSheetProperties SciFigs::GridProperties SciFigs::ImageLayerProperties SciFigs::ImageWidgetProperties SciFigs::LegendFormatProperties SciFigs::LegendProperties SciFigs::LineLayerProperties SciFigs::LiveGridLayerProperties SciFigs::NameLineLayerProperties SciFigs::TextEditProperties SciFigs::XYColorLinesProperties SciFigs::XYPlotProperties

List of all members.

Signals

void refreshValues ()
void setProperty (int id, QVariant val)
void touched ()

Public Member Functions

bool constant (int pid)
uint id () const
void linkTo (PropertyWidget *w)
int propertyCount () const
PropertyValuepropertyValue (int pid)
 PropertyWidget (QWidget *parent=0)
virtual void reset ()
void setId (uint wid)
void setValue (int pid, QVariant val)
virtual void setWidgets ()
void touched (PropertyValue *p, QVariant val)
QVariant value (int pid)
 ~PropertyWidget ()

Protected Member Functions

PropertyValueaddProperty (int pid, QWidget *w, QWidget *label)
PropertyValueaddProperty (int pid, QWidget *w=0)
virtual bool connectCustomWidget (PropertyValue &)
virtual QVariant customWidgetValue (PropertyValue &)
virtual int determineCustomWidgetType (int, QWidget *, QWidget *)
virtual bool setCustomWidget (PropertyValue &)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References TRACE.

    : QWidget(parent)
{
  TRACE;
  _wid=0;
}

References TRACE.

{
  TRACE;
  QHash<int, PropertyValue *>::Iterator it;
  for(it=_list.begin();it!=_list.end();it++ ) delete it.value();
}

Member Function Documentation

PropertyValue * QGpGuiTools::PropertyWidget::addProperty ( int  pid,
QWidget *  w,
QWidget *  label 
) [protected]
PropertyValue* QGpGuiTools::PropertyWidget::addProperty ( int  pid,
QWidget *  w = 0 
) [inline, protected]

References addProperty(), and w.

Referenced by addProperty().

{return addProperty(pid, w, w);}
virtual bool QGpGuiTools::PropertyWidget::connectCustomWidget ( PropertyValue ) [inline, protected, virtual]
{return false;}
bool QGpGuiTools::PropertyWidget::constant ( int  pid) [inline]
{return _list[pid]->constant();}
virtual QVariant QGpGuiTools::PropertyWidget::customWidgetValue ( PropertyValue ) [inline, protected, virtual]
{return QVariant();}
virtual int QGpGuiTools::PropertyWidget::determineCustomWidgetType ( int  ,
QWidget *  ,
QWidget *   
) [inline, protected, virtual]
{return 0;}
uint QGpGuiTools::PropertyWidget::id ( ) const [inline]

References refreshValues(), and touched().

{
  // First make sure it is not already connected
  disconnect(this, SIGNAL(touched()), w, SIGNAL(refreshValues()));
  connect(this, SIGNAL(touched()), w, SIGNAL(refreshValues()));
}
{return _list.count();}

Referenced by linkTo(), and touched().

Reimplemented in SciFigs::GraphContentLayerProperties.

References TRACE.

Referenced by QGpGuiTools::PropertyTab::setValues(), and GeopsyGui::PicksProperties::setWidgets().

{
  TRACE;
  QHash<int, PropertyValue *>::Iterator it;
  for(it=_list.begin();it!=_list.end();it++ ) (*it)->reset();
}
virtual bool QGpGuiTools::PropertyWidget::setCustomWidget ( PropertyValue ) [inline, protected, virtual]
{return false;}
void QGpGuiTools::PropertyWidget::setId ( uint  wid) [inline]

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

{_wid=wid;}
void QGpGuiTools::PropertyWidget::setProperty ( int  id,
QVariant  val 
) [signal]

Referenced by touched().

void QGpGuiTools::PropertyWidget::setValue ( int  pid,
QVariant  val 
)

Reimplemented in GeopsyGui::SignalsProperties, GeopsyGui::PicksProperties, and SciFigs::AxisScaleProperties.

References QGpGuiTools::PropertyValue::freeze(), QGpGuiTools::PropertyValue::isFrozen(), and TRACE.

Referenced by GroupProperties::setValues(), QGpGuiTools::PropertyTab::setValues(), and SciFigs::GraphicObject::updateGeometryProperties().

{
  TRACE;
  QHash<int, PropertyValue *>::Iterator it;
  for(it=_list.begin();it!=_list.end();it++ ) {
    PropertyValue & p=**it;
    if(!p.isFrozen()) { // The property is already frozen by someone else, do not set widget.
      p.freeze(true);
      setWidget(p);
      p.freeze(false);
    }
  }
}
void QGpGuiTools::PropertyWidget::touched ( PropertyValue p,
QVariant  val 
)

References QGpGuiTools::PropertyValue::freeze(), QGpGuiTools::PropertyValue::id(), refreshValues(), setProperty(), touched(), and TRACE.

Referenced by GeopsyGui::PickItem::setData().

{
  TRACE;
  // Commit property value and force re-read of all properties except this one (p), because frozen.
  p->freeze(true);
  emit setProperty(p->id(), val);
  emit refreshValues();
  p->freeze(false);
  // Force re-read of all properties from linked widgets
  emit touched();
}

Referenced by addProperty(), linkTo(), and touched().

QVariant QGpGuiTools::PropertyWidget::value ( int  pid) [inline]

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