Public Types | Public Member Functions
MapView Class Reference

Brief description of class still missing. More...

#include <MapView.h>

Inheritance diagram for MapView:
QGpGuiTools::MultiDocumentSubWindow

List of all members.

Public Types

enum  Mode {
  Move, Line, Rect, Ellipse,
  Text, Dimension
}

Public Member Functions

 MapView (QWidget *parent=0)
Mode mode () const
MapProjectproject () const
void setMode (Mode m)
void setProject (MapProject *p)
void setRotation ()
void setSnapOption (DrawView::SnapOptions ms)
void setSnapType (DrawView::SnapType ms)
DrawView::SnapOptions snapOption () const
DrawView::SnapType snapType () const
 ~MapView ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Member Enumeration Documentation

Enumerator:
Move 
Line 
Rect 
Ellipse 
Text 
Dimension 

Constructor & Destructor Documentation

MapView::MapView ( QWidget *  parent = 0)

Description of constructor still missing

References Move, and TRACE.

    : MultiDocumentSubWindow(parent)
{
  TRACE;
  _mode=Move;

  _project=0;
  _view=0;
  _status=0;
}

Description of destructor still missing

References MapProject::removeView(), and TRACE.

{
  TRACE;
  _project->removeView(this);
}

Member Function Documentation

Mode MapView::mode ( ) const [inline]
{return _mode;}
MapProject* MapView::project ( ) const [inline]
void MapView::setMode ( Mode  m) [inline]

References MapProject::scene(), and TRACE.

Referenced by MapProject::addView().

{
  TRACE;
  ASSERT(!_project);
  _project=p;

  QLayout * vBox=layout();
  vBox->setMargin(0);
  vBox->setSpacing(0);
  _view=new DrawView(_project->scene());
  _view->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform);
  _view->setInteractive(true);
  connect(_view, SIGNAL(mouseMoved(const QPointF&)), this, SLOT(showMousePos(const QPointF&)));
  connect(_view, SIGNAL(mouseReleased(const QPointF&)), this, SLOT(mouseAction(const QPointF&)));
  vBox->addWidget(_view);
  _status=new QStatusBar;
  vBox->addWidget(_status);

  resize(700, 400);
}

References TRACE.

Referenced by MainWindow::rotateView().

{
  TRACE;
  // Just a try...
  _view->rotate(30);
}
void MapView::setSnapOption ( DrawView::SnapOptions  ms) [inline]
DrawView::SnapOptions MapView::snapOption ( ) const [inline]

References DrawView::snapType().

Referenced by MainWindow::setActiveProject().

{return _view->snapType();}

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