summaryrefslogtreecommitdiffstats
path: root/kspread/dialogs/kspread_dlg_series.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/dialogs/kspread_dlg_series.cc')
-rw-r--r--kspread/dialogs/kspread_dlg_series.cc70
1 files changed, 35 insertions, 35 deletions
diff --git a/kspread/dialogs/kspread_dlg_series.cc b/kspread/dialogs/kspread_dlg_series.cc
index 666beee6..725859d3 100644
--- a/kspread/dialogs/kspread_dlg_series.cc
+++ b/kspread/dialogs/kspread_dlg_series.cc
@@ -30,70 +30,70 @@
#include "kspread_sheet.h"
#include "kspread_view.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-#include <qbuttongroup.h>
-#include <qgroupbox.h>
+#include <tqbuttongroup.h>
+#include <tqgroupbox.h>
#include <kmessagebox.h>
#include <knumvalidator.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qlineedit.h>
-#include <qwhatsthis.h>
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqlineedit.h>
+#include <tqwhatsthis.h>
#include <knuminput.h>
using namespace KSpread;
-SeriesDlg::SeriesDlg( View* parent, const char* name,const QPoint &_marker)
- : KDialogBase( parent, name,TRUE,i18n("Series"),Ok|Cancel )
+SeriesDlg::SeriesDlg( View* tqparent, const char* name,const TQPoint &_marker)
+ : KDialogBase( tqparent, name,TRUE,i18n("Series"),Ok|Cancel )
{
- m_pView = parent;
+ m_pView = tqparent;
marker=_marker;
- QWidget *page = new QWidget( this );
+ TQWidget *page = new TQWidget( this );
setMainWidget(page);
- QBoxLayout *grid1 = new QHBoxLayout(page);
+ TQBoxLayout *grid1 = new TQHBoxLayout(page);
grid1->setSpacing( spacingHint() );
- QButtonGroup* gb1 = new QButtonGroup( 2, Qt::Vertical,
+ TQButtonGroup* gb1 = new TQButtonGroup( 2, Qt::Vertical,
i18n("Insert Values"), page );
- column = new QRadioButton( i18n("Vertical"), gb1 );
- QWhatsThis::add(column, i18n("Insert the series vertically, one below the other") );
- row = new QRadioButton( i18n("Horizontal"), gb1 );
- QWhatsThis::add(row, i18n("Insert the series horizontally, from left to right") );
+ column = new TQRadioButton( i18n("Vertical"), gb1 );
+ TQWhatsThis::add(column, i18n("Insert the series vertically, one below the other") );
+ row = new TQRadioButton( i18n("Horizontal"), gb1 );
+ TQWhatsThis::add(row, i18n("Insert the series horizontally, from left to right") );
column->setChecked(true);
- QButtonGroup* gb2 = new QButtonGroup( 2, Qt::Vertical,
+ TQButtonGroup* gb2 = new TQButtonGroup( 2, Qt::Vertical,
i18n("Type"), page );
- linear = new QRadioButton( i18n("Linear (2,4,6,...)"), gb2 );
- QWhatsThis::add(linear, i18n("Generate a series from 'start' to 'end' and for each step add "
+ linear = new TQRadioButton( i18n("Linear (2,4,6,...)"), gb2 );
+ TQWhatsThis::add(linear, i18n("Generate a series from 'start' to 'end' and for each step add "
"the value provided in step. This creates a series where each value "
"is 'step' larger than the value before it.") );
- geometric = new QRadioButton( i18n("Geometric (2,4,8,...)"), gb2 );
- QWhatsThis::add(geometric, i18n("Generate a series from 'start' to 'end' and for each step multiply "
+ geometric = new TQRadioButton( i18n("Geometric (2,4,8,...)"), gb2 );
+ TQWhatsThis::add(geometric, i18n("Generate a series from 'start' to 'end' and for each step multiply "
"the value with the value provided in step. Using a step of 5 produces a list like: "
"5, 25, 125, 625 since 5 multiplied by 5 (step) equals 25, and that multiplied by 5 equals 125, "
"which multiplied by the same step-value of 5 equals 625.") );
linear->setChecked(true);
- QGroupBox* gb = new QGroupBox( 1, Qt::Vertical, i18n("Parameters"), page );
- QWidget *params = new QWidget( gb );
- QGridLayout *params_layout = new QGridLayout( params, 3, 2 );
+ TQGroupBox* gb = new TQGroupBox( 1, Qt::Vertical, i18n("Parameters"), page );
+ TQWidget *params = new TQWidget( gb );
+ TQGridLayout *params_layout = new TQGridLayout( params, 3, 2 );
params_layout->setSpacing( spacingHint() );
params_layout->setAutoAdd( true );
- new QLabel( i18n( "Start value:" ), params );
+ new TQLabel( i18n( "Start value:" ), params );
start=new KDoubleNumInput(-999999.999, 999999.99, 0.0, 1.0, 3, params);
- new QLabel( i18n( "Stop value:" ), params );
+ new TQLabel( i18n( "Stop value:" ), params );
end=new KDoubleNumInput(-999999.999, 999999.99, 0.0, 1.0, 3, params);
- new QLabel( i18n( "Step value:" ), params );
+ new TQLabel( i18n( "Step value:" ), params );
step=new KDoubleNumInput(-999999.999, 999999.99, 0.0, 1.0, 3, params);
grid1->addWidget(gb);
@@ -103,16 +103,16 @@ SeriesDlg::SeriesDlg( View* parent, const char* name,const QPoint &_marker)
start->setFocus();
- connect( this, SIGNAL( okClicked() ), this, SLOT( slotOk() ) );
+ connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( slotOk() ) );
}
void SeriesDlg::slotOk()
{
- Series mode=Column; //same as Vertical
- Series type=Linear; // same as Horizontal
- QString tmp;
+ Series mode=Column; //same asQt::Vertical
+ Series type=Linear; // same asQt::Horizontal
+ TQString tmp;
double dstep, dend, dstart;
Sheet * m_pSheet;
m_pSheet = m_pView->activeSheet();
@@ -193,8 +193,8 @@ void SeriesDlg::slotOk()
}
}
- // double val_end = QMAX(dend, dstart);
- // double val_start = QMIN(dend, dstart);
+ // double val_end = TQMAX(dend, dstart);
+ // double val_start = TQMIN(dend, dstart);
m_pView->doc()->emitBeginOperation( false );
m_pSheet->setSeries( marker, dstart, dend, dstep, mode, type );