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 632655a37..fab66e0ca 100644 --- a/doc/html/qmag-example.html +++ b/doc/html/qmag-example.html @@ -101,7 +101,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="tqstring.html">TQString</a> multifn; // filename for multisave }; @@ -131,12 +131,12 @@ static const int timer[] = { #ifdef COMPLEX_GUI int w=0, x=0, n; - zoom = new <a href="tqcombobox.html">TQComboBox</a>( FALSE, this ); + zoom = new <a href="tqcombobox.html">TQComboBox</a>( false, this ); <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 ); + refresh = new <a href="tqcombobox.html">TQComboBox</a>( false, this ); <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)) ); @@ -163,7 +163,7 @@ static const int timer[] = { 10+saveButton-><a href="tqwidget.html#fontMetrics">fontMetrics</a>().width("Save"), 20 ); multiSaveButton = new <a href="tqpushbutton.html">TQPushButton</a>( this ); -<a name="x1790"></a> multiSaveButton-><a href="tqpushbutton.html#setToggleButton">setToggleButton</a>(TRUE); +<a name="x1790"></a> multiSaveButton-><a href="tqpushbutton.html#setToggleButton">setToggleButton</a>(true); <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" ); @@ -202,9 +202,9 @@ static const int timer[] = { #endif grabx = graby = -1; - grabbing = FALSE; + grabbing = false; - <a href="tqwidget.html#setMouseTracking">setMouseTracking</a>( TRUE ); // and do let me know what pixel I'm at, eh? + <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="tqapplication.html#desktop">desktop</a>()->width()/2, graby=tqApp-><a href="tqapplication.html#desktop">desktop</a>()->height()/2) ); } @@ -247,11 +247,11 @@ void <a name="f488"></a>MagWidget::multiSave() multifn = ""; // stops saving multifn = TQFileDialog::<a href="tqfiledialog.html#getSaveFileName">getSaveFileName</a>(); if ( multifn.<a href="tqstring.html#isEmpty">isEmpty</a>() ) -<a name="x1789"></a> multiSaveButton-><a href="tqpushbutton.html#setOn">setOn</a>(FALSE); +<a name="x1789"></a> multiSaveButton-><a href="tqpushbutton.html#setOn">setOn</a>(false); if ( !r ) p.<a href="tqpixmap.html#save">save</a>( multifn, "BMP" ); } else { - multiSaveButton-><a href="tqpushbutton.html#setOn">setOn</a>(FALSE); + multiSaveButton-><a href="tqpushbutton.html#setOn">setOn</a>(false); } } @@ -289,7 +289,7 @@ void <a name="f489"></a>MagWidget::grab() <a name="x1787"></a> pm = p.<a href="tqpixmap.html#xForm">xForm</a>( m ); <a name="x1770"></a> if ( !multiSaveButton || !multiSaveButton-><a href="tqbutton.html#isOn">isOn</a>() ) - <a href="tqwidget.html#repaint">repaint</a>( FALSE ); // and finally repaint, flicker-free + <a href="tqwidget.html#repaint">repaint</a>( false ); // and finally repaint, flicker-free } @@ -306,7 +306,7 @@ void <a name="f489"></a>MagWidget::grab() <a name="x1801"></a>void MagWidget::<a href="tqwidget.html#mousePressEvent">mousePressEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> *e ) { if ( !grabbing ) { // prepare to grab... - grabbing = TRUE; + grabbing = true; <a href="tqobject.html#killTimers">killTimers</a>(); <a href="tqwidget.html#grabMouse">grabMouse</a>( crossCursor ); grabx = -1; @@ -322,7 +322,7 @@ void <a name="f489"></a>MagWidget::grab() <a name="x1802"></a>void MagWidget::<a href="tqwidget.html#mouseReleaseEvent">mouseReleaseEvent</a>( <a href="tqmouseevent.html">TQMouseEvent</a> * e ) { if ( grabbing && grabx >= 0 && graby >= 0 ) { - grabbing = FALSE; + grabbing = false; grabAround(e-><a href="tqmouseevent.html#pos">pos</a>()); <a href="tqwidget.html#releaseMouse">releaseMouse</a>(); } |