All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Slots | Signals | Public Member Functions
SciFigs::ImageScalingPoint Class Reference

Brief description of class still missing. More...

#include <ImageScalingPoint.h>

List of all members.

Public Slots

void add (QPoint p)

Signals

void apply ()

Public Member Functions

 ImageScalingPoint (QWidget *parent=0)
const QList
< ImageLayer::ReferencePoint > & 
references () const
void setReferences (const QList< ImageLayer::ReferencePoint > &ref)
 ~ImageScalingPoint ()

Detailed Description

Brief description of class still missing.

Full description of class still missing

TODO: Use QTableView instead of QTableWidget


Constructor & Destructor Documentation

Description of constructor still missing

References TRACE.

    : QWidget(parent, Qt::Window)
{
  TRACE;
  setAttribute(Qt::WA_DeleteOnClose, true);
  setupUi(this);

  pointTable->setSelectionBehavior(QAbstractItemView::SelectRows);
  pointTable->setSelectionMode(QAbstractItemView::SingleSelection);
  pointTable->setEditTriggers(QAbstractItemView::AllEditTriggers);
  pointTable->horizontalHeader()->setResizeMode(3, QHeaderView::Stretch);
  Settings::columnWidth(pointTable, "ImageScalingPoint");

  Settings::getWidget(this);
}

References TRACE.

{
  TRACE;
  Settings::setColumnWidth(pointTable, "ImageScalingPoint");
  Settings::setWidget(this);
}

Member Function Documentation

void SciFigs::ImageScalingPoint::add ( QPoint  p) [slot]

References SciFigs::ImageLayer::ReferencePoint::setImage(), SciFigs::ImageLayer::ReferencePoint::setName(), QGpCoreTools::tr(), and TRACE.

{
  TRACE;
  int n=_references.count()+1;
  _references.append(ImageLayer::ReferencePoint());
  ImageLayer::ReferencePoint& pr=_references.last();
  pr.setName(tr("ref %1").arg(n));
  pr.setImage(p);
  pointTable->setRowCount(n);
  createItem(n-1);
}
{return _references;}

References TRACE.

{
  TRACE;
  _references=ref;
  int n=_references.count();
  pointTable->setRowCount(n);
  for(int i=0; i<n; i++) {
    createItem(i);
  }
  setScaling();
}

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