diff options
Diffstat (limited to 'src/kernel/tqwidget_x11.cpp')
| -rw-r--r-- | src/kernel/tqwidget_x11.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/kernel/tqwidget_x11.cpp b/src/kernel/tqwidget_x11.cpp index c8492c6e6..808d2ef4c 100644 --- a/src/kernel/tqwidget_x11.cpp +++ b/src/kernel/tqwidget_x11.cpp @@ -304,15 +304,15 @@ static void qt_net_change_wm_state(const TQWidget* w, bool set, Atom one, Atom t widget's window to \a window. Initializes the window (sets the geometry etc.) if \a - initializeWindow is TRUE. If \a initializeWindow is FALSE, no + initializeWindow is true. If \a initializeWindow is false, no initialization is performed. This parameter only makes sense if \a window is a valid window. - Destroys the old window if \a destroyOldWindow is TRUE. If \a - destroyOldWindow is FALSE, you are responsible for destroying the + Destroys the old window if \a destroyOldWindow is true. If \a + destroyOldWindow is false, you are responsible for destroying the window yourself (using platform native code). - The TQWidget constructor calls create(0,TRUE,TRUE) to create a + The TQWidget constructor calls create(0,true,true) to create a window for this widget. */ @@ -346,13 +346,13 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) // always initialize if ( !window ) - initializeWindow = TRUE; + initializeWindow = true; if ( desktop && qt_x11_create_desktop_on_screen >= 0 && qt_x11_create_desktop_on_screen != x11Screen() ) { // desktop on a certain screen other than the default requested - TQPaintDeviceX11Data* xd = getX11Data( TRUE ); + TQPaintDeviceX11Data* xd = getX11Data( true ); xd->x_screen = qt_x11_create_desktop_on_screen; xd->x_depth = TQPaintDevice::x11AppDepth( xd->x_screen ); xd->x_cells = TQPaintDevice::x11AppCells( xd->x_screen ); @@ -363,7 +363,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) setX11Data( xd ); } else if ( parentWidget() && parentWidget()->x11Screen() != x11Screen() ) { // if we have a parent widget, move to its screen if necessary - TQPaintDeviceX11Data* xd = getX11Data( TRUE ); + TQPaintDeviceX11Data* xd = getX11Data( true ); xd->x_screen = parentWidget()->x11Screen(); xd->x_depth = TQPaintDevice::x11AppDepth( xd->x_screen ); xd->x_cells = TQPaintDevice::x11AppCells( xd->x_screen ); @@ -383,7 +383,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) int sh = DisplayHeight(dpy,scr); if ( desktop ) { // desktop widget - dialog = popup = FALSE; // force these flags off + dialog = popup = false; // force these flags off crect.setRect( 0, 0, sw, sh ); } else if ( topLevel ) { // calc pos/size from screen crect.setRect( sw/4, 3*sh/10, sw/2, 4*sh/10 ); @@ -409,7 +409,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) else setWState( WState_Visible ); - TQPaintDeviceX11Data* xd = getX11Data( TRUE ); + TQPaintDeviceX11Data* xd = getX11Data( true ); // find which screen the window is on... xd->x_screen = TQPaintDevice::x11AppScreen(); // by default, use the default :) @@ -757,7 +757,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) } setWState( WState_MouseTracking ); - setMouseTracking( FALSE ); // also sets event mask + setMouseTracking( false ); // also sets event mask if ( desktop ) { setWState( WState_Visible ); } else if ( topLevel ) { // set X cursor @@ -777,7 +777,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow) /*! Frees up window system resources. Destroys the widget window if \a - destroyWindow is TRUE. + destroyWindow is true. destroy() calls itself recursively for all the child widgets, passing \a destroySubWindows for the \a destroyWindow parameter. @@ -825,7 +825,7 @@ void TQWidget::destroy( bool destroyWindow, bool destroySubWindows ) if ( testWFlags(WType_Desktop) ) { if ( acceptDrops() ) - qt_dnd_enable( this, FALSE ); + qt_dnd_enable( this, false ); } else { if ( destroyWindow ) qt_XDestroyWindow( this, x11Display(), winid ); @@ -867,7 +867,7 @@ void TQWidget::reparentSys( TQWidget *parent, WFlags f, const TQPoint &p, bool s // dnd unregister (we will register again below) bool accept_drops = acceptDrops(); - setAcceptDrops( FALSE ); + setAcceptDrops( false ); // clear mouse tracking, re-enabled below bool mouse_tracking = hasMouseTracking(); @@ -987,7 +987,7 @@ void TQWidget::reparentSys( TQWidget *parent, WFlags f, const TQPoint &p, bool s oldparent->checkChildrenDnd(); if ( accept_drops ) - setAcceptDrops( TRUE ); + setAcceptDrops( true ); else { checkChildrenDnd(); topData()->dnd = 0; @@ -1099,15 +1099,15 @@ TQPoint TQWidget::mapFromGlobal( const TQPoint &pos ) const height. This has no \e visual effect, it just provides hints to any system-specific input handling tools. - The \a text argument should be TRUE if this is a position for text + The \a text argument should be true if this is a position for text input. In the Windows version of TQt, this method sets the system caret, which is used for user Accessibility focus handling. If \a text - is TRUE, it also sets the IME composition window in Far East Asian + is true, it also sets the IME composition window in Far East Asian language input systems. - In the X11 version of TQt, if \a text is TRUE, this method sets the + In the X11 version of TQt, if \a text is true, this method sets the input method focus point in the preedit (XIM "spot" point) for complex language input handling. @@ -1241,13 +1241,13 @@ static XTextProperty* tqstring_to_xtp( const TQString& s ) { static XTextProperty tp = { 0, 0, 0, 0 }; - static bool free_prop = TRUE; // we can't free tp.value in case it references + static bool free_prop = true; // we can't free tp.value in case it references // the data of the static TQCString below. if ( tp.value ) { if ( free_prop ) XFree( tp.value ); tp.value = 0; - free_prop = TRUE; + free_prop = true; } static const TQTextCodec* mapper = TQTextCodec::codecForLocale(); @@ -1271,7 +1271,7 @@ tqstring_to_xtp( const TQString& s ) tp.encoding = XA_STRING; tp.format = 8; tp.nitems = qcs.length(); - free_prop = FALSE; + free_prop = false; } // ### If we knew WM could understand unicode, we could use @@ -1436,7 +1436,7 @@ void TQWidget::setMouseTracking( bool enable ) button is released. Note that only visible widgets can grab mouse input. If - isVisible() returns FALSE for a widget, that widget cannot call + isVisible() returns false for a widget, that widget cannot call grabMouse(). \sa releaseMouse() grabKeyboard() releaseKeyboard() grabKeyboard() @@ -1736,7 +1736,7 @@ void TQWidget::update( int x, int y, int w, int h ) Repaints the widget directly by calling paintEvent() immediately, unless updates are disabled or the widget is hidden. - If \a erase is TRUE, TQt erases the area \a (x, y, w, h) before the + If \a erase is true, TQt erases the area \a (x, y, w, h) before the paintEvent() call. If \a w is negative, it is replaced with \c{width() - x}, and if @@ -1786,7 +1786,7 @@ void TQWidget::repaint( int x, int y, int w, int h, bool erase ) Repaints the widget directly by calling paintEvent() directly, unless updates are disabled or the widget is hidden. - Erases the widget region \a reg if \a erase is TRUE. + Erases the widget region \a reg if \a erase is true. Only use repaint if your widget needs to be repainted immediately, for example when doing some animation. In all other cases, use @@ -1818,12 +1818,12 @@ void TQWidget::repaint( const TQRegion& reg, bool erase ) Repaints the widget directly by calling paintEvent() directly, unless updates are disabled or the widget is hidden. - Erases the widget region \a r if \a erase is TRUE. + Erases the widget region \a r if \a erase is true. */ void TQWidget::setWindowState(uint newstate) { - bool needShow = FALSE; + bool needShow = false; uint oldstate = windowState(); if (isTopLevel()) { TQTLWExtra *top = topData(); @@ -1920,7 +1920,7 @@ void TQWidget::setWindowState(uint newstate) } } - needShow = FALSE; + needShow = false; } } @@ -2031,7 +2031,7 @@ void TQWidget::hideWindow() // zero the frame strut and mark it dirty top->fleft = top->fright = top->ftop = top->fbottom = 0; - fstrut_dirty = TRUE; + fstrut_dirty = true; XFlush( x11Display() ); } else { @@ -2472,7 +2472,7 @@ void TQWidget::scroll( int dx, int dy, const TQRect& r ) return; Display *dpy = x11Display(); - GC gc = tqt_xget_readonly_gc( x11Screen(), FALSE ); + GC gc = tqt_xget_readonly_gc( x11Screen(), false ); // Want expose events if ( w > 0 && h > 0 && !just_update ) { XSetGraphicsExposures( dpy, gc, True ); @@ -2604,8 +2604,8 @@ int TQWidget::metric( int m ) const void TQWidget::createSysExtra() { extra->xDndProxy = 0; - extra->children_use_dnd = FALSE; - extra->compress_events = TRUE; + extra->children_use_dnd = false; + extra->compress_events = true; } void TQWidget::deleteSysExtra() @@ -2646,7 +2646,7 @@ void TQWidget::checkChildrenDnd() while (widget && ! widget->isDesktop()) { // note: this isn't done for the desktop widget - bool children_use_dnd = FALSE; + bool children_use_dnd = false; children = widget->children(); if ( children ) { TQObjectListIt it(*children); @@ -2718,7 +2718,7 @@ void TQWidget::handleSyncRequest( void* ev ) \property TQWidget::acceptDrops \brief whether drop events are enabled for this widget - Setting this property to TRUE announces to the system that this + Setting this property to true announces to the system that this widget \e may be able to accept drop events. If the widget is the desktop (TQWidget::isDesktop()), this may @@ -2992,7 +2992,7 @@ void TQWidget::changeInputContext( const TQString& identifierName ) according to a configuration for default input method When TQT_NO_IM_EXTENSIONS is not set, input context is - generated only when isInputMethodEnabled() returns TRUE. + generated only when isInputMethodEnabled() returns true. */ void TQWidget::createInputContext() { |
