summaryrefslogtreecommitdiffstats
path: root/kspread/dialogs/kspread_dlg_preference.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/dialogs/kspread_dlg_preference.cc')
-rw-r--r--kspread/dialogs/kspread_dlg_preference.cc316
1 files changed, 158 insertions, 158 deletions
diff --git a/kspread/dialogs/kspread_dlg_preference.cc b/kspread/dialogs/kspread_dlg_preference.cc
index b6d0c216..2b13cbdf 100644
--- a/kspread/dialogs/kspread_dlg_preference.cc
+++ b/kspread/dialogs/kspread_dlg_preference.cc
@@ -25,12 +25,12 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qvbox.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qvgroupbox.h>
-#include <qwhatsthis.h>
+#include <tqvbox.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqvgroupbox.h>
+#include <tqwhatsthis.h>
#include <kconfig.h>
#include <kstatusbar.h>
@@ -55,39 +55,39 @@
using namespace KSpread;
-PreferenceDialog::PreferenceDialog( View* parent, const char* /*name*/)
+PreferenceDialog::PreferenceDialog( View* tqparent, const char* /*name*/)
: KDialogBase(KDialogBase::IconList,i18n("Configure KSpread") ,
KDialogBase::Ok | KDialogBase::Cancel| KDialogBase::Default,
KDialogBase::Ok)
{
- m_pView=parent;
+ m_pView=tqparent;
- connect(this, SIGNAL(okClicked()),this,SLOT(slotApply()));
+ connect(this, TQT_SIGNAL(okClicked()),this,TQT_SLOT(slotApply()));
- QVBox *page2=addVBoxPage(i18n("Locale Settings"), QString::null,BarIcon("gohome",KIcon::SizeMedium));
- _localePage=new parameterLocale(parent,page2 );
+ TQVBox *page2=addVBoxPage(i18n("Locale Settings"), TQString(),BarIcon("gohome",KIcon::SizeMedium));
+ _localePage=new parameterLocale(tqparent,page2 );
- QVBox *page3=addVBoxPage(i18n("Interface"), QString::null,BarIcon("signature", KIcon::SizeMedium) );
- _configure = new configure(parent,page3 );
+ TQVBox *page3=addVBoxPage(i18n("Interface"), TQString(),BarIcon("signature", KIcon::SizeMedium) );
+ _configure = new configure(tqparent,page3 );
- QVBox * page4=addVBoxPage(i18n("Misc"), QString::null,BarIcon("misc",KIcon::SizeMedium) );
- _miscParameter = new miscParameters(parent,page4 );
+ TQVBox * page4=addVBoxPage(i18n("Misc"), TQString(),BarIcon("misc",KIcon::SizeMedium) );
+ _miscParameter = new miscParameters(tqparent,page4 );
- QVBox *page5=addVBoxPage(i18n("Color"), QString::null,BarIcon("colorize",KIcon::SizeMedium) );
- _colorParameter=new colorParameters(parent,page5 );
+ TQVBox *page5=addVBoxPage(i18n("Color"), TQString(),BarIcon("colorize",KIcon::SizeMedium) );
+ _colorParameter=new colorParameters(tqparent,page5 );
- QVBox *page6=addVBoxPage(i18n("Page Layout"), QString::null,BarIcon("edit",KIcon::SizeMedium) );
- _layoutPage=new configureLayoutPage(parent,page6 );
+ TQVBox *page6=addVBoxPage(i18n("Page Layout"), TQString(),BarIcon("edit",KIcon::SizeMedium) );
+ _layoutPage=new configureLayoutPage(tqparent,page6 );
- QVBox *page7 = addVBoxPage( i18n("Spelling"), i18n("Spell Checker Behavior"),
+ TQVBox *page7 = addVBoxPage( i18n("Spelling"), i18n("Spell Checker Behavior"),
BarIcon("spellcheck", KIcon::SizeMedium) );
- _spellPage=new configureSpellPage(parent,page7);
+ _spellPage=new configureSpellPage(tqparent,page7);
if (KoSpeaker::isKttsdInstalled()) {
- QVBox *page8 = addVBoxPage( i18n("Abbreviation for Text-to-Speech", "TTS"),
+ TQVBox *page8 = addVBoxPage( i18n("Abbreviation for Text-to-Speech", "TTS"),
i18n("Text-to-Speech Settings"), BarIcon("access", KIcon::SizeMedium) );
- _ttsPage=new configureTTSPage(parent, page8);
+ _ttsPage=new configureTTSPage(tqparent, page8);
} else _ttsPage = 0;
}
@@ -150,26 +150,26 @@ void PreferenceDialog::slotDefault()
}
-parameterLocale::parameterLocale( View* _view, QVBox *box , char *name )
- :QObject ( box->parent(),name)
+parameterLocale::parameterLocale( View* _view, TQVBox *box , char *name )
+ :TQObject ( box->tqparent(),name)
{
m_pView = _view;
m_bUpdateLocale=false;
- QGroupBox* tmpQGroupBox = new QVGroupBox( i18n("Settings"), box, "GroupBox" );
+ TQGroupBox* tmpTQGroupBox = new TQVGroupBox( i18n("Settings"), box, "GroupBox" );
KLocale* locale=_view->doc()->locale();
- m_language=new QLabel( tmpQGroupBox,"label");
- m_number=new QLabel( tmpQGroupBox,"label6");
- m_date=new QLabel( tmpQGroupBox,"label1");
- m_shortDate=new QLabel( tmpQGroupBox,"label5");
- m_time=new QLabel( tmpQGroupBox,"label2");
- m_money=new QLabel( tmpQGroupBox,"label3");
+ m_language=new TQLabel( tmpTQGroupBox,"label");
+ m_number=new TQLabel( tmpTQGroupBox,"label6");
+ m_date=new TQLabel( tmpTQGroupBox,"label1");
+ m_shortDate=new TQLabel( tmpTQGroupBox,"label5");
+ m_time=new TQLabel( tmpTQGroupBox,"label2");
+ m_money=new TQLabel( tmpTQGroupBox,"label3");
updateToMatchLocale(locale);
- m_updateButton=new QPushButton ( i18n("&Update Locale Settings"), tmpQGroupBox);
- connect(m_updateButton, SIGNAL(clicked()),this,SLOT(updateDefaultSystemConfig()));
+ m_updateButton=new TQPushButton ( i18n("&Update Locale Settings"), tmpTQGroupBox);
+ connect(m_updateButton, TQT_SIGNAL(clicked()),this,TQT_SLOT(updateDefaultSystemConfig()));
}
void parameterLocale::apply()
@@ -192,16 +192,16 @@ void parameterLocale::updateDefaultSystemConfig()
void parameterLocale::updateToMatchLocale(KLocale* locale)
{
- m_language->setText( i18n("Language: %1").arg( locale->language() ));
- m_number->setText( i18n("Default number format: %1").arg( locale->formatNumber(12.55) ));
- m_date->setText( i18n("Long date format: %1").arg( locale->formatDate( QDate::currentDate() )));
- m_shortDate->setText( i18n("Short date format: %1").arg( locale->formatDate( QDate::currentDate() ,true) ));
- m_time->setText( i18n("Time format: %1").arg( locale->formatTime( QTime::currentTime() ) ));
- m_money->setText( i18n("Currency format: %1").arg( locale->formatMoney(12.55) ));
+ m_language->setText( i18n("Language: %1").tqarg( locale->language() ));
+ m_number->setText( i18n("Default number format: %1").tqarg( locale->formatNumber(12.55) ));
+ m_date->setText( i18n("Long date format: %1").tqarg( locale->formatDate( TQDate::tqcurrentDate() )));
+ m_shortDate->setText( i18n("Short date format: %1").tqarg( locale->formatDate( TQDate::tqcurrentDate() ,true) ));
+ m_time->setText( i18n("Time format: %1").tqarg( locale->formatTime( TQTime::currentTime() ) ));
+ m_money->setText( i18n("Currency format: %1").tqarg( locale->formatMoney(12.55) ));
}
-configure::configure( View* _view, QVBox *box , char *name )
- :QObject ( box->parent(),name)
+configure::configure( View* _view, TQVBox *box , char *name )
+ :TQObject ( box->tqparent(),name)
{
m_pView = _view;
@@ -214,7 +214,7 @@ configure::configure( View* _view, QVBox *box , char *name )
bool statusBar=true;
m_oldBackupFile = true;
- QGroupBox* tmpQGroupBox = new QVGroupBox( i18n("Settings"), box, "GroupBox" );
+ TQGroupBox* tmpTQGroupBox = new TQVGroupBox( i18n("Settings"), box, "GroupBox" );
config = Factory::global()->config();
int _page=1;
@@ -232,58 +232,58 @@ configure::configure( View* _view, QVBox *box , char *name )
rowHeader=config->readBoolEntry("Row Header",true);
tabbar=config->readBoolEntry("Tabbar",true);
formulaBar=config->readBoolEntry("Formula bar",true);
- statusBar=config->readBoolEntry("Status bar",true);
+ statusBar=config->readBoolEntry("tqStatus bar",true);
oldRecent=config->readNumEntry( "NbRecentFile" ,10);
oldAutoSaveValue=config->readNumEntry("AutoSave",KoDocument::defaultAutoSave()/60);
m_oldBackupFile=config->readBoolEntry("BackupFile",m_oldBackupFile);
}
- nbPage=new KIntNumInput(_page, tmpQGroupBox , 10);
+ nbPage=new KIntNumInput(_page, tmpTQGroupBox , 10);
nbPage->setRange(1, 10, 1);
nbPage->setLabel(i18n("Number of sheets open at the &beginning:"));
- QWhatsThis::add(nbPage, i18n( "Controls how many worksheets will be created if the option Start with an empty document is chosen when KSpread is started." ) );
+ TQWhatsThis::add(nbPage, i18n( "Controls how many worksheets will be created if the option Start with an empty document is chosen when KSpread is started." ) );
- nbRecentFile=new KIntNumInput(oldRecent, tmpQGroupBox , 10);
+ nbRecentFile=new KIntNumInput(oldRecent, tmpTQGroupBox , 10);
nbRecentFile->setRange(1, 20, 1);
nbRecentFile->setLabel(i18n("&Number of files to show in Recent Files list:"));
- QWhatsThis::add(nbRecentFile, i18n( "Controls the maximum number of filenames that are shown when you select File-> Open Recent." ) );
+ TQWhatsThis::add(nbRecentFile, i18n( "Controls the maximum number of filenames that are shown when you select File-> Open Recent." ) );
- autoSaveDelay=new KIntNumInput(oldAutoSaveValue, tmpQGroupBox , 10);
+ autoSaveDelay=new KIntNumInput(oldAutoSaveValue, tmpTQGroupBox , 10);
autoSaveDelay->setRange(0, 60, 1);
autoSaveDelay->setLabel(i18n("Au&tosave delay (minutes):"));
autoSaveDelay->setSpecialValueText(i18n("Do not save automatically"));
autoSaveDelay->setSuffix(i18n("min"));
- QWhatsThis::add(autoSaveDelay, i18n( "Here you can select the time between autosaves, or disable this feature altogether by choosing Do not save automatically (drag the slider to the far left)." ) );
+ TQWhatsThis::add(autoSaveDelay, i18n( "Here you can select the time between autosaves, or disable this feature altogether by choosing Do not save automatically (drag the slider to the far left)." ) );
- m_createBackupFile = new QCheckBox( i18n("Create backup files"), tmpQGroupBox );
+ m_createBackupFile = new TQCheckBox( i18n("Create backup files"), tmpTQGroupBox );
m_createBackupFile->setChecked( m_oldBackupFile );
- QWhatsThis::add(m_createBackupFile, i18n( "Check this box if you want some backup files created. This is checked per default." ) );
+ TQWhatsThis::add(m_createBackupFile, i18n( "Check this box if you want some backup files created. This is checked per default." ) );
- showVScrollBar=new QCheckBox(i18n("Show &vertical scrollbar"),tmpQGroupBox);
+ showVScrollBar=new TQCheckBox(i18n("Show &vertical scrollbar"),tmpTQGroupBox);
showVScrollBar->setChecked(vertical);
- QWhatsThis::add(showVScrollBar, i18n( "Check or uncheck this box to show or hide the vertical scrollbar in all sheets." ) );
+ TQWhatsThis::add(showVScrollBar, i18n( "Check or uncheck this box to show or hide the vertical scrollbar in all sheets." ) );
- showHScrollBar=new QCheckBox(i18n("Show &horizontal scrollbar"),tmpQGroupBox);
+ showHScrollBar=new TQCheckBox(i18n("Show &horizontal scrollbar"),tmpTQGroupBox);
showHScrollBar->setChecked(horizontal);
- QWhatsThis::add(showHScrollBar, i18n( "Check or uncheck this box to show or hide the horizontal scrollbar in all sheets." ) );
+ TQWhatsThis::add(showHScrollBar, i18n( "Check or uncheck this box to show or hide the horizontal scrollbar in all sheets." ) );
- showColHeader=new QCheckBox(i18n("Show c&olumn header"),tmpQGroupBox);
+ showColHeader=new TQCheckBox(i18n("Show c&olumn header"),tmpTQGroupBox);
showColHeader->setChecked(colHeader);
- QWhatsThis::add(showColHeader, i18n( "Check this box to show the column letters across the top of each worksheet." ) );
- showRowHeader=new QCheckBox(i18n("Show &row header"),tmpQGroupBox);
+ TQWhatsThis::add(showColHeader, i18n( "Check this box to show the column letters across the top of each worksheet." ) );
+ showRowHeader=new TQCheckBox(i18n("Show &row header"),tmpTQGroupBox);
showRowHeader->setChecked(rowHeader);
- QWhatsThis::add(showRowHeader, i18n( "Check this box to show the row numbers down the left side." ) );
+ TQWhatsThis::add(showRowHeader, i18n( "Check this box to show the row numbers down the left side." ) );
- showTabBar =new QCheckBox(i18n("Show ta&bs"),tmpQGroupBox);
+ showTabBar =new TQCheckBox(i18n("Show ta&bs"),tmpTQGroupBox);
showTabBar->setChecked(tabbar);
- QWhatsThis::add(showTabBar, i18n( "This check box controls whether the sheet tabs are shown at the bottom of the worksheet." ) );
+ TQWhatsThis::add(showTabBar, i18n( "This check box controls whether the sheet tabs are shown at the bottom of the worksheet." ) );
- showFormulaBar =new QCheckBox(i18n("Sho&w formula toolbar"),tmpQGroupBox);
+ showFormulaBar =new TQCheckBox(i18n("Sho&w formula toolbar"),tmpTQGroupBox);
showFormulaBar->setChecked(formulaBar);
- QWhatsThis::add(showFormulaBar, i18n( "Here is where you can choose to show or hide the Formula bar." ) );
+ TQWhatsThis::add(showFormulaBar, i18n( "Here is where you can choose to show or hide the Formula bar." ) );
- showStatusBar =new QCheckBox(i18n("Show stat&us bar"),tmpQGroupBox);
+ showStatusBar =new TQCheckBox(i18n("Show stat&us bar"),tmpTQGroupBox);
showStatusBar->setChecked(statusBar);
- QWhatsThis::add(showStatusBar, i18n( "Uncheck this box if you want to hide the status bar." ) );
+ TQWhatsThis::add(showStatusBar, i18n( "Uncheck this box if you want to hide the status bar." ) );
}
@@ -377,7 +377,7 @@ void configure::apply()
}
active=showStatusBar->isChecked();
- config->writeEntry( "Status bar",active);
+ config->writeEntry( "tqStatus bar",active);
m_pView->showStatusBar( active );
int val=nbRecentFile->value();
@@ -405,13 +405,13 @@ void configure::apply()
}
-miscParameters::miscParameters( View* _view,QVBox *box, char *name )
- :QObject ( box->parent(),name)
+miscParameters::miscParameters( View* _view,TQVBox *box, char *name )
+ :TQObject ( box->tqparent(),name)
{
m_pView = _view;
- QGroupBox* tmpQGroupBox = new QVGroupBox( i18n("Misc"), box, "GroupBox" );
+ TQGroupBox* tmpTQGroupBox = new TQVGroupBox( i18n("Misc"), box, "GroupBox" );
config = Factory::global()->config();
indentUnit = _view->doc()->unit();
@@ -430,17 +430,17 @@ miscParameters::miscParameters( View* _view,QVBox *box, char *name )
m_oldNbRedo=config->readNumEntry("UndoRedo",m_oldNbRedo);
}
- m_undoRedoLimit=new KIntNumInput( m_oldNbRedo, tmpQGroupBox );
+ m_undoRedoLimit=new KIntNumInput( m_oldNbRedo, tmpTQGroupBox );
m_undoRedoLimit->setLabel(i18n("Undo/redo limit:"));
m_undoRedoLimit->setRange(10, 60, 1);
- QLabel *label=new QLabel(i18n("&Completion mode:"), tmpQGroupBox);
+ TQLabel *label=new TQLabel(i18n("&Completion mode:"), tmpTQGroupBox);
- typeCompletion=new QComboBox(tmpQGroupBox);
+ typeCompletion=new TQComboBox(tmpTQGroupBox);
label->setBuddy(typeCompletion);
- QWhatsThis::add(typeCompletion, i18n( "Lets you choose the (auto) text completion mode from a range of options in the drop down selection box." ) );
- QStringList listType;
+ TQWhatsThis::add(typeCompletion, i18n( "Lets you choose the (auto) text completion mode from a range of options in the drop down selection box." ) );
+ TQStringList listType;
listType+=i18n("None");
listType+=i18n("Manual");
listType+=i18n("Popup");
@@ -449,10 +449,10 @@ miscParameters::miscParameters( View* _view,QVBox *box, char *name )
typeCompletion->insertStringList(listType);
typeCompletion->setCurrentItem(0);
comboChanged=false;
- connect(typeCompletion,SIGNAL(activated( const QString & )),this,SLOT(slotTextComboChanged(const QString &)));
+ connect(typeCompletion,TQT_SIGNAL(activated( const TQString & )),this,TQT_SLOT(slotTextComboChanged(const TQString &)));
- label=new QLabel(i18n("&Pressing enter moves cell cursor:"), tmpQGroupBox);
- typeOfMove=new QComboBox( tmpQGroupBox);
+ label=new TQLabel(i18n("&Pressing enter moves cell cursor:"), tmpTQGroupBox);
+ typeOfMove=new TQComboBox( tmpTQGroupBox);
label->setBuddy(typeOfMove);
listType.clear();
listType+=i18n("Down");
@@ -462,13 +462,13 @@ miscParameters::miscParameters( View* _view,QVBox *box, char *name )
listType+=i18n("Down, First Column");
typeOfMove->insertStringList(listType);
typeOfMove->setCurrentItem(0);
- QWhatsThis::add(typeOfMove, i18n( "When you have selected a cell, pressing the Enter key will move the cell cursor one cell left, right, up or down, as determined by this setting." ) );
+ TQWhatsThis::add(typeOfMove, i18n( "When you have selected a cell, pressing the Enter key will move the cell cursor one cell left, right, up or down, as determined by this setting." ) );
- label=new QLabel(i18n("&Method of calc:"), tmpQGroupBox);
+ label=new TQLabel(i18n("&Method of calc:"), tmpTQGroupBox);
- typeCalc=new QComboBox( tmpQGroupBox);
+ typeCalc=new TQComboBox( tmpTQGroupBox);
label->setBuddy(typeCalc);
- QStringList listTypeCalc;
+ TQStringList listTypeCalc;
listTypeCalc+=i18n("Sum");
listTypeCalc+=i18n("Min");
listTypeCalc+=i18n("Max");
@@ -478,26 +478,26 @@ miscParameters::miscParameters( View* _view,QVBox *box, char *name )
listTypeCalc+=i18n("None");
typeCalc->insertStringList(listTypeCalc);
typeCalc->setCurrentItem(0);
- QWhatsThis::add(typeCalc, i18n( "This drop down selection box can be used to choose the calculation performed by the Statusbar Summary function." ) );
+ TQWhatsThis::add(typeCalc, i18n( "This drop down selection box can be used to choose the calculation performed by the Statusbar Summary function." ) );
-// valIndent = new KDoubleNumInput( _indent, tmpQGroupBox , 10.0 );
- valIndent = new KDoubleNumInput( tmpQGroupBox );
+// valIndent = new KDoubleNumInput( _indent, tmpTQGroupBox , 10.0 );
+ valIndent = new KDoubleNumInput( tmpTQGroupBox );
valIndent->setRange( KoUnit::toUserValue( 0.0, indentUnit ),
KoUnit::toUserValue( 400.0, indentUnit ),
KoUnit::toUserValue( 10.0, indentUnit) );
// valIndent->setRange( 0.0, 100.0, 10.0 );
valIndent->setValue ( KoUnit::toUserValue( _indent, indentUnit ) );
- QWhatsThis::add(valIndent, i18n( "Lets you define the amount of indenting used by the Increase Indent and Decrease Indent option in the Format menu." ) );
- valIndent->setLabel(i18n("&Indentation step (%1):").arg(KoUnit::unitName(indentUnit)));
+ TQWhatsThis::add(valIndent, i18n( "Lets you define the amount of indenting used by the Increase Indent and Decrease Indent option in the Format menu." ) );
+ valIndent->setLabel(i18n("&Indentation step (%1):").tqarg(KoUnit::unitName(indentUnit)));
- msgError= new QCheckBox(i18n("&Show error message for invalid formulae"),tmpQGroupBox);
+ msgError= new TQCheckBox(i18n("&Show error message for invalid formulae"),tmpTQGroupBox);
msgError->setChecked(m_bMsgError);
- QWhatsThis::add(msgError, i18n( "If this box is checked a message box will pop up when what you have entered into a cell cannot be understood by KSpread." ) );
+ TQWhatsThis::add(msgError, i18n( "If this box is checked a message box will pop up when what you have entered into a cell cannot be understood by KSpread." ) );
initComboBox();
}
-void miscParameters::slotTextComboChanged(const QString &)
+void miscParameters::slotTextComboChanged(const TQString &)
{
comboChanged=true;
}
@@ -534,19 +534,19 @@ switch(tmpCompletion )
}
switch( m_pView->doc()->getMoveToValue( ))
{
- case Bottom:
+ case KSpread::Bottom:
typeOfMove->setCurrentItem(0);
break;
- case Left:
+ case KSpread::Left:
typeOfMove->setCurrentItem(3);
break;
- case Top:
+ case KSpread::Top:
typeOfMove->setCurrentItem(1);
break;
- case Right:
+ case KSpread::Right:
typeOfMove->setCurrentItem(2);
break;
- case BottomFirst:
+ case KSpread::BottomFirst:
typeOfMove->setCurrentItem(4);
break;
default :
@@ -637,23 +637,23 @@ void miscParameters::apply()
config->writeEntry( "Completion Mode", (int)tmpCompletion);
}
- KSpread::MoveTo tmpMoveTo=Bottom;
+ KSpread::MoveTo tmpMoveTo=KSpread::Bottom;
switch(typeOfMove->currentItem())
{
case 0:
- tmpMoveTo=Bottom;
+ tmpMoveTo=KSpread::Bottom;
break;
case 1:
- tmpMoveTo=Top;
+ tmpMoveTo=KSpread::Top;
break;
case 2:
- tmpMoveTo=Right;
+ tmpMoveTo=KSpread::Right;
break;
case 3:
- tmpMoveTo=Left;
+ tmpMoveTo=KSpread::Left;
break;
case 4:
- tmpMoveTo=BottomFirst;
+ tmpMoveTo=KSpread::BottomFirst;
break;
}
if(tmpMoveTo!=m_pView->doc()->getMoveToValue())
@@ -716,13 +716,13 @@ void miscParameters::apply()
-colorParameters::colorParameters( View* _view,QVBox *box , char *name )
- :QObject ( box->parent(),name)
+colorParameters::colorParameters( View* _view,TQVBox *box , char *name )
+ :TQObject ( box->tqparent(),name)
{
m_pView = _view;
config = Factory::global()->config();
- QColor _gridColor(Qt::lightGray);
+ TQColor _gridColor(TQt::lightGray);
if ( config->hasGroup("KSpread Color" ) )
{
@@ -730,36 +730,36 @@ colorParameters::colorParameters( View* _view,QVBox *box , char *name )
_gridColor = config->readColorEntry("GridColor",&_gridColor);
}
- QGroupBox* tmpQGroupBox = new QVGroupBox( i18n("Color"), box, "GroupBox" );
+ TQGroupBox* tmpTQGroupBox = new TQVGroupBox( i18n("Color"), box, "GroupBox" );
- QLabel *label = new QLabel(i18n("&Grid color:"), tmpQGroupBox,"label20" );
+ TQLabel *label = new TQLabel(i18n("&Grid color:"), tmpTQGroupBox,"label20" );
gridColor = new KColorButton( _gridColor,
- Qt::lightGray,
- tmpQGroupBox );
- QWhatsThis::add(gridColor, i18n( "Click here to change the grid color ie the color of the borders of each cell." ) );
+ TQt::lightGray,
+ tmpTQGroupBox );
+ TQWhatsThis::add(gridColor, i18n( "Click here to change the grid color ie the color of the borders of each cell." ) );
label->setBuddy(gridColor);
- QColor _pbColor(Qt::red);
+ TQColor _pbColor(TQt::red);
if ( config->hasGroup("KSpread Color" ) )
{
config->setGroup( "KSpread Color" );
_pbColor = config->readColorEntry("PageBorderColor", &_pbColor);
}
- QLabel * label2 = new QLabel( i18n("&Page borders:"), tmpQGroupBox, "label21" );
+ TQLabel * label2 = new TQLabel( i18n("&Page borders:"), tmpTQGroupBox, "label21" );
pageBorderColor = new KColorButton( _pbColor,
- Qt::red,
- tmpQGroupBox );
- QWhatsThis::add(pageBorderColor, i18n( "When the View ->Show Page Borders menu item is checked, the page borders are displayed. Click here to choose another color for the borders than the default red." ) );
+ TQt::red,
+ tmpTQGroupBox );
+ TQWhatsThis::add(pageBorderColor, i18n( "When the View ->Show Page Borders menu item is checked, the page borders are displayed. Click here to choose another color for the borders than the default red." ) );
label2->setBuddy(pageBorderColor);
}
void colorParameters::apply()
{
- QColor _col = gridColor->color();
+ TQColor _col = gridColor->color();
if ( m_pView->doc()->gridColor() != _col )
{
m_pView->doc()->setGridColor( _col );
@@ -767,7 +767,7 @@ void colorParameters::apply()
config->writeEntry( "GridColor", _col );
}
- QColor _pbColor = pageBorderColor->color();
+ TQColor _pbColor = pageBorderColor->color();
if ( m_pView->doc()->pageBorderColor() != _pbColor )
{
m_pView->doc()->changePageBorderColor( _pbColor );
@@ -784,55 +784,55 @@ void colorParameters::slotDefault()
-configureLayoutPage::configureLayoutPage( View* _view,QVBox *box , char *name )
- :QObject ( box->parent(),name)
+configureLayoutPage::configureLayoutPage( View* _view,TQVBox *box , char *name )
+ :TQObject ( box->tqparent(),name)
{
m_pView = _view;
- QGroupBox* tmpQGroupBox = new QGroupBox( 0, Qt::Vertical, i18n("Default Parameters"), box, "GroupBox" );
- tmpQGroupBox->layout()->setSpacing(KDialog::spacingHint());
- tmpQGroupBox->layout()->setMargin(KDialog::marginHint());
+ TQGroupBox* tmpTQGroupBox = new TQGroupBox( 0, Qt::Vertical, i18n("Default Parameters"), box, "GroupBox" );
+ tmpTQGroupBox->tqlayout()->setSpacing(KDialog::spacingHint());
+ tmpTQGroupBox->tqlayout()->setMargin(KDialog::marginHint());
- QGridLayout *grid1 = new QGridLayout(tmpQGroupBox->layout(),8,1);
+ TQGridLayout *grid1 = new TQGridLayout(tmpTQGroupBox->tqlayout(),8,1);
grid1->addRowSpacing( 0, KDialog::marginHint() );
grid1->setRowStretch( 7, 10 );
config = Factory::global()->config();
- QLabel *label=new QLabel(i18n("Default page &size:"), tmpQGroupBox);
+ TQLabel *label=new TQLabel(i18n("Default page &size:"), tmpTQGroupBox);
grid1->addWidget(label,0,0);
- defaultSizePage=new QComboBox( tmpQGroupBox);
+ defaultSizePage=new TQComboBox( tmpTQGroupBox);
label->setBuddy(defaultSizePage);
defaultSizePage->insertStringList( KoPageFormat::allFormats() );
defaultSizePage->setCurrentItem(1);
- QWhatsThis::add(defaultSizePage, i18n( "Choose the default page size for your worksheet among all the most common page sizes.\nNote that you can overwrite the page size for the current sheet using the Format -> Page Layout... dialog." ) );
+ TQWhatsThis::add(defaultSizePage, i18n( "Choose the default page size for your worksheet among all the most common page sizes.\nNote that you can overwrite the page size for the current sheet using the Format -> Page Layout... dialog." ) );
grid1->addWidget(defaultSizePage,1,0);
- label=new QLabel(i18n("Default page &orientation:"), tmpQGroupBox);
+ label=new TQLabel(i18n("Default page &orientation:"), tmpTQGroupBox);
grid1->addWidget(label,2,0);
- defaultOrientationPage=new QComboBox( tmpQGroupBox);
+ defaultOrientationPage=new TQComboBox( tmpTQGroupBox);
label->setBuddy(defaultOrientationPage);
- QStringList listType;
+ TQStringList listType;
listType+=i18n( "Portrait" );
listType+=i18n( "Landscape" );
defaultOrientationPage->insertStringList(listType);
defaultOrientationPage->setCurrentItem(0);
- QWhatsThis::add(defaultOrientationPage, i18n( "Choose the sheet orientation: portrait or lanscape.\nNote that you can overwrite the orientation for the current sheet using the Format -> Page Layout... dialog." ) );
+ TQWhatsThis::add(defaultOrientationPage, i18n( "Choose the sheet orientation: portrait or lanscape.\nNote that you can overwrite the orientation for the current sheet using the Format -> Page Layout... dialog." ) );
grid1->addWidget(defaultOrientationPage,3,0);
- label=new QLabel(tmpQGroupBox);
+ label=new TQLabel(tmpTQGroupBox);
label->setText(i18n("Default page &unit:"));
grid1->addWidget(label,4,0);
- defaultUnit=new QComboBox( tmpQGroupBox);
+ defaultUnit=new TQComboBox( tmpTQGroupBox);
label->setBuddy(defaultUnit);
defaultUnit->insertStringList(KoUnit::listOfUnitName());
defaultUnit->setCurrentItem(0);
- QWhatsThis::add(defaultUnit, i18n( "Choose the default unit that will be used in your sheet.\nNote that you can overwrite the unit for the current sheet using the Format -> Page Layout... dialog." ) );
+ TQWhatsThis::add(defaultUnit, i18n( "Choose the default unit that will be used in your sheet.\nNote that you can overwrite the unit for the current sheet using the Format -> Page Layout... dialog." ) );
grid1->addWidget(defaultUnit,5,0);
initCombo();
@@ -890,8 +890,8 @@ void configureLayoutPage::apply()
m_pView->slotUpdateView( m_pView->activeSheet() );
}
-configureSpellPage::configureSpellPage( View* _view,QVBox *box , char *name )
- :QObject ( box->parent(),name)
+configureSpellPage::configureSpellPage( View* _view,TQVBox *box , char *name )
+ :TQObject ( box->tqparent(),name)
{
m_pView = _view;
@@ -899,13 +899,13 @@ configureSpellPage::configureSpellPage( View* _view,QVBox *box , char *name )
m_spellConfigWidget = new KSpellConfig( box, "spell_check",m_pView->doc()->getKSpellConfig()/*, false*/);
- dontCheckUpperWord = new QCheckBox( i18n("Skip all uppercase words"),box);
- QWhatsThis::add(dontCheckUpperWord, i18n( "If checked, the words written in uppercase letters are not spell checked. This might be useful if you have a lot of acronyms such as KDE for example." ) );
- dontCheckTitleCase = new QCheckBox( i18n("Do not check title case"),box);
- QWhatsThis::add(dontCheckTitleCase, i18n( "Check this box if you want the spellchecker to ignore the title case, for example My Own Spreadsheet or My own spreadsheet. If this is unchecked, the spell checker will ask for a uppercase letter in the title nouns." ) );
+ dontCheckUpperWord = new TQCheckBox( i18n("Skip all uppercase words"),box);
+ TQWhatsThis::add(dontCheckUpperWord, i18n( "If checked, the words written in uppercase letters are not spell checked. This might be useful if you have a lot of acronyms such as KDE for example." ) );
+ dontCheckTitleCase = new TQCheckBox( i18n("Do not check title case"),box);
+ TQWhatsThis::add(dontCheckTitleCase, i18n( "Check this box if you want the spellchecker to ignore the title case, for example My Own Spreadsheet or My own spreadsheet. If this is unchecked, the spell checker will ask for a uppercase letter in the title nouns." ) );
- QWidget* spacer = new QWidget( box );
- spacer->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Expanding ) );
+ TQWidget* spacer = new TQWidget( box );
+ spacer->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding ) );
if( config->hasGroup("KSpell kspread") )
{
@@ -955,33 +955,33 @@ void configureSpellPage::slotDefault()
////
-configureTTSPage::configureTTSPage( View *_view, QVBox *box, char *name )
- : QObject( box->parent(), name )
+configureTTSPage::configureTTSPage( View *_view, TQVBox *box, char *name )
+ : TQObject( box->tqparent(), name )
{
Q_UNUSED(_view);
- m_cbSpeakPointerWidget = new QCheckBox(i18n("Speak widget under &mouse pointer"), box);
- m_cbSpeakFocusWidget = new QCheckBox(i18n("Speak widget with &focus"), box);
- m_gbScreenReaderOptions = new QVGroupBox("", box);
+ m_cbSpeakPointerWidget = new TQCheckBox(i18n("Speak widget under &mouse pointer"), box);
+ m_cbSpeakFocusWidget = new TQCheckBox(i18n("Speak widget with &focus"), box);
+ m_gbScreenReaderOptions = new TQVGroupBox("", box);
m_gbScreenReaderOptions->setMargin( KDialog::marginHint() );
m_gbScreenReaderOptions->setInsideSpacing( KDialog::spacingHint() );
- m_cbSpeakTooltips = new QCheckBox(i18n("Speak &tool tips"), m_gbScreenReaderOptions);
- m_cbSpeakWhatsThis = new QCheckBox(i18n("Speak &What's This"), m_gbScreenReaderOptions);
- m_cbSpeakDisabled = new QCheckBox(i18n("Verbal indication if widget is disabled (grayed)",
+ m_cbSpeakTooltips = new TQCheckBox(i18n("Speak &tool tips"), m_gbScreenReaderOptions);
+ m_cbSpeakWhatsThis = new TQCheckBox(i18n("Speak &What's This"), m_gbScreenReaderOptions);
+ m_cbSpeakDisabled = new TQCheckBox(i18n("Verbal indication if widget is disabled (grayed)",
"&Say whether disabled"), m_gbScreenReaderOptions);
- m_cbSpeakAccelerators = new QCheckBox(i18n("Spea&k accelerators"), m_gbScreenReaderOptions);
- QHBox* hbAcceleratorPrefix = new QHBox(m_gbScreenReaderOptions);
- QWidget* spacer = new QWidget(hbAcceleratorPrefix);
+ m_cbSpeakAccelerators = new TQCheckBox(i18n("Spea&k accelerators"), m_gbScreenReaderOptions);
+ TQHBox* hbAcceleratorPrefix = new TQHBox(m_gbScreenReaderOptions);
+ TQWidget* spacer = new TQWidget(hbAcceleratorPrefix);
spacer->setMinimumWidth(2 * KDialog::marginHint());
m_lblAcceleratorPrefix =
- new QLabel(i18n("A word spoken before another word", "Pr&efaced by the word:"),
+ new TQLabel(i18n("A word spoken before another word", "Pr&efaced by the word:"),
hbAcceleratorPrefix);
- m_leAcceleratorPrefixWord = new QLineEdit(i18n("Keyboard accelerator, such as Alt+F", "Accelerator"),
+ m_leAcceleratorPrefixWord = new TQLineEdit(i18n("Keyboard accelerator, such as Alt+F", "Accelerator"),
hbAcceleratorPrefix);
m_lblAcceleratorPrefix->setBuddy(m_leAcceleratorPrefixWord);
- QHBox* hbPollingInterval = new QHBox(m_gbScreenReaderOptions);
+ TQHBox* hbPollingInterval = new TQHBox(m_gbScreenReaderOptions);
hbPollingInterval->setMargin( 0 );
- QLabel* lblPollingInterval = new QLabel(i18n("&Polling interval:"), hbPollingInterval);
+ TQLabel* lblPollingInterval = new TQLabel(i18n("&Polling interval:"), hbPollingInterval);
m_iniPollingInterval = new KIntNumInput(hbPollingInterval);
m_iniPollingInterval->setSuffix(" ms");
m_iniPollingInterval->setRange(100, 5000, 100, true);
@@ -1000,9 +1000,9 @@ configureTTSPage::configureTTSPage( View *_view, QVBox *box, char *name )
m_iniPollingInterval->setValue(config->readNumEntry("PollingInterval", 600));
screenReaderOptionChanged();
- connect(m_cbSpeakPointerWidget, SIGNAL(toggled(bool)), this, SLOT(screenReaderOptionChanged()));
- connect(m_cbSpeakFocusWidget, SIGNAL(toggled(bool)), this, SLOT(screenReaderOptionChanged()));
- connect(m_cbSpeakAccelerators, SIGNAL(toggled(bool)), this, SLOT(screenReaderOptionChanged()));
+ connect(m_cbSpeakPointerWidget, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(screenReaderOptionChanged()));
+ connect(m_cbSpeakFocusWidget, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(screenReaderOptionChanged()));
+ connect(m_cbSpeakAccelerators, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(screenReaderOptionChanged()));
}
void configureTTSPage::slotDefault()