summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqevent.cpp')
-rw-r--r--src/kernel/tqevent.cpp136
1 files changed, 68 insertions, 68 deletions
diff --git a/src/kernel/tqevent.cpp b/src/kernel/tqevent.cpp
index fc59d9164..d1cf09fe9 100644
--- a/src/kernel/tqevent.cpp
+++ b/src/kernel/tqevent.cpp
@@ -56,9 +56,9 @@
and sends the translated events to TQObjects.
In general, events come from the underlying window system
- (spontaneous() returns TRUE) but it is also possible to manually
+ (spontaneous() returns true) but it is also possible to manually
send events using TQApplication::sendEvent() and
- TQApplication::postEvent() (spontaneous() returns FALSE).
+ TQApplication::postEvent() (spontaneous() returns false).
TQObjects receive events by having their TQObject::event() function
called. The function can be reimplemented in subclasses to
@@ -207,8 +207,8 @@
/*!
\fn bool TQEvent::spontaneous() const
- Returns TRUE if the event originated outside the application, i.e.
- it is a system event; otherwise returns FALSE.
+ Returns true if the event originated outside the application, i.e.
+ it is a system event; otherwise returns false.
*/
@@ -309,7 +309,7 @@
*/
TQMouseEvent::TQMouseEvent( Type type, const TQPoint &pos, int button, int state )
- : TQEvent(type), p(pos), b(button),s((ushort)state), accpt(TRUE){
+ : TQEvent(type), p(pos), b(button),s((ushort)state), accpt(true){
g = TQCursor::pos();
}
@@ -448,8 +448,8 @@ TQt::ButtonState TQMouseEvent::stateAfter() const
/*!
\fn bool TQMouseEvent::isAccepted() const
- Returns TRUE if the receiver of the event wants to keep the key;
- otherwise returns FALSE.
+ Returns true if the receiver of the event wants to keep the key;
+ otherwise returns false.
*/
/*!
@@ -529,7 +529,7 @@ TQt::ButtonState TQMouseEvent::stateAfter() const
#ifndef TQT_NO_WHEELEVENT
TQWheelEvent::TQWheelEvent( const TQPoint &pos, int delta, int state, Orientation orient )
: TQEvent(Wheel), p(pos), d(delta), s((ushort)state),
- accpt(TRUE), o(orient)
+ accpt(true), o(orient)
{
g = TQCursor::pos();
}
@@ -636,8 +636,8 @@ TQWheelEvent::TQWheelEvent( const TQPoint &pos, int delta, int state, Orientatio
/*!
\fn bool TQWheelEvent::isAccepted() const
- Returns TRUE if the receiver of the event handles the wheel event;
- otherwise returns FALSE.
+ Returns true if the receiver of the event handles the wheel event;
+ otherwise returns false.
*/
/*!
@@ -720,10 +720,10 @@ TQWheelEvent::TQWheelEvent( const TQPoint &pos, int delta, int state, Orientatio
keyboard macro). \a ascii is the ASCII code of the key that was
pressed or released. \a state holds the keyboard modifiers. \a
text is the Unicode text that the key generated. If \a autorep is
- TRUE, isAutoRepeat() will be TRUE. \a count is the number of
+ true, isAutoRepeat() will be true. \a count is the number of
single keys.
- The accept flag is set to TRUE.
+ The accept flag is set to true.
*/
/*!
@@ -804,8 +804,8 @@ TQt::ButtonState TQKeyEvent::stateAfter() const
/*!
\fn bool TQKeyEvent::isAccepted() const
- Returns TRUE if the receiver of the event wants to keep the key;
- otherwise returns FALSE
+ Returns true if the receiver of the event wants to keep the key;
+ otherwise returns false
*/
/*!
@@ -825,12 +825,12 @@ TQt::ButtonState TQKeyEvent::stateAfter() const
/*!
\fn bool TQKeyEvent::isAutoRepeat() const
- Returns TRUE if this event comes from an auto-repeating key and
- FALSE if it comes from an initial key press.
+ Returns true if this event comes from an auto-repeating key and
+ false if it comes from an initial key press.
Note that if the event is a multiple-key compressed event that is
- partly due to auto-repeat, this function could return either TRUE
- or FALSE indeterminately.
+ partly due to auto-repeat, this function could return either true
+ or false indeterminately.
*/
/*!
@@ -1251,15 +1251,15 @@ void TQFocusEvent::resetReason()
/*!
\fn bool TQFocusEvent::gotFocus() const
- Returns TRUE if the widget received the text input focus;
- otherwise returns FALSE.
+ Returns true if the widget received the text input focus;
+ otherwise returns false.
*/
/*!
\fn bool TQFocusEvent::lostFocus() const
- Returns TRUE if the widget lost the text input focus; otherwise
- returns FALSE.
+ Returns true if the widget lost the text input focus; otherwise
+ returns false.
*/
@@ -1279,9 +1279,9 @@ void TQFocusEvent::resetReason()
rect() can be much faster than region().boundingRect(). Painting
is clipped to region() during processing of a paint event.
- The erased() function returns TRUE if the region() has been
+ The erased() function returns true if the region() has been
cleared to the widget's background (see
- TQWidget::backgroundMode()), and FALSE if the region's contents are
+ TQWidget::backgroundMode()), and false if the region's contents are
arbitrary.
\sa TQPainter TQWidget::update() TQWidget::repaint()
@@ -1289,27 +1289,27 @@ void TQFocusEvent::resetReason()
*/
/*!
- \fn TQPaintEvent::TQPaintEvent( const TQRegion &paintRegion, bool erased=TRUE )
+ \fn TQPaintEvent::TQPaintEvent( const TQRegion &paintRegion, bool erased=true )
Constructs a paint event object with the region that should be
updated. The region is given by \a paintRegion. If \a erased is
- TRUE the region will be cleared before repainting.
+ true the region will be cleared before repainting.
*/
/*!
- \fn TQPaintEvent::TQPaintEvent( const TQRect &paintRect, bool erased=TRUE )
+ \fn TQPaintEvent::TQPaintEvent( const TQRect &paintRect, bool erased=true )
Constructs a paint event object with the rectangle that should be
updated. The region is also given by \a paintRect. If \a erased is
- TRUE the region will be cleared before repainting.
+ true the region will be cleared before repainting.
*/
/*!
- \fn TQPaintEvent::TQPaintEvent( const TQRegion &paintRegion, const TQRect &paintRect, bool erased=TRUE )
+ \fn TQPaintEvent::TQPaintEvent( const TQRegion &paintRegion, const TQRect &paintRect, bool erased=true )
Constructs a paint event object with the rectangle \a paintRect
that should be updated. The region is given by \a paintRegion. If
- \a erased is TRUE the region will be cleared before repainting.
+ \a erased is true the region will be cleared before repainting.
*/
/*!
@@ -1331,8 +1331,8 @@ void TQFocusEvent::resetReason()
/*!
\fn bool TQPaintEvent::erased() const
- Returns TRUE if the paint event region (or rectangle) has been
- erased with the widget's background; otherwise returns FALSE.
+ Returns true if the paint event region (or rectangle) has been
+ erased with the widget's background; otherwise returns false.
*/
/*!
@@ -1448,7 +1448,7 @@ void TQFocusEvent::resetReason()
If the last top-level window is closed, the
TQApplication::lastWindowClosed() signal is emitted.
- The isAccepted() function returns TRUE if the event's receiver has
+ The isAccepted() function returns true if the event's receiver has
agreed to close the widget; call accept() to agree to close the
widget and call ignore() if the receiver of this event does not
want the widget to be closed.
@@ -1462,7 +1462,7 @@ void TQFocusEvent::resetReason()
\fn TQCloseEvent::TQCloseEvent()
Constructs a close event object with the accept parameter flag set
- to FALSE.
+ to false.
\sa accept()
*/
@@ -1470,8 +1470,8 @@ void TQFocusEvent::resetReason()
/*!
\fn bool TQCloseEvent::isAccepted() const
- Returns TRUE if the receiver of the event has agreed to close the
- widget; otherwise returns FALSE.
+ Returns true if the receiver of the event has agreed to close the
+ widget; otherwise returns false.
\sa accept(), ignore()
*/
@@ -1521,7 +1521,7 @@ void TQFocusEvent::resetReason()
\fn TQIconDragEvent::TQIconDragEvent()
Constructs an icon drag event object with the accept parameter
- flag set to FALSE.
+ flag set to false.
\sa accept()
*/
@@ -1529,8 +1529,8 @@ void TQFocusEvent::resetReason()
/*!
\fn bool TQIconDragEvent::isAccepted() const
- Returns TRUE if the receiver of the event has started a drag and
- drop operation; otherwise returns FALSE.
+ Returns true if the receiver of the event has started a drag and
+ drop operation; otherwise returns false.
\sa accept(), ignore()
*/
@@ -1587,7 +1587,7 @@ void TQFocusEvent::resetReason()
\fn TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, const TQPoint &globalPos, int state )
Constructs a context menu event object with the accept parameter
- flag set to FALSE.
+ flag set to false.
The \a reason parameter must be \c TQContextMenuEvent::Mouse or \c
TQContextMenuEvent::Keyboard.
@@ -1602,7 +1602,7 @@ void TQFocusEvent::resetReason()
\fn TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int state )
Constructs a context menu event object with the accept parameter
- flag set to FALSE.
+ flag set to false.
The \a reason parameter must be \c TQContextMenuEvent::Mouse or \c
TQContextMenuEvent::Keyboard.
@@ -1617,7 +1617,7 @@ void TQFocusEvent::resetReason()
*/
TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int state )
- : TQEvent( ContextMenu ), p( pos ), accpt(TRUE), consum(TRUE),
+ : TQEvent( ContextMenu ), p( pos ), accpt(true), consum(true),
reas( reason ), s((ushort)state)
{
gp = TQCursor::pos();
@@ -1691,8 +1691,8 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
/*!
\fn bool TQContextMenuEvent::isConsumed() const
- Returns TRUE (which stops propagation of the event) if the
- receiver has blocked the event; otherwise returns FALSE.
+ Returns true (which stops propagation of the event) if the
+ receiver has blocked the event; otherwise returns false.
\sa accept(), ignore(), consume()
*/
@@ -1714,8 +1714,8 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
/*!
\fn bool TQContextMenuEvent::isAccepted() const
- Returns TRUE if the receiver has processed the event; otherwise
- returns FALSE.
+ Returns true if the receiver has processed the event; otherwise
+ returns false.
\sa accept(), ignore(), consume()
*/
@@ -1847,7 +1847,7 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
/*!
\fn TQIMEvent::TQIMEvent( Type type, const TQString &text, int cursorPosition )
- Constructs a new TQIMEvent with the accept flag set to FALSE. \a
+ Constructs a new TQIMEvent with the accept flag set to false. \a
type can be one of TQEvent::IMStartEvent, TQEvent::IMComposeEvent
or TQEvent::IMEndEvent. \a text contains the current compostion
string and \a cursorPosition the current position of the cursor
@@ -1881,8 +1881,8 @@ TQContextMenuEvent::TQContextMenuEvent( Reason reason, const TQPoint &pos, int s
/*!
\fn bool TQIMEvent::isAccepted() const
- Returns TRUE if the receiver of the event processed the event;
- otherwise returns FALSE.
+ Returns true if the receiver of the event processed the event;
+ otherwise returns false.
*/
/*!
@@ -1988,7 +1988,7 @@ TQTabletEvent::TQTabletEvent( Type t, const TQPoint &pos, const TQPoint &globalP
mYT( yTilt ),
mType( uId.first ),
mPhy( uId.second ),
- mbAcc(TRUE)
+ mbAcc(true)
{}
/*!
@@ -2110,8 +2110,8 @@ TQTabletEvent::TQTabletEvent( Type t, const TQPoint &pos, const TQPoint &globalP
/*!
\fn bool TQTabletEvent::isAccepted() const
- Returns TRUE if the receiver of the event handles the tablet
- event; otherwise returns FALSE.
+ Returns true if the receiver of the event handles the tablet
+ event; otherwise returns false.
*/
/*!
@@ -2196,14 +2196,14 @@ TQTabletEvent::TQTabletEvent( Type t, const TQPoint &pos, const TQPoint &globalP
/*!
\fn bool TQChildEvent::inserted() const
- Returns TRUE if the widget received a new child; otherwise returns
- FALSE.
+ Returns true if the widget received a new child; otherwise returns
+ false.
*/
/*!
\fn bool TQChildEvent::removed() const
- Returns TRUE if the object lost a child; otherwise returns FALSE.
+ Returns true if the object lost a child; otherwise returns false.
*/
@@ -2357,16 +2357,16 @@ TQCustomEvent::TQCustomEvent( int type )
/*!
\fn bool TQDropEvent::isAccepted () const
- Returns TRUE if the drop target accepts the event; otherwise
- returns FALSE.
+ Returns true if the drop target accepts the event; otherwise
+ returns false.
*/
/*!
- \fn void TQDropEvent::accept(bool y=TRUE)
+ \fn void TQDropEvent::accept(bool y=true)
Call this function to indicate whether the event provided data
- which your widget processed. Set \a y to TRUE (the default) if
- your widget could process the data, otherwise set \a y to FALSE.
+ which your widget processed. Set \a y to true (the default) if
+ your widget could process the data, otherwise set \a y to false.
To get the data, use encodedData(), or preferably, the decode()
methods of existing TQDragObject subclasses, such as
TQTextDrag::decode(), or your own subclasses.
@@ -2375,12 +2375,12 @@ TQCustomEvent::TQCustomEvent( int type )
*/
/*!
- \fn void TQDropEvent::acceptAction(bool y=TRUE)
+ \fn void TQDropEvent::acceptAction(bool y=true)
Call this to indicate that the action described by action() is
- accepted (i.e. if \a y is TRUE, which is the default), not merely
- the default copy action. If you call acceptAction(TRUE), there is
- no need to also call accept(TRUE).
+ accepted (i.e. if \a y is true, which is the default), not merely
+ the default copy action. If you call acceptAction(true), there is
+ no need to also call accept(true).
*/
/*!
@@ -2448,8 +2448,8 @@ TQCustomEvent::TQCustomEvent( int type )
/*!
\fn bool TQDropEvent::isActionAccepted () const
- Returns TRUE if the drop action was accepted by the drop site;
- otherwise returns FALSE.
+ Returns true if the drop action was accepted by the drop site;
+ otherwise returns false.
*/
@@ -2518,12 +2518,12 @@ TQCustomEvent::TQCustomEvent( int type )
This event is sent just before TQWidget::hide() returns, and also
when a top-level window has been hidden (iconified) by the user.
- If spontaneous() is TRUE the event originated outside the
+ If spontaneous() is true the event originated outside the
application, i.e. the user hid the window using the window manager
controls, either by iconifying the window or by switching to
another virtual desktop where the window isn't visible. The window
will become hidden but not withdrawn. If the window was iconified,
- TQWidget::isMinimized() returns TRUE.
+ TQWidget::isMinimized() returns true.
\sa TQShowEvent
*/