com.trolltech.qt.gui
Class QGraphicsSceneContextMenuEvent

java.lang.Object
  extended by com.trolltech.qt.QSignalEmitter
      extended by com.trolltech.qt.QtJambiObject
          extended by com.trolltech.qt.core.QEvent
              extended by com.trolltech.qt.gui.QGraphicsSceneEvent
                  extended by com.trolltech.qt.gui.QGraphicsSceneContextMenuEvent
All Implemented Interfaces:
QtJambiInterface

public class QGraphicsSceneContextMenuEvent
extends QGraphicsSceneEvent

The QGraphicsSceneContextMenuEvent class provides context menu events in the graphics view framework.

A QContextMenuEvent received by a QGraphicsView is translated into a QGraphicsSceneContextMenuEvent. The QWheelEvent::globalPos() is translated into item, scene, and screen coordinates (pos, scenePos, and screenPos).

See Also:
QGraphicsSceneMouseEvent, QGraphicsSceneWheelEvent, QContextMenuEvent

Nested Class Summary
static class QGraphicsSceneContextMenuEvent.Reason
          This enum describes the reason why the context event was sent.
 
Nested classes/interfaces inherited from class com.trolltech.qt.core.QEvent
QEvent.Type
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
 
Constructor Summary
QGraphicsSceneContextMenuEvent()
          Equivalent to QGraphicsSceneContextMenuEvent(None).
QGraphicsSceneContextMenuEvent(QEvent.Type type)
          This method is used internally by Qt Jambi.
 
Method Summary
static QGraphicsSceneContextMenuEvent fromNativePointer(QNativePointer nativePointer)
          This function returns the QGraphicsSceneContextMenuEvent instance pointed to by nativePointer
 Qt.KeyboardModifiers modifiers()
          Returns the keyboard modifiers in use when the context menu was requested.
 QPointF pos()
          Returns the position of the mouse cursor in item coordinates at the moment the the context menu was requested.
 QGraphicsSceneContextMenuEvent.Reason reason()
          Returns the reason for the context menu event.
 QPointF scenePos()
          Returns the position of the mouse cursor in scene coordinates at the moment the the context menu was requested.
 QPoint screenPos()
          Returns the position of the mouse cursor in screen coordinates at the moment the the context menu was requested.
 void setModifiers(Qt.KeyboardModifier... modifiers)
          This method is used internally by Qt Jambi.
 void setModifiers(Qt.KeyboardModifiers modifiers)
          This method is used internally by Qt Jambi.
 void setPos(QPointF pos)
          This method is used internally by Qt Jambi.
 void setReason(QGraphicsSceneContextMenuEvent.Reason reason)
          This method is used internally by Qt Jambi.
 void setScenePos(QPointF pos)
          This method is used internally by Qt Jambi.
 void setScreenPos(QPoint pos)
          This method is used internally by Qt Jambi.
 
Methods inherited from class com.trolltech.qt.gui.QGraphicsSceneEvent
widget
 
Methods inherited from class com.trolltech.qt.core.QEvent
accept, ignore, isAccepted, setAccepted, setT, spontaneous, t, type
 
Methods inherited from class com.trolltech.qt.QtJambiObject
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.trolltech.qt.QtJambiInterface
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership
 

Constructor Detail

QGraphicsSceneContextMenuEvent

public QGraphicsSceneContextMenuEvent()

Equivalent to QGraphicsSceneContextMenuEvent(None).


QGraphicsSceneContextMenuEvent

public QGraphicsSceneContextMenuEvent(QEvent.Type type)

This method is used internally by Qt Jambi. Do not use it in your applications.

Method Detail

modifiers

public final Qt.KeyboardModifiers modifiers()

Returns the keyboard modifiers in use when the context menu was requested.

See Also:
setModifiers

pos

public final QPointF pos()

Returns the position of the mouse cursor in item coordinates at the moment the the context menu was requested.

See Also:
setPos, scenePos, screenPos

reason

public final QGraphicsSceneContextMenuEvent.Reason reason()

Returns the reason for the context menu event.

See Also:
setReason, QGraphicsSceneContextMenuEvent::Reason

scenePos

public final QPointF scenePos()

Returns the position of the mouse cursor in scene coordinates at the moment the the context menu was requested.

See Also:
setScenePos, pos, screenPos

screenPos

public final QPoint screenPos()

Returns the position of the mouse cursor in screen coordinates at the moment the the context menu was requested.

See Also:
setScreenPos, pos, scenePos

setModifiers

public final void setModifiers(Qt.KeyboardModifier... modifiers)

This method is used internally by Qt Jambi. Do not use it in your applications.

See Also:
modifiers

setModifiers

public final void setModifiers(Qt.KeyboardModifiers modifiers)

This method is used internally by Qt Jambi. Do not use it in your applications.

See Also:
modifiers

setPos

public final void setPos(QPointF pos)

This method is used internally by Qt Jambi. Do not use it in your applications.

See Also:
pos

setReason

public final void setReason(QGraphicsSceneContextMenuEvent.Reason reason)

This method is used internally by Qt Jambi. Do not use it in your applications.

See Also:
reason

setScenePos

public final void setScenePos(QPointF pos)

This method is used internally by Qt Jambi. Do not use it in your applications.

See Also:
scenePos

setScreenPos

public final void setScreenPos(QPoint pos)

This method is used internally by Qt Jambi. Do not use it in your applications.

See Also:
screenPos

fromNativePointer

public static QGraphicsSceneContextMenuEvent fromNativePointer(QNativePointer nativePointer)
This function returns the QGraphicsSceneContextMenuEvent instance pointed to by nativePointer

Parameters:
nativePointer - the QNativePointer of which object should be returned.