diff options
Diffstat (limited to 'doc/html/chart-optionsform-cpp.html')
-rw-r--r-- | doc/html/chart-optionsform-cpp.html | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/doc/html/chart-optionsform-cpp.html b/doc/html/chart-optionsform-cpp.html index 1c8b1195f..c2caa73c7 100644 --- a/doc/html/chart-optionsform-cpp.html +++ b/doc/html/chart-optionsform-cpp.html @@ -34,91 +34,91 @@ body { background: #ffffff; color: black; } <pre>#include "optionsform.h" -#include <<a href="qbuttongroup-h.html">qbuttongroup.h</a>> -#include <<a href="qcombobox-h.html">qcombobox.h</a>> -#include <<a href="qfontdialog-h.html">qfontdialog.h</a>> -#include <<a href="qframe-h.html">qframe.h</a>> -#include <<a href="qimage-h.html">qimage.h</a>> -#include <<a href="qlabel-h.html">qlabel.h</a>> -#include <<a href="qlayout-h.html">qlayout.h</a>> -#include <<a href="qpushbutton-h.html">qpushbutton.h</a>> -#include <<a href="qradiobutton-h.html">qradiobutton.h</a>> -#include <<a href="qspinbox-h.html">qspinbox.h</a>> +#include <<a href="qbuttongroup-h.html">ntqbuttongroup.h</a>> +#include <<a href="qcombobox-h.html">ntqcombobox.h</a>> +#include <<a href="qfontdialog-h.html">ntqfontdialog.h</a>> +#include <<a href="qframe-h.html">ntqframe.h</a>> +#include <<a href="qimage-h.html">ntqimage.h</a>> +#include <<a href="qlabel-h.html">ntqlabel.h</a>> +#include <<a href="qlayout-h.html">ntqlayout.h</a>> +#include <<a href="qpushbutton-h.html">ntqpushbutton.h</a>> +#include <<a href="qradiobutton-h.html">ntqradiobutton.h</a>> +#include <<a href="qspinbox-h.html">ntqspinbox.h</a>> #include "images/options_horizontalbarchart.xpm" #include "images/options_piechart.xpm" #include "images/options_verticalbarchart.xpm" -<a name="f176"></a>OptionsForm::OptionsForm( <a href="qwidget.html">TQWidget</a>* parent, const char* name, +<a name="f176"></a>OptionsForm::OptionsForm( <a href="ntqwidget.html">TQWidget</a>* parent, const char* name, bool modal, WFlags f ) - : <a href="qdialog.html">TQDialog</a>( parent, name, modal, f ) + : <a href="ntqdialog.html">TQDialog</a>( parent, name, modal, f ) { - <a href="qwidget.html#setCaption">setCaption</a>( "Chart -- Options" ); - <a href="qwidget.html#resize">resize</a>( 320, 290 ); + <a href="ntqwidget.html#setCaption">setCaption</a>( "Chart -- Options" ); + <a href="ntqwidget.html#resize">resize</a>( 320, 290 ); optionsFormLayout = new <a href="qvboxlayout.html">TQVBoxLayout</a>( this, 11, 6 ); chartTypeLayout = new <a href="qhboxlayout.html">TQHBoxLayout</a>( 0, 0, 6 ); - chartTypeTextLabel = new <a href="qlabel.html">TQLabel</a>( "&Chart Type", this ); + chartTypeTextLabel = new <a href="ntqlabel.html">TQLabel</a>( "&Chart Type", this ); chartTypeLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( chartTypeTextLabel ); - chartTypeComboBox = new <a href="qcombobox.html">TQComboBox</a>( FALSE, this ); - chartTypeComboBox-><a href="qcombobox.html#insertItem">insertItem</a>( TQPixmap( options_piechart ), "Pie Chart" ); - chartTypeComboBox-><a href="qcombobox.html#insertItem">insertItem</a>( TQPixmap( options_verticalbarchart ), + chartTypeComboBox = new <a href="ntqcombobox.html">TQComboBox</a>( FALSE, this ); + chartTypeComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_piechart ), "Pie Chart" ); + chartTypeComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_verticalbarchart ), "Vertical Bar Chart" ); - chartTypeComboBox-><a href="qcombobox.html#insertItem">insertItem</a>( TQPixmap( options_horizontalbarchart ), + chartTypeComboBox-><a href="ntqcombobox.html#insertItem">insertItem</a>( TQPixmap( options_horizontalbarchart ), "Horizontal Bar Chart" ); chartTypeLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( chartTypeComboBox ); optionsFormLayout-><a href="qboxlayout.html#addLayout">addLayout</a>( chartTypeLayout ); fontLayout = new <a href="qhboxlayout.html">TQHBoxLayout</a>( 0, 0, 6 ); - fontPushButton = new <a href="qpushbutton.html">TQPushButton</a>( "&Font...", this ); + fontPushButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "&Font...", this ); fontLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( fontPushButton ); <a href="qspaceritem.html">TQSpacerItem</a>* spacer = new <a href="qspaceritem.html">TQSpacerItem</a>( 0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); fontLayout-><a href="qboxlayout.html#addItem">addItem</a>( spacer ); - fontTextLabel = new <a href="qlabel.html">TQLabel</a>( this ); // Must be set by caller via setFont() + fontTextLabel = new <a href="ntqlabel.html">TQLabel</a>( this ); // Must be set by caller via setFont() fontLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( fontTextLabel ); optionsFormLayout-><a href="qboxlayout.html#addLayout">addLayout</a>( fontLayout ); - addValuesFrame = new <a href="qframe.html">TQFrame</a>( this ); - addValuesFrame-><a href="qframe.html#setFrameShape">setFrameShape</a>( TQFrame::StyledPanel ); - addValuesFrame-><a href="qframe.html#setFrameShadow">setFrameShadow</a>( TQFrame::Sunken ); + addValuesFrame = new <a href="ntqframe.html">TQFrame</a>( this ); + addValuesFrame-><a href="ntqframe.html#setFrameShape">setFrameShape</a>( TQFrame::StyledPanel ); + addValuesFrame-><a href="ntqframe.html#setFrameShadow">setFrameShadow</a>( TQFrame::Sunken ); addValuesFrameLayout = new <a href="qvboxlayout.html">TQVBoxLayout</a>( addValuesFrame, 11, 6 ); - addValuesButtonGroup = new <a href="qbuttongroup.html">TQButtonGroup</a>( "Show Values", addValuesFrame ); - addValuesButtonGroup-><a href="qgroupbox.html#setColumnLayout">setColumnLayout</a>(0, TQt::Vertical ); - addValuesButtonGroup-><a href="qwidget.html#layout">layout</a>()->setSpacing( 6 ); - addValuesButtonGroup-><a href="qwidget.html#layout">layout</a>()->setMargin( 11 ); + addValuesButtonGroup = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( "Show Values", addValuesFrame ); + addValuesButtonGroup-><a href="ntqgroupbox.html#setColumnLayout">setColumnLayout</a>(0, TQt::Vertical ); + addValuesButtonGroup-><a href="ntqwidget.html#layout">layout</a>()->setSpacing( 6 ); + addValuesButtonGroup-><a href="ntqwidget.html#layout">layout</a>()->setMargin( 11 ); addValuesButtonGroupLayout = new <a href="qvboxlayout.html">TQVBoxLayout</a>( - addValuesButtonGroup-><a href="qwidget.html#layout">layout</a>() ); + addValuesButtonGroup-><a href="ntqwidget.html#layout">layout</a>() ); addValuesButtonGroupLayout-><a href="qlayoutitem.html#setAlignment">setAlignment</a>( TQt::AlignTop ); - noRadioButton = new <a href="qradiobutton.html">TQRadioButton</a>( "&No", addValuesButtonGroup ); - noRadioButton-><a href="qradiobutton.html#setChecked">setChecked</a>( TRUE ); + noRadioButton = new <a href="ntqradiobutton.html">TQRadioButton</a>( "&No", addValuesButtonGroup ); + noRadioButton-><a href="ntqradiobutton.html#setChecked">setChecked</a>( TRUE ); addValuesButtonGroupLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( noRadioButton ); - yesRadioButton = new <a href="qradiobutton.html">TQRadioButton</a>( "&Yes", addValuesButtonGroup ); + yesRadioButton = new <a href="ntqradiobutton.html">TQRadioButton</a>( "&Yes", addValuesButtonGroup ); addValuesButtonGroupLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( yesRadioButton ); - asPercentageRadioButton = new <a href="qradiobutton.html">TQRadioButton</a>( "As &Percentage", + asPercentageRadioButton = new <a href="ntqradiobutton.html">TQRadioButton</a>( "As &Percentage", addValuesButtonGroup ); addValuesButtonGroupLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( asPercentageRadioButton ); addValuesFrameLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( addValuesButtonGroup ); decimalPlacesLayout = new <a href="qhboxlayout.html">TQHBoxLayout</a>( 0, 0, 6 ); - decimalPlacesTextLabel = new <a href="qlabel.html">TQLabel</a>( "&Decimal Places", addValuesFrame ); + decimalPlacesTextLabel = new <a href="ntqlabel.html">TQLabel</a>( "&Decimal Places", addValuesFrame ); decimalPlacesLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( decimalPlacesTextLabel ); - decimalPlacesSpinBox = new <a href="qspinbox.html">TQSpinBox</a>( addValuesFrame ); - decimalPlacesSpinBox-><a href="qspinbox.html#setMinValue">setMinValue</a>( 0 ); - decimalPlacesSpinBox-><a href="qspinbox.html#setMaxValue">setMaxValue</a>( 9 ); + decimalPlacesSpinBox = new <a href="ntqspinbox.html">TQSpinBox</a>( addValuesFrame ); + decimalPlacesSpinBox-><a href="ntqspinbox.html#setMinValue">setMinValue</a>( 0 ); + decimalPlacesSpinBox-><a href="ntqspinbox.html#setMaxValue">setMaxValue</a>( 9 ); decimalPlacesLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( decimalPlacesSpinBox ); addValuesFrameLayout-><a href="qboxlayout.html#addLayout">addLayout</a>( decimalPlacesLayout ); @@ -130,41 +130,41 @@ body { background: #ffffff; color: black; } TQSizePolicy::Expanding, TQSizePolicy::Minimum ); buttonsLayout-><a href="qboxlayout.html#addItem">addItem</a>( spacer ); - okPushButton = new <a href="qpushbutton.html">TQPushButton</a>( "OK", this ); - okPushButton-><a href="qpushbutton.html#setDefault">setDefault</a>( TRUE ); + okPushButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "OK", this ); + okPushButton-><a href="ntqpushbutton.html#setDefault">setDefault</a>( TRUE ); buttonsLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( okPushButton ); - cancelPushButton = new <a href="qpushbutton.html">TQPushButton</a>( "Cancel", this ); + cancelPushButton = new <a href="ntqpushbutton.html">TQPushButton</a>( "Cancel", this ); buttonsLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( cancelPushButton ); optionsFormLayout-><a href="qboxlayout.html#addLayout">addLayout</a>( buttonsLayout ); - <a href="qobject.html#connect">connect</a>( fontPushButton, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( chooseFont() ) ); - <a href="qobject.html#connect">connect</a>( okPushButton, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( <a href="qdialog.html#accept">accept</a>() ) ); - <a href="qobject.html#connect">connect</a>( cancelPushButton, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( <a href="qdialog.html#reject">reject</a>() ) ); + <a href="ntqobject.html#connect">connect</a>( fontPushButton, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( chooseFont() ) ); + <a href="ntqobject.html#connect">connect</a>( okPushButton, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( <a href="ntqdialog.html#accept">accept</a>() ) ); + <a href="ntqobject.html#connect">connect</a>( cancelPushButton, SIGNAL( <a href="ntqbutton.html#clicked">clicked</a>() ), this, SLOT( <a href="ntqdialog.html#reject">reject</a>() ) ); - chartTypeTextLabel-><a href="qlabel.html#setBuddy">setBuddy</a>( chartTypeComboBox ); - decimalPlacesTextLabel-><a href="qlabel.html#setBuddy">setBuddy</a>( decimalPlacesSpinBox ); + chartTypeTextLabel-><a href="ntqlabel.html#setBuddy">setBuddy</a>( chartTypeComboBox ); + decimalPlacesTextLabel-><a href="ntqlabel.html#setBuddy">setBuddy</a>( decimalPlacesSpinBox ); } void <a name="f177"></a>OptionsForm::chooseFont() { bool ok; - <a href="qfont.html">TQFont</a> font = TQFontDialog::<a href="qfontdialog.html#getFont">getFont</a>( &ok, m_font, this ); + <a href="ntqfont.html">TQFont</a> font = TQFontDialog::<a href="ntqfontdialog.html#getFont">getFont</a>( &ok, m_font, this ); if ( ok ) - <a href="qwidget.html#setFont">setFont</a>( font ); + <a href="ntqwidget.html#setFont">setFont</a>( font ); } -void OptionsForm::<a href="qwidget.html#setFont">setFont</a>( <a href="qfont.html">TQFont</a> font ) +void OptionsForm::<a href="ntqwidget.html#setFont">setFont</a>( <a href="ntqfont.html">TQFont</a> font ) { - <a href="qstring.html">TQString</a> label = font.<a href="qfont.html#family">family</a>() + " " + - TQString::<a href="qstring.html#number">number</a>( font.<a href="qfont.html#pointSize">pointSize</a>() ) + "pt"; - if ( font.<a href="qfont.html#bold">bold</a>() ) + <a href="ntqstring.html">TQString</a> label = font.<a href="ntqfont.html#family">family</a>() + " " + + TQString::<a href="ntqstring.html#number">number</a>( font.<a href="ntqfont.html#pointSize">pointSize</a>() ) + "pt"; + if ( font.<a href="ntqfont.html#bold">bold</a>() ) label += " Bold"; - if ( font.<a href="qfont.html#italic">italic</a>() ) + if ( font.<a href="ntqfont.html#italic">italic</a>() ) label += " Italic"; - fontTextLabel-><a href="qlabel.html#setText">setText</a>( label ); + fontTextLabel-><a href="ntqlabel.html#setText">setText</a>( label ); m_font = font; } </pre><!-- eof --> |