diff options
Diffstat (limited to 'doc/html/qmag-example.html')
-rw-r--r-- | doc/html/qmag-example.html | 38 |
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 <<a href="tqfiledialog-h.html">tqfiledialog.h</a>> #include <<a href="tqregexp-h.html">tqregexp.h</a>> -#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="tqapplication-h.html">tqapplication.h</a>> #include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="tqwmatrix-h.html">tqwmatrix.h</a>> @@ -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-><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-><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-><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-><a href="tqbutton.html#setText">setText</a>( "Save" ); <a name="x1788"></a> saveButton-><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-><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-><a href="tqbutton.html#setText">setText</a>( "MultiSave" ); <a name="x1798"></a> multiSaveButton-><a href="tqwidget.html#setGeometry">setGeometry</a>( saveButton-><a href="tqwidget.html#geometry">geometry</a>().right() + 2, 2, 10+multiSaveButton-><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-><a href="tqbutton.html#setText">setText</a>( "Quit" ); quitButton-><a href="tqwidget.html#setGeometry">setGeometry</a>( multiSaveButton-><a href="tqwidget.html#geometry">geometry</a>().right() + 2, 2, 10+quitButton-><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-><a href="tqlabel.html#setText">setText</a>( "" ); rgb-><a href="tqlabel.html#setAlignment">setAlignment</a>( AlignVCenter ); rgb-><a href="tqwidget.html#resize">resize</a>( <a href="tqwidget.html#width">width</a>(), rgb-><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-><a href="ntqapplication.html#desktop">desktop</a>()->width()/2, graby=tqApp-><a href="ntqapplication.html#desktop">desktop</a>()->height()/2) ); +<a name="x1765"></a> grabAround( TQPoint(grabx=tqApp-><a href="tqapplication.html#desktop">desktop</a>()->width()/2, graby=tqApp-><a href="tqapplication.html#desktop">desktop</a>()->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 > TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->width() ) - x = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->width()-w; + if ( x + w > TQApplication::<a href="tqapplication.html#desktop">desktop</a>()->width() ) + x = TQApplication::<a href="tqapplication.html#desktop">desktop</a>()->width()-w; else if ( x < 0 ) x = 0; - if ( y + h > TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->height() ) - y = TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->height()-h; + if ( y + h > TQApplication::<a href="tqapplication.html#desktop">desktop</a>()->height() ) + y = TQApplication::<a href="tqapplication.html#desktop">desktop</a>()->height()-h; else if ( y < 0 ) y = 0; -<a name="x1784"></a> p = TQPixmap::<a href="tqpixmap.html#grabWindow">grabWindow</a>( TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->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>()->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 < width()*(<a href="tqwidget.html#height">height</a>()-yoffset) && - w*pz < TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->width() && - h*pz < TQApplication::<a href="ntqapplication.html#desktop">desktop</a>()->height() ) + w*pz < TQApplication::<a href="tqapplication.html#desktop">desktop</a>()->width() && + h*pz < TQApplication::<a href="tqapplication.html#desktop">desktop</a>()->height() ) pz++; if ( (w*pz*h*pz - width()*(<a href="tqwidget.html#height">height</a>()-yoffset)) > (<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>( &m ); + a.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( &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> |