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

Brief description of class still missing. More...

#include <LineLayerProperties.h>

Inheritance diagram for SciFigs::LineLayerProperties:
QGpGuiTools::PropertyWidget

List of all members.

Public Member Functions

void addLayer (LineLayer *layer)
QAction * addLineAction (QString title, QString toolTip)
LineLayercurrentLayer () const
int currentLine () const
 LineLayerProperties (QWidget *parent=0)
void removeLayer (LineLayer *layer)
void updateCurrentLayer ()
void updateCurrentLine ()
 ~LineLayerProperties ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References addLineAction(), QGpCoreTools::tr(), and TRACE.

    : PropertyWidget(parent)
{
  TRACE;
  setupUi(this);

  LineItem * model=new LineItem(this);
  lineTable->setModel(model);
  LineDelegate * del=new LineDelegate(this);
  lineTable->setItemDelegate(del);
  lineTable->setSelectionBehavior(QAbstractItemView::SelectItems);
  lineTable->setSelectionMode(QAbstractItemView::ExtendedSelection);
  lineTable->setEditTriggers(QAbstractItemView::AllEditTriggers);
  lineTable->resizeColumnsToContents();
  Settings::columnWidth(lineTable, "LineLayerProperties");

  connect(del, SIGNAL(dataChanged()), this, SLOT(applyAllSelected()) );

  // Init the action menu
  QMenu * m=new QMenu(this);
  m->setTitle(tr("Actions"));
  m->setTearOffEnabled (true);
  actionsBut->setMenu(m);

  QAction * a;
  a=addLineAction(tr( "&Save" ), tr( "Save current line in a text file" ));
  connect(a, SIGNAL(triggered()), this, SLOT(save()) );
  _removeAction=addLineAction(tr( "&Remove" ), tr( "Remove current line" ));
  connect(_removeAction, SIGNAL(triggered()), this, SLOT(remove()) );

  lineScroll->setMinimum(0);
  lineScroll->setMaximum(0);

  _legendEditor=0;
}

Description of destructor still missing

References TRACE.

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

Member Function Documentation

References TRACE.

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

{
  TRACE;
  if(_layerSet.contains(layer)) return;
  _layerSet.insert(layer);
  setLayerList();
  on_currentLayerCombo_currentIndexChanged(0);
}
QAction * SciFigs::LineLayerProperties::addLineAction ( QString  title,
QString  toolTip 
)

References TRACE.

Referenced by SciFigs::GridMaxFollower::addProperties(), and LineLayerProperties().

{
  TRACE;
  QAction * a;
  a=new QAction(title, this);
  a->setToolTip(toolTip);
  actionsBut->menu()->addAction(a);
  return a;
}

References TRACE.

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

References TRACE.

{
  TRACE;
  return lineScroll->value();
}

References TRACE.

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

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

References TRACE.

Referenced by SciFigs::LineLayer::resetLineProperties().

{
  TRACE;
  on_currentLayerCombo_currentIndexChanged(0);
}

References TRACE.

{
  TRACE;
  on_lineScroll_valueChanged(0);
}

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