summaryrefslogtreecommitdiffstats
path: root/doc/html/qmag-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/qmag-example.html')
-rw-r--r--doc/html/qmag-example.html38
1 files changed, 19 insertions, 19 deletions
diff --git a/doc/html/qmag-example.html b/doc/html/qmag-example.html
index b3448ebbe..632655a37 100644
--- a/doc/html/qmag-example.html
+++ b/doc/html/qmag-example.html
@@ -59,7 +59,7 @@ magnified area as a .bmp file.
#include &lt;<a href="tqfiledialog-h.html">tqfiledialog.h</a>&gt;
#include &lt;<a href="tqregexp-h.html">tqregexp.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="tqpainter-h.html">tqpainter.h</a>&gt;
#include &lt;<a href="tqwmatrix-h.html">tqwmatrix.h</a>&gt;
@@ -132,12 +132,12 @@ static const int timer[] = {
int w=0, x=0, n;
zoom = new <a href="tqcombobox.html">TQComboBox</a>( FALSE, this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(zoom);
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(zoom);
<a name="x1773"></a> zoom-&gt;<a href="tqcombobox.html#insertStrList">insertStrList</a>( zoomfactors, 9 );
<a name="x1772"></a> <a href="tqobject.html#connect">connect</a>( zoom, TQ_SIGNAL(<a href="tqcombobox.html#activated">activated</a>(int)), TQ_SLOT(setZoom(int)) );
refresh = new <a href="tqcombobox.html">TQComboBox</a>( FALSE, this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(refresh);
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(refresh);
refresh-&gt;<a href="tqcombobox.html#insertStrList">insertStrList</a>( refreshrates, 9 );
<a href="tqobject.html#connect">connect</a>( refresh, TQ_SIGNAL(<a href="tqcombobox.html#activated">activated</a>(int)), TQ_SLOT(setRefresh(int)) );
@@ -156,7 +156,7 @@ static const int timer[] = {
refresh-&gt;<a href="tqwidget.html#setGeometry">setGeometry</a>( x, 2, w+30, 20 );
saveButton = new <a href="tqpushbutton.html">TQPushButton</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(saveButton);
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(saveButton);
<a href="tqobject.html#connect">connect</a>( saveButton, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(save()) );
<a name="x1771"></a> saveButton-&gt;<a href="tqbutton.html#setText">setText</a>( "Save" );
<a name="x1788"></a> saveButton-&gt;<a href="tqwidget.html#setGeometry">setGeometry</a>( x+w+30+2, 2,
@@ -164,15 +164,15 @@ static const int timer[] = {
multiSaveButton = new <a href="tqpushbutton.html">TQPushButton</a>( this );
<a name="x1790"></a> multiSaveButton-&gt;<a href="tqpushbutton.html#setToggleButton">setToggleButton</a>(TRUE);
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(multiSaveButton);
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(multiSaveButton);
<a href="tqobject.html#connect">connect</a>( multiSaveButton, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(multiSave()) );
multiSaveButton-&gt;<a href="tqbutton.html#setText">setText</a>( "MultiSave" );
<a name="x1798"></a> multiSaveButton-&gt;<a href="tqwidget.html#setGeometry">setGeometry</a>( saveButton-&gt;<a href="tqwidget.html#geometry">geometry</a>().right() + 2, 2,
10+multiSaveButton-&gt;<a href="tqwidget.html#fontMetrics">fontMetrics</a>().width("MultiSave"), 20 );
quitButton = new <a href="tqpushbutton.html">TQPushButton</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(quitButton);
- <a href="tqobject.html#connect">connect</a>( quitButton, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(quitButton);
+ <a href="tqobject.html#connect">connect</a>( quitButton, TQ_SIGNAL(<a href="tqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="tqapplication.html#quit">quit</a>()) );
quitButton-&gt;<a href="tqbutton.html#setText">setText</a>( "Quit" );
quitButton-&gt;<a href="tqwidget.html#setGeometry">setGeometry</a>( multiSaveButton-&gt;<a href="tqwidget.html#geometry">geometry</a>().right() + 2, 2,
10+quitButton-&gt;<a href="tqwidget.html#fontMetrics">fontMetrics</a>().width("Quit"), 20 );
@@ -185,7 +185,7 @@ static const int timer[] = {
setZoom(5);
rgb = new <a href="tqlabel.html">TQLabel</a>( this );
- <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( rgb );
+ <a href="tqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( rgb );
<a name="x1779"></a> rgb-&gt;<a href="tqlabel.html#setText">setText</a>( "" );
rgb-&gt;<a href="tqlabel.html#setAlignment">setAlignment</a>( AlignVCenter );
rgb-&gt;<a href="tqwidget.html#resize">resize</a>( <a href="tqwidget.html#width">width</a>(), rgb-&gt;<a href="tqwidget.html#fontMetrics">fontMetrics</a>().height() + 4 );
@@ -206,7 +206,7 @@ static const int timer[] = {
<a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE ); // and do let me know what pixel I'm at, eh?
-<a name="x1765"></a> grabAround( TQPoint(grabx=tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width()/2, graby=tqApp-&gt;<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height()/2) );
+<a name="x1765"></a> grabAround( TQPoint(grabx=tqApp-&gt;<a href="tqapplication.html#desktop">desktop</a>()-&gt;width()/2, graby=tqApp-&gt;<a href="tqapplication.html#desktop">desktop</a>()-&gt;height()/2) );
}
@@ -273,16 +273,16 @@ void <a name="f489"></a>MagWidget::grab()
x = grabx-w/2; // find a suitable position to grab from
y = graby-h/2;
- if ( x + w &gt; TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width() )
- x = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width()-w;
+ if ( x + w &gt; TQApplication::<a href="tqapplication.html#desktop">desktop</a>()-&gt;width() )
+ x = TQApplication::<a href="tqapplication.html#desktop">desktop</a>()-&gt;width()-w;
else if ( x &lt; 0 )
x = 0;
- if ( y + h &gt; TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height() )
- y = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height()-h;
+ if ( y + h &gt; TQApplication::<a href="tqapplication.html#desktop">desktop</a>()-&gt;height() )
+ y = TQApplication::<a href="tqapplication.html#desktop">desktop</a>()-&gt;height()-h;
else if ( y &lt; 0 )
y = 0;
-<a name="x1784"></a> p = TQPixmap::<a href="tqpixmap.html#grabWindow">grabWindow</a>( TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;winId(), x, y, w, h );
+<a name="x1784"></a> p = TQPixmap::<a href="tqpixmap.html#grabWindow">grabWindow</a>( TQApplication::<a href="tqapplication.html#desktop">desktop</a>()-&gt;winId(), x, y, w, h );
<a name="x1783"></a> image = p.<a href="tqpixmap.html#convertToImage">convertToImage</a>();
<a href="tqwmatrix.html">TQWMatrix</a> m; // after getting it, scale it
<a name="x1809"></a> m.<a href="tqwmatrix.html#scale">scale</a>( (double)z, (double)z );
@@ -339,8 +339,8 @@ void <a name="f490"></a>MagWidget::grabAround(TQPoint pos)
int pz;
pz = 1;
while ( w*pz*h*pz &lt; width()*(<a href="tqwidget.html#height">height</a>()-yoffset) &amp;&amp;
- w*pz &lt; TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;width() &amp;&amp;
- h*pz &lt; TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()-&gt;height() )
+ w*pz &lt; TQApplication::<a href="tqapplication.html#desktop">desktop</a>()-&gt;width() &amp;&amp;
+ h*pz &lt; TQApplication::<a href="tqapplication.html#desktop">desktop</a>()-&gt;height() )
pz++;
if ( (w*pz*h*pz - width()*(<a href="tqwidget.html#height">height</a>()-yoffset)) &gt;
(<a href="tqwidget.html#width">width</a>()*(<a href="tqwidget.html#height">height</a>()-yoffset) - w*(pz-1)*h*(pz-1)) )
@@ -425,11 +425,11 @@ void <a name="f490"></a>MagWidget::grabAround(TQPoint pos)
int main( int argc, char **argv )
{
- <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
+ <a href="tqapplication.html">TQApplication</a> a( argc, argv );
MagWidget m;
- a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;m );
+ a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &amp;m );
m.<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>