Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1952

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QContextMenuEvent" doc="/**
&lt;p&gt;The &lt;a href=&quot;QContextMenuEvent.html#QContextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent.Reason, com.trolltech.qt.core.QPoint, com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;QContextMenuEvent&lt;/tt&gt;&lt;/a&gt; class contains parameters that describe a context menu event.&lt;/p&gt;
&lt;p&gt;Context menu events are sent to widgets when a user performs an action associated with opening a context menu. The actions required to open context menus vary between platforms; for example, on Windows, pressing the menu button or clicking the right mouse button will cause this event to be sent.&lt;/p&gt;
&lt;p&gt;When this event occurs it is customary to show a &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt; with a context menu, if this is relevant to the context.&lt;/p&gt;
&lt;p&gt;Context menu events contain a special accept flag that indicates whether the receiver accepted the event. If the event handler does not accept the event then, if possible, whatever triggered the event will be handled as a regular input event.&lt;/p&gt;
 */">
    <method name="public QContextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent.Reason reason, com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;Constructs a context menu event object with the accept parameter flag set to false.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;reason&lt;/tt&gt; parameter must be QContextMenuEvent::Mouse or QContextMenuEvent::Keyboard.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;pos&lt;/tt&gt; parameter specifies the mouse position relative to the receiving widget.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QContextMenuEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; is initialized to QCursor::pos(), which may not be appropriate. Use the other constructor to specify the global position explicitly.&lt;/p&gt;
 */"/>
    <method name="public QContextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent.Reason reason, com.trolltech.qt.core.QPoint pos, com.trolltech.qt.core.QPoint globalPos)" doc="/**
&lt;p&gt;Constructs a context menu event object with the accept parameter flag set to false.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;reason&lt;/tt&gt; parameter must be QContextMenuEvent::Mouse or QContextMenuEvent::Keyboard.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;pos&lt;/tt&gt; parameter specifies the mouse position relative to the receiving widget. &lt;tt&gt;globalPos&lt;/tt&gt; is the mouse position in absolute coordinates.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QPoint globalPos()" doc="/**
&lt;p&gt;Returns the global position of the mouse pointer at the time of the event.&lt;/p&gt;

@see &lt;a href=&quot;QContextMenuEvent.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QContextMenuEvent.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QContextMenuEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int globalX()" doc="/**
&lt;p&gt;Returns the global x position of the mouse pointer at the time of the event.&lt;/p&gt;

@see &lt;a href=&quot;QContextMenuEvent.html#globalY()&quot;&gt;&lt;tt&gt;globalY&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QContextMenuEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int globalY()" doc="/**
&lt;p&gt;Returns the global y position of the mouse pointer at the time of the event.&lt;/p&gt;

@see &lt;a href=&quot;QContextMenuEvent.html#globalX()&quot;&gt;&lt;tt&gt;globalX&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QContextMenuEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint pos()" doc="/**
&lt;p&gt;Returns the position of the mouse pointer relative to the widget that received the event.&lt;/p&gt;

@see &lt;a href=&quot;QContextMenuEvent.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QContextMenuEvent.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QContextMenuEvent.html#globalPos()&quot;&gt;&lt;tt&gt;globalPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QContextMenuEvent.Reason reason()" doc="/**
&lt;p&gt;Returns the reason for this context event.&lt;/p&gt;
 */"/>
    <method name="public final int x()" doc="/**
&lt;p&gt;Returns the x position of the mouse pointer, relative to the widget that received the event.&lt;/p&gt;

@see &lt;a href=&quot;QContextMenuEvent.html#y()&quot;&gt;&lt;tt&gt;y&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QContextMenuEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int y()" doc="/**
&lt;p&gt;Returns the y position of the mouse pointer, relative to the widget that received the event.&lt;/p&gt;

@see &lt;a href=&quot;QContextMenuEvent.html#x()&quot;&gt;&lt;tt&gt;x&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QContextMenuEvent.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="Reason" doc="/**
&lt;p&gt;This enum describes the reason why the event was sent.&lt;/p&gt;
 */">
        <enum-value name="Mouse" doc="/**
&lt;p&gt;The mouse caused the event to be sent. Normally this means the right mouse button was clicked, but this is platform dependent.&lt;/p&gt;
 */"/>
        <enum-value name="Keyboard" doc="/**
&lt;p&gt;The keyboard caused this event to be sent. On Windows, this means the menu button was pressed.&lt;/p&gt;
 */"/>
        <enum-value name="Other" doc="/**
&lt;p&gt;The event was sent by some other means (i.e&amp;#x2e; not by the mouse or keyboard).&lt;/p&gt;
 */"/>
</enum>
    <method name="protected final int reas()"/>
    <method name="protected final void setReas(int reas)"/>
    <method name="protected final com.trolltech.qt.core.QPoint gp()"/>
    <method name="protected final void setGp(com.trolltech.qt.core.QPoint gp)"/>
    <method name="protected final com.trolltech.qt.core.QPoint p()"/>
    <method name="protected final void setP(com.trolltech.qt.core.QPoint p)"/>
</class>