diff options
Diffstat (limited to 'doc/html/qmag-example.html')
| -rw-r--r-- | doc/html/qmag-example.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/qmag-example.html b/doc/html/qmag-example.html index 29b97de49..8adfc7cd8 100644 --- a/doc/html/qmag-example.html +++ b/doc/html/qmag-example.html @@ -102,7 +102,7 @@ private: int yoffset; // pixels in addition to the actual picture int z; // magnification factor int r; // autorefresh rate (index into refreshrates) - bool grabbing; // TRUE if qmag is currently grabbing + bool grabbing; // true if qmag is currently grabbing int grabx, graby; <a href="ntqstring.html">TQString</a> multifn; // filename for multisave }; @@ -132,12 +132,12 @@ static const int timer[] = { #ifdef COMPLEX_GUI int w=0, x=0, n; - zoom = new <a href="ntqcombobox.html">TQComboBox</a>( FALSE, this ); + zoom = new <a href="ntqcombobox.html">TQComboBox</a>( false, this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(zoom); <a name="x1773"></a> zoom-><a href="ntqcombobox.html#insertStrList">insertStrList</a>( zoomfactors, 9 ); <a name="x1772"></a> <a href="ntqobject.html#connect">connect</a>( zoom, TQ_SIGNAL(<a href="ntqcombobox.html#activated">activated</a>(int)), TQ_SLOT(setZoom(int)) ); - refresh = new <a href="ntqcombobox.html">TQComboBox</a>( FALSE, this ); + refresh = new <a href="ntqcombobox.html">TQComboBox</a>( false, this ); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(refresh); refresh-><a href="ntqcombobox.html#insertStrList">insertStrList</a>( refreshrates, 9 ); <a href="ntqobject.html#connect">connect</a>( refresh, TQ_SIGNAL(<a href="ntqcombobox.html#activated">activated</a>(int)), TQ_SLOT(setRefresh(int)) ); @@ -164,7 +164,7 @@ static const int timer[] = { 10+saveButton-><a href="ntqwidget.html#fontMetrics">fontMetrics</a>().width("Save"), 20 ); multiSaveButton = new <a href="ntqpushbutton.html">TQPushButton</a>( this ); -<a name="x1790"></a> multiSaveButton-><a href="ntqpushbutton.html#setToggleButton">setToggleButton</a>(TRUE); +<a name="x1790"></a> multiSaveButton-><a href="ntqpushbutton.html#setToggleButton">setToggleButton</a>(true); <a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>(multiSaveButton); <a href="ntqobject.html#connect">connect</a>( multiSaveButton, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), this, TQ_SLOT(multiSave()) ); multiSaveButton-><a href="ntqbutton.html#setText">setText</a>( "MultiSave" ); @@ -203,9 +203,9 @@ static const int timer[] = { #endif grabx = graby = -1; - grabbing = FALSE; + grabbing = false; - <a href="ntqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE ); // and do let me know what pixel I'm at, eh? + <a href="ntqwidget.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) ); } @@ -248,11 +248,11 @@ void <a name="f488"></a>MagWidget::multiSave() multifn = ""; // stops saving multifn = TQFileDialog::<a href="ntqfiledialog.html#getSaveFileName">getSaveFileName</a>(); if ( multifn.<a href="ntqstring.html#isEmpty">isEmpty</a>() ) -<a name="x1789"></a> multiSaveButton-><a href="ntqpushbutton.html#setOn">setOn</a>(FALSE); +<a name="x1789"></a> multiSaveButton-><a href="ntqpushbutton.html#setOn">setOn</a>(false); if ( !r ) p.<a href="ntqpixmap.html#save">save</a>( multifn, "BMP" ); } else { - multiSaveButton-><a href="ntqpushbutton.html#setOn">setOn</a>(FALSE); + multiSaveButton-><a href="ntqpushbutton.html#setOn">setOn</a>(false); } } @@ -290,7 +290,7 @@ void <a name="f489"></a>MagWidget::grab() <a name="x1787"></a> pm = p.<a href="ntqpixmap.html#xForm">xForm</a>( m ); <a name="x1770"></a> if ( !multiSaveButton || !multiSaveButton-><a href="ntqbutton.html#isOn">isOn</a>() ) - <a href="ntqwidget.html#repaint">repaint</a>( FALSE ); // and finally repaint, flicker-free + <a href="ntqwidget.html#repaint">repaint</a>( false ); // and finally repaint, flicker-free } @@ -307,7 +307,7 @@ void <a name="f489"></a>MagWidget::grab() <a name="x1801"></a>void MagWidget::<a href="ntqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> *e ) { if ( !grabbing ) { // prepare to grab... - grabbing = TRUE; + grabbing = true; <a href="ntqobject.html#killTimers">killTimers</a>(); <a href="ntqwidget.html#grabMouse">grabMouse</a>( crossCursor ); grabx = -1; @@ -323,7 +323,7 @@ void <a name="f489"></a>MagWidget::grab() <a name="x1802"></a>void MagWidget::<a href="ntqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="qmouseevent.html">TQMouseEvent</a> * e ) { if ( grabbing && grabx >= 0 && graby >= 0 ) { - grabbing = FALSE; + grabbing = false; grabAround(e-><a href="qmouseevent.html#pos">pos</a>()); <a href="ntqwidget.html#releaseMouse">releaseMouse</a>(); } |
