diff options
Diffstat (limited to 'doc/html/tqevent-h.html')
-rw-r--r-- | doc/html/tqevent-h.html | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/doc/html/tqevent-h.html b/doc/html/tqevent-h.html index a480c3ae8..51c5866d4 100644 --- a/doc/html/tqevent-h.html +++ b/doc/html/tqevent-h.html @@ -177,7 +177,7 @@ public: }; - TQEvent( Type type ) : t(type), posted(FALSE), spont(FALSE) {} + TQEvent( Type type ) : t(type), posted(false), spont(false) {} virtual ~TQEvent(); Type type() const { return t; } bool spontaneous() const { return spont; } @@ -213,7 +213,7 @@ public: TQMouseEvent( Type type, const TQPoint &pos, const TQPoint&globalPos, int button, int state ) - : TQEvent(type), p(pos), g(globalPos), b((ushort)button),s((ushort)state),accpt(TRUE) {}; + : TQEvent(type), p(pos), g(globalPos), b((ushort)button),s((ushort)state),accpt(true) {}; const TQPoint &pos() const { return p; } const TQPoint &globalPos() const { return g; } @@ -225,8 +225,8 @@ public: ButtonState state() const { return (ButtonState) s; } ButtonState stateAfter() const; bool isAccepted() const { return accpt; } - void accept() { accpt = TRUE; } - void ignore() { accpt = FALSE; } + void accept() { accpt = true; } + void ignore() { accpt = false; } protected: TQPoint p; TQPoint g; @@ -243,7 +243,7 @@ public: TQWheelEvent( const TQPoint &pos, int delta, int state, Orientation orient = Vertical ); TQWheelEvent( const TQPoint &pos, const TQPoint& globalPos, int delta, int state, Orientation orient = Vertical ) : TQEvent(Wheel), p(pos), g(globalPos), d(delta), s((ushort)state), - accpt(TRUE), o(orient) {} + accpt(true), o(orient) {} int delta() const { return d; } const TQPoint &pos() const { return p; } const TQPoint &globalPos() const { return g; } @@ -254,8 +254,8 @@ public: ButtonState state() const { return ButtonState(s); } Orientation orientation() const { return o; } bool isAccepted() const { return accpt; } - void accept() { accpt = TRUE; } - void ignore() { accpt = FALSE; } + void accept() { accpt = true; } + void ignore() { accpt = false; } protected: TQPoint p; TQPoint g; @@ -276,7 +276,7 @@ public: int pressure, int xTilt, int yTilt, const TQPair<int,int> &uId ) : TQEvent( TabletMove ), mPos( pos ), mGPos( globalPos ), mDev( device ), mPress( pressure ), mXT( xTilt ), mYT( yTilt ), mType( uId.first ), - mPhy( uId.second ), mbAcc(TRUE) + mPhy( uId.second ), mbAcc(true) {} int pressure() const { return mPress; } int xTilt() const { return mXT; } @@ -289,8 +289,8 @@ public: int globalY() const { return mGPos.y(); } TabletDevice device() const { return TabletDevice(mDev); } int isAccepted() const { return mbAcc; } - void accept() { mbAcc = TRUE; } - void ignore() { mbAcc = FALSE; } + void accept() { mbAcc = true; } + void ignore() { mbAcc = false; } TQPair<int,int> uniqueId() { return TQPair<int,int>( mType, mPhy); } protected: TQPoint mPos; @@ -309,12 +309,12 @@ class TQ_EXPORT TQKeyEvent : public TQEvent { public: TQKeyEvent( Type type, int key, int ascii, int state, - const TQString& text=TQString::null, bool autorep=FALSE, ushort count=1 ) + const TQString& text=TQString::null, bool autorep=false, ushort count=1 ) : TQEvent(type), txt(text), k((ushort)key), s((ushort)state), - a((uchar)ascii), accpt(TRUE), autor(autorep), c(count) + a((uchar)ascii), accpt(true), autor(autorep), c(count) { if ( key >= Key_Back && key <= Key_MediaLast ) - accpt = FALSE; + accpt = false; } int key() const { return k; } int ascii() const { return a; } @@ -324,8 +324,8 @@ public: TQString text() const { return txt; } bool isAutoRepeat() const { return autor; } int count() const { return int(c); } - void accept() { accpt = TRUE; } - void ignore() { accpt = FALSE; } + void accept() { accpt = true; } + void ignore() { accpt = false; } protected: TQString txt; @@ -361,17 +361,17 @@ private: class TQ_EXPORT TQPaintEvent : public TQEvent { public: - TQPaintEvent( const TQRegion& paintRegion, bool erased = TRUE) + TQPaintEvent( const TQRegion& paintRegion, bool erased = true) : TQEvent(Paint), rec(paintRegion.boundingRect()), reg(paintRegion), erase(erased){} - TQPaintEvent( const TQRect &paintRect, bool erased = TRUE ) + TQPaintEvent( const TQRect &paintRect, bool erased = true ) : TQEvent(Paint), rec(paintRect), reg(paintRect), erase(erased){} - TQPaintEvent( const TQRegion &paintRegion, const TQRect &paintRect, bool erased = TRUE ) + TQPaintEvent( const TQRegion &paintRegion, const TQRect &paintRect, bool erased = true ) : TQEvent(Paint), rec(paintRect), reg(paintRegion), @@ -421,10 +421,10 @@ class TQ_EXPORT TQCloseEvent : public TQEvent { public: TQCloseEvent() - : TQEvent(Close), accpt(FALSE) {} + : TQEvent(Close), accpt(false) {} bool isAccepted() const { return accpt; } - void accept() { accpt = TRUE; } - void ignore() { accpt = FALSE; } + void accept() { accpt = true; } + void ignore() { accpt = false; } protected: bool accpt; }; @@ -434,11 +434,11 @@ class TQ_EXPORT TQIconDragEvent : public TQEvent { public: TQIconDragEvent() - : TQEvent(IconDrag), accpt(FALSE) {} + : TQEvent(IconDrag), accpt(false) {} bool isAccepted() const { return accpt; } - void accept() { accpt = TRUE; } - void ignore() { accpt = FALSE; } + void accept() { accpt = true; } + void ignore() { accpt = false; } protected: bool accpt; }; @@ -463,7 +463,7 @@ class TQ_EXPORT TQContextMenuEvent : public TQEvent public: enum Reason { Mouse, Keyboard, Other }; TQContextMenuEvent( Reason reason, const TQPoint &pos, const TQPoint &globalPos, int state ) - : TQEvent( ContextMenu ), p( pos ), gp( globalPos ), accpt( TRUE ), consum( TRUE ), + : TQEvent( ContextMenu ), p( pos ), gp( globalPos ), accpt( true ), consum( true ), reas( reason ), s((ushort)state) {} TQContextMenuEvent( Reason reason, const TQPoint &pos, int state ); @@ -478,9 +478,9 @@ public: ButtonState state() const { return (ButtonState) s; } bool isAccepted() const { return accpt; } bool isConsumed() const { return consum; } - void consume() { accpt = FALSE; consum = TRUE; } - void accept() { accpt = TRUE; consum = TRUE; } - void ignore() { accpt = FALSE; consum = FALSE; } + void consume() { accpt = false; consum = true; } + void accept() { accpt = true; consum = true; } + void ignore() { accpt = false; consum = false; } Reason reason() const { return Reason( reas ); } @@ -498,12 +498,12 @@ class TQ_EXPORT TQIMEvent : public TQEvent { public: TQIMEvent( Type type, const TQString &text, int cursorPosition ) - : TQEvent(type), txt(text), cpos(cursorPosition), a(TRUE) {} + : TQEvent(type), txt(text), cpos(cursorPosition), a(true) {} const TQString &text() const { return txt; } int cursorPos() const { return cpos; } bool isAccepted() const { return a; } - void accept() { a = TRUE; } - void ignore() { a = FALSE; } + void accept() { a = true; } + void ignore() { a = false; } int selectionLength() const; private: @@ -549,11 +549,11 @@ public: {} const TQPoint &pos() const { return p; } bool isAccepted() const { return accpt || accptact; } - void accept(bool y=TRUE) { accpt = y; } - void ignore() { accpt = FALSE; } + void accept(bool y=true) { accpt = y; } + void ignore() { accpt = false; } bool isActionAccepted() const { return accptact; } - void acceptAction(bool y=TRUE) { accptact = y; } + void acceptAction(bool y=true) { accptact = y; } enum Action { Copy, Link, Move, Private, UserAction=100 }; void setAction( Action a ) { act = (uint)a; } Action action() const { return Action(act); } @@ -585,9 +585,9 @@ public: : TQDropEvent(pos,typ), rect( pos, TQSize( 1, 1 ) ) {} TQRect answerRect() const { return rect; } - void accept( bool y=TRUE ) { TQDropEvent::accept(y); } - void accept( const TQRect & r) { accpt = TRUE; rect = r; } - void ignore( const TQRect & r) { accpt =FALSE; rect = r; } + void accept( bool y=true ) { TQDropEvent::accept(y); } + void accept( const TQRect & r) { accpt = true; rect = r; } + void ignore( const TQRect & r) { accpt =false; rect = r; } void ignore() { TQDropEvent::ignore(); } protected: |