diff options
Diffstat (limited to 'doc/html/tqscrollview.html')
-rw-r--r-- | doc/html/tqscrollview.html | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/doc/html/tqscrollview.html b/doc/html/tqscrollview.html index 75f495aa8..2ce8e1d2d 100644 --- a/doc/html/tqscrollview.html +++ b/doc/html/tqscrollview.html @@ -49,7 +49,7 @@ body { background: #ffffff; color: black; } <li class=fn>int <a href="#childX"><b>childX</b></a> ( TQWidget * child )</li> <li class=fn>int <a href="#childY"><b>childY</b></a> ( TQWidget * child )</li> <li class=fn>bool childIsVisible ( TQWidget * child ) <em>(obsolete)</em></li> -<li class=fn>void showChild ( TQWidget * child, bool y = TRUE ) <em>(obsolete)</em></li> +<li class=fn>void showChild ( TQWidget * child, bool y = true ) <em>(obsolete)</em></li> <li class=fn>enum <a href="#ScrollBarMode-enum"><b>ScrollBarMode</b></a> { Auto, AlwaysOff, AlwaysOn }</li> <li class=fn>ScrollBarMode <a href="#vScrollBarMode"><b>vScrollBarMode</b></a> () const</li> <li class=fn>virtual void <a href="#setVScrollBarMode"><b>setVScrollBarMode</b></a> ( ScrollBarMode )</li> @@ -70,9 +70,9 @@ body { background: #ffffff; color: black; } <li class=fn>void <a href="#updateContents"><b>updateContents</b></a> ( int x, int y, int w, int h )</li> <li class=fn>void <a href="#updateContents-2"><b>updateContents</b></a> ( const TQRect & r )</li> <li class=fn>void <a href="#updateContents-3"><b>updateContents</b></a> ()</li> -<li class=fn>void <a href="#repaintContents"><b>repaintContents</b></a> ( int x, int y, int w, int h, bool erase = TRUE )</li> -<li class=fn>void <a href="#repaintContents-2"><b>repaintContents</b></a> ( const TQRect & r, bool erase = TRUE )</li> -<li class=fn>void <a href="#repaintContents-3"><b>repaintContents</b></a> ( bool erase = TRUE )</li> +<li class=fn>void <a href="#repaintContents"><b>repaintContents</b></a> ( int x, int y, int w, int h, bool erase = true )</li> +<li class=fn>void <a href="#repaintContents-2"><b>repaintContents</b></a> ( const TQRect & r, bool erase = true )</li> +<li class=fn>void <a href="#repaintContents-3"><b>repaintContents</b></a> ( bool erase = true )</li> <li class=fn>void <a href="#contentsToViewport"><b>contentsToViewport</b></a> ( int x, int y, int & vx, int & vy ) const</li> <li class=fn>void <a href="#viewportToContents"><b>viewportToContents</b></a> ( int vx, int vy, int & x, int & y ) const</li> <li class=fn>TQPoint <a href="#contentsToViewport-2"><b>contentsToViewport</b></a> ( const TQPoint & p ) const</li> @@ -230,11 +230,11 @@ when many widgets are on a very large scrolling area that is potentially larger than 4000 pixels in either dimension. In this usage you call <a href="#resizeContents">resizeContents</a>() to set the size of the area and reimplement <a href="#drawContents">drawContents</a>() to paint the contents. You then call -<a href="#enableClipper">enableClipper</a>(TRUE) and add widgets, again by making them children +<a href="#enableClipper">enableClipper</a>(true) and add widgets, again by making them children of the <a href="#viewport">viewport</a>(), and adding them with <a href="#addChild">addChild</a>(): <pre> TQScrollView* sv = new TQScrollView(...); - sv-><a href="#enableClipper">enableClipper</a>(TRUE); + sv-><a href="#enableClipper">enableClipper</a>(true); <a href="tqlabel.html">TQLabel</a>* child1 = new <a href="tqlabel.html">TQLabel</a>("CHILD", sv-><a href="#viewport">viewport</a>()); sv-><a href="#addChild">addChild</a>(child1); <a href="tqlabel.html">TQLabel</a>* child2 = new <a href="tqlabel.html">TQLabel</a>("CHILD", sv-><a href="#viewport">viewport</a>()); @@ -256,8 +256,8 @@ is moved; its children move with it as child widgets normally do. child widgets in the view. <p> Note that the widget you see in the scrolled area is the viewport() widget, not the TQScrollView itself. So to turn mouse -tracking on, for example, use viewport()->setMouseTracking(TRUE). -<p> To enable drag-and-drop, you would <a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>(TRUE) on the +tracking on, for example, use viewport()->setMouseTracking(true). +<p> To enable drag-and-drop, you would <a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>(true) on the TQScrollView (because drag-and-drop events propagate to the parent). But to work out the logical position in the view, you would need to map the drop co-ordinate from being relative to the @@ -361,7 +361,7 @@ be deleted. Inserts the widget, <em>child</em>, into the scrolled area positioned at (<em>x</em>, <em>y</em>). The position defaults to (0, 0). If the child is already in the view, it is just moved. -<p> You may want to call <a href="#enableClipper">enableClipper</a>(TRUE) if you add a large number +<p> You may want to call <a href="#enableClipper">enableClipper</a>(true) if you add a large number of widgets. <p>Example: <a href="scrollview-example.html#x645">scrollview/scrollview.cpp</a>. @@ -392,7 +392,7 @@ the area). <h3 class=fn>bool <a name="childIsVisible"></a>TQScrollView::childIsVisible ( <a href="tqwidget.html">TQWidget</a> * child ) </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. -<p> Returns TRUE if <em>child</em> is visible. This is equivalent +<p> Returns true if <em>child</em> is visible. This is equivalent to child->isVisible(). <h3 class=fn>int <a name="childX"></a>TQScrollView::childX ( <a href="tqwidget.html">TQWidget</a> * child ) @@ -523,7 +523,7 @@ Returns the widget in the corner between the two scroll bars. <p>Example: <a href="scrollview-example.html#x647">scrollview/scrollview.cpp</a>. <h3 class=fn>bool <a name="dragAutoScroll"></a>TQScrollView::dragAutoScroll () const -</h3><p>Returns TRUE if autoscrolling in drag move events is enabled; otherwise returns FALSE. +</h3><p>Returns true if autoscrolling in drag move events is enabled; otherwise returns false. See the <a href="tqscrollview.html#dragAutoScroll-prop">"dragAutoScroll"</a> property for details. <h3 class=fn>void <a name="drawContents"></a>TQScrollView::drawContents ( <a href="tqpainter.html">TQPainter</a> * p, int clipx, int clipy, int clipw, int cliph )<tt> [virtual protected]</tt> </h3> @@ -571,7 +571,7 @@ drawContents() for an explanation of the parameters <em>p</em>, <em>offsetx</em> </h3> When a large numbers of child widgets are in a scrollview, especially if they are close together, the scrolling performance -can suffer greatly. If <em>y</em> is TRUE the scrollview will use an +can suffer greatly. If <em>y</em> is true the scrollview will use an extra widget to group child widgets. <p> Note that you may only call <a href="#enableClipper">enableClipper</a>() prior to adding widgets. @@ -604,8 +604,8 @@ the object is in <em>obj</em>. See the <a href="tqscrollview.html#hScrollBarMode-prop">"hScrollBarMode"</a> property for details. <h3 class=fn>bool <a name="hasStaticBackground"></a>TQScrollView::hasStaticBackground () const </h3> -Returns TRUE if TQScrollView uses a static background; otherwise -returns FALSE. +Returns true if TQScrollView uses a static background; otherwise +returns false. <p> <p>See also <a href="#setStaticBackground">setStaticBackground</a>(). <h3 class=fn><a href="tqscrollbar.html">TQScrollBar</a> * <a name="horizontalScrollBar"></a>TQScrollView::horizontalScrollBar () const @@ -627,11 +627,11 @@ to allow accelerators, autoscrolling, etc. <h3 class=fn>bool <a name="isHorizontalSliderPressed"></a>TQScrollView::isHorizontalSliderPressed () </h3> -Returns TRUE if horizontal slider is pressed by user; otherwise returns FALSE. +Returns true if horizontal slider is pressed by user; otherwise returns false. <h3 class=fn>bool <a name="isVerticalSliderPressed"></a>TQScrollView::isVerticalSliderPressed () </h3> -Returns TRUE if vertical slider is pressed by user; otherwise returns FALSE. +Returns true if vertical slider is pressed by user; otherwise returns false. <h3 class=fn>int <a name="leftMargin"></a>TQScrollView::leftMargin () const<tt> [protected]</tt> </h3> @@ -648,24 +648,24 @@ the same as <a href="#addChild">addChild</a>(). Removes the <em>child</em> widget from the scrolled area. Note that this happens automatically if the <em>child</em> is deleted. -<h3 class=fn>void <a name="repaintContents"></a>TQScrollView::repaintContents ( int x, int y, int w, int h, bool erase = TRUE ) +<h3 class=fn>void <a name="repaintContents"></a>TQScrollView::repaintContents ( int x, int y, int w, int h, bool erase = true ) </h3> Calls <a href="tqwidget.html#repaint">repaint</a>() on a rectangle defined by <em>x</em>, <em>y</em>, <em>w</em>, <em>h</em>, translated appropriately. If the rectangle is not visible, nothing -is repainted. If <em>erase</em> is TRUE the background is cleared using +is repainted. If <em>erase</em> is true the background is cleared using the background color. <p> <p>See also <a href="#updateContents">updateContents</a>(). -<h3 class=fn>void <a name="repaintContents-2"></a>TQScrollView::repaintContents ( const <a href="tqrect.html">TQRect</a> & r, bool erase = TRUE ) +<h3 class=fn>void <a name="repaintContents-2"></a>TQScrollView::repaintContents ( const <a href="tqrect.html">TQRect</a> & r, bool erase = true ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -<p> Repaints the contents of rectangle <em>r</em>. If <em>erase</em> is TRUE the +<p> Repaints the contents of rectangle <em>r</em>. If <em>erase</em> is true the background is cleared using the background color. -<h3 class=fn>void <a name="repaintContents-3"></a>TQScrollView::repaintContents ( bool erase = TRUE ) +<h3 class=fn>void <a name="repaintContents-3"></a>TQScrollView::repaintContents ( bool erase = true ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -<p> Repaints the contents. If <em>erase</em> is TRUE the background is +<p> Repaints the contents. If <em>erase</em> is true the background is cleared using the background color. <h3 class=fn>void <a name="resizeContents"></a>TQScrollView::resizeContents ( int w, int h )<tt> [virtual slot]</tt> @@ -738,8 +738,8 @@ spreadsheets with "locked" rows and columns. The marginal space is See the <a href="tqscrollview.html#resizePolicy-prop">"resizePolicy"</a> property for details. <h3 class=fn>void <a name="setStaticBackground"></a>TQScrollView::setStaticBackground ( bool y ) </h3> -Sets the scrollview to have a static background if <em>y</em> is TRUE, -or a scrolling background if <em>y</em> is FALSE. By default, the +Sets the scrollview to have a static background if <em>y</em> is true, +or a scrolling background if <em>y</em> is false. By default, the background is scrolling. <p> Be aware that this mode is quite slow, as a full repaint of the visible area has to be triggered on every contents move. @@ -758,7 +758,7 @@ The new geometry is given by <em>x</em>, <em>y</em>, <em>w</em> and <em>h</em>. <h3 class=fn>void <a name="setVScrollBarMode"></a>TQScrollView::setVScrollBarMode ( <a href="tqscrollview.html#ScrollBarMode-enum">ScrollBarMode</a> )<tt> [virtual]</tt> </h3><p>Sets the mode for the vertical scroll bar. See the <a href="tqscrollview.html#vScrollBarMode-prop">"vScrollBarMode"</a> property for details. -<h3 class=fn>void <a name="showChild"></a>TQScrollView::showChild ( <a href="tqwidget.html">TQWidget</a> * child, bool y = TRUE ) +<h3 class=fn>void <a name="showChild"></a>TQScrollView::showChild ( <a href="tqwidget.html">TQWidget</a> * child, bool y = true ) </h3> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Sets the visibility of <em>child</em>. Equivalent to @@ -878,10 +878,10 @@ See the <a href="tqscrollview.html#visibleWidth-prop">"visibleWidth"</a> propert <p>Get this property's value with <a href="#contentsY">contentsY</a>(). <h3 class=fn>bool <a name="dragAutoScroll-prop"></a>dragAutoScroll</h3> <p>This property holds whether autoscrolling in drag move events is enabled. -<p>If this property is set to TRUE (the default), the TQScrollView +<p>If this property is set to true (the default), the TQScrollView automatically scrolls the contents in drag move events if the user moves the cursor close to a border of the view. Of course this -works only if the viewport accepts drops. Specifying FALSE +works only if the viewport accepts drops. Specifying false disables this autoscroll feature. <p> <b>Warning:</b> Enabling this property might not be enough to effectively turn on autoscrolling. If you put a custom widget in |