diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kchart/kchartParameterConfigPage.cc | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kchart/kchartParameterConfigPage.cc')
-rw-r--r-- | kchart/kchartParameterConfigPage.cc | 140 |
1 files changed, 70 insertions, 70 deletions
diff --git a/kchart/kchartParameterConfigPage.cc b/kchart/kchartParameterConfigPage.cc index d819b866..1b075d27 100644 --- a/kchart/kchartParameterConfigPage.cc +++ b/kchart/kchartParameterConfigPage.cc @@ -23,16 +23,16 @@ #include <kapplication.h> #include <klocale.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qcheckbox.h> -#include <qlineedit.h> -#include <qspinbox.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> -#include <qvbuttongroup.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqcheckbox.h> +#include <tqlineedit.h> +#include <tqspinbox.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> +#include <tqvbuttongroup.h> #include <kfontdialog.h> -#include <qwhatsthis.h> +#include <tqwhatsthis.h> #include "kdchart/KDChartAxisParams.h" #include "kchart_params.h" @@ -41,136 +41,136 @@ namespace KChart { KChartParameterConfigPage::KChartParameterConfigPage( KChartParams* params, - QWidget* parent ) : - QWidget( parent ),_params( params ) + TQWidget* tqparent ) : + TQWidget( tqparent ),_params( params ) { - // toplevel layout - QVBoxLayout* toplevel = new QVBoxLayout( this, 10 ); + // toplevel tqlayout + TQVBoxLayout* toplevel = new TQVBoxLayout( this, 10 ); - QGridLayout* layout = new QGridLayout( 1, 3 ); - toplevel->addLayout( layout ); + TQGridLayout* tqlayout = new TQGridLayout( 1, 3 ); + toplevel->addLayout( tqlayout ); // The "Parameters" button group - QButtonGroup* gb1 = new QButtonGroup( 0, Qt::Vertical, i18n("Parameters"), this ); - gb1->layout()->setSpacing(KDialog::spacingHint()); - gb1->layout()->setMargin(KDialog::marginHint()); - QGridLayout *grid1 = new QGridLayout(gb1->layout(),9,1); + TQButtonGroup* gb1 = new TQButtonGroup( 0, Qt::Vertical, i18n("Parameters"), this ); + gb1->tqlayout()->setSpacing(KDialog::spacingHint()); + gb1->tqlayout()->setMargin(KDialog::marginHint()); + TQGridLayout *grid1 = new TQGridLayout(gb1->tqlayout(),9,1); - grid = new QCheckBox( i18n( "Grid" ), gb1 ); - QWhatsThis::add(grid, i18n("If this is checked, the grid is shown. If you uncheck this option, the grid will not be displayed anymore.")); + grid = new TQCheckBox( i18n( "Grid" ), gb1 ); + TQWhatsThis::add(grid, i18n("If this is checked, the grid is shown. If you uncheck this option, the grid will not be displayed anymore.")); grid1->addWidget(grid, 0, 0); //gb1->insert(grid); - yaxis = new QCheckBox( i18n( "Y-axis" ), gb1); - QWhatsThis::add(yaxis, i18n("If this is checked, the Y-axis is shown. If you uncheck this option, the Y-axis and the Y grid lines will not be displayed anymore.")); - connect( yaxis, SIGNAL( clicked() ), this, SLOT( axisChanged() ) ); + yaxis = new TQCheckBox( i18n( "Y-axis" ), gb1); + TQWhatsThis::add(yaxis, i18n("If this is checked, the Y-axis is shown. If you uncheck this option, the Y-axis and the Y grid lines will not be displayed anymore.")); + connect( yaxis, TQT_SIGNAL( clicked() ), this, TQT_SLOT( axisChanged() ) ); grid1->addWidget(yaxis, 1, 0); //gb1->insert(yaxis); - xaxis = new QCheckBox( i18n( "X-axis" ), gb1 ); - QWhatsThis::add(xaxis, i18n("If this is checked, the X-axis is shown. If you uncheck this option, the X-axis and the X grid lines will not be displayed anymore.")); - connect( xaxis, SIGNAL( clicked() ), this, SLOT( axisChanged() ) ); + xaxis = new TQCheckBox( i18n( "X-axis" ), gb1 ); + TQWhatsThis::add(xaxis, i18n("If this is checked, the X-axis is shown. If you uncheck this option, the X-axis and the X grid lines will not be displayed anymore.")); + connect( xaxis, TQT_SIGNAL( clicked() ), this, TQT_SLOT( axisChanged() ) ); grid1->addWidget(xaxis, 2, 0); //gb1->insert(xaxis); #if 0 - xlabel = new QCheckBox( i18n( "Has X-label" ), gb1 ); + xlabel = new TQCheckBox( i18n( "Has X-label" ), gb1 ); grid1->addWidget(xlabel,3,0); - yaxis2 = new QCheckBox( i18n( "Y-axis 2" ), gb1 ); + yaxis2 = new TQCheckBox( i18n( "Y-axis 2" ), gb1 ); grid1->addWidget(yaxis2,4,0); #endif #if 0 // Moved to the Line page - lineMarker = new QCheckBox( i18n( "Line marker" ), gb1 ); + lineMarker = new TQCheckBox( i18n( "Line marker" ), gb1 ); grid1->addWidget(lineMarker, 4, 0); #endif #if 0 - llabel = new QCheckBox( i18n( "Legend" ), gb1 ); + llabel = new TQCheckBox( i18n( "Legend" ), gb1 ); grid1->addWidget(llabel,6,0); #endif // The "Settings" button group - QButtonGroup* gb2 = new QButtonGroup( 0, Qt::Vertical, + TQButtonGroup* gb2 = new TQButtonGroup( 0, Qt::Vertical, i18n("Settings"), this ); - gb2->layout()->setSpacing(KDialog::spacingHint()); - gb2->layout()->setMargin(KDialog::marginHint()); - QGridLayout *grid2 = new QGridLayout(gb2->layout(),8,1); + gb2->tqlayout()->setSpacing(KDialog::spacingHint()); + gb2->tqlayout()->setMargin(KDialog::marginHint()); + TQGridLayout *grid2 = new TQGridLayout(gb2->tqlayout(),8,1); - QBoxLayout * l = new QVBoxLayout( grid2 ); + TQBoxLayout * l = new TQVBoxLayout( grid2 ); - QHBoxLayout * top = new QHBoxLayout( l ); + TQHBoxLayout * top = new TQHBoxLayout( l ); // The X axis title - QLabel *tmpLabel = new QLabel( i18n( "X-title:" ), gb2 ); + TQLabel *tmpLabel = new TQLabel( i18n( "X-title:" ), gb2 ); top->addWidget(tmpLabel); // The Y axis title - tmpLabel = new QLabel( i18n( "Y-title:" ), gb2 ); + tmpLabel = new TQLabel( i18n( "Y-title:" ), gb2 ); top->addWidget(tmpLabel); - QHBoxLayout * bottom = new QHBoxLayout( l ); - xtitle= new QLineEdit( gb2 ); - QWhatsThis::add(xtitle, i18n("Write the title for the X-axis here, if you want a title. The color for this title is set in the Colors tab, in the same dialog, and the font is set in the Font tab.")); + TQHBoxLayout * bottom = new TQHBoxLayout( l ); + xtitle= new TQLineEdit( gb2 ); + TQWhatsThis::add(xtitle, i18n("Write the title for the X-axis here, if you want a title. The color for this title is set in the Colors tab, in the same dialog, and the font is set in the Font tab.")); bottom->addWidget(xtitle); - ytitle= new QLineEdit( gb2 ); - QWhatsThis::add(ytitle, i18n("Write the title for the Y-axis here, if you want a title. The color for this title is set in the Colors tab, in the same dialog, and the font is set in the Font tab.")); + ytitle= new TQLineEdit( gb2 ); + TQWhatsThis::add(ytitle, i18n("Write the title for the Y-axis here, if you want a title. The color for this title is set in the Colors tab, in the same dialog, and the font is set in the Font tab.")); bottom->addWidget(ytitle); // Linear or logarithmic scale - QVButtonGroup *scaletype = new QVButtonGroup(i18n("Scale Types"), gb2); - lin = new QRadioButton( i18n("Linear scale"), scaletype); - QWhatsThis::add(lin, i18n("This sets the Y-axis to be linear. This is default.")); - log = new QRadioButton( i18n("Logarithmic scale"), scaletype); - QWhatsThis::add(log, i18n("This sets the Y-axis to be logarithmic.")); + TQVButtonGroup *scaletype = new TQVButtonGroup(i18n("Scale Types"), gb2); + lin = new TQRadioButton( i18n("Linear scale"), scaletype); + TQWhatsThis::add(lin, i18n("This sets the Y-axis to be linear. This is default.")); + log = new TQRadioButton( i18n("Logarithmic scale"), scaletype); + TQWhatsThis::add(log, i18n("This sets the Y-axis to be logarithmic.")); grid2->addWidget(scaletype, 1, 0); // Decimal precision - QVButtonGroup *precision = new QVButtonGroup(i18n("Precision for Numerical Left Axis"), gb2); + TQVButtonGroup *precision = new TQVButtonGroup(i18n("Precision for Numerical Left Axis"), gb2); grid2->addWidget(precision, 2, 0); - QRadioButton * automatic_precision = new QRadioButton( i18n("Automatic precision"), precision); - QWhatsThis::add(automatic_precision, i18n("This sets the precision as automatic which means that KChart decides what precision to apply.")); + TQRadioButton * automatic_precision = new TQRadioButton( i18n("Automatic precision"), precision); + TQWhatsThis::add(automatic_precision, i18n("This sets the precision as automatic which means that KChart decides what precision to apply.")); automatic_precision->setChecked(true); - max = new QRadioButton( i18n("Decimal precision:"), precision); - QWhatsThis::add(max, i18n("This sets the Y-axis precision. For example, if you choose a precision of 2, the value 5 will be displayed as 5.00 alongside the Y-axis.")); - connect(automatic_precision, SIGNAL(toggled(bool)), this, - SLOT(automatic_precision_toggled(bool)) ); - maximum_length = new QSpinBox(0, 15, 1, precision ); - QWhatsThis::add(maximum_length, i18n("Set the precision you want to display for the Y-axis, if you choose Decimal precision. The range is 0 to 15; 2 being the default.")); + max = new TQRadioButton( i18n("Decimal precision:"), precision); + TQWhatsThis::add(max, i18n("This sets the Y-axis precision. For example, if you choose a precision of 2, the value 5 will be displayed as 5.00 alongside the Y-axis.")); + connect(automatic_precision, TQT_SIGNAL(toggled(bool)), this, + TQT_SLOT(automatic_precision_toggled(bool)) ); + maximum_length = new TQSpinBox(0, 15, 1, precision ); + TQWhatsThis::add(maximum_length, i18n("Set the precision you want to display for the Y-axis, if you choose Decimal precision. The range is 0 to 15; 2 being the default.")); maximum_length->setValue(2); #if 0 - tmpLabel = new QLabel( i18n( "Y-label format:" ), gb2 ); + tmpLabel = new TQLabel( i18n( "Y-label format:" ), gb2 ); grid2->addWidget(tmpLabel,0,1); - ylabel_fmt= new QLineEdit( gb2 ); + ylabel_fmt= new TQLineEdit( gb2 ); ylabel_fmt->setMaximumWidth(130); grid2->addWidget(ylabel_fmt,1,1); ylabel_fmt->setEnabled(false); - tmpLabel = new QLabel( i18n( "Y-title 2:" ), gb2 ); + tmpLabel = new TQLabel( i18n( "Y-title 2:" ), gb2 ); grid2->addWidget(tmpLabel,2,1); - ytitle2= new QLineEdit( gb2 ); + ytitle2= new TQLineEdit( gb2 ); ytitle2->setMaximumWidth(130); grid2->addWidget(ytitle2,3,1); - tmpLabel = new QLabel( i18n( "Y-label format 2:" ), gb2 ); + tmpLabel = new TQLabel( i18n( "Y-label format 2:" ), gb2 ); grid2->addWidget(tmpLabel,4,1); - ylabel2_fmt= new QLineEdit( gb2 ); + ylabel2_fmt= new TQLineEdit( gb2 ); ylabel2_fmt->setMaximumWidth(130); grid2->addWidget(ylabel2_fmt,5,1); #endif - layout->addWidget(gb1,0,0); - layout->addWidget(gb2,0,1); + tqlayout->addWidget(gb1,0,0); + tqlayout->addWidget(gb2,0,1); #if 0 grid1->activate(); grid2->activate(); #endif - /*connect( grid, SIGNAL( toggled( bool ) ), - this, SLOT( changeState( bool ) ) );*/ - /*connect( xaxis, SIGNAL( toggled( bool ) ), - this, SLOT( changeXaxisState( bool ) ) );*/ + /*connect( grid, TQT_SIGNAL( toggled( bool ) ), + this, TQT_SLOT( changeState( bool ) ) );*/ + /*connect( xaxis, TQT_SIGNAL( toggled( bool ) ), + this, TQT_SLOT( changeXaxisState( bool ) ) );*/ } |