From 82ecd83484c9fa1ede059986ab771e74e33e68ef Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 16 Aug 2024 19:11:00 +0900 Subject: Rename layout nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tutorial2-09.html | 52 +++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'doc/html/tutorial2-09.html') diff --git a/doc/html/tutorial2-09.html b/doc/html/tutorial2-09.html index f14160781..4210771c7 100644 --- a/doc/html/tutorial2-09.html +++ b/doc/html/tutorial2-09.html @@ -68,13 +68,13 @@ apply to all data sets in one place. void chooseFont(); protected: - TQVBoxLayout *optionsFormLayout; - TQHBoxLayout *chartTypeLayout; - TQHBoxLayout *fontLayout; - TQVBoxLayout *addValuesFrameLayout; - TQVBoxLayout *addValuesButtonGroupLayout; - TQHBoxLayout *decimalPlacesLayout; - TQHBoxLayout *buttonsLayout; + TQVBoxLayout *optionsFormLayout; + TQHBoxLayout *chartTypeLayout; + TQHBoxLayout *fontLayout; + TQVBoxLayout *addValuesFrameLayout; + TQVBoxLayout *addValuesButtonGroupLayout; + TQHBoxLayout *decimalPlacesLayout; + TQHBoxLayout *buttonsLayout; private: TQFont m_font; @@ -111,14 +111,14 @@ buttons will also be placed in a horizontal layout, but with a spacer to move them to the right. The show values radio buttons will be vertically aligned within a frame. All of these will be laid out in a vertical box layout. -

        optionsFormLayout = new TQVBoxLayout( this, 11, 6 );
+

        optionsFormLayout = new TQVBoxLayout( this, 11, 6 );
 

All the widgets will be laid out within the form's vertical box layout. -

        chartTypeLayout = new TQHBoxLayout( 0, 0, 6 );
+

        chartTypeLayout = new TQHBoxLayout( 0, 0, 6 );
 

The chart type label and combobox will be laid out side by side.

        chartTypeTextLabel = new TQLabel( "&Chart Type", this );
-        chartTypeLayout->addWidget( chartTypeTextLabel );
+        chartTypeLayout->addWidget( chartTypeTextLabel );
 
         chartTypeComboBox = new TQComboBox( FALSE, this );
         chartTypeComboBox->insertItem( TQPixmap( options_piechart ), "Pie Chart" );
@@ -126,26 +126,26 @@ vertical box layout.
                                        "Vertical Bar Chart" );
         chartTypeComboBox->insertItem( TQPixmap( options_horizontalbarchart ),
                                        "Horizontal Bar Chart" );
-        chartTypeLayout->addWidget( chartTypeComboBox );
-        optionsFormLayout->addLayout( chartTypeLayout );
+        chartTypeLayout->addWidget( chartTypeComboBox );
+        optionsFormLayout->addLayout( chartTypeLayout );
 

We create the chart type label (with an accelerator which we'll relate to the chart type combobox later). We also create a chart type combobox, populating it with both pixmaps and text. We add them both to the horizontal layout and add the horizontal layout to the form's vertical layout. -

        fontLayout = new TQHBoxLayout( 0, 0, 6 );
+

        fontLayout = new TQHBoxLayout( 0, 0, 6 );
 
         fontPushButton = new TQPushButton( "&Font...", this );
-        fontLayout->addWidget( fontPushButton );
-        TQSpacerItem* spacer = new TQSpacerItem( 0, 0,
+        fontLayout->addWidget( fontPushButton );
+        TQSpacerItem* spacer = new TQSpacerItem( 0, 0,
                                                TQSizePolicy::Expanding,
                                                TQSizePolicy::Minimum );
-        fontLayout->addItem( spacer );
+        fontLayout->addItem( spacer );
 
         fontTextLabel = new TQLabel( this ); // Must be set by caller via setFont()
-        fontLayout->addWidget( fontTextLabel );
-        optionsFormLayout->addLayout( fontLayout );
+        fontLayout->addWidget( fontTextLabel );
+        optionsFormLayout->addLayout( fontLayout );
 

We create a horizontal box layout to hold the font button and font label. The font button is straight-forward. We add a spacer to improve @@ -154,27 +154,27 @@ know what font the user is using).

        addValuesFrame = new TQFrame( this );
         addValuesFrame->setFrameShape( TQFrame::StyledPanel );
         addValuesFrame->setFrameShadow( TQFrame::Sunken );
-        addValuesFrameLayout = new TQVBoxLayout( addValuesFrame, 11, 6 );
+        addValuesFrameLayout = new TQVBoxLayout( addValuesFrame, 11, 6 );
 
         addValuesButtonGroup = new TQButtonGroup( "Show Values", addValuesFrame );
-        addValuesButtonGroup->setColumnLayout(0, TQt::Vertical );
+        addValuesButtonGroup->setColumnLayout(0, TQt::Vertical );
         addValuesButtonGroup->layout()->setSpacing( 6 );
         addValuesButtonGroup->layout()->setMargin( 11 );
-        addValuesButtonGroupLayout = new TQVBoxLayout(
+        addValuesButtonGroupLayout = new TQVBoxLayout(
                                             addValuesButtonGroup->layout() );
-        addValuesButtonGroupLayout->setAlignment( TQt::AlignTop );
+        addValuesButtonGroupLayout->setAlignment( TQt::AlignTop );
 
         noRadioButton = new TQRadioButton( "&No", addValuesButtonGroup );
         noRadioButton->setChecked( TRUE );
-        addValuesButtonGroupLayout->addWidget( noRadioButton );
+        addValuesButtonGroupLayout->addWidget( noRadioButton );
 
         yesRadioButton = new TQRadioButton( "&Yes", addValuesButtonGroup );
-        addValuesButtonGroupLayout->addWidget( yesRadioButton );
+        addValuesButtonGroupLayout->addWidget( yesRadioButton );
 
         asPercentageRadioButton = new TQRadioButton( "As &Percentage",
                                                     addValuesButtonGroup );
-        addValuesButtonGroupLayout->addWidget( asPercentageRadioButton );
-        addValuesFrameLayout->addWidget( addValuesButtonGroup );
+        addValuesButtonGroupLayout->addWidget( asPercentageRadioButton );
+        addValuesFrameLayout->addWidget( addValuesButtonGroup );
 

The user may opt to display their own labels as they are or to add the values at the end of each label, either as-is or as percentages. -- cgit v1.2.3