Brief description of class still missing. More...
#include <PropertyWidget.h>
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 |
| PropertyValue * | propertyValue (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 | |
| PropertyValue * | addProperty (int pid, QWidget *w, QWidget *label) |
| PropertyValue * | addProperty (int pid, QWidget *w=0) |
| virtual bool | connectCustomWidget (PropertyValue &) |
| virtual QVariant | customWidgetValue (PropertyValue &) |
| virtual int | determineCustomWidgetType (int, QWidget *, QWidget *) |
| virtual bool | setCustomWidget (PropertyValue &) |
Brief description of class still missing.
Full description of class still missing
| QGpGuiTools::PropertyWidget::PropertyWidget | ( | QWidget * | parent = 0 | ) |
| PropertyValue * QGpGuiTools::PropertyWidget::addProperty | ( | int | pid, |
| QWidget * | w, | ||
| QWidget * | label | ||
| ) | [protected] |
References touched(), and TRACE.
Referenced by SciFigs::AxisFormatProperties::AxisFormatProperties(), SciFigs::AxisScaleProperties::AxisScaleProperties(), GeopsyGui::ChronogramProperties::ChronogramProperties(), SciFigs::GraphContentFormatProperties::GraphContentFormatProperties(), SciFigs::GraphicObjectGeometryProperties::GraphicObjectGeometryProperties(), SciFigs::GraphicObjectIdProperties::GraphicObjectIdProperties(), SciFigs::GraphicObjectPrintProperties::GraphicObjectPrintProperties(), SciFigs::GraphicSheetProperties::GraphicSheetProperties(), SciFigs::GridProperties::GridProperties(), GroupProperties::GroupProperties(), SciFigs::ImageLayerProperties::ImageLayerProperties(), SciFigs::ImageWidgetProperties::ImageWidgetProperties(), SciFigs::LegendFormatProperties::LegendFormatProperties(), SciFigs::LegendProperties::LegendProperties(), SciFigs::LiveGridLayerProperties::LiveGridLayerProperties(), SciFigs::NameLineLayerProperties::NameLineLayerProperties(), NAModelsPlotProperties::NAModelsPlotProperties(), setValue(), GeopsyGui::SignalsProperties::SignalsProperties(), SciFigs::TextEditProperties::TextEditProperties(), SciFigs::XYColorLinesProperties::XYColorLinesProperties(), and SciFigs::XYPlotProperties::XYPlotProperties().
| PropertyValue* QGpGuiTools::PropertyWidget::addProperty | ( | int | pid, |
| QWidget * | w = 0 |
||
| ) | [inline, protected] |
| 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] |
Referenced by GeopsyGui::PickLayer::properties(), SciFigs::GridPlot::properties(), SciFigs::XYValuePlot::properties(), SciFigs::XYValueLines::properties(), SciFigs::ImageWidget::properties(), SciFigs::NameLineLayer::properties(), GeopsyGui::ChronogramLayer::properties(), SciFigs::TextEdit::properties(), SciFigs::ColorPaletteWidget::properties(), SciFigs::LiveGridLayer::properties(), SciFigs::LegendWidget::properties(), SciFigs::GraphContent::properties(), SciFigs::GraphicObject::properties(), GeopsyGui::SignalLayer::properties(), and SciFigs::Axis::properties().
{return _wid;}
| void QGpGuiTools::PropertyWidget::linkTo | ( | PropertyWidget * | w | ) |
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()));
}
| int QGpGuiTools::PropertyWidget::propertyCount | ( | ) | const [inline] |
{return _list.count();}
| PropertyValue* QGpGuiTools::PropertyWidget::propertyValue | ( | int | pid | ) | [inline] |
Referenced by GroupProperties::on_folderTree_clicked(), GroupView::properties(), GeopsyGui::PickItem::setData(), and GroupProperties::setProperties().
{return _list[pid];}
| void QGpGuiTools::PropertyWidget::refreshValues | ( | ) | [signal] |
| void QGpGuiTools::PropertyWidget::reset | ( | ) | [virtual] |
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 | ||
| ) |
If pid does not exist, a new value is created
References addProperty(), QGpGuiTools::PropertyValue::setValue(), and TRACE.
Referenced by GeopsyGui::PickLayer::properties(), SciFigs::GridPlot::properties(), SciFigs::XYValuePlot::properties(), SciFigs::XYValueLines::properties(), SciFigs::ImageWidget::properties(), SciFigs::NameLineLayer::properties(), GeopsyGui::ChronogramLayer::properties(), NAModelsPlot::properties(), SciFigs::TextEdit::properties(), SciFigs::XUniqueYColorLines::properties(), SciFigs::XYPlot::properties(), SciFigs::ColorPaletteWidget::properties(), SciFigs::XYColorLines::properties(), SciFigs::LegendWidget::properties(), SciFigs::LiveGridLayer::properties(), SciFigs::ImageLayer::properties(), SciFigs::GraphicSheet::properties(), SciFigs::GraphContent::properties(), SciFigs::GraphicObject::properties(), GeopsyGui::SignalLayer::properties(), and SciFigs::Axis::properties().
{
TRACE;
QHash<int, PropertyValue *>::iterator it=_list.find(pid);
if(it!=_list.end()) {
it.value()->setValue(val);
} else {
PropertyValue * p=addProperty(pid, 0, 0);
p->setValue(val);
}
}
| void QGpGuiTools::PropertyWidget::setWidgets | ( | ) | [virtual] |
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();
}
| void QGpGuiTools::PropertyWidget::touched | ( | ) | [signal] |
Referenced by addProperty(), linkTo(), and touched().
| QVariant QGpGuiTools::PropertyWidget::value | ( | int | pid | ) | [inline] |
Referenced by GeopsyGui::PickItem::data(), and GeopsyGui::SignalsProperties::on_defaultPaletteValues_clicked().
{return _list[pid]->value();}