diff options
Diffstat (limited to 'doc/html/themes-example.html')
| -rw-r--r-- | doc/html/themes-example.html | 72 | 
1 files changed, 36 insertions, 36 deletions
| diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html index d598910fc..b74b3029c 100644 --- a/doc/html/themes-example.html +++ b/doc/html/themes-example.html @@ -149,7 +149,7 @@ private:  #ifndef TQT_NO_STYLE_WINDOWS  #include "ntqapplication.h" -#include "ntqcombobox.h" +#include "tqcombobox.h"  #include "tqpainter.h"  #include "ntqdrawutil.h" // for now  #include "tqpixmap.h" // for now @@ -157,10 +157,10 @@ private:  #include "tqwidget.h"  #include "tqlabel.h"  #include "tqimage.h" -#include "ntqpushbutton.h" +#include "tqpushbutton.h"  #include "tqwidget.h"  #include "ntqrangecontrol.h" -#include "ntqscrollbar.h" +#include "tqscrollbar.h"  #include <limits.h>  #include "tqstylefactory.h" @@ -1133,8 +1133,8 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="      switch( element ) {      case CE_PushButton:          { -            const <a href="ntqpushbutton.html">TQPushButton</a> *btn; -            btn = ( const <a href="ntqpushbutton.html">TQPushButton</a> * )widget; +            const <a href="tqpushbutton.html">TQPushButton</a> *btn; +            btn = ( const <a href="tqpushbutton.html">TQPushButton</a> * )widget;              <a href="tqcolorgroup.html">TQColorGroup</a> myCg( cg );              SFlags flags = Style_Default;  <a name="x189"></a>            if ( btn-><a href="ntqbutton.html#isOn">isOn</a>() ) @@ -1143,9 +1143,9 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="                  flags |= Style_Down;              if ( btn-><a href="ntqbutton.html#isOn">isOn</a>() || btn-><a href="ntqbutton.html#isDown">isDown</a>() )                  flags |= Style_Sunken; -<a name="x233"></a>            if ( btn-><a href="ntqpushbutton.html#isDefault">isDefault</a>() ) +<a name="x233"></a>            if ( btn-><a href="tqpushbutton.html#isDefault">isDefault</a>() )                  flags |= Style_Default; -<a name="x234"></a>            if ( ! btn-><a href="ntqpushbutton.html#isFlat">isFlat</a>() && !(flags & Style_Down) ) +<a name="x234"></a>            if ( ! btn-><a href="tqpushbutton.html#isFlat">isFlat</a>() && !(flags & Style_Down) )                  flags |= Style_Raised;              int x1, y1, x2, y2; @@ -1163,7 +1163,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="                  fill = cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Button );  <a name="x202"></a>            myCg.<a href="tqcolorgroup.html#setBrush">setBrush</a>( TQColorGroup::Mid, fill ); -            if ( btn-><a href="ntqpushbutton.html#isDefault">isDefault</a>() ) { +            if ( btn-><a href="tqpushbutton.html#isDefault">isDefault</a>() ) {                  x1 += 2;                  y1 += 2;                  x2 -= 2; @@ -1174,7 +1174,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="                             TQRect( x1, y1, x2 - x1 + 1, y2 - y1 + 1),                             myCg, flags, opt ); -            if ( btn-><a href="ntqpushbutton.html#isDefault">isDefault</a>() ) { +            if ( btn-><a href="tqpushbutton.html#isDefault">isDefault</a>() ) {                  <a href="tqpen.html">TQPen</a> pen( TQt::black, 4 );  <a name="x226"></a>                pen.<a href="tqpen.html#setCapStyle">setCapStyle</a>( TQt::RoundCap );  <a name="x227"></a>                pen.<a href="tqpen.html#setJoinStyle">setJoinStyle</a>( TQt::RoundJoin ); @@ -1182,7 +1182,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="                  drawroundrect( p, x1 - 1, y1 - 1, x2 - x1 + 3, y2 - y1 + 3, 8 );              } -<a name="x235"></a>            if ( btn-><a href="ntqpushbutton.html#isMenuButton">isMenuButton</a>() ) { +<a name="x235"></a>            if ( btn-><a href="tqpushbutton.html#isMenuButton">isMenuButton</a>() ) {                  int dx = ( y1 - y2 - 4 ) / 3;                  // reset the flags @@ -1200,8 +1200,8 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="          }      case CE_PushButtonLabel:          { -            const <a href="ntqpushbutton.html">TQPushButton</a> *btn; -            btn = (const <a href="ntqpushbutton.html">TQPushButton</a>*)widget; +            const <a href="tqpushbutton.html">TQPushButton</a> *btn; +            btn = (const <a href="tqpushbutton.html">TQPushButton</a>*)widget;              int x, y, w, h;              r.<a href="tqrect.html#rect">rect</a>( &x, &y, &w, &h ); @@ -1209,7 +1209,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="              r.<a href="tqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 );              int dx = 0;              int dy = 0; -            if ( btn-><a href="ntqpushbutton.html#isMenuButton">isMenuButton</a>() ) +            if ( btn-><a href="tqpushbutton.html#isMenuButton">isMenuButton</a>() )                  dx = ( y2 - y1 ) / 3;              if ( dx || dy )  <a name="x223"></a>                p-><a href="tqpainter.html#translate">translate</a>( dx, dy ); @@ -1268,8 +1268,8 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="      switch( cc ) {      case CC_ComboBox:          { -            const <a href="ntqcombobox.html">TQComboBox</a> *cmb; -            cmb = (const <a href="ntqcombobox.html">TQComboBox</a>*)widget; +            const <a href="tqcombobox.html">TQComboBox</a> *cmb; +            cmb = (const <a href="tqcombobox.html">TQComboBox</a>*)widget;              int awh, ax, ay, sh, sy, dh, ew;              get_combo_parameters( <a href="tqstyle.html#subRect">subRect</a>(SR_PushButtonContents, widget), @@ -1292,7 +1292,7 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="              p-><a href="tqpainter.html#drawLine">drawLine</a>( ax + awh - 1, sy + 1, ax + awh - 1, sy + sh - 1 );              p-><a href="tqpainter.html#setPen">setPen</a>( oldPen ); -            if ( cmb-><a href="ntqcombobox.html#editable">editable</a>() ) { +            if ( cmb-><a href="tqcombobox.html#editable">editable</a>() ) {                  <a href="tqrect.html">TQRect</a> r( <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>(CC_ComboBox, widget,                                                  SC_ComboBoxEditField, opt) );                  <a href="tqpainter.html#qDrawShadePanel">qDrawShadePanel</a>( p, r, cg, TRUE, 1, @@ -1356,9 +1356,9 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="          }      case CC_ScrollBar:          { -            const <a href="ntqscrollbar.html">TQScrollBar</a>* sb; -            sb = (const <a href="ntqscrollbar.html">TQScrollBar</a>*)widget; -            bool horz = sb-><a href="ntqscrollbar.html#orientation">orientation</a>() == TQScrollBar::Horizontal; +            const <a href="tqscrollbar.html">TQScrollBar</a>* sb; +            sb = (const <a href="tqscrollbar.html">TQScrollBar</a>*)widget; +            bool horz = sb-><a href="tqscrollbar.html#orientation">orientation</a>() == TQScrollBar::Horizontal;              int b = 2;  <a name="x257"></a>            int w = horz ? sb-><a href="tqwidget.html#height">height</a>() : sb-><a href="tqwidget.html#width">width</a>(); @@ -1394,8 +1394,8 @@ void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="      switch ( sr ) {      case SR_PushButtonContents:          { -            const <a href="ntqpushbutton.html">TQPushButton</a> *btn; -            btn = (const <a href="ntqpushbutton.html">TQPushButton</a>*)widget; +            const <a href="tqpushbutton.html">TQPushButton</a> *btn; +            btn = (const <a href="tqpushbutton.html">TQPushButton</a>*)widget;  <a name="x254"></a>            r = btn-><a href="tqwidget.html#rect">rect</a>();              int d = TQMIN( r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>() ) / 2;              int b = buttonthickness( d ); @@ -1645,7 +1645,7 @@ private:  #ifndef TQT_NO_STYLE_WINDOWS  #include "ntqapplication.h" -#include "ntqcombobox.h" +#include "tqcombobox.h"  #include "tqpainter.h"  #include "ntqdrawutil.h" // for now  #include "tqpixmap.h" // for now @@ -1653,11 +1653,11 @@ private:  #include "tqwidget.h"  #include "tqlabel.h"  #include "tqimage.h" -#include "ntqpushbutton.h" +#include "tqpushbutton.h"  #include "tqwidget.h"  #include "ntqrangecontrol.h" -#include "ntqscrollbar.h" -#include "ntqslider.h" +#include "tqscrollbar.h" +#include "tqslider.h"  #include <limits.h> @@ -1834,8 +1834,8 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget      switch( element ) {      case CE_PushButton:          { -            const <a href="ntqpushbutton.html">TQPushButton</a> *btn; -            btn = (const <a href="ntqpushbutton.html">TQPushButton</a>*)widget; +            const <a href="tqpushbutton.html">TQPushButton</a> *btn; +            btn = (const <a href="tqpushbutton.html">TQPushButton</a>*)widget;              int x1, y1, x2, y2;  <a name="x297"></a>            r.<a href="tqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 ); @@ -1852,7 +1852,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget              else                  fill = cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Button ); -<a name="x294"></a>            if ( btn-><a href="ntqpushbutton.html#isDefault">isDefault</a>() ) { +<a name="x294"></a>            if ( btn-><a href="tqpushbutton.html#isDefault">isDefault</a>() ) {                  <a href="tqpointarray.html">TQPointArray</a> a;  <a name="x293"></a>                a.setPoints( 9,                               x1, y1, x2, y1, x2, y2, x1, y2, x1, y1+1, @@ -1869,13 +1869,13 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget                  flags |= Style_On;              if ( btn-><a href="ntqbutton.html#isDown">isDown</a>() )                  flags |= Style_Down; -<a name="x295"></a>            if ( !btn-><a href="ntqpushbutton.html#isFlat">isFlat</a>() && !btn-><a href="ntqbutton.html#isDown">isDown</a>() ) +<a name="x295"></a>            if ( !btn-><a href="tqpushbutton.html#isFlat">isFlat</a>() && !btn-><a href="ntqbutton.html#isDown">isDown</a>() )                  flags |= Style_Raised;              <a href="tqstyle.html#drawPrimitive">drawPrimitive</a>( PE_ButtonCommand, p,                             TQRect( x1, y1, x2 - x1 + 1, y2 - y1 + 1),                             cg, flags, opt ); -<a name="x296"></a>            if ( btn-><a href="ntqpushbutton.html#isMenuButton">isMenuButton</a>() ) { +<a name="x296"></a>            if ( btn-><a href="tqpushbutton.html#isMenuButton">isMenuButton</a>() ) {                  flags = Style_Default;  <a name="x306"></a>                if ( btn-><a href="tqwidget.html#isEnabled">isEnabled</a>() )                      flags |= Style_Enabled; @@ -1891,8 +1891,8 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget          }      case CE_PushButtonLabel:          { -            const <a href="ntqpushbutton.html">TQPushButton</a> *btn; -            btn = (const <a href="ntqpushbutton.html">TQPushButton</a>*)widget; +            const <a href="tqpushbutton.html">TQPushButton</a> *btn; +            btn = (const <a href="tqpushbutton.html">TQPushButton</a>*)widget;              int x, y, w, h;  <a name="x300"></a>            r.<a href="tqrect.html#rect">rect</a>( &x, &y, &w, &h ); @@ -1900,7 +1900,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget              r.<a href="tqrect.html#coords">coords</a>( &x1, &y1, &x2, &y2 );              int dx = 0;              int dy = 0; -            if ( btn-><a href="ntqpushbutton.html#isMenuButton">isMenuButton</a>() ) +            if ( btn-><a href="tqpushbutton.html#isMenuButton">isMenuButton</a>() )                  dx = ( y2 - y1 ) / 3;              if ( btn-><a href="ntqbutton.html#isOn">isOn</a>() || btn-><a href="ntqbutton.html#isDown">isDown</a>() ) {                  dx--; @@ -1939,7 +1939,7 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget      switch ( cc ) {      case CC_Slider:          { -            const <a href="ntqslider.html">TQSlider</a> *slider = ( const <a href="ntqslider.html">TQSlider</a>* ) widget; +            const <a href="tqslider.html">TQSlider</a> *slider = ( const <a href="tqslider.html">TQSlider</a>* ) widget;              <a href="tqrect.html">TQRect</a> handle = <a href="tqstyle.html#querySubControlMetrics">querySubControlMetrics</a>( CC_Slider, widget,                                                     SC_SliderHandle, opt);              if ( sub & SC_SliderGroove ) @@ -1948,13 +1948,13 @@ void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqwidget  <a name="x299"></a>            if ( (sub & SC_SliderHandle) && handle.<a href="tqrect.html#isValid">isValid</a>() )                  drawMetalButton( p, handle.<a href="tqrect.html#x">x</a>(), handle.<a href="tqrect.html#y">y</a>(), handle.<a href="tqrect.html#width">width</a>(),                                   handle.<a href="tqrect.html#height">height</a>(), FALSE, -<a name="x304"></a>                                 slider-><a href="ntqslider.html#orientation">orientation</a>() == TQSlider::Horizontal); +<a name="x304"></a>                                 slider-><a href="tqslider.html#orientation">orientation</a>() == TQSlider::Horizontal);              break;          }      case CC_ComboBox:          {              // not exactly correct... -            const <a href="ntqcombobox.html">TQComboBox</a> *cmb = ( const <a href="ntqcombobox.html">TQComboBox</a>* ) widget; +            const <a href="tqcombobox.html">TQComboBox</a> *cmb = ( const <a href="tqcombobox.html">TQComboBox</a>* ) widget;              <a href="tqpainter.html#qDrawWinPanel">qDrawWinPanel</a>( p, r.<a href="tqrect.html#x">x</a>(), r.<a href="tqrect.html#y">y</a>(), r.<a href="tqrect.html#width">width</a>(), r.<a href="tqrect.html#height">height</a>(), cg, TRUE,                             cmb-><a href="tqwidget.html#isEnabled">isEnabled</a>() ? &cg.<a href="tqcolorgroup.html#brush">brush</a>( TQColorGroup::Base ) : | 
