summaryrefslogtreecommitdiffstats
path: root/doc/html/themes-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/themes-example.html')
-rw-r--r--doc/html/themes-example.html80
1 files changed, 40 insertions, 40 deletions
diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html
index aa6b313f8..c78ce1e67 100644
--- a/doc/html/themes-example.html
+++ b/doc/html/themes-example.html
@@ -67,10 +67,10 @@ class NorwegianWoodStyle : public <a href="tqwindowsstyle.html">TQWindowsStyle</
{
public:
NorwegianWoodStyle();
- void polish( <a href="ntqapplication.html">TQApplication</a>*);
+ void polish( <a href="tqapplication.html">TQApplication</a>*);
void polish( <a href="tqwidget.html">TQWidget</a>* );
void unPolish( <a href="tqwidget.html">TQWidget</a>* );
- void unPolish( <a href="ntqapplication.html">TQApplication</a>*);
+ void unPolish( <a href="tqapplication.html">TQApplication</a>*);
void drawPrimitive( PrimitiveElement pe,
<a href="tqpainter.html">TQPainter</a> *p,
@@ -147,7 +147,7 @@ private:
#ifndef TQT_NO_STYLE_WINDOWS
-#include "ntqapplication.h"
+#include "tqapplication.h"
#include "tqcombobox.h"
#include "tqpainter.h"
#include "tqdrawutil.h" // for now
@@ -905,10 +905,10 @@ enum { PointUp, PointDown, PointLeft, PointRight };
/*!
Reimplementation from TQStyle
*/
-<a name="x261"></a>void NorwegianWoodStyle::<a href="tqstyle.html#polish">polish</a>( <a href="ntqapplication.html">TQApplication</a> *app)
+<a name="x261"></a>void NorwegianWoodStyle::<a href="tqstyle.html#polish">polish</a>( <a href="tqapplication.html">TQApplication</a> *app)
{
-<a name="x186"></a> oldPalette = app-&gt;<a href="ntqapplication.html#palette">palette</a>();
+<a name="x186"></a> oldPalette = app-&gt;<a href="tqapplication.html#palette">palette</a>();
// we simply create a nice TQColorGroup with a couple of fancy wood
// pixmaps here and apply to it all widgets
@@ -1005,13 +1005,13 @@ enum { PointUp, PointDown, PointLeft, PointRight };
TQBrush(op.<a href="tqpalette.html#disabled">disabled</a>().background(), background)
);
-<a name="x187"></a> app-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>(TQPalette(active, disabled, active), TRUE );
+<a name="x187"></a> app-&gt;<a href="tqapplication.html#setPalette">setPalette</a>(TQPalette(active, disabled, active), TRUE );
}
-<a name="x263"></a>void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="ntqapplication.html">TQApplication</a> *app)
+<a name="x263"></a>void NorwegianWoodStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqapplication.html">TQApplication</a> *app)
{
- app-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE);
+ app-&gt;<a href="tqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE);
}
/*!
@@ -1581,8 +1581,8 @@ class MetalStyle : public <a href="tqwindowsstyle.html">TQWindowsStyle</a>
{
public:
MetalStyle();
- void polish( <a href="ntqapplication.html">TQApplication</a>*);
- void unPolish( <a href="ntqapplication.html">TQApplication</a>*);
+ void polish( <a href="tqapplication.html">TQApplication</a>*);
+ void unPolish( <a href="tqapplication.html">TQApplication</a>*);
void polish( <a href="tqwidget.html">TQWidget</a>* );
void unPolish( <a href="tqwidget.html">TQWidget</a>* );
@@ -1643,7 +1643,7 @@ private:
#ifndef TQT_NO_STYLE_WINDOWS
-#include "ntqapplication.h"
+#include "tqapplication.h"
#include "tqcombobox.h"
#include "tqpainter.h"
#include "tqdrawutil.h" // for now
@@ -1673,18 +1673,18 @@ private:
/*!
Reimplementation from TQStyle
*/
-<a name="x314"></a>void MetalStyle::<a href="tqstyle.html#polish">polish</a>( <a href="ntqapplication.html">TQApplication</a> *app)
+<a name="x314"></a>void MetalStyle::<a href="tqstyle.html#polish">polish</a>( <a href="tqapplication.html">TQApplication</a> *app)
{
-<a name="x265"></a> oldPalette = app-&gt;<a href="ntqapplication.html#palette">palette</a>();
+<a name="x265"></a> oldPalette = app-&gt;<a href="tqapplication.html#palette">palette</a>();
// we simply create a nice TQColorGroup with a couple of fancy
// pixmaps here and apply to it all widgets
-<a name="x264"></a> <a href="tqfont.html">TQFont</a> f("times", app-&gt;<a href="ntqapplication.html#font">font</a>().pointSize() );
+<a name="x264"></a> <a href="tqfont.html">TQFont</a> f("times", app-&gt;<a href="tqapplication.html#font">font</a>().pointSize() );
<a name="x280"></a> f.<a href="tqfont.html#setBold">setBold</a>( TRUE );
<a name="x281"></a> f.<a href="tqfont.html#setItalic">setItalic</a>( TRUE );
-<a name="x266"></a> app-&gt;<a href="ntqapplication.html#setFont">setFont</a>( f, TRUE, "TQMenuBar");
- app-&gt;<a href="ntqapplication.html#setFont">setFont</a>( f, TRUE, "TQPopupMenu");
+<a name="x266"></a> app-&gt;<a href="tqapplication.html#setFont">setFont</a>( f, TRUE, "TQMenuBar");
+ app-&gt;<a href="tqapplication.html#setFont">setFont</a>( f, TRUE, "TQPopupMenu");
@@ -1698,7 +1698,7 @@ private:
<a href="tqpixmap.html">TQPixmap</a> mid( stone1_xpm );
<a href="tqpixmap.html">TQPixmap</a> light( stone1_xpm );//1, 1 ); light.<a href="tqpixmap.html#fill">fill</a>( green );
- <a href="tqpalette.html">TQPalette</a> op = app-&gt;<a href="ntqapplication.html#palette">palette</a>();
+ <a href="tqpalette.html">TQPalette</a> op = app-&gt;<a href="tqapplication.html#palette">palette</a>();
<a href="tqcolor.html">TQColor</a> backCol( 227,227,227 );
@@ -1727,16 +1727,16 @@ private:
);
<a href="tqpalette.html">TQPalette</a> newPalette( active, disabled, active );
-<a name="x267"></a> app-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( newPalette, TRUE );
+<a name="x267"></a> app-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( newPalette, TRUE );
}
/*!
Reimplementation from TQStyle
*/
-<a name="x315"></a>void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="ntqapplication.html">TQApplication</a> *app)
+<a name="x315"></a>void MetalStyle::<a href="tqstyle.html#unPolish">unPolish</a>( <a href="tqapplication.html">TQApplication</a> *app)
{
- app-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE);
- app-&gt;<a href="ntqapplication.html#setFont">setFont</a>( app-&gt;<a href="ntqapplication.html#font">font</a>(), TRUE );
+ app-&gt;<a href="tqapplication.html#setPalette">setPalette</a>(oldPalette, TRUE);
+ app-&gt;<a href="tqapplication.html#setFont">setFont</a>( app-&gt;<a href="tqapplication.html#font">font</a>(), TRUE );
}
/*!
@@ -2186,7 +2186,7 @@ private:
#include "../richtext/richtext.h"
#include &lt;<a href="tqtabwidget-h.html">tqtabwidget.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="tqmessagebox-h.html">tqmessagebox.h</a>&gt;
@@ -2199,7 +2199,7 @@ private:
<a name="f231"></a>Themes::Themes( <a href="tqwidget.html">TQWidget</a> *parent, const char *name, WFlags f )
: <a href="tqmainwindow.html">TQMainWindow</a>( parent, name, f )
{
-<a name="x321"></a> appFont = TQApplication::<a href="ntqapplication.html#font">font</a>();
+<a name="x321"></a> appFont = TQApplication::<a href="tqapplication.html#font">font</a>();
tabwidget = new <a href="tqtabwidget.html">TQTabWidget</a>( this );
<a name="x343"></a> tabwidget-&gt;<a href="tqtabwidget.html#addTab">addTab</a>( new ButtonsGroups( tabwidget ), "Buttons/Groups" );
@@ -2252,7 +2252,7 @@ private:
}
<a name="x318"></a> ag-&gt;<a href="tqactiongroup.html#addTo">addTo</a>(style);
style-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
- style-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Quit", tqApp, TQ_SLOT( <a href="ntqapplication.html#quit">quit</a>() ), CTRL | Key_Q );
+ style-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Quit", tqApp, TQ_SLOT( <a href="tqapplication.html#quit">quit</a>() ), CTRL | Key_Q );
<a href="tqpopupmenu.html">TQPopupMenu</a> * help = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
<a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertSeparator();
@@ -2261,7 +2261,7 @@ private:
help-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "About &amp;TQt", this, TQ_SLOT(aboutTQt()));
#ifndef TQT_NO_STYLE_WINDOWS
-<a name="x325"></a> tqApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>( new NorwegianWoodStyle );
+<a name="x325"></a> tqApp-&gt;<a href="tqapplication.html#setStyle">setStyle</a>( new NorwegianWoodStyle );
#endif
}
@@ -2269,20 +2269,20 @@ void <a name="f232"></a>Themes::makeStyle(const <a href="tqstring.html">TQString
{
if(style == "Norwegian Wood") {
#ifndef TQT_NO_STYLE_WINDOWS
- tqApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>( new NorwegianWoodStyle );
+ tqApp-&gt;<a href="tqapplication.html#setStyle">setStyle</a>( new NorwegianWoodStyle );
#endif
} else if( style == "Metal" ) {
#ifndef TQT_NO_STYLE_WINDOWS
- tqApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>( new MetalStyle );
+ tqApp-&gt;<a href="tqapplication.html#setStyle">setStyle</a>( new MetalStyle );
#endif
} else {
- tqApp-&gt;<a href="ntqapplication.html#setStyle">setStyle</a>(style);
+ tqApp-&gt;<a href="tqapplication.html#setStyle">setStyle</a>(style);
if(style == "Platinum") {
<a href="tqpalette.html">TQPalette</a> p( TQColor( 239, 239, 239 ) );
-<a name="x324"></a> tqApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE );
-<a name="x323"></a> tqApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE );
+<a name="x324"></a> tqApp-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( p, TRUE );
+<a name="x323"></a> tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( appFont, TRUE );
} else if(style == "Windows") {
- tqApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE );
+ tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( appFont, TRUE );
} else if(style == "CDE") {
<a href="tqpalette.html">TQPalette</a> p( TQColor( 75, 123, 130 ) );
<a name="x332"></a> p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Active, TQColorGroup::Base, TQColor( 55, 77, 78 ) );
@@ -2303,12 +2303,12 @@ void <a name="f232"></a>Themes::makeStyle(const <a href="tqstring.html">TQString
p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Foreground, TQt::lightGray );
p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::Text, TQt::lightGray );
p.<a href="tqpalette.html#setColor">setColor</a>( TQPalette::Disabled, TQColorGroup::ButtonText, TQt::lightGray );
- tqApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE );
- tqApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( TQFont( "times", appFont.pointSize() ), TRUE );
+ tqApp-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( p, TRUE );
+ tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( TQFont( "times", appFont.pointSize() ), TRUE );
} else if(style == "Motif" || style == "MotifPlus") {
<a href="tqpalette.html">TQPalette</a> p( TQColor( 192, 192, 192 ) );
- tqApp-&gt;<a href="ntqapplication.html#setPalette">setPalette</a>( p, TRUE );
- tqApp-&gt;<a href="ntqapplication.html#setFont">setFont</a>( appFont, TRUE );
+ tqApp-&gt;<a href="tqapplication.html#setPalette">setPalette</a>( p, TRUE );
+ tqApp-&gt;<a href="tqapplication.html#setFont">setFont</a>( appFont, TRUE );
}
}
}
@@ -2342,7 +2342,7 @@ void <a name="f234"></a>Themes::aboutTQt()
**
*****************************************************************************/
-#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqwindowsstyle-h.html">tqwindowsstyle.h</a>&gt;
#include "themes.h"
@@ -2350,16 +2350,16 @@ void <a name="f234"></a>Themes::aboutTQt()
int main( int argc, char ** argv )
{
-<a name="x348"></a> TQApplication::<a href="ntqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::ManyColor );
- <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
+<a name="x348"></a> TQApplication::<a href="tqapplication.html#setColorSpec">setColorSpec</a>( TQApplication::ManyColor );
+ <a href="tqapplication.html">TQApplication</a> a( argc, argv );
Themes themes;
themes.<a href="tqwidget.html#setCaption">setCaption</a>( "TQt Example - Themes (TQStyle)" );
themes.<a href="tqwidget.html#resize">resize</a>( 640, 400 );
- a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;themes );
+ a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;themes );
<a name="x350"></a> themes.<a href="tqwidget.html#show">show</a>();
- return a.<a href="ntqapplication.html#exec">exec</a>();
+ return a.<a href="tqapplication.html#exec">exec</a>();
}
</pre>