All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Types | Public Member Functions
SciFigs::NameLineLayerProperties Class Reference

#include <NameLineLayerProperties.h>

Inheritance diagram for SciFigs::NameLineLayerProperties:
QGpGuiTools::PropertyWidget

List of all members.

Public Types

enum  Properties { ShowNames, Font }

Public Member Functions

void addLayer (NameLineLayer *layer)
NameLineLayercurrentLayer () const
 NameLineLayerProperties (QWidget *parent=0)
void removeLayer (NameLineLayer *layer)
 ~NameLineLayerProperties ()

Member Enumeration Documentation

Enumerator:
ShowNames 
Font 

Constructor & Destructor Documentation

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

Description of destructor still missing

References TRACE.

{
  TRACE;
  Settings::setColumnWidth(lineTable, "NameLineLayerProperties");
}

Member Function Documentation

References TRACE.

Referenced by SciFigs::NameLineLayer::addProperties().

{
  TRACE;
  if(_layerSet.contains(layer)) return;
  _layerSet.insert(layer);
  setLayerList();
  on_currentLayerCombo_currentIndexChanged(0);
}

References TRACE.

{
  TRACE;
  int i=currentLayerCombo->currentIndex();
  if(i<_layerList.count() && i>=0) {
    return _layerList[i];
  } else {
    return 0;
  }
}

References TRACE.

Referenced by SciFigs::NameLineLayer::removeProperties().

{
  TRACE;
  if(!_layerSet.contains(layer)) return;
  _layerSet.remove(layer);
  setLayerList();
  on_currentLayerCombo_currentIndexChanged(0);
}

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