All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
#include <NameLineLayerProperties.h>
Public Types | |
| enum | Properties { ShowNames, Font } |
Public Member Functions | |
| void | addLayer (NameLineLayer *layer) |
| NameLineLayer * | currentLayer () const |
| NameLineLayerProperties (QWidget *parent=0) | |
| void | removeLayer (NameLineLayer *layer) |
| ~NameLineLayerProperties () | |
| SciFigs::NameLineLayerProperties::NameLineLayerProperties | ( | QWidget * | parent = 0 | ) |
References QGpGuiTools::PropertyWidget::addProperty(), Font, ShowNames, and TRACE.
: PropertyWidget(parent) { TRACE; setupUi(this); addProperty(ShowNames, showNames); addProperty(Font, fontEdit); NameLineItem * model=new NameLineItem(this); lineTable->setModel(model); NameLineDelegate * del=new NameLineDelegate(this); lineTable->setItemDelegate(del); lineTable->setSelectionBehavior(QAbstractItemView::SelectItems); lineTable->setSelectionMode(QAbstractItemView::ExtendedSelection); lineTable->setEditTriggers(QAbstractItemView::AllEditTriggers); lineTable->resizeColumnsToContents(); Settings::columnWidth(lineTable, "NameLineLayerProperties"); connect(del, SIGNAL(dataChanged()), this, SLOT(applyAllSelected()) ); }
| void SciFigs::NameLineLayerProperties::addLayer | ( | NameLineLayer * | layer | ) |
References TRACE.
Referenced by SciFigs::NameLineLayer::addProperties().
{
TRACE;
if(_layerSet.contains(layer)) return;
_layerSet.insert(layer);
setLayerList();
on_currentLayerCombo_currentIndexChanged(0);
}
| void SciFigs::NameLineLayerProperties::removeLayer | ( | NameLineLayer * | layer | ) |
References TRACE.
Referenced by SciFigs::NameLineLayer::removeProperties().
{
TRACE;
if(!_layerSet.contains(layer)) return;
_layerSet.remove(layer);
setLayerList();
on_currentLayerCombo_currentIndexChanged(0);
}