libkpl  5.0
A Library for Graphical Presentation of Data Sets and Functions
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KplView Class Reference

Kpl main view class. More...

#include <kplview.h>

Inheritance diagram for KplView:
Inheritance graph
[legend]

Signals

void mouseLeaved ()
 Emitted when mouse cursor leaves the widget. More...
 
void urlsDropped (QList< QUrl > *list)
 Emitted at drop event. More...
 
void regionSelected (const QRectF &rect)
 Emitted when rectangular region was selected using the mouse with its right button pressed. More...
 

Public Member Functions

 KplView (double f=1, QWidget *parent=0)
 Constructor. More...
 
virtual ~KplView ()
 Destructor. More...
 
void setZoomFactor (double f)
 Sets zoom factor. More...
 
virtual QSize sizeHint () const
 Calculates recommended size of the widget. More...
 
double zoomFactor () const
 Returns zoom factor. More...
 
- Public Member Functions inherited from QGraphicsView
 QGraphicsView (QWidget *parent)
 
 QGraphicsView (QGraphicsScene *scene, QWidget *parent)
 
QPainter::RenderHints renderHints () const
 
void setRenderHint (QPainter::RenderHint hint, bool enabled)
 
void setRenderHints (QPainter::RenderHints hints)
 
Qt::Alignment alignment () const
 
void setAlignment (Qt::Alignment alignment)
 
ViewportAnchor transformationAnchor () const
 
void setTransformationAnchor (ViewportAnchor anchor)
 
ViewportAnchor resizeAnchor () const
 
void setResizeAnchor (ViewportAnchor anchor)
 
ViewportUpdateMode viewportUpdateMode () const
 
void setViewportUpdateMode (ViewportUpdateMode mode)
 
OptimizationFlags optimizationFlags () const
 
void setOptimizationFlag (OptimizationFlag flag, bool enabled)
 
void setOptimizationFlags (OptimizationFlags flags)
 
DragMode dragMode () const
 
void setDragMode (DragMode mode)
 
Qt::ItemSelectionMode rubberBandSelectionMode () const
 
void setRubberBandSelectionMode (Qt::ItemSelectionMode mode)
 
QRect rubberBandRect () const
 
CacheMode cacheMode () const
 
void setCacheMode (CacheMode mode)
 
void resetCachedContent ()
 
bool isInteractive () const
 
void setInteractive (bool allowed)
 
QGraphicsScenescene () const
 
void setScene (QGraphicsScene *scene)
 
QRectF sceneRect () const
 
void setSceneRect (const QRectF &rect)
 
void setSceneRect (qreal x, qreal y, qreal w, qreal h)
 
QMatrix matrix () const
 
void setMatrix (const QMatrix &matrix, bool combine)
 
void resetMatrix ()
 
QTransform transform () const
 
QTransform viewportTransform () const
 
bool isTransformed () const
 
void setTransform (const QTransform &matrix, bool combine)
 
void resetTransform ()
 
void rotate (qreal angle)
 
void scale (qreal sx, qreal sy)
 
void shear (qreal sh, qreal sv)
 
void translate (qreal dx, qreal dy)
 
void centerOn (const QPointF &pos)
 
void centerOn (qreal x, qreal y)
 
void centerOn (const QGraphicsItem *item)
 
void ensureVisible (const QRectF &rect, int xmargin, int ymargin)
 
void ensureVisible (qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin)
 
void ensureVisible (const QGraphicsItem *item, int xmargin, int ymargin)
 
void fitInView (const QRectF &rect, Qt::AspectRatioMode aspectRatioMode)
 
void fitInView (qreal x, qreal y, qreal w, qreal h, Qt::AspectRatioMode aspectRatioMode)
 
void fitInView (const QGraphicsItem *item, Qt::AspectRatioMode aspectRatioMode)
 
void render (QPainter *painter, const QRectF &target, const QRect &source, Qt::AspectRatioMode aspectRatioMode)
 
QList< QGraphicsItem * > items () const
 
QList< QGraphicsItem * > items (const QPoint &pos) const
 
QList< QGraphicsItem * > items (int x, int y) const
 
QList< QGraphicsItem * > items (const QRect &rect, Qt::ItemSelectionMode mode) const
 
QList< QGraphicsItem * > items (int x, int y, int w, int h, Qt::ItemSelectionMode mode) const
 
QList< QGraphicsItem * > items (const QPolygon &polygon, Qt::ItemSelectionMode mode) const
 
QList< QGraphicsItem * > items (const QPainterPath &path, Qt::ItemSelectionMode mode) const
 
QGraphicsItemitemAt (const QPoint &pos) const
 
QGraphicsItemitemAt (int x, int y) const
 
QPointF mapToScene (const QPoint &point) const
 
QPolygonF mapToScene (const QRect &rect) const
 
QPolygonF mapToScene (const QPolygon &polygon) const
 
QPainterPath mapToScene (const QPainterPath &path) const
 
QPoint mapFromScene (const QPointF &point) const
 
QPolygon mapFromScene (const QRectF &rect) const
 
QPolygon mapFromScene (const QPolygonF &polygon) const
 
QPainterPath mapFromScene (const QPainterPath &path) const
 
QPointF mapToScene (int x, int y) const
 
QPolygonF mapToScene (int x, int y, int w, int h) const
 
QPoint mapFromScene (qreal x, qreal y) const
 
QPolygon mapFromScene (qreal x, qreal y, qreal w, qreal h) const
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
 
QBrush backgroundBrush () const
 
void setBackgroundBrush (const QBrush &brush)
 
QBrush foregroundBrush () const
 
void setForegroundBrush (const QBrush &brush)
 
void updateScene (const QList< QRectF > &rects)
 
void invalidateScene (const QRectF &rect, QGraphicsScene::SceneLayers layers)
 
void updateSceneRect (const QRectF &rect)
 
void rubberBandChanged (QRect rubberBandRect, QPointF fromScenePoint, QPointF toScenePoint)
 
- Public Member Functions inherited from QAbstractScrollArea
 QAbstractScrollArea (QWidget *parent)
 
Qt::ScrollBarPolicy verticalScrollBarPolicy () const
 
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy)
 
QScrollBarverticalScrollBar () const
 
void setVerticalScrollBar (QScrollBar *scrollBar)
 
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const
 
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy)
 
QScrollBarhorizontalScrollBar () const
 
void setHorizontalScrollBar (QScrollBar *scrollBar)
 
QWidgetcornerWidget () const
 
void setCornerWidget (QWidget *widget)
 
void addScrollBarWidget (QWidget *widget, Qt::Alignment alignment)
 
QWidgetList scrollBarWidgets (Qt::Alignment alignment)
 
QWidgetviewport () const
 
void setViewport (QWidget *widget)
 
QSize maximumViewportSize () const
 
virtual QSize minimumSizeHint () const
 
SizeAdjustPolicy sizeAdjustPolicy () const
 
void setSizeAdjustPolicy (SizeAdjustPolicy policy)
 
- Public Member Functions inherited from QFrame
 QFrame (QWidget *parent, Qt::WindowFlags f)
 
int frameStyle () const
 
void setFrameStyle (int style)
 
int frameWidth () const
 
Shape frameShape () const
 
void setFrameShape (Shape)
 
Shadow frameShadow () const
 
void setFrameShadow (Shadow)
 
int lineWidth () const
 
void setLineWidth (int)
 
int midLineWidth () const
 
void setMidLineWidth (int)
 
QRect frameRect () const
 
void setFrameRect (const QRect &)
 
- Public Member Functions inherited from QWidget
 QWidget (QWidget *parent, Qt::WindowFlags f)
 
WId winId () const
 
WId effectiveWinId () const
 
QStylestyle () const
 
void setStyle (QStyle *style)
 
bool isTopLevel () const
 
bool isWindow () const
 
bool isModal () const
 
Qt::WindowModality windowModality () const
 
void setWindowModality (Qt::WindowModality windowModality)
 
bool isEnabled () const
 
bool isEnabledTo (const QWidget *ancestor) const
 
bool isEnabledToTLW () const
 
void setEnabled (bool)
 
void setDisabled (bool disable)
 
void setWindowModified (bool)
 
QRect frameGeometry () const
 
const QRectgeometry () const
 
QRect normalGeometry () const
 
int x () const
 
int y () const
 
QPoint pos () const
 
QSize frameSize () const
 
QSize size () const
 
int width () const
 
int height () const
 
QRect rect () const
 
QRect childrenRect () const
 
QRegion childrenRegion () const
 
QSize minimumSize () const
 
QSize maximumSize () const
 
int minimumWidth () const
 
int minimumHeight () const
 
int maximumWidth () const
 
int maximumHeight () const
 
void setMinimumSize (const QSize &)
 
void setMinimumSize (int minw, int minh)
 
void setMaximumSize (const QSize &)
 
void setMaximumSize (int maxw, int maxh)
 
void setMinimumWidth (int minw)
 
void setMinimumHeight (int minh)
 
void setMaximumWidth (int maxw)
 
void setMaximumHeight (int maxh)
 
void setupUi (QWidget *widget)
 
QSize sizeIncrement () const
 
void setSizeIncrement (const QSize &)
 
void setSizeIncrement (int w, int h)
 
QSize baseSize () const
 
void setBaseSize (const QSize &)
 
void setBaseSize (int basew, int baseh)
 
void setFixedSize (const QSize &s)
 
void setFixedSize (int w, int h)
 
void setFixedWidth (int w)
 
void setFixedHeight (int h)
 
QPoint mapToGlobal (const QPoint &pos) const
 
QPoint mapFromGlobal (const QPoint &pos) const
 
QPoint mapToParent (const QPoint &pos) const
 
QPoint mapFromParent (const QPoint &pos) const
 
QPoint mapTo (const QWidget *parent, const QPoint &pos) const
 
QPoint mapFrom (const QWidget *parent, const QPoint &pos) const
 
QWidgetwindow () const
 
QWidgetnativeParentWidget () const
 
QWidgettopLevelWidget () const
 
const QPalettepalette () const
 
void setPalette (const QPalette &)
 
void setBackgroundRole (QPalette::ColorRole role)
 
QPalette::ColorRole backgroundRole () const
 
void setForegroundRole (QPalette::ColorRole role)
 
QPalette::ColorRole foregroundRole () const
 
const QFontfont () const
 
void setFont (const QFont &)
 
QFontMetrics fontMetrics () const
 
QFontInfo fontInfo () const
 
QCursor cursor () const
 
void setCursor (const QCursor &)
 
void unsetCursor ()
 
void setMouseTracking (bool enable)
 
bool hasMouseTracking () const
 
bool underMouse () const
 
void setMask (const QBitmap &bitmap)
 
void setMask (const QRegion &region)
 
QRegion mask () const
 
void clearMask ()
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
QPixmap grab (const QRect &rectangle)
 
QGraphicsEffectgraphicsEffect () const
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
void grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags)
 
void ungrabGesture (Qt::GestureType gesture)
 
void setWindowTitle (const QString &)
 
void setStyleSheet (const QString &styleSheet)
 
QString styleSheet () const
 
QString windowTitle () const
 
void setWindowIcon (const QIcon &icon)
 
QIcon windowIcon () const
 
void setWindowIconText (const QString &)
 
QString windowIconText () const
 
void setWindowRole (const QString &role)
 
QString windowRole () const
 
void setWindowFilePath (const QString &filePath)
 
QString windowFilePath () const
 
void setWindowOpacity (qreal level)
 
qreal windowOpacity () const
 
bool isWindowModified () const
 
void setToolTip (const QString &)
 
QString toolTip () const
 
void setToolTipDuration (int msec)
 
int toolTipDuration () const
 
void setStatusTip (const QString &)
 
QString statusTip () const
 
void setWhatsThis (const QString &)
 
QString whatsThis () const
 
QString accessibleName () const
 
void setAccessibleName (const QString &name)
 
QString accessibleDescription () const
 
void setAccessibleDescription (const QString &description)
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
Qt::LayoutDirection layoutDirection () const
 
void unsetLayoutDirection ()
 
void setLocale (const QLocale &locale)
 
QLocale locale () const
 
void unsetLocale ()
 
void setFocus ()
 
bool isActiveWindow () const
 
void activateWindow ()
 
void clearFocus ()
 
void setFocus (Qt::FocusReason reason)
 
Qt::FocusPolicy focusPolicy () const
 
void setFocusPolicy (Qt::FocusPolicy policy)
 
bool hasFocus () const
 
void setFocusProxy (QWidget *w)
 
QWidgetfocusProxy () const
 
Qt::ContextMenuPolicy contextMenuPolicy () const
 
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
 
void grabMouse ()
 
void grabMouse (const QCursor &cursor)
 
void releaseMouse ()
 
void grabKeyboard ()
 
void releaseKeyboard ()
 
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
 
void releaseShortcut (int id)
 
void setShortcutEnabled (int id, bool enable)
 
void setShortcutAutoRepeat (int id, bool enable)
 
bool updatesEnabled () const
 
void setUpdatesEnabled (bool enable)
 
QGraphicsProxyWidgetgraphicsProxyWidget () const
 
void update ()
 
void repaint ()
 
void update (int x, int y, int w, int h)
 
void update (const QRect &rect)
 
void update (const QRegion &rgn)
 
void repaint (int x, int y, int w, int h)
 
void repaint (const QRect &rect)
 
void repaint (const QRegion &rgn)
 
virtual void setVisible (bool visible)
 
void setHidden (bool hidden)
 
void show ()
 
void hide ()
 
void showMinimized ()
 
void showMaximized ()
 
void showFullScreen ()
 
void showNormal ()
 
bool close ()
 
void raise ()
 
void lower ()
 
void stackUnder (QWidget *w)
 
void move (int x, int y)
 
void move (const QPoint &)
 
void resize (int w, int h)
 
void resize (const QSize &)
 
void setGeometry (int x, int y, int w, int h)
 
void setGeometry (const QRect &)
 
QByteArray saveGeometry () const
 
bool restoreGeometry (const QByteArray &geometry)
 
void adjustSize ()
 
bool isVisible () const
 
bool isVisibleTo (const QWidget *ancestor) const
 
bool isHidden () const
 
bool isMinimized () const
 
bool isMaximized () const
 
bool isFullScreen () const
 
Qt::WindowStates windowState () const
 
void setWindowState (Qt::WindowStates windowState)
 
QSizePolicy sizePolicy () const
 
void setSizePolicy (QSizePolicy)
 
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
 
virtual int heightForWidth (int w) const
 
virtual bool hasHeightForWidth () const
 
QRegion visibleRegion () const
 
void setContentsMargins (int left, int top, int right, int bottom)
 
void setContentsMargins (const QMargins &margins)
 
void getContentsMargins (int *left, int *top, int *right, int *bottom) const
 
QMargins contentsMargins () const
 
QRect contentsRect () const
 
QLayoutlayout () const
 
void setLayout (QLayout *layout)
 
void updateGeometry ()
 
void setParent (QWidget *parent)
 
void setParent (QWidget *parent, Qt::WindowFlags f)
 
void scroll (int dx, int dy)
 
void scroll (int dx, int dy, const QRect &r)
 
QWidgetfocusWidget () const
 
QWidgetnextInFocusChain () const
 
QWidgetpreviousInFocusChain () const
 
bool acceptDrops () const
 
void setAcceptDrops (bool on)
 
void addAction (QAction *action)
 
void addActions (QList< QAction * > actions)
 
void insertAction (QAction *before, QAction *action)
 
void insertActions (QAction *before, QList< QAction * > actions)
 
void removeAction (QAction *action)
 
QList< QAction * > actions () const
 
QWidgetparentWidget () const
 
void setWindowFlags (Qt::WindowFlags type)
 
Qt::WindowFlags windowFlags () const
 
void overrideWindowFlags (Qt::WindowFlags flags)
 
Qt::WindowType windowType () const
 
QWidgetchildAt (int x, int y) const
 
QWidgetchildAt (const QPoint &p) const
 
void setAttribute (Qt::WidgetAttribute attribute, bool on)
 
bool testAttribute (Qt::WidgetAttribute attribute) const
 
virtual QPaintEnginepaintEngine () const
 
void ensurePolished () const
 
bool isAncestorOf (const QWidget *child) const
 
bool hasEditFocus () const
 
void setEditFocus (bool enable)
 
bool autoFillBackground () const
 
void setAutoFillBackground (bool enabled)
 
QBackingStorebackingStore () const
 
QWindowwindowHandle () const
 
void windowTitleChanged (const QString &title)
 
void windowIconChanged (const QIcon &icon)
 
void windowIconTextChanged (const QString &iconText)
 
void customContextMenuRequested (const QPoint &pos)
 
Qt::InputMethodHints inputMethodHints () const
 
void setInputMethodHints (Qt::InputMethodHints hints)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
virtual const QMetaObjectmetaObject () const
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool isWindowType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool block)
 
QThreadthread () const
 
void moveToThread (QThread *targetThread)
 
int startTimer (int interval, Qt::TimerType timerType)
 
void killTimer (int id)
 
findChild (const QString &name, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const
 
const QObjectList & children () const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const
 
bool disconnect (const QObject *receiver, const char *method) const
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void destroyed (QObject *obj)
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const
 
bool inherits (const char *className) const
 
void deleteLater ()
 
- Public Member Functions inherited from QPaintDevice
bool paintingActive () const
 
int width () const
 
int height () const
 
int widthMM () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
int devicePixelRatio () const
 
qreal devicePixelRatioF () const
 
int colorCount () const
 
int depth () const
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *e)
 
virtual void dragMoveEvent (QDragMoveEvent *e)
 
virtual void dropEvent (QDropEvent *e)
 Emits the signal urlsDropped, transferring a list of URLs. More...
 
virtual void keyPressEvent (QKeyEvent *e)
 Implements scrolling of the window by key sequences. More...
 
virtual void leaveEvent (QEvent *e)
 Emits the signal mouseLeaved. More...
 
virtual void mouseMoveEvent (QMouseEvent *e)
 Implements selection of a rectangular region using the mouse with its right button pressed. More...
 
virtual void mousePressEvent (QMouseEvent *e)
 Implements initiation of selection of a rectangular region using the mouse with its right button pressed. More...
 
virtual void mouseReleaseEvent (QMouseEvent *e)
 Implements finishing of selection of a rectangular region using the mouse with its right button pressed. More...
 
- Protected Member Functions inherited from QGraphicsView
virtual void setupViewport (QWidget *widget)
 
virtual bool event (QEvent *event)
 
virtual bool viewportEvent (QEvent *event)
 
virtual void contextMenuEvent (QContextMenuEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void focusInEvent (QFocusEvent *event)
 
virtual bool focusNextPrevChild (bool next)
 
virtual void focusOutEvent (QFocusEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void paintEvent (QPaintEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
virtual void scrollContentsBy (int dx, int dy)
 
virtual void showEvent (QShowEvent *event)
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual void drawBackground (QPainter *painter, const QRectF &rect)
 
virtual void drawForeground (QPainter *painter, const QRectF &rect)
 
virtual void drawItems (QPainter *painter, int numItems, QGraphicsItem *[] items, const QStyleOptionGraphicsItem[] options)
 
- Protected Member Functions inherited from QAbstractScrollArea
void setViewportMargins (int left, int top, int right, int bottom)
 
void setViewportMargins (const QMargins &margins)
 
QMargins viewportMargins () const
 
virtual QSize viewportSizeHint () const
 
- Protected Member Functions inherited from QFrame
virtual void changeEvent (QEvent *ev)
 
void initStyleOption (QStyleOptionFrame *option) const
 
- Protected Member Functions inherited from QWidget
virtual void enterEvent (QEvent *event)
 
virtual void moveEvent (QMoveEvent *event)
 
virtual void closeEvent (QCloseEvent *event)
 
virtual void tabletEvent (QTabletEvent *event)
 
virtual void actionEvent (QActionEvent *event)
 
virtual void hideEvent (QHideEvent *event)
 
virtual bool nativeEvent (const QByteArray &eventType, void *message, long *result)
 
virtual int metric (PaintDeviceMetric m) const
 
virtual void initPainter (QPainter *painter) const
 
void updateMicroFocus ()
 
void create (WId window, bool initializeWindow, bool destroyOldWindow)
 
void destroy (bool destroyWindow, bool destroySubWindows)
 
bool focusNextChild ()
 
bool focusPreviousChild ()
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 

Protected Attributes

double m_zoomFactor
 
QPoint startPos
 
QRubberBandrubberBand
 

Additional Inherited Members

- Static Public Member Functions inherited from QWidget
void setTabOrder (QWidget *first, QWidget *second)
 
QWidgetmouseGrabber ()
 
QWidgetkeyboardGrabber ()
 
QWidgetfind (WId id)
 
QWidgetcreateWindowContainer (QWindow *window, QWidget *parent, Qt::WindowFlags flags)
 
- Static Public Member Functions inherited from QObject
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
- Public Attributes inherited from QGraphicsView
typedef CacheMode
 
typedef OptimizationFlags
 
- Public Attributes inherited from QWidget
typedef RenderFlags
 
- Properties inherited from QGraphicsView
 backgroundBrush
 
 foregroundBrush
 
 interactive
 
 sceneRect
 
 alignment
 
 renderHints
 
 dragMode
 
 cacheMode
 
 transformationAnchor
 
 resizeAnchor
 
 viewportUpdateMode
 
 rubberBandSelectionMode
 
 optimizationFlags
 
- Properties inherited from QAbstractScrollArea
 verticalScrollBarPolicy
 
 horizontalScrollBarPolicy
 
 sizeAdjustPolicy
 
- Properties inherited from QFrame
 frameShape
 
 frameShadow
 
 lineWidth
 
 midLineWidth
 
 frameWidth
 
 frameRect
 
- Properties inherited from QWidget
 modal
 
 windowModality
 
 enabled
 
 geometry
 
 frameGeometry
 
 normalGeometry
 
 x
 
 y
 
 pos
 
 frameSize
 
 size
 
 width
 
 height
 
 rect
 
 childrenRect
 
 childrenRegion
 
 sizePolicy
 
 minimumSize
 
 maximumSize
 
 minimumWidth
 
 minimumHeight
 
 maximumWidth
 
 maximumHeight
 
 sizeIncrement
 
 baseSize
 
 palette
 
 font
 
 cursor
 
 mouseTracking
 
 isActiveWindow
 
 focusPolicy
 
 focus
 
 contextMenuPolicy
 
 updatesEnabled
 
 visible
 
 minimized
 
 maximized
 
 fullScreen
 
 sizeHint
 
 minimumSizeHint
 
 acceptDrops
 
 windowTitle
 
 windowIcon
 
 windowIconText
 
 windowOpacity
 
 windowModified
 
 toolTip
 
 toolTipDuration
 
 statusTip
 
 whatsThis
 
 accessibleName
 
 accessibleDescription
 
 layoutDirection
 
 windowFlags
 
 autoFillBackground
 
 styleSheet
 
 locale
 
 windowFilePath
 
 inputMethodHints
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Kpl main view class.

Displays the plot items of a KplScene. Provides methods for scrolling and zooming.

Author
Werner Stille

Constructor & Destructor Documentation

KplView::KplView ( double  f = 1,
QWidget parent = 0 
)

Constructor.

Parameters
fzoom factor.
parentpointer to parent widget.
virtual KplView::~KplView ( )
virtual

Destructor.

Member Function Documentation

virtual void KplView::dragEnterEvent ( QDragEnterEvent e)
protectedvirtual
Parameters
epointer to event.

Reimplemented from QGraphicsView.

virtual void KplView::dragMoveEvent ( QDragMoveEvent e)
protectedvirtual
Parameters
epointer to event.

Reimplemented from QGraphicsView.

virtual void KplView::dropEvent ( QDropEvent e)
protectedvirtual

Emits the signal urlsDropped, transferring a list of URLs.

Parameters
epointer to event.

Reimplemented from QGraphicsView.

virtual void KplView::keyPressEvent ( QKeyEvent e)
protectedvirtual

Implements scrolling of the window by key sequences.

  • Home scrolls to bottom margin.
  • End scrolls to top margin.
  • Ctrl+Home scrolls to left margin.
  • Ctrl+End scrolls to right margin.
  • PgUp scrolls page up.
  • PgDown scrolls page down.
Parameters
epointer to event.

Reimplemented from QGraphicsView.

virtual void KplView::leaveEvent ( QEvent e)
protectedvirtual

Emits the signal mouseLeaved.

Parameters
epointer to event.

Reimplemented from QWidget.

void KplView::mouseLeaved ( )
signal

Emitted when mouse cursor leaves the widget.

virtual void KplView::mouseMoveEvent ( QMouseEvent e)
protectedvirtual

Implements selection of a rectangular region using the mouse with its right button pressed.

Parameters
epointer to event.

Reimplemented from QGraphicsView.

virtual void KplView::mousePressEvent ( QMouseEvent e)
protectedvirtual

Implements initiation of selection of a rectangular region using the mouse with its right button pressed.

Parameters
epointer to event.

Reimplemented from QGraphicsView.

virtual void KplView::mouseReleaseEvent ( QMouseEvent e)
protectedvirtual

Implements finishing of selection of a rectangular region using the mouse with its right button pressed.

In this case the signal regionSelected is emitted, transferring the rectangle.

Parameters
epointer to event.

Reimplemented from QGraphicsView.

void KplView::regionSelected ( const QRectF rect)
signal

Emitted when rectangular region was selected using the mouse with its right button pressed.

Parameters
rectrectangle in pixel units. units.
void KplView::setZoomFactor ( double  f)

Sets zoom factor.

Parameters
fzoom factor.
virtual QSize KplView::sizeHint ( ) const
virtual

Calculates recommended size of the widget.

Reimplemented from QGraphicsView.

void KplView::urlsDropped ( QList< QUrl > *  list)
signal

Emitted at drop event.

Parameters
listpointer to list of dropped URLs.
double KplView::zoomFactor ( ) const
inline

Returns zoom factor.


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