diff options
Diffstat (limited to 'kchart/kchartWizardLabelsLegendPage.cc')
-rw-r--r-- | kchart/kchartWizardLabelsLegendPage.cc | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/kchart/kchartWizardLabelsLegendPage.cc b/kchart/kchartWizardLabelsLegendPage.cc index 0684ad2f..8bab93f4 100644 --- a/kchart/kchartWizardLabelsLegendPage.cc +++ b/kchart/kchartWizardLabelsLegendPage.cc @@ -2,23 +2,23 @@ #include "kchart_view.h" #include "kchart_part.h" -#include <qbuttongroup.h> -#include <qlineedit.h> -#include <qradiobutton.h> -#include <qlabel.h> +#include <tqbuttongroup.h> +#include <tqlineedit.h> +#include <tqradiobutton.h> +#include <tqlabel.h> #include <klocale.h> #include <kfontdialog.h> -#include <qlayout.h> -#include <qpushbutton.h> -#include <qcolor.h> +#include <tqlayout.h> +#include <tqpushbutton.h> +#include <tqcolor.h> #include "kchart_params.h" namespace KChart { -KChartWizardLabelsLegendPage::KChartWizardLabelsLegendPage( QWidget* parent, KChartPart* chart ) : - QWidget( parent ), +KChartWizardLabelsLegendPage::KChartWizardLabelsLegendPage( TQWidget* tqparent, KChartPart* chart ) : + TQWidget( tqparent ), _chart( chart ) { #if 0 @@ -34,46 +34,46 @@ KChartWizardLabelsLegendPage::KChartWizardLabelsLegendPage( QWidget* parent, KCh xlabel=bottomparams.axisLabelsFont(); ylabel=leftparams.axisLabelsFont(); - QGridLayout *grid1 = new QGridLayout(this,2,2,KDialog::marginHint(), KDialog::spacingHint()); + TQGridLayout *grid1 = new TQGridLayout(this,2,2,KDialog::marginHint(), KDialog::spacingHint()); - QGroupBox* tmpQGroupBox; - tmpQGroupBox = new QGroupBox( this, "GroupBox_1" ); - tmpQGroupBox->setFrameStyle( 49 ); + TQGroupBox* tmpTQGroupBox; + tmpTQGroupBox = new TQGroupBox( this, "GroupBox_1" ); + tmpTQGroupBox->setFrameStyle( 49 ); - QGridLayout *grid2 = new QGridLayout(tmpQGroupBox,4,4,KDialog::marginHint(), KDialog::spacingHint()); + TQGridLayout *grid2 = new TQGridLayout(tmpTQGroupBox,4,4,KDialog::marginHint(), KDialog::spacingHint()); - QLabel* titleLA = new QLabel( i18n( "Title:" ),tmpQGroupBox ); + TQLabel* titleLA = new TQLabel( i18n( "Title:" ),tmpTQGroupBox ); grid2->addWidget(titleLA,0,0); - _titleED = new QLineEdit( tmpQGroupBox ); + _titleED = new TQLineEdit( tmpTQGroupBox ); grid2->addWidget(_titleED,0,1); _titleED->setText( _chart->params()->header1Text() ); - titlefont = new QPushButton( tmpQGroupBox ); + titlefont = new TQPushButton( tmpTQGroupBox ); grid2->addWidget(titlefont,0,2); titlefont->setText(i18n("Font...")); - titlecolor=new KColorButton(tmpQGroupBox); + titlecolor=new KColorButton(tmpTQGroupBox); grid2->addWidget(titlecolor,0,3); title_color=_chart->params()->headerFooterColor( KDChartParams::HdFtPosHeader ); titlecolor->setColor( title_color ); - QLabel* xlabelLA = new QLabel( i18n( "X-title:" ), tmpQGroupBox ); + TQLabel* xlabelLA = new TQLabel( i18n( "X-title:" ), tmpTQGroupBox ); //xlabelLA->setEnabled(false); //Not supported by kdChart yet grid2->addWidget(xlabelLA,1,0); - _xlabelED = new QLineEdit( tmpQGroupBox ); + _xlabelED = new TQLineEdit( tmpTQGroupBox ); //_xlabelED->setEnabled(false); //Not supported by kdChart yet _xlabelED->setText(_chart->params()->axisTitle( KDChartAxisParams::AxisPosBottom)); grid2->addWidget(_xlabelED,1,1); - xtitlefont = new QPushButton( tmpQGroupBox ); + xtitlefont = new TQPushButton( tmpTQGroupBox ); xtitlefont->setText(i18n("Font...")); //xtitlefont->setEnabled(false); //Not supported by kdChart yet grid2->addWidget(xtitlefont,1,2); - xtitlecolor=new KColorButton(tmpQGroupBox); + xtitlecolor=new KColorButton(tmpTQGroupBox); // PENDING(kalle) Put back in // x_color=_chart->params()->XTitleColor; xtitlecolor->setColor( x_color ); @@ -81,22 +81,22 @@ KChartWizardLabelsLegendPage::KChartWizardLabelsLegendPage( QWidget* parent, KCh grid2->addWidget(xtitlecolor,1,3); - QLabel* ylabelLA = new QLabel( i18n( "Y-title:" ), tmpQGroupBox ); + TQLabel* ylabelLA = new TQLabel( i18n( "Y-title:" ), tmpTQGroupBox ); //ylabelLA->setEnabled(false); //Not supported by kdChart yet grid2->addWidget(ylabelLA,2,0); - _ylabelED = new QLineEdit( tmpQGroupBox ); + _ylabelED = new TQLineEdit( tmpTQGroupBox ); //_ylabelED->setEnabled(false); //Not supported by kdChart yet _ylabelED->setText(_chart->params()->axisTitle( KDChartAxisParams::AxisPosLeft)); grid2->addWidget(_ylabelED,2,1); - ytitlefont = new QPushButton( tmpQGroupBox); + ytitlefont = new TQPushButton( tmpTQGroupBox); ytitlefont->setText(i18n("Font...")); //ytitlefont->setEnabled(false); //Not supported by kdChart yet grid2->addWidget(ytitlefont,2,2); - ytitlecolor=new KColorButton(tmpQGroupBox); + ytitlecolor=new KColorButton(tmpTQGroupBox); //ytitlecolor->setEnabled(false); //Not supported by kdChart yet // PENDING(kalle) Put back in // y_color=_chart->params()->YTitleColor; @@ -105,22 +105,22 @@ KChartWizardLabelsLegendPage::KChartWizardLabelsLegendPage( QWidget* parent, KCh #if 0 //ytitle2 doesn't work - QLabel* ylabelLA2 = new QLabel( i18n( "Y-title 2:" ), tmpQGroupBox ); + TQLabel* ylabelLA2 = new TQLabel( i18n( "Y-title 2:" ), tmpTQGroupBox ); ylabelLA2->setEnabled(false); //Not supported by kdChart yet grid2->addWidget(ylabelLA2,3,0); - _ylabel2ED = new QLineEdit( tmpQGroupBox ); + _ylabel2ED = new TQLineEdit( tmpTQGroupBox ); _ylabel2ED->setEnabled(false); //Not supported by kdChart yet // PENDING(kalle) Put back in // _ylabel2ED->setText(_chart->params()->ytitle2); grid2->addWidget(_ylabel2ED,3,1); - ytitle2font = new QPushButton( tmpQGroupBox); + ytitle2font = new TQPushButton( tmpTQGroupBox); ytitle2font->setText(i18n("Font...")); ytitle2font->setEnabled(false); //Not supported by kdChart yet grid2->addWidget(ytitle2font,3,2); - ytitle2color=new KColorButton(tmpQGroupBox); + ytitle2color=new KColorButton(tmpTQGroupBox); ytitle2color->setEnabled(false); //Not supported by kdChart yet // PENDING(kalle) Put back in // y_color2=_chart->params()->YTitle2Color; @@ -133,66 +133,66 @@ KChartWizardLabelsLegendPage::KChartWizardLabelsLegendPage( QWidget* parent, KCh // ylabel=_chart->params()->yTitleFont(); - QLabel* lab = new QLabel( i18n( "Legend title:" ), tmpQGroupBox ); + TQLabel* lab = new TQLabel( i18n( "Legend title:" ), tmpTQGroupBox ); grid2->addWidget(lab,3,0); - _legendTitleText = new QLineEdit( tmpQGroupBox ); + _legendTitleText = new TQLineEdit( tmpTQGroupBox ); grid2->addWidget(_legendTitleText,3,1); _legendTitleText->setText( _chart->params()->legendTitleText() ); - legendTitleFont = new QPushButton( tmpQGroupBox ); + legendTitleFont = new TQPushButton( tmpTQGroupBox ); legendTitleFont->setText(i18n("Font...")); _legendTitleFont=_chart->params()->legendTitleFont(); grid2->addWidget(legendTitleFont,3,2); - legendTitleColor=new KColorButton(tmpQGroupBox); + legendTitleColor=new KColorButton(tmpTQGroupBox); _legendTitleColor=_chart->params()->legendTitleTextColor(); legendTitleColor->setColor( _legendTitleColor ); grid2->addWidget(legendTitleColor,3,3); - lab = new QLabel( i18n( "Legend text:" ), tmpQGroupBox ); + lab = new TQLabel( i18n( "Legend text:" ), tmpTQGroupBox ); grid2->addWidget(lab,4,0); - legendTextFont = new QPushButton( tmpQGroupBox ); + legendTextFont = new TQPushButton( tmpTQGroupBox ); _legendTextFont=_chart->params()->legendFont(); legendTextFont->setText(i18n("Font...")); grid2->addWidget(legendTextFont,4,2); - legendTextColor=new KColorButton(tmpQGroupBox); + legendTextColor=new KColorButton(tmpTQGroupBox); _legendTextColor=_chart->params()->legendTextColor(); legendTextColor->setColor( _legendTextColor ); grid2->addWidget(legendTextColor,4,3); title=_chart->params()->header1Font(); - grid1->addWidget(tmpQGroupBox,0,0); + grid1->addWidget(tmpTQGroupBox,0,0); - connect(xtitlefont,SIGNAL(clicked()),this,SLOT(changeXLabelFont())); - connect(ytitlefont,SIGNAL(clicked()),this,SLOT(changeYLabelFont())); + connect(xtitlefont,TQT_SIGNAL(clicked()),this,TQT_SLOT(changeXLabelFont())); + connect(ytitlefont,TQT_SIGNAL(clicked()),this,TQT_SLOT(changeYLabelFont())); #if 0 - connect(ytitle2font,SIGNAL(clicked()),this,SLOT(changeY2LabelFont())); + connect(ytitle2font,TQT_SIGNAL(clicked()),this,TQT_SLOT(changeY2LabelFont())); #endif - connect(titlefont,SIGNAL(clicked()),this,SLOT(changeTitleFont())); - connect(legendTitleFont,SIGNAL(clicked()),this,SLOT(changeLegendTitleFont())); + connect(titlefont,TQT_SIGNAL(clicked()),this,TQT_SLOT(changeTitleFont())); + connect(legendTitleFont,TQT_SIGNAL(clicked()),this,TQT_SLOT(changeLegendTitleFont())); - connect(legendTextFont,SIGNAL(clicked()),this,SLOT(changeLegendTextFont())); + connect(legendTextFont,TQT_SIGNAL(clicked()),this,TQT_SLOT(changeLegendTextFont())); - connect(xtitlecolor,SIGNAL(changed( const QColor & )), - this,SLOT(changeXLabelColor(const QColor &))); - connect(ytitlecolor,SIGNAL(changed( const QColor & )), - this,SLOT(changeYLabelColor(const QColor &))); - connect(titlecolor,SIGNAL(changed( const QColor & )), - this,SLOT(changeTitleColor(const QColor &))); + connect(xtitlecolor,TQT_SIGNAL(changed( const TQColor & )), + this,TQT_SLOT(changeXLabelColor(const TQColor &))); + connect(ytitlecolor,TQT_SIGNAL(changed( const TQColor & )), + this,TQT_SLOT(changeYLabelColor(const TQColor &))); + connect(titlecolor,TQT_SIGNAL(changed( const TQColor & )), + this,TQT_SLOT(changeTitleColor(const TQColor &))); #if 0 - connect(ytitle2color,SIGNAL(changed( const QColor & )), - this,SLOT(changeYTitle2Color(const QColor &))); + connect(ytitle2color,TQT_SIGNAL(changed( const TQColor & )), + this,TQT_SLOT(changeYTitle2Color(const TQColor &))); #endif - connect(legendTitleColor,SIGNAL(changed( const QColor & )), - this,SLOT(changeLegendTitleColor(const QColor &))); + connect(legendTitleColor,TQT_SIGNAL(changed( const TQColor & )), + this,TQT_SLOT(changeLegendTitleColor(const TQColor &))); - connect(legendTextColor,SIGNAL(changed( const QColor & )), - this,SLOT(changeLegendTextColor(const QColor &))); + connect(legendTextColor,TQT_SIGNAL(changed( const TQColor & )), + this,TQT_SLOT(changeLegendTextColor(const TQColor &))); } @@ -204,76 +204,76 @@ KChartWizardLabelsLegendPage::~KChartWizardLabelsLegendPage() void KChartWizardLabelsLegendPage::changeLegendTextFont() { - if (KFontDialog::getFont( _legendTextFont,false,this ) == QDialog::Rejected ) + if (KFontDialog::getFont( _legendTextFont,false,this ) == TQDialog::Rejected ) return; } void KChartWizardLabelsLegendPage::changeLegendTitleFont() { - if (KFontDialog::getFont( _legendTitleFont,false,this ) == QDialog::Rejected ) + if (KFontDialog::getFont( _legendTitleFont,false,this ) == TQDialog::Rejected ) return; } void KChartWizardLabelsLegendPage::changeXLabelFont() { - if (KFontDialog::getFont( xlabel,false,this ) == QDialog::Rejected ) + if (KFontDialog::getFont( xlabel,false,this ) == TQDialog::Rejected ) return; } void KChartWizardLabelsLegendPage::changeYLabelFont() { - if (KFontDialog::getFont( ylabel ,false,this ) == QDialog::Rejected ) + if (KFontDialog::getFont( ylabel ,false,this ) == TQDialog::Rejected ) return; } #if 0 void KChartWizardLabelsLegendPage::changeY2LabelFont() { - if (KFontDialog::getFont( ylabel2, false, this ) == QDialog::Rejected ) + if (KFontDialog::getFont( ylabel2, false, this ) == TQDialog::Rejected ) return; } #endif void KChartWizardLabelsLegendPage::changeTitleFont() { - if (KFontDialog::getFont( title ,false,this ) == QDialog::Rejected ) + if (KFontDialog::getFont( title ,false,this ) == TQDialog::Rejected ) return; } -void KChartWizardLabelsLegendPage::changeLegendTextColor(const QColor &_color) +void KChartWizardLabelsLegendPage::changeLegendTextColor(const TQColor &_color) { _legendTextColor=_color; } -void KChartWizardLabelsLegendPage::changeXLabelColor(const QColor &_color) +void KChartWizardLabelsLegendPage::changeXLabelColor(const TQColor &_color) { x_color=_color; } -void KChartWizardLabelsLegendPage::changeYLabelColor(const QColor &_color) +void KChartWizardLabelsLegendPage::changeYLabelColor(const TQColor &_color) { y_color=_color; } -void KChartWizardLabelsLegendPage::changeTitleColor(const QColor &_color) +void KChartWizardLabelsLegendPage::changeTitleColor(const TQColor &_color) { title_color=_color; } #if 0 -void KChartWizardLabelsLegendPage::changeYTitle2Color(const QColor &_color) +void KChartWizardLabelsLegendPage::changeYTitle2Color(const TQColor &_color) { y_color2=_color; } #endif -void KChartWizardLabelsLegendPage::changeLegendTitleColor(const QColor &_color) +void KChartWizardLabelsLegendPage::changeLegendTitleColor(const TQColor &_color) { _legendTitleColor=_color; } -void KChartWizardLabelsLegendPage::paintEvent( QPaintEvent * ) +void KChartWizardLabelsLegendPage::paintEvent( TQPaintEvent * ) { #if 0 if( ytitle2 ) { |