summaryrefslogtreecommitdiffstats
path: root/kspread/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/plugins')
-rw-r--r--kspread/plugins/calculator/configdlg.cpp14
-rw-r--r--kspread/plugins/calculator/kcalc.cpp124
-rw-r--r--kspread/plugins/calculator/main.cpp2
-rw-r--r--kspread/plugins/insertcalendar/kspread_insertcalendardialog.cpp18
-rw-r--r--kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cpp6
-rw-r--r--kspread/plugins/scripting/scripting.cpp6
-rwxr-xr-xkspread/plugins/scripting/scripts/exporthtml/ExportHtml.py6
-rwxr-xr-xkspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py40
8 files changed, 108 insertions, 108 deletions
diff --git a/kspread/plugins/calculator/configdlg.cpp b/kspread/plugins/calculator/configdlg.cpp
index 202da13e..d7f4432f 100644
--- a/kspread/plugins/calculator/configdlg.cpp
+++ b/kspread/plugins/calculator/configdlg.cpp
@@ -60,8 +60,8 @@ ConfigDlg::ConfigDlg(TQWidget *parent, const char *name, DefStruct *defstruct)
grid1->addWidget(button1,0,1);
button1->setColor( defst->forecolor );
- connect(button1 , TQT_SIGNAL( changed( const TQColor & ) ),
- this, TQT_SLOT( set_fore_color( const TQColor & ) ) );
+ connect(button1 , TQ_SIGNAL( changed( const TQColor & ) ),
+ this, TQ_SLOT( set_fore_color( const TQColor & ) ) );
label2 = new TQLabel(box);
grid1->addWidget(label2,1,0);
@@ -71,11 +71,11 @@ ConfigDlg::ConfigDlg(TQWidget *parent, const char *name, DefStruct *defstruct)
grid1->addWidget(button2,1,1);
button2->setColor( defst->backcolor );
- connect(button2 , TQT_SIGNAL( changed( const TQColor & ) ),
- this, TQT_SLOT( set_background_color( const TQColor & ) ) );
+ connect(button2 , TQ_SIGNAL( changed( const TQColor & ) ),
+ this, TQ_SLOT( set_background_color( const TQColor & ) ) );
- // connect(button2,TQT_SIGNAL(clicked()),this,TQT_SLOT(set_background_color()));
+ // connect(button2,TQ_SIGNAL(clicked()),this,TQ_SLOT(set_background_color()));
label5 = new TQLabel(box);
@@ -155,10 +155,10 @@ ConfigDlg::ConfigDlg(TQWidget *parent, const char *name, DefStruct *defstruct)
grid2->addWidget(button3,0,1);
button3->setText(i18n("Help"));
- connect(button3,TQT_SIGNAL(clicked()),this,TQT_SLOT(help()));
+ connect(button3,TQ_SIGNAL(clicked()),this,TQ_SLOT(help()));
lay1->addWidget(box);
- connect(parent,TQT_SIGNAL(applyButtonPressed()),TQT_SLOT(okButton()));
+ connect(parent,TQ_SIGNAL(applyButtonPressed()),TQ_SLOT(okButton()));
}
void ConfigDlg::help()
diff --git a/kspread/plugins/calculator/kcalc.cpp b/kspread/plugins/calculator/kcalc.cpp
index 55c16bf6..92f665e7 100644
--- a/kspread/plugins/calculator/kcalc.cpp
+++ b/kspread/plugins/calculator/kcalc.cpp
@@ -53,8 +53,8 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
selection_timer = new TQTimer;
status_timer = new TQTimer;
- connect(status_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(clear_status_label()));
- connect(selection_timer,TQT_SIGNAL(timeout()),this,TQT_SLOT(selection_timed_out()));
+ connect(status_timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(clear_status_label()));
+ connect(selection_timer,TQ_SIGNAL(timeout()),this,TQ_SLOT(selection_timed_out()));
readSettings();
@@ -63,7 +63,7 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
// Set the window caption/title
- // connect(kapp,TQT_SIGNAL(tdedisplayPaletteChanged()),this,TQT_SLOT(set_colors()));
+ // connect(kapp,TQ_SIGNAL(tdedisplayPaletteChanged()),this,TQ_SLOT(set_colors()));
// setCaption( kapp->caption() );
// create help button
@@ -75,7 +75,7 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
pb->setFont( TQFont("times",12,TQFont::Bold,FALSE) );
TQToolTip::add( pb, i18n("KCalc Setup/Help") );
- connect( pb, TQT_SIGNAL(clicked()), TQT_SLOT(configclicked()) );
+ connect( pb, TQ_SIGNAL(clicked()), TQ_SLOT(configclicked()) );
// Create the display
calc_display = new DLabel( this, "display" );
@@ -84,7 +84,7 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
calc_display->setFocus();
calc_display->setFocusPolicy( TQWidget::StrongFocus );
- connect(calc_display,TQT_SIGNAL(clicked()),this,TQT_SLOT(display_selected()));
+ connect(calc_display,TQ_SIGNAL(clicked()),this,TQ_SLOT(display_selected()));
statusINVLabel = new TQLabel( this, "INV" );
TQ_CHECK_PTR( statusINVLabel );
@@ -113,19 +113,19 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
anglebutton[0]->setText( "&Deg" ) ;
anglebutton[0]->setChecked( TRUE);
accel->connectItem( accel->insertItem(Key_D + ALT), this ,
- TQT_SLOT(Deg_Selected()) );
+ TQ_SLOT(Deg_Selected()) );
anglebutton[1] = new TQRadioButton( angle_group );
anglebutton[1]->setText( "&Rad" );
accel->connectItem( accel->insertItem(Key_R + ALT), this ,
- TQT_SLOT(Rad_Selected()) );
+ TQ_SLOT(Rad_Selected()) );
anglebutton[2] = new TQRadioButton( angle_group );
anglebutton[2]->setText( "&Gra" );
accel->connectItem( accel->insertItem(Key_G + ALT), this ,
- TQT_SLOT(Gra_Selected()) );
+ TQ_SLOT(Gra_Selected()) );
- connect( angle_group, TQT_SIGNAL(clicked(int)), TQT_SLOT(angle_selected(int)) );
+ connect( angle_group, TQ_SIGNAL(clicked(int)), TQ_SLOT(angle_selected(int)) );
//////////////////////////////////////////////////////////////////////
@@ -141,25 +141,25 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
basebutton[0] = new TQRadioButton( base_group );
basebutton[0]->setText( "&Hex" );
accel->connectItem( accel->insertItem(Key_H + ALT), this ,
- TQT_SLOT(Hex_Selected()) );
+ TQ_SLOT(Hex_Selected()) );
basebutton[1] = new TQRadioButton( base_group );
basebutton[1]->setText( "D&ec" );
basebutton[1]->setChecked(TRUE);
accel->connectItem( accel->insertItem(Key_E + ALT), this ,
- TQT_SLOT(Dec_Selected()) );
+ TQ_SLOT(Dec_Selected()) );
basebutton[2] = new TQRadioButton( base_group );
basebutton[2]->setText( "&Oct" );
accel->connectItem( accel->insertItem(Key_O + ALT), this ,
- TQT_SLOT(Oct_Selected()) );
+ TQ_SLOT(Oct_Selected()) );
basebutton[3] = new TQRadioButton( base_group);
basebutton[3]->setText( "&Bin" );
accel->connectItem( accel->insertItem(Key_B + ALT), this ,
- TQT_SLOT(Bin_Selected()) );
+ TQ_SLOT(Bin_Selected()) );
- connect( base_group, TQT_SIGNAL(clicked(int)), TQT_SLOT(base_selected(int)) );
+ connect( base_group, TQ_SIGNAL(clicked(int)), TQ_SLOT(base_selected(int)) );
////////////////////////////////////////////////////////////////////////
//
@@ -172,203 +172,203 @@ TQtCalculator :: TQtCalculator( Calculator *_corba, TQWidget *parent, const char
mLargePage = new TQWidget(this);
pbhyp = new TQPushButton("Hyp", mSmallPage, "hypbutton" );
- connect( pbhyp, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbhyptoggled(bool)));
+ connect( pbhyp, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbhyptoggled(bool)));
pbhyp->setToggleButton(TRUE);
pbinv = new TQPushButton( "Inv", mSmallPage, "InverseButton" );
- connect( pbinv, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbinvtoggled(bool)));
+ connect( pbinv, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbinvtoggled(bool)));
pbinv->setToggleButton(TRUE);
pbA = new TQPushButton("A",mSmallPage, "Abutton" );
- connect( pbA, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbAtoggled(bool)));
+ connect( pbA, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbAtoggled(bool)));
pbA->setToggleButton(TRUE);
pbSin = new TQPushButton("Sin",mSmallPage, "Sinbutton" );
- connect( pbSin, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbSintoggled(bool)));
+ connect( pbSin, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbSintoggled(bool)));
pbSin->setToggleButton(TRUE);
pbplusminus = new TQPushButton( "+/-", mSmallPage, "plusminusbutton" );
- connect( pbplusminus, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbplusminustoggled(bool)));
+ connect( pbplusminus, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbplusminustoggled(bool)));
pbplusminus->setToggleButton(TRUE);
pbplusminus->setFont(buttonfont);
pbB = new TQPushButton("B", mSmallPage, "Bbutton" );
- connect( pbB, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbBtoggled(bool)));
+ connect( pbB, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbBtoggled(bool)));
pbB->setToggleButton(TRUE);
pbCos = new TQPushButton("Cos",mSmallPage, "Cosbutton" );
pbCos->setText( "Cos" );
- connect( pbCos, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbCostoggled(bool)));
+ connect( pbCos, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbCostoggled(bool)));
pbCos->setToggleButton(TRUE);
pbreci = new TQPushButton("1/x",mSmallPage, "recibutton" );
- connect( pbreci, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbrecitoggled(bool)));
+ connect( pbreci, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbrecitoggled(bool)));
pbreci->setToggleButton(TRUE);
pbC = new TQPushButton( "C", mSmallPage, "Cbutton" );
- connect( pbC, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbCtoggled(bool)));
+ connect( pbC, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbCtoggled(bool)));
pbC->setToggleButton(TRUE);
pbTan = new TQPushButton("Tan" ,mSmallPage, "Tanbutton" );
- connect( pbTan, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbTantoggled(bool)));
+ connect( pbTan, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbTantoggled(bool)));
pbTan->setToggleButton(TRUE);
pbfactorial = new TQPushButton("x!",mSmallPage, "factorialbutton" );
- connect( pbfactorial, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbfactorialtoggled(bool)));
+ connect( pbfactorial, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbfactorialtoggled(bool)));
pbfactorial->setToggleButton(TRUE);
pbD = new TQPushButton("D",mSmallPage, "Dbutton" );
- connect( pbD, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbDtoggled(bool)));
+ connect( pbD, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbDtoggled(bool)));
pbD->setToggleButton(TRUE);
pblog = new TQPushButton("Log",mSmallPage, "logbutton" );
- connect( pblog, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pblogtoggled(bool)));
+ connect( pblog, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pblogtoggled(bool)));
pblog->setToggleButton(TRUE);
pbsquare = new TQPushButton( "x^2", mSmallPage, "squarebutton" );
- connect( pbsquare, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbsquaretoggled(bool)));
+ connect( pbsquare, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbsquaretoggled(bool)));
pbsquare->setToggleButton(TRUE);
pbE = new TQPushButton("E",mSmallPage, "Ebutton" );
- connect( pbE, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbEtoggled(bool)));
+ connect( pbE, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbEtoggled(bool)));
pbE->setToggleButton(TRUE);
pbln = new TQPushButton( "Ln", mSmallPage, "lnbutton" );
- connect( pbln, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pblntoggled(bool)));
+ connect( pbln, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pblntoggled(bool)));
pbln->setToggleButton(TRUE);
pbpower = new TQPushButton("x^y",mSmallPage, "powerbutton" );
- connect( pbpower, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbpowertoggled(bool)));
+ connect( pbpower, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbpowertoggled(bool)));
pbpower->setToggleButton(TRUE);
pbF = new TQPushButton("F",mSmallPage, "Fbutton" );
- connect( pbF, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbFtoggled(bool)));
+ connect( pbF, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbFtoggled(bool)));
pbF->setToggleButton(TRUE);
pbEE = new TQPushButton("EE",mLargePage, "EEbutton" );
pbEE->setToggleButton(TRUE);
- connect( pbEE, TQT_SIGNAL(toggled(bool)), TQT_SLOT(EEtoggled(bool)));
+ connect( pbEE, TQ_SIGNAL(toggled(bool)), TQ_SLOT(EEtoggled(bool)));
pbMR = new TQPushButton("MR",mLargePage, "MRbutton" );
- connect( pbMR, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbMRtoggled(bool)));
+ connect( pbMR, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbMRtoggled(bool)));
pbMR->setToggleButton(TRUE);
pbMR->setFont(buttonfont);
pbMplusminus = new TQPushButton("M+-",mLargePage, "Mplusminusbutton" );
- connect( pbMplusminus, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbMplusminustoggled(bool)));
+ connect( pbMplusminus, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbMplusminustoggled(bool)));
pbMplusminus->setToggleButton(TRUE);
pbMC = new TQPushButton("MC",mLargePage, "MCbutton" );
- connect( pbMC, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbMCtoggled(bool)));
+ connect( pbMC, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbMCtoggled(bool)));
pbMC->setToggleButton(TRUE);
pbClear = new TQPushButton("C",mLargePage, "Clearbutton" );
- connect( pbClear, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbCleartoggled(bool)));
+ connect( pbClear, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbCleartoggled(bool)));
pbClear->setToggleButton(TRUE);
pbAC = new TQPushButton("AC", mLargePage, "ACbutton" );
- connect( pbAC, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbACtoggled(bool)));
+ connect( pbAC, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbACtoggled(bool)));
pbAC->setToggleButton(TRUE);
pb7 = new TQPushButton("7",mLargePage, "7button" );
- connect( pb7, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb7toggled(bool)));
+ connect( pb7, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb7toggled(bool)));
pb7->setToggleButton(TRUE);
pb8 = new TQPushButton("8",mLargePage, "8button" );
- connect( pb8, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb8toggled(bool)));
+ connect( pb8, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb8toggled(bool)));
pb8->setToggleButton(TRUE);
pb9 = new TQPushButton("9",mLargePage,"9button" );
- connect( pb9, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb9toggled(bool)));
+ connect( pb9, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb9toggled(bool)));
pb9->setToggleButton(TRUE);
pbparenopen = new TQPushButton("(",mLargePage, "parenopenbutton" );
- connect( pbparenopen, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbparenopentoggled(bool)));
+ connect( pbparenopen, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbparenopentoggled(bool)));
pbparenopen->setToggleButton(TRUE);
pbparenclose = new TQPushButton(")",mLargePage, "parenclosebutton" );
- connect( pbparenclose, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbparenclosetoggled(bool)));
+ connect( pbparenclose, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbparenclosetoggled(bool)));
pbparenclose->setToggleButton(TRUE);
pband = new TQPushButton("And",mLargePage, "andbutton" );
- connect( pband, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbandtoggled(bool)));
+ connect( pband, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbandtoggled(bool)));
pband->setToggleButton(TRUE);
pband->setFont(buttonfont);
pb4 = new TQPushButton("4",mLargePage, "4button" );
- connect( pb4, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb4toggled(bool)));
+ connect( pb4, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb4toggled(bool)));
pb4->setToggleButton(TRUE);
pb5 = new TQPushButton("5",mLargePage, "5button" );
- connect( pb5, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb5toggled(bool)));
+ connect( pb5, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb5toggled(bool)));
pb5->setToggleButton(TRUE);
pb6 = new TQPushButton("6",mLargePage, "6button" );
- connect( pb6, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb6toggled(bool)));
+ connect( pb6, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb6toggled(bool)));
pb6->setToggleButton(TRUE);
pbX = new TQPushButton("X",mLargePage, "Multiplybutton" );
- connect( pbX, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbXtoggled(bool)));
+ connect( pbX, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbXtoggled(bool)));
pbX->setToggleButton(TRUE);
pbdivision = new TQPushButton("/",mLargePage, "divisionbutton" );
- connect( pbdivision, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbdivisiontoggled(bool)));
+ connect( pbdivision, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbdivisiontoggled(bool)));
pbdivision->setToggleButton(TRUE);
pbor = new TQPushButton("Or",mLargePage, "orbutton" );
- connect( pbor, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbortoggled(bool)));
+ connect( pbor, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbortoggled(bool)));
pbor->setToggleButton(TRUE);
pb1 = new TQPushButton("1",mLargePage, "1button" );
- connect( pb1, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb1toggled(bool)));
+ connect( pb1, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb1toggled(bool)));
pb1->setToggleButton(TRUE);
pb2 = new TQPushButton("2",mLargePage, "2button" );
- connect( pb2, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb2toggled(bool)));
+ connect( pb2, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb2toggled(bool)));
pb2->setToggleButton(TRUE);
pb3 = new TQPushButton("3",mLargePage, "3button" );
- connect( pb3, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb3toggled(bool)));
+ connect( pb3, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb3toggled(bool)));
pb3->setToggleButton(TRUE);
pbplus = new TQPushButton("+",mLargePage, "plusbutton" );
- connect( pbplus, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbplustoggled(bool)));
+ connect( pbplus, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbplustoggled(bool)));
pbplus->setToggleButton(TRUE);
pbminus = new TQPushButton("-",mLargePage, "minusbutton" );
- connect( pbminus, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbminustoggled(bool)));
+ connect( pbminus, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbminustoggled(bool)));
pbminus->setToggleButton(TRUE);
pbshift = new TQPushButton("Lsh",mLargePage, "shiftbutton" );
- connect( pbshift, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbshifttoggled(bool)));
+ connect( pbshift, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbshifttoggled(bool)));
pbshift->setToggleButton(TRUE);
pbperiod = new TQPushButton(".",mLargePage, "periodbutton" );
- connect( pbperiod, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbperiodtoggled(bool)));
+ connect( pbperiod, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbperiodtoggled(bool)));
pbperiod->setToggleButton(TRUE);
pb0 = new TQPushButton("0",mLargePage, "0button" );
- connect( pb0, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pb0toggled(bool)));
+ connect( pb0, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pb0toggled(bool)));
pb0->setToggleButton(TRUE);
pbequal = new TQPushButton("=",mLargePage, "equalbutton" );
- connect( pbequal, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbequaltoggled(bool)));
+ connect( pbequal, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbequaltoggled(bool)));
pbequal->setToggleButton(TRUE);
pbpercent = new TQPushButton("%",mLargePage, "percentbutton" );
- connect( pbpercent, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbpercenttoggled(bool)));
+ connect( pbpercent, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbpercenttoggled(bool)));
pbpercent->setToggleButton(TRUE);
pbnegate = new TQPushButton("Cmp",mLargePage, "OneComplementbutton" );
- connect( pbnegate, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbnegatetoggled(bool)));
+ connect( pbnegate, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbnegatetoggled(bool)));
pbnegate->setToggleButton(TRUE);
pbmod = new TQPushButton("Mod",mLargePage, "modbutton" );
- connect( pbmod, TQT_SIGNAL(toggled(bool)), TQT_SLOT(pbmodtoggled(bool)));
+ connect( pbmod, TQ_SIGNAL(toggled(bool)), TQ_SLOT(pbmodtoggled(bool)));
pbmod->setToggleButton(TRUE);
TQGridLayout *smallBtnLayout = new TQGridLayout(mSmallPage, 6, 3, 0,
diff --git a/kspread/plugins/calculator/main.cpp b/kspread/plugins/calculator/main.cpp
index 31e8ea78..b791f36a 100644
--- a/kspread/plugins/calculator/main.cpp
+++ b/kspread/plugins/calculator/main.cpp
@@ -87,7 +87,7 @@ Calculator::Calculator( View* parent, const char* name )
parent->installEventFilter( this );
(void)new TDEAction( i18n("Calculator"), SmallIcon("kcalc", CalcFactory::global()),
- 0, this, TQT_SLOT( showCalculator() ), actionCollection(), "kspreadcalc");
+ 0, this, TQ_SLOT( showCalculator() ), actionCollection(), "kspreadcalc");
}
void Calculator::showCalculator()
diff --git a/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cpp b/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cpp
index 0311c913..5b8607d9 100644
--- a/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cpp
+++ b/kspread/plugins/insertcalendar/kspread_insertcalendardialog.cpp
@@ -48,11 +48,11 @@ InsertCalendarDialog::InsertCalendarDialog(TQWidget* parent, const char* name)
this->m_startDateWidget->setDate(first_day_in_month);
this->m_endDateWidget->setDate(last_day_in_month);
- connect(this->m_selectStartDateButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(showStartDatePicker()));
- connect(this->m_selectEndDateButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(showEndDatePicker()));
+ connect(this->m_selectStartDateButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(showStartDatePicker()));
+ connect(this->m_selectEndDateButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(showEndDatePicker()));
- connect(this->m_insertButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(accept()));
- connect(this->m_cancelButton,TQT_SIGNAL(clicked()),this,TQT_SLOT(reject()));
+ connect(this->m_insertButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(accept()));
+ connect(this->m_cancelButton,TQ_SIGNAL(clicked()),this,TQ_SLOT(reject()));
}
InsertCalendarDialog::~InsertCalendarDialog()
@@ -73,7 +73,7 @@ bool InsertCalendarDialog::buildDatePickerFrame()
if (!m_datePicker)
return false;
- connect(m_datePicker,TQT_SIGNAL(destroyed()),this,TQT_SLOT(datePickerDeleted()));
+ connect(m_datePicker,TQ_SIGNAL(destroyed()),this,TQ_SLOT(datePickerDeleted()));
m_datePicker->setCloseButton(true);
m_datePicker->move(this->x()+this->width(),this->y());
@@ -109,8 +109,8 @@ void InsertCalendarDialog::showStartDatePicker()
{
if (buildDatePickerFrame())
{
- connect(m_datePicker,TQT_SIGNAL(dateSelected(TQDate)),this,TQT_SLOT(setStartDate(TQDate)));
- connect(m_datePicker,TQT_SIGNAL(dateEntered(TQDate)),this,TQT_SLOT(setStartDate(TQDate)));
+ connect(m_datePicker,TQ_SIGNAL(dateSelected(TQDate)),this,TQ_SLOT(setStartDate(TQDate)));
+ connect(m_datePicker,TQ_SIGNAL(dateEntered(TQDate)),this,TQ_SLOT(setStartDate(TQDate)));
m_datePicker->setDate(startDate());
}
}
@@ -119,8 +119,8 @@ void InsertCalendarDialog::showEndDatePicker()
{
if (buildDatePickerFrame())
{
- connect(m_datePicker,TQT_SIGNAL(dateSelected(TQDate)),this,TQT_SLOT(setEndDate(TQDate)));
- connect(m_datePicker,TQT_SIGNAL(dateEntered(TQDate)),this,TQT_SLOT(setEndDate(TQDate)));
+ connect(m_datePicker,TQ_SIGNAL(dateSelected(TQDate)),this,TQ_SLOT(setEndDate(TQDate)));
+ connect(m_datePicker,TQ_SIGNAL(dateEntered(TQDate)),this,TQ_SLOT(setEndDate(TQDate)));
m_datePicker->setDate(endDate());
}
}
diff --git a/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cpp b/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cpp
index e2f9d954..a38bd135 100644
--- a/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cpp
+++ b/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cpp
@@ -74,7 +74,7 @@ PluginInsertCalendar::PluginInsertCalendar( TQObject *parent, const char *name,
this->m_dialog = NULL;
(void)new TDEAction( i18n("Insert Calendar..."), TDEShortcut::null(),
- this, TQT_SLOT( slotShowDialog() ), actionCollection(), "kspreadinsertcalendar");
+ this, TQ_SLOT( slotShowDialog() ), actionCollection(), "kspreadinsertcalendar");
}
PluginInsertCalendar::~PluginInsertCalendar()
@@ -106,8 +106,8 @@ void PluginInsertCalendar::slotShowDialog()
Q_ASSERT(m_dialog);
- connect(m_dialog,TQT_SIGNAL(insertCalendar(const TQDate&, const TQDate&)),
- this,TQT_SLOT(slotInsertCalendar(const TQDate&, const TQDate&)));
+ connect(m_dialog,TQ_SIGNAL(insertCalendar(const TQDate&, const TQDate&)),
+ this,TQ_SLOT(slotInsertCalendar(const TQDate&, const TQDate&)));
}
//@todo if anyone knows a better way to get a background window to foreground, please change this...
diff --git a/kspread/plugins/scripting/scripting.cpp b/kspread/plugins/scripting/scripting.cpp
index 4bc3f1a6..2286ebdf 100644
--- a/kspread/plugins/scripting/scripting.cpp
+++ b/kspread/plugins/scripting/scripting.cpp
@@ -58,13 +58,13 @@ Scripting::Scripting(TQObject *parent, const char *name, const TQStringList &)
setXMLFile(locate("data","kspread/kpartplugins/scripting.rc"), true);
- new TDEAction(i18n("Execute Script File..."), 0, 0, m_scriptguiclient, TQT_SLOT(executeScriptFile()), actionCollection(), "executescriptfile");
- new TDEAction(i18n("Script Manager..."), 0, 0, m_scriptguiclient, TQT_SLOT(showScriptManager()), actionCollection(), "configurescripts");
+ new TDEAction(i18n("Execute Script File..."), 0, 0, m_scriptguiclient, TQ_SLOT(executeScriptFile()), actionCollection(), "executescriptfile");
+ new TDEAction(i18n("Script Manager..."), 0, 0, m_scriptguiclient, TQ_SLOT(showScriptManager()), actionCollection(), "configurescripts");
TDEAction* scriptmenuaction = m_scriptguiclient->action("installedscripts");
actionCollection()->insert(scriptmenuaction);
- connect(m_scriptguiclient, TQT_SIGNAL(executionFinished( const Kross::Api::ScriptAction* )), this, TQT_SLOT(executionFinished(const Kross::Api::ScriptAction*)));
+ connect(m_scriptguiclient, TQ_SIGNAL(executionFinished( const Kross::Api::ScriptAction* )), this, TQ_SLOT(executionFinished(const Kross::Api::ScriptAction*)));
Kross::Api::Manager::scriptManager()->addTQObject(m_view->doc(), "KSpreadDocument");
Kross::Api::Manager::scriptManager()->addTQObject(m_view, "KSpreadView");
diff --git a/kspread/plugins/scripting/scripts/exporthtml/ExportHtml.py b/kspread/plugins/scripting/scripts/exporthtml/ExportHtml.py
index a72c5f6c..70f0918f 100755
--- a/kspread/plugins/scripting/scripts/exporthtml/ExportHtml.py
+++ b/kspread/plugins/scripting/scripts/exporthtml/ExportHtml.py
@@ -81,7 +81,7 @@ class Dialog(tqt.TQDialog):
filelabel = tqt.TQLabel("File:",filebox)
self.fileedit = tqt.TQLineEdit(self.getDefaultFile(),filebox)
btn = tqt.TQPushButton("...",filebox)
- tqt.TQObject.connect(btn, tqt.SIGNAL("clicked()"),self.browseClicked)
+ tqt.TQObject.connect(btn, tqt.TQ_SIGNAL("clicked()"),self.browseClicked)
filelabel.setBuddy(self.fileedit)
filebox.setStretchFactor(self.fileedit,1)
@@ -90,10 +90,10 @@ class Dialog(tqt.TQDialog):
okbtn = tqt.TQPushButton(btnbox)
okbtn.setText("Export")
okbtn.setDefault(True)
- tqt.TQObject.connect(okbtn,tqt.SIGNAL("clicked()"),self.startExport)
+ tqt.TQObject.connect(okbtn,tqt.TQ_SIGNAL("clicked()"),self.startExport)
cancelbtn = tqt.TQPushButton(btnbox)
cancelbtn.setText("Cancel")
- tqt.TQObject.connect(cancelbtn,tqt.SIGNAL("clicked()"),self.close)
+ tqt.TQObject.connect(cancelbtn,tqt.TQ_SIGNAL("clicked()"),self.close)
box.setMinimumWidth(480)
diff --git a/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py b/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
index 22959809..795c35ea 100755
--- a/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
+++ b/kspread/plugins/scripting/scripts/scripteditor/ScriptEditor.py
@@ -63,7 +63,7 @@ class FileWidget(Widget):
self.edit = tqt.TQLineEdit(self)
self.setStretchFactor(self.edit,1)
btn = tqt.TQPushButton("...",self)
- tqt.TQObject.connect(btn, tqt.SIGNAL("clicked()"), self.btnClicked)
+ tqt.TQObject.connect(btn, tqt.TQ_SIGNAL("clicked()"), self.btnClicked)
def btnClicked(self):
from TQt import tqt
text = str( self.edit.text() )
@@ -607,7 +607,7 @@ class Samples:
' tqt.TQDialog.__init__(self, parent, "MyDialog", 1, tqt.TQt.WDestructiveClose)',
' self.setCaption("My Dialog")',
' btn = tqt.TQPushButton("Click me",self)',
- ' tqt.TQObject.connect(btn, tqt.SIGNAL("clicked()"), self.buttonClicked)',
+ ' tqt.TQObject.connect(btn, tqt.TQ_SIGNAL("clicked()"), self.buttonClicked)',
' def buttonClicked(self):',
' from TQt import tqt',
' tqt.TQMessageBox.information(self, "The Caption", "This is the message string.")',
@@ -800,10 +800,10 @@ class SampleDialog(tqt.TQDialog):
btnbox.setSpacing(6)
okbtn = tqt.TQPushButton(btnbox)
okbtn.setText("Ok")
- tqt.TQObject.connect(okbtn, tqt.SIGNAL("clicked()"), self.okClicked)
+ tqt.TQObject.connect(okbtn, tqt.TQ_SIGNAL("clicked()"), self.okClicked)
cancelbtn = tqt.TQPushButton(btnbox)
cancelbtn.setText("Cancel")
- tqt.TQObject.connect(cancelbtn, tqt.SIGNAL("clicked()"), self.close)
+ tqt.TQObject.connect(cancelbtn, tqt.TQ_SIGNAL("clicked()"), self.close)
self.setCaption(self.samplechild.name)
box.setMinimumSize(tqt.TQSize(500,340))
@@ -851,7 +851,7 @@ class MainDialog(tqt.TQDialog):
self.scripttext = tqt.TQMultiLineEdit(splitter)
self.scripttext.setWordWrap( tqt.TQTextEdit.NoWrap )
self.scripttext.setTextFormat( tqt.TQt.PlainText )
- tqt.TQObject.connect(self.scripttext, tqt.SIGNAL("cursorPositionChanged(int,int)"),self.cursorPositionChanged)
+ tqt.TQObject.connect(self.scripttext, tqt.TQ_SIGNAL("cursorPositionChanged(int,int)"),self.cursorPositionChanged)
self.console = tqt.TQTextBrowser(splitter)
splitter.setResizeMode(self.console, tqt.TQSplitter.KeepSize)
@@ -869,71 +869,71 @@ class MainDialog(tqt.TQDialog):
menu.insertItem("&File", filemenu)
newaction = tqt.TQAction("New", tqt.TQKeySequence("CTRL+N"), self)
- tqt.TQObject.connect(newaction, tqt.SIGNAL("activated()"), self.newFile)
+ tqt.TQObject.connect(newaction, tqt.TQ_SIGNAL("activated()"), self.newFile)
newaction.addTo(filemenu)
openaction = tqt.TQAction("Open...", tqt.TQKeySequence("CTRL+O"), self)
- tqt.TQObject.connect(openaction, tqt.SIGNAL("activated()"), self.openFileAs)
+ tqt.TQObject.connect(openaction, tqt.TQ_SIGNAL("activated()"), self.openFileAs)
openaction.addTo(filemenu)
saveaction = tqt.TQAction("Save", tqt.TQKeySequence("CTRL+S"), self)
- tqt.TQObject.connect(saveaction, tqt.SIGNAL("activated()"), self.saveFile)
+ tqt.TQObject.connect(saveaction, tqt.TQ_SIGNAL("activated()"), self.saveFile)
saveaction.addTo(filemenu)
saveasaction = tqt.TQAction("Save as...", tqt.TQKeySequence("CTRL+A"), self)
- tqt.TQObject.connect(saveasaction, tqt.SIGNAL("activated()"), self.saveFileAs)
+ tqt.TQObject.connect(saveasaction, tqt.TQ_SIGNAL("activated()"), self.saveFileAs)
saveasaction.addTo(filemenu)
filemenu.insertSeparator()
quitaction = tqt.TQAction("Quit", tqt.TQKeySequence("CTRL+Q"), self)
- tqt.TQObject.connect(quitaction, tqt.SIGNAL("activated()"), self.close)
+ tqt.TQObject.connect(quitaction, tqt.TQ_SIGNAL("activated()"), self.close)
quitaction.addTo(filemenu)
editmenu = tqt.TQPopupMenu(menu)
menu.insertItem("&Edit", editmenu)
undoaction = tqt.TQAction("Undo", tqt.TQKeySequence("CTRL+Z"), self)
- tqt.TQObject.connect(undoaction, tqt.SIGNAL("activated()"), self.scripttext.undo)
+ tqt.TQObject.connect(undoaction, tqt.TQ_SIGNAL("activated()"), self.scripttext.undo)
undoaction.addTo(editmenu)
redoaction = tqt.TQAction("Redo", tqt.TQKeySequence("CTRL+Shift+Z"), self)
- tqt.TQObject.connect(redoaction, tqt.SIGNAL("activated()"), self.scripttext.redo)
+ tqt.TQObject.connect(redoaction, tqt.TQ_SIGNAL("activated()"), self.scripttext.redo)
redoaction.addTo(editmenu)
editmenu.insertSeparator()
cutaction = tqt.TQAction("Cut", tqt.TQKeySequence("CTRL+X"), self)
- tqt.TQObject.connect(cutaction, tqt.SIGNAL("activated()"), self.scripttext.cut)
+ tqt.TQObject.connect(cutaction, tqt.TQ_SIGNAL("activated()"), self.scripttext.cut)
cutaction.addTo(editmenu)
copyaction = tqt.TQAction("Copy", tqt.TQKeySequence("CTRL+C"), self)
- tqt.TQObject.connect(copyaction, tqt.SIGNAL("activated()"), self.scripttext.copy)
+ tqt.TQObject.connect(copyaction, tqt.TQ_SIGNAL("activated()"), self.scripttext.copy)
copyaction.addTo(editmenu)
pasteaction = tqt.TQAction("Paste", tqt.TQKeySequence("CTRL+V"), self)
- tqt.TQObject.connect(pasteaction, tqt.SIGNAL("activated()"), self.scripttext.paste)
+ tqt.TQObject.connect(pasteaction, tqt.TQ_SIGNAL("activated()"), self.scripttext.paste)
pasteaction.addTo(editmenu)
clearaction = tqt.TQAction("Clear", tqt.TQKeySequence("CTRL+Shift+X"), self)
- tqt.TQObject.connect(clearaction, tqt.SIGNAL("activated()"), self.scripttext.clear)
+ tqt.TQObject.connect(clearaction, tqt.TQ_SIGNAL("activated()"), self.scripttext.clear)
clearaction.addTo(editmenu)
editmenu.insertSeparator()
selallaction = tqt.TQAction("Select All", 0, self)
- tqt.TQObject.connect(selallaction, tqt.SIGNAL("activated()"), self.scripttext.selectAll)
+ tqt.TQObject.connect(selallaction, tqt.TQ_SIGNAL("activated()"), self.scripttext.selectAll)
selallaction.addTo(editmenu)
scriptmenu = tqt.TQPopupMenu(menu)
menu.insertItem("&Script", scriptmenu)
compileaction = tqt.TQAction("Compile", tqt.TQKeySequence("F9"), self)
- tqt.TQObject.connect(compileaction, tqt.SIGNAL("activated()"), self.compileScript)
+ tqt.TQObject.connect(compileaction, tqt.TQ_SIGNAL("activated()"), self.compileScript)
compileaction.addTo(scriptmenu)
executeaction = tqt.TQAction("Execute", tqt.TQKeySequence("F10"), self)
- tqt.TQObject.connect(executeaction, tqt.SIGNAL("activated()"), self.executeScript)
+ tqt.TQObject.connect(executeaction, tqt.TQ_SIGNAL("activated()"), self.executeScript)
executeaction.addTo(scriptmenu)
self.samplemenu = tqt.TQPopupMenu(menu)
@@ -944,7 +944,7 @@ class MainDialog(tqt.TQDialog):
if samplename.startswith("_"): continue
itemid += 1
menu = tqt.TQPopupMenu(self.samplemenu)
- tqt.TQObject.connect(menu, tqt.SIGNAL("activated(int)"), self.sampleActivated)
+ tqt.TQObject.connect(menu, tqt.TQ_SIGNAL("activated(int)"), self.sampleActivated)
self.samplemenu.insertItem(samplename, menu, -1, self.samplemenu.count() - 1)
attr = getattr(Samples,samplename)
for a in dir(attr):