Logo Search packages:      
Sourcecode: qlandkartegt version File versions

CCanvas Class Reference

#include <CCanvas.h>

List of all members.


Detailed Description

the map canvas area

Definition at line 50 of file CCanvas.h.


Public Types

enum  mouse_mode_e {
  eMouseZoomArea, eMouseMoveArea, eMouseSelectArea, eMouseAddWpt,
  eMouseEditWpt, eMouseMoveWpt, eMouseMoveRefPoint, eMouseCutTrack,
  eMouseSelTrack, eMouseAddText, eMouseAddTextBox, eMouseAddDistance,
  eMouseOverlay, eMouseColorPicker
}
enum  move_direction_e {
  eMoveLeft, eMoveRight, eMoveUp, eMoveDown,
  eMoveCenter
}

Signals

void sigResize (const QSize &size)

Public Member Functions

 CCanvas (QWidget *parent)
QColor getSelectedColor ()
 get selected color from color picker cursor
void move (double lon, double lat)
 center to lon/lat coordinate
void move (move_direction_e dir)
 scroll map into given direction
void print (QPainter &p, const QSize &pagesize)
void print (QPrinter &printer)
void raiseContextMenu (const QPoint &pos)
void setMouseMode (mouse_mode_e mode)
 change the current mouse mode
void zoom (bool in, const QPoint &p)
 zoom in/out with a given point as static

Static Public Member Functions

static void drawText (const QString &str, QPainter &p, const QRect &r, const QColor &color=Qt::darkBlue)
static void drawText (const QString &str, QPainter &p, const QPoint &center, const QColor &color=Qt::darkBlue)
 draw text with white border

Protected Member Functions

void draw (QPainter &p)
void drawRefPoints (QPainter &p)
void drawScale (QPainter &p)
void enterEvent (QEvent *event)
 set override cursor
void leaveEvent (QEvent *event)
 restore cursor
void mouseMoveEvent (QMouseEvent *e)
void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void paintEvent (QPaintEvent *e)
void resizeEvent (QResizeEvent *e)
void showEvent (QShowEvent *event)
void wheelEvent (QWheelEvent *e)

Private Slots

void slotCopyPosition ()

Private Member Functions

void mouseMoveEventCoord (QMouseEvent *e)

Private Attributes

bool cursorFocus
QLabel * info
QPointer< IMousemouse
CMouseAddDistance * mouseAddDistance
CMouseAddText * mouseAddText
CMouseAddTextBox * mouseAddTextBox
CMouseAddWpt * mouseAddWpt
CMouseColorPicker * mouseColorPicker
CMouseCutTrack * mouseCutTrack
CMouseEditWpt * mouseEditWpt
mouse_mode_e mouseMode
 current mouse mode
CMouseMoveMapmouseMoveMap
CMouseMoveWpt * mouseMoveWpt
CMouseOverlay * mouseOverlay
CMouseRefPoint * mouseRefPoint
CMouseSelMapmouseSelMap
CMouseSelTrack * mouseSelTrack
CMouseZoomMap * mouseZoomMap
QPoint posMouse
 current mouse position

Friends

class CStatusCanvas

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index