diff options
Diffstat (limited to 'doc/html/canvas-chart-example.html')
-rw-r--r-- | doc/html/canvas-chart-example.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/canvas-chart-example.html b/doc/html/canvas-chart-example.html index fb251c48f..85780a420 100644 --- a/doc/html/canvas-chart-example.html +++ b/doc/html/canvas-chart-example.html @@ -180,7 +180,7 @@ public: ~ChartForm(); int chartType() { return m_chartType; } - void setChanged( bool changed = TRUE ) { m_changed = changed; } + void setChanged( bool changed = true ) { m_changed = changed; } void drawElements(); <a href="tqpopupmenu.html">TQPopupMenu</a> *optionsMenu; // Why public? See canvasview.cpp @@ -340,23 +340,23 @@ const <a href="tqstring.html">TQString</a> APP_KEY = "/Chart/"; <a href="tqactiongroup.html">TQActionGroup</a> *chartGroup = new <a href="tqactiongroup.html">TQActionGroup</a>( this ); // Connected later -<a name="x2874"></a> chartGroup-><a href="tqactiongroup.html#setExclusive">setExclusive</a>( TRUE ); +<a name="x2874"></a> chartGroup-><a href="tqactiongroup.html#setExclusive">setExclusive</a>( true ); optionsPieChartAction = new <a href="tqaction.html">TQAction</a>( "Pie Chart", TQPixmap( options_piechart ), "&Pie Chart", CTRL+Key_I, chartGroup, "pie chart" ); -<a name="x2872"></a> optionsPieChartAction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( TRUE ); +<a name="x2872"></a> optionsPieChartAction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( true ); optionsHorizontalBarChartAction = new <a href="tqaction.html">TQAction</a>( "Horizontal Bar Chart", TQPixmap( options_horizontalbarchart ), "&Horizontal Bar Chart", CTRL+Key_H, chartGroup, "horizontal bar chart" ); - optionsHorizontalBarChartAction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( TRUE ); + optionsHorizontalBarChartAction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( true ); optionsVerticalBarChartAction = new <a href="tqaction.html">TQAction</a>( "Vertical Bar Chart", TQPixmap( options_verticalbarchart ), "&Vertical Bar Chart", CTRL+Key_V, chartGroup, "Vertical bar chart" ); - optionsVerticalBarChartAction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( TRUE ); + optionsVerticalBarChartAction-><a href="tqaction.html#setToggleAction">setToggleAction</a>( true ); optionsSetFontAction = new <a href="tqaction.html">TQAction</a>( @@ -497,7 +497,7 @@ void <a name="f597"></a>ChartForm::init() { <a href="tqwidget.html#setCaption">setCaption</a>( "Chart" ); m_filename = TQString::null; - m_changed = FALSE; + m_changed = false; m_elements[0] = Element( Element::INVALID, red ); m_elements[1] = Element( Element::INVALID, cyan ); @@ -637,13 +637,13 @@ bool <a name="f605"></a>ChartForm::okToClear() break; case 1: // Cancel default: - return FALSE; + return false; case 2: // Abandon break; } } - return TRUE; + return true; } @@ -669,7 +669,7 @@ void <a name="f607"></a>ChartForm::optionsSetData() { SetDataForm *setDataForm = new SetDataForm( &m_elements, m_decimalPlaces, this ); <a name="x2877"></a> if ( setDataForm-><a href="tqdialog.html#exec">exec</a>() ) { - m_changed = TRUE; + m_changed = true; drawElements(); } delete setDataForm; @@ -681,13 +681,13 @@ void <a name="f608"></a>ChartForm::setChartType( ChartType chartType ) m_chartType = chartType; switch ( m_chartType ) { case PIE: -<a name="x2871"></a> optionsPieChartAction-><a href="tqaction.html#setOn">setOn</a>( TRUE ); +<a name="x2871"></a> optionsPieChartAction-><a href="tqaction.html#setOn">setOn</a>( true ); break; case VERTICAL_BAR: - optionsVerticalBarChartAction-><a href="tqaction.html#setOn">setOn</a>( TRUE ); + optionsVerticalBarChartAction-><a href="tqaction.html#setOn">setOn</a>( true ); break; case HORIZONTAL_BAR: - optionsHorizontalBarChartAction-><a href="tqaction.html#setOn">setOn</a>( TRUE ); + optionsHorizontalBarChartAction-><a href="tqaction.html#setOn">setOn</a>( true ); break; } } @@ -727,13 +727,13 @@ void <a name="f611"></a>ChartForm::optionsSetOptions() optionsForm-><a href="tqwidget.html#setFont">setFont</a>( m_font ); switch ( m_addValues ) { case NO: - optionsForm->noRadioButton->setChecked( TRUE ); + optionsForm->noRadioButton->setChecked( true ); break; case YES: - optionsForm->yesRadioButton->setChecked( TRUE ); + optionsForm->yesRadioButton->setChecked( true ); break; case AS_PERCENTAGE: - optionsForm->asPercentageRadioButton->setChecked( TRUE ); + optionsForm->asPercentageRadioButton->setChecked( true ); break; } optionsForm->decimalPlacesSpinBox->setValue( m_decimalPlaces ); |