From aea627236e4de24599c3e30617cf264c3c1b7d40 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:02:43 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- kspread/dialogs/SheetSelectWidget.ui | 4 +- kspread/dialogs/kspread_dlg_database.cc | 4 +- kspread/dialogs/kspread_dlg_database.h | 6 +- kspread/dialogs/kspread_dlg_styles.cc | 28 +- kspread/dialogs/kspread_dlg_styles.h | 4 +- kspread/dialogs/link.cc | 2 +- kspread/kspread_editors.cc | 4 +- kspread/kspread_view.cc | 588 ++++++++++----------- kspread/plugins/calculator/main.cpp | 2 +- .../insertcalendar/kspread_plugininsertcalendar.cc | 2 +- kspread/plugins/scripting/scripting.cc | 6 +- 11 files changed, 325 insertions(+), 325 deletions(-) (limited to 'kspread') diff --git a/kspread/dialogs/SheetSelectWidget.ui b/kspread/dialogs/SheetSelectWidget.ui index 6e0b3c0d..9e6dfc84 100644 --- a/kspread/dialogs/SheetSelectWidget.ui +++ b/kspread/dialogs/SheetSelectWidget.ui @@ -83,7 +83,7 @@ Remove sheets. - + Available Sheets @@ -175,7 +175,7 @@ You can insert a sheet as often as you like, this way it will be printed multipl Move selected sheet to the bottom. - + Selected Sheets diff --git a/kspread/dialogs/kspread_dlg_database.cc b/kspread/dialogs/kspread_dlg_database.cc index 0130e863..946ee3c5 100644 --- a/kspread/dialogs/kspread_dlg_database.cc +++ b/kspread/dialogs/kspread_dlg_database.cc @@ -189,7 +189,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char * m_SelectSheetLabel->setText( i18n( "Select tables:" ) ); Frame5_2Layout->addWidget( m_SelectSheetLabel, 1, 0 ); - m_sheetView = new KListView( Frame5_2, "m_tableView" ); + m_sheetView = new TDEListView( Frame5_2, "m_tableView" ); m_sheetView->addColumn( i18n( "Sheet" ) ); m_sheetView->setRootIsDecorated( FALSE ); @@ -219,7 +219,7 @@ DatabaseDialog::DatabaseDialog( View * parent, TQRect const & rect, const char * Frame5_2_2Layout->addWidget( TextLabel11_2, 0, 0 ); - m_columnView = new KListView( Frame5_2_2, "m_columnView" ); + m_columnView = new TDEListView( Frame5_2_2, "m_columnView" ); m_columnView->addColumn( i18n( "Column" ) ); m_columnView->addColumn( i18n( "Sheet" ) ); m_columnView->addColumn( i18n( "Data Type" ) ); diff --git a/kspread/dialogs/kspread_dlg_database.h b/kspread/dialogs/kspread_dlg_database.h index 9dec13fc..2604bf41 100644 --- a/kspread/dialogs/kspread_dlg_database.h +++ b/kspread/dialogs/kspread_dlg_database.h @@ -41,7 +41,7 @@ class TQTextEdit; class TQVBoxLayout; class TQWidget; -class KListView; +class TDEListView; class KPushButton; namespace KSpread { @@ -101,9 +101,9 @@ class DatabaseDialog : public KWizard KPushButton * m_connectButton; TQLabel * m_sheetStatus; TQLabel * m_SelectSheetLabel; - KListView * m_sheetView; + TDEListView * m_sheetView; TQWidget * m_columns; - KListView * m_columnView; + TDEListView * m_columnView; TQLabel * m_columnsStatus; TQWidget * m_options; TQComboBox * m_columns_1; diff --git a/kspread/dialogs/kspread_dlg_styles.cc b/kspread/dialogs/kspread_dlg_styles.cc index 26ec4580..2821f5e2 100644 --- a/kspread/dialogs/kspread_dlg_styles.cc +++ b/kspread/dialogs/kspread_dlg_styles.cc @@ -44,9 +44,9 @@ StyleWidget::StyleWidget( TQWidget * parent, const char * name, WFlags fl ) { TQVBoxLayout * layout = new TQVBoxLayout( this, 11, 6, "layout"); - m_styleList = new KListView( this, "m_styleList" ); + m_styleList = new TDEListView( this, "m_styleList" ); m_styleList->addColumn( i18n( "Styles" ) ); - m_styleList->setResizeMode( KListView::AllColumns ); + m_styleList->setResizeMode( TDEListView::AllColumns ); layout->addWidget( m_styleList ); m_displayBox = new KComboBox( FALSE, this, "m_displayBox" ); @@ -99,11 +99,11 @@ StyleDlg::~StyleDlg() void StyleDlg::fillComboBox() { - class Map : public TQMap {}; + class Map : public TQMap {}; Map entries; entries.clear(); - entries[m_styleManager->defaultStyle()] = new KListViewItem( m_dlg->m_styleList, i18n( "Default" ) ); + entries[m_styleManager->defaultStyle()] = new TDEListViewItem( m_dlg->m_styleList, i18n( "Default" ) ); StyleManager::Styles::const_iterator iter = m_styleManager->m_styles.begin(); StyleManager::Styles::const_iterator end = m_styleManager->m_styles.end(); @@ -114,12 +114,12 @@ void StyleDlg::fillComboBox() if ( entries.find( iter.data() ) == entries.end() ) { if ( iter.data()->parent() == 0 ) - entries[iter.data()] = new KListViewItem( m_dlg->m_styleList, iter.data()->name() ); + entries[iter.data()] = new TDEListViewItem( m_dlg->m_styleList, iter.data()->name() ); else { Map::const_iterator i = entries.find( iter.data()->parent() ); if ( i != entries.end() ) - entries[iter.data()] = new KListViewItem( i.data(), iter.data()->name() ); + entries[iter.data()] = new TDEListViewItem( i.data(), iter.data()->name() ); } } @@ -144,7 +144,7 @@ void StyleDlg::slotDisplayMode( int mode ) } if ( mode != 2 ) - new KListViewItem( m_dlg->m_styleList, i18n( "Default" ) ); + new TDEListViewItem( m_dlg->m_styleList, i18n( "Default" ) ); StyleManager::Styles::iterator iter = m_styleManager->m_styles.begin(); StyleManager::Styles::iterator end = m_styleManager->m_styles.end(); @@ -161,15 +161,15 @@ void StyleDlg::slotDisplayMode( int mode ) if ( mode == 2 ) { if ( styleData->type() == Style::CUSTOM ) - new KListViewItem( m_dlg->m_styleList, styleData->name() ); + new TDEListViewItem( m_dlg->m_styleList, styleData->name() ); } else if ( mode == 1 ) { if ( styleData->usage() > 0 ) - new KListViewItem( m_dlg->m_styleList, styleData->name() ); + new TDEListViewItem( m_dlg->m_styleList, styleData->name() ); } else - new KListViewItem( m_dlg->m_styleList, styleData->name() ); + new TDEListViewItem( m_dlg->m_styleList, styleData->name() ); ++iter; } @@ -177,7 +177,7 @@ void StyleDlg::slotDisplayMode( int mode ) void StyleDlg::slotOk() { - KListViewItem * item = (KListViewItem *) m_dlg->m_styleList->currentItem(); + TDEListViewItem * item = (TDEListViewItem *) m_dlg->m_styleList->currentItem(); if ( !item ) { @@ -218,7 +218,7 @@ void StyleDlg::slotUser1() { CustomStyle * s = 0; - KListViewItem * item = (KListViewItem *) m_dlg->m_styleList->currentItem(); + TDEListViewItem * item = (TDEListViewItem *) m_dlg->m_styleList->currentItem(); if ( item ) { @@ -257,7 +257,7 @@ void StyleDlg::slotUser1() void StyleDlg::slotUser2() { - KListViewItem * item = (KListViewItem *) m_dlg->m_styleList->currentItem(); + TDEListViewItem * item = (TDEListViewItem *) m_dlg->m_styleList->currentItem(); if ( !item ) return; @@ -279,7 +279,7 @@ void StyleDlg::slotUser2() void StyleDlg::slotUser3() { - KListViewItem * item = (KListViewItem *) m_dlg->m_styleList->currentItem(); + TDEListViewItem * item = (TDEListViewItem *) m_dlg->m_styleList->currentItem(); if ( !item ) return; diff --git a/kspread/dialogs/kspread_dlg_styles.h b/kspread/dialogs/kspread_dlg_styles.h index b6a1f7c7..fda66536 100644 --- a/kspread/dialogs/kspread_dlg_styles.h +++ b/kspread/dialogs/kspread_dlg_styles.h @@ -25,7 +25,7 @@ #include class KComboBox; -class KListView; +class TDEListView; class TQListViewItem; @@ -43,7 +43,7 @@ class StyleWidget : public TQWidget StyleWidget( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); ~StyleWidget(); - KListView * m_styleList; + TDEListView * m_styleList; KComboBox * m_displayBox; signals: void modifyStyle(); diff --git a/kspread/dialogs/link.cc b/kspread/dialogs/link.cc index 23cf3317..9523cf83 100644 --- a/kspread/dialogs/link.cc +++ b/kspread/dialogs/link.cc @@ -115,7 +115,7 @@ LinkDialog::LinkDialog( TQWidget*, const char* ) // populate recent files - TQStringList fileList = KRecentDocument::recentDocuments(); + TQStringList fileList = TDERecentDocument::recentDocuments(); for( TQStringList::ConstIterator it = fileList.begin();it != fileList.end(); ++it ) { KDesktopFile f(*it, true /* read only */); diff --git a/kspread/kspread_editors.cc b/kspread/kspread_editors.cc index 1edef10d..6fefd272 100644 --- a/kspread/kspread_editors.cc +++ b/kspread/kspread_editors.cc @@ -304,7 +304,7 @@ class FunctionCompletion::Private public: CellEditor* editor; TQVBox *completionPopup; - KListBox *completionListBox; + TDEListBox *completionListBox; TQLabel* hintLabel; }; @@ -321,7 +321,7 @@ TQObject( editor ) d->completionPopup->installEventFilter( this ); d->completionPopup->setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum); - d->completionListBox = new KListBox( d->completionPopup ); + d->completionListBox = new TDEListBox( d->completionPopup ); d->completionPopup->setFocusProxy( d->completionListBox ); d->completionListBox->setFrameStyle( TQFrame::NoFrame ); d->completionListBox->setVariableWidth( true ); diff --git a/kspread/kspread_view.cc b/kspread/kspread_view.cc index 6de55b61..ede60281 100644 --- a/kspread/kspread_view.cc +++ b/kspread/kspread_view.cc @@ -190,7 +190,7 @@ public: // all UI actions ViewActions* actions; - // If updateEditWidget is called it changes some KToggleActions. + // If updateEditWidget is called it changes some TDEToggleActions. // That causes them to emit a signal. If this lock is true, then these // signals are ignored. bool toolbarLock; @@ -294,168 +294,168 @@ class ViewActions public: // cell formatting - KAction* cellLayout; - KAction *actionExtraProperties; - KAction* defaultFormat; - KToggleAction* bold; - KToggleAction* italic; - KToggleAction* underline; - KToggleAction* strikeOut; - KFontAction* selectFont; - KFontSizeAction* selectFontSize; - KAction* fontSizeUp; - KAction* fontSizeDown; - TKSelectColorAction* textColor; - KToggleAction* alignLeft; - KToggleAction* alignCenter; - KToggleAction* alignRight; - KToggleAction* alignTop; - KToggleAction* alignMiddle; - KToggleAction* alignBottom; - KToggleAction* wrapText; - KToggleAction* verticalText; - KAction* increaseIndent; - KAction* decreaseIndent; - KAction* changeAngle; - KToggleAction* percent; - KAction* precplus; - KAction* precminus; - KToggleAction* money; - KAction* upper; - KAction* lower; - KAction* firstLetterUpper; - TKSelectColorAction* bgColor; - KAction* borderLeft; - KAction* borderRight; - KAction* borderTop; - KAction* borderBottom; - KAction* borderAll; - KAction* borderOutline; - KAction* borderRemove; - TKSelectColorAction* borderColor; - KSelectAction* selectStyle; - KAction* createStyle; + TDEAction* cellLayout; + TDEAction *actionExtraProperties; + TDEAction* defaultFormat; + TDEToggleAction* bold; + TDEToggleAction* italic; + TDEToggleAction* underline; + TDEToggleAction* strikeOut; + TDEFontAction* selectFont; + TDEFontSizeAction* selectFontSize; + TDEAction* fontSizeUp; + TDEAction* fontSizeDown; + TTDESelectColorAction* textColor; + TDEToggleAction* alignLeft; + TDEToggleAction* alignCenter; + TDEToggleAction* alignRight; + TDEToggleAction* alignTop; + TDEToggleAction* alignMiddle; + TDEToggleAction* alignBottom; + TDEToggleAction* wrapText; + TDEToggleAction* verticalText; + TDEAction* increaseIndent; + TDEAction* decreaseIndent; + TDEAction* changeAngle; + TDEToggleAction* percent; + TDEAction* precplus; + TDEAction* precminus; + TDEToggleAction* money; + TDEAction* upper; + TDEAction* lower; + TDEAction* firstLetterUpper; + TTDESelectColorAction* bgColor; + TDEAction* borderLeft; + TDEAction* borderRight; + TDEAction* borderTop; + TDEAction* borderBottom; + TDEAction* borderAll; + TDEAction* borderOutline; + TDEAction* borderRemove; + TTDESelectColorAction* borderColor; + TDESelectAction* selectStyle; + TDEAction* createStyle; // cell operations - KAction* editCell; - KAction* insertCell; - KAction* removeCell; - KAction* deleteCell; - KToolBarPopupAction* mergeCell; - KAction* mergeCellHorizontal; - KAction* mergeCellVertical; - KAction* dissociateCell; - KAction* clearText; - KAction* conditional; - KAction* clearConditional; - KAction* validity; - KAction* clearValidity; - KAction* addModifyComment; - KAction* removeComment; - KAction* clearComment; + TDEAction* editCell; + TDEAction* insertCell; + TDEAction* removeCell; + TDEAction* deleteCell; + TDEToolBarPopupAction* mergeCell; + TDEAction* mergeCellHorizontal; + TDEAction* mergeCellVertical; + TDEAction* dissociateCell; + TDEAction* clearText; + TDEAction* conditional; + TDEAction* clearConditional; + TDEAction* validity; + TDEAction* clearValidity; + TDEAction* addModifyComment; + TDEAction* removeComment; + TDEAction* clearComment; // column & row operations - KAction* resizeColumn; - KAction* insertColumn; - KAction* deleteColumn; - KAction* hideColumn; - KAction* showColumn; - KAction* equalizeColumn; - KAction* showSelColumns; - KAction* resizeRow; - KAction* insertRow; - KAction* deleteRow; - KAction* hideRow; - KAction* showRow; - KAction* equalizeRow; - KAction* showSelRows; - KAction* adjust; + TDEAction* resizeColumn; + TDEAction* insertColumn; + TDEAction* deleteColumn; + TDEAction* hideColumn; + TDEAction* showColumn; + TDEAction* equalizeColumn; + TDEAction* showSelColumns; + TDEAction* resizeRow; + TDEAction* insertRow; + TDEAction* deleteRow; + TDEAction* hideRow; + TDEAction* showRow; + TDEAction* equalizeRow; + TDEAction* showSelRows; + TDEAction* adjust; // sheet/workbook operations - KAction* sheetProperties; - KAction* insertSheet; - KAction* menuInsertSheet; - KAction* removeSheet; - KAction* renameSheet; - KAction* hideSheet; - KAction* showSheet; - KAction* autoFormat; - KAction* areaName; - KAction* showArea; - KAction* insertSeries; - KAction* insertFunction; - KAction* insertSpecialChar; - KAction* insertFromDatabase; - KAction* insertFromTextfile; - KAction* insertFromClipboard; - KAction* transform; - KAction* sort; - KAction* sortDec; - KAction* sortInc; - KAction* fillRight; - KAction* fillLeft; - KAction* fillUp; - KAction* fillDown; - KAction* paperLayout; - KAction* definePrintRange; - KAction* resetPrintRange; - KToggleAction* showPageBorders; - KAction* recalcWorksheet; - KAction* recalcWorkbook; - KToggleAction* protectSheet; - KToggleAction* protectDoc; + TDEAction* sheetProperties; + TDEAction* insertSheet; + TDEAction* menuInsertSheet; + TDEAction* removeSheet; + TDEAction* renameSheet; + TDEAction* hideSheet; + TDEAction* showSheet; + TDEAction* autoFormat; + TDEAction* areaName; + TDEAction* showArea; + TDEAction* insertSeries; + TDEAction* insertFunction; + TDEAction* insertSpecialChar; + TDEAction* insertFromDatabase; + TDEAction* insertFromTextfile; + TDEAction* insertFromClipboard; + TDEAction* transform; + TDEAction* sort; + TDEAction* sortDec; + TDEAction* sortInc; + TDEAction* fillRight; + TDEAction* fillLeft; + TDEAction* fillUp; + TDEAction* fillDown; + TDEAction* paperLayout; + TDEAction* definePrintRange; + TDEAction* resetPrintRange; + TDEToggleAction* showPageBorders; + TDEAction* recalcWorksheet; + TDEAction* recalcWorkbook; + TDEToggleAction* protectSheet; + TDEToggleAction* protectDoc; // general editing - KAction* cut; - KAction* copy; - KAction* paste; - KAction* specialPaste; - KAction* insertCellCopy; - KAction* find; - KAction* replace; + TDEAction* cut; + TDEAction* copy; + TDEAction* paste; + TDEAction* specialPaste; + TDEAction* insertCellCopy; + TDEAction* find; + TDEAction* replace; // navigation - KAction* gotoCell; - KAction* nextSheet; - KAction* prevSheet; - KAction* firstSheet; - KAction* lastSheet; + TDEAction* gotoCell; + TDEAction* nextSheet; + TDEAction* prevSheet; + TDEAction* firstSheet; + TDEAction* lastSheet; // misc - KAction* styleDialog; - KAction* autoSum; - KSelectAction* formulaSelection; - KAction* insertLink; - KAction* removeLink; - KAction* consolidate; - KAction* goalSeek; - KAction* subTotals; - KAction* textToColumns; - KAction* multipleOperations; - KAction* createTemplate; + TDEAction* styleDialog; + TDEAction* autoSum; + TDESelectAction* formulaSelection; + TDEAction* insertLink; + TDEAction* removeLink; + TDEAction* consolidate; + TDEAction* goalSeek; + TDEAction* subTotals; + TDEAction* textToColumns; + TDEAction* multipleOperations; + TDEAction* createTemplate; KoPartSelectAction *insertPart; - KToggleAction* insertChartFrame; - KAction* insertPicture; - KAction* customList; - KAction* spellChecking; - KAction* internalTests; - KAction* inspector; + TDEToggleAction* insertChartFrame; + TDEAction* insertPicture; + TDEAction* customList; + TDEAction* spellChecking; + TDEAction* internalTests; + TDEAction* inspector; // settings KoZoomAction* viewZoom; - KToggleAction* showStatusBar; - KToggleAction* showTabBar; - KToggleAction* showFormulaBar; - KAction* preference; + TDEToggleAction* showStatusBar; + TDEToggleAction* showTabBar; + TDEToggleAction* showFormulaBar; + TDEAction* preference; // running calculation - KToggleAction* calcNone; - KToggleAction* calcMin; - KToggleAction* calcMax; - KToggleAction* calcAverage; - KToggleAction* calcCount; - KToggleAction* calcSum; - KToggleAction* calcCountA; + TDEToggleAction* calcNone; + TDEToggleAction* calcMin; + TDEToggleAction* calcMax; + TDEToggleAction* calcAverage; + TDEToggleAction* calcCount; + TDEToggleAction* calcSum; + TDEToggleAction* calcCountA; }; @@ -463,406 +463,406 @@ void View::Private::initActions() { actions = new ViewActions; - KActionCollection* ac = view->actionCollection(); + TDEActionCollection* ac = view->actionCollection(); // -- cell formatting actions -- - actions->cellLayout = new KAction( i18n("Cell Format..."), "cell_layout", + actions->cellLayout = new TDEAction( i18n("Cell Format..."), "cell_layout", TQt::CTRL+ TQt::ALT+ TQt::Key_F, TQT_TQOBJECT(view), TQT_SLOT( layoutDlg() ), ac, "cellLayout" ); actions->cellLayout->setToolTip( i18n("Set the cell formatting.") ); - actions->actionExtraProperties = new KAction( i18n( "&Properties" ), "penbrush", 0, + actions->actionExtraProperties = new TDEAction( i18n( "&Properties" ), "penbrush", 0, TQT_TQOBJECT(view), TQT_SLOT( extraProperties() ), ac, "extra_properties" ); - actions->defaultFormat = new KAction( i18n("Default"), + actions->defaultFormat = new TDEAction( i18n("Default"), 0, TQT_TQOBJECT(view), TQT_SLOT( defaultSelection() ), ac, "default" ); actions->defaultFormat->setToolTip( i18n("Resets to the default format.") ); - actions->bold = new KToggleAction( i18n("Bold"), "text_bold", + actions->bold = new TDEToggleAction( i18n("Bold"), "text_bold", TQt::CTRL+TQt::Key_B, ac, "bold"); TQT_BASE_OBJECT_NAME::connect( actions->bold, TQT_SIGNAL( toggled( bool) ), TQT_TQOBJECT(view), TQT_SLOT( bold( bool ) ) ); - actions->italic = new KToggleAction( i18n("Italic"), "text_italic", + actions->italic = new TDEToggleAction( i18n("Italic"), "text_italic", TQt::CTRL+TQt::Key_I, ac, "italic"); TQT_BASE_OBJECT_NAME::connect( actions->italic, TQT_SIGNAL( toggled( bool) ), TQT_TQOBJECT(view), TQT_SLOT( italic( bool ) ) ); - actions->underline = new KToggleAction( i18n("Underline"), "text_under", + actions->underline = new TDEToggleAction( i18n("Underline"), "text_under", TQt::CTRL+TQt::Key_U, ac, "underline"); TQT_BASE_OBJECT_NAME::connect( actions->underline, TQT_SIGNAL( toggled( bool) ), TQT_TQOBJECT(view), TQT_SLOT( underline( bool ) ) ); - actions->strikeOut = new KToggleAction( i18n("Strike Out"), "text_strike", + actions->strikeOut = new TDEToggleAction( i18n("Strike Out"), "text_strike", 0, ac, "strikeout"); TQT_BASE_OBJECT_NAME::connect( actions->strikeOut, TQT_SIGNAL( toggled( bool) ), TQT_TQOBJECT(view), TQT_SLOT( strikeOut( bool ) ) ); - actions->selectFont = new KFontAction( i18n("Select Font..."), + actions->selectFont = new TDEFontAction( i18n("Select Font..."), 0, ac, "selectFont" ); TQT_BASE_OBJECT_NAME::connect( actions->selectFont, TQT_SIGNAL( activated( const TQString& ) ), TQT_TQOBJECT(view), TQT_SLOT( fontSelected( const TQString& ) ) ); - actions->selectFontSize = new KFontSizeAction( i18n("Select Font Size"), + actions->selectFontSize = new TDEFontSizeAction( i18n("Select Font Size"), 0, ac, "selectFontSize" ); TQT_BASE_OBJECT_NAME::connect( actions->selectFontSize, TQT_SIGNAL( fontSizeChanged( int ) ), TQT_TQOBJECT(view), TQT_SLOT( fontSizeSelected( int ) ) ); - actions->fontSizeUp = new KAction( i18n("Increase Font Size"), "fontsizeup", + actions->fontSizeUp = new TDEAction( i18n("Increase Font Size"), "fontsizeup", 0, TQT_TQOBJECT(view), TQT_SLOT( increaseFontSize() ), ac, "increaseFontSize" ); - actions->fontSizeDown = new KAction( i18n("Decrease Font Size"), "fontsizedown", + actions->fontSizeDown = new TDEAction( i18n("Decrease Font Size"), "fontsizedown", 0, TQT_TQOBJECT(view), TQT_SLOT( decreaseFontSize() ), ac, "decreaseFontSize" ); - actions->textColor = new TKSelectColorAction( i18n("Text Color"), - TKSelectColorAction::TextColor, TQT_TQOBJECT(view), TQT_SLOT( changeTextColor() ), + actions->textColor = new TTDESelectColorAction( i18n("Text Color"), + TTDESelectColorAction::TextColor, TQT_TQOBJECT(view), TQT_SLOT( changeTextColor() ), ac, "textColor",true ); actions->textColor->setDefaultColor(TQColor()); - actions->alignLeft = new KToggleAction( i18n("Align Left"), "text_left", + actions->alignLeft = new TDEToggleAction( i18n("Align Left"), "text_left", 0, ac, "left"); TQT_BASE_OBJECT_NAME::connect( actions->alignLeft, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( alignLeft( bool ) ) ); actions->alignLeft->setExclusiveGroup( "Align" ); actions->alignLeft->setToolTip(i18n("Left justify the cell contents.")); - actions->alignCenter = new KToggleAction( i18n("Align Center"), "text_center", + actions->alignCenter = new TDEToggleAction( i18n("Align Center"), "text_center", 0, ac, "center"); TQT_BASE_OBJECT_NAME::connect( actions->alignCenter, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( alignCenter( bool ) ) ); actions->alignCenter->setExclusiveGroup( "Align" ); actions->alignCenter->setToolTip(i18n("Center the cell contents.")); - actions->alignRight = new KToggleAction( i18n("Align Right"), "text_right", + actions->alignRight = new TDEToggleAction( i18n("Align Right"), "text_right", 0, ac, "right"); TQT_BASE_OBJECT_NAME::connect( actions->alignRight, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( alignRight( bool ) ) ); actions->alignRight->setExclusiveGroup( "Align" ); actions->alignRight->setToolTip(i18n("Right justify the cell contents.")); - actions->alignTop = new KToggleAction( i18n("Align Top"), "text_top", + actions->alignTop = new TDEToggleAction( i18n("Align Top"), "text_top", 0, ac, "top"); TQT_BASE_OBJECT_NAME::connect( actions->alignTop, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( alignTop( bool ) ) ); actions->alignTop->setExclusiveGroup( "Pos" ); actions->alignTop->setToolTip(i18n("Align cell contents along the top of the cell.")); - actions->alignMiddle = new KToggleAction( i18n("Align Middle"), "middle", + actions->alignMiddle = new TDEToggleAction( i18n("Align Middle"), "middle", 0, ac, "middle"); TQT_BASE_OBJECT_NAME::connect( actions->alignMiddle, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( alignMiddle( bool ) ) ); actions->alignMiddle->setExclusiveGroup( "Pos" ); actions->alignMiddle->setToolTip(i18n("Align cell contents centered in the cell.")); - actions->alignBottom = new KToggleAction( i18n("Align Bottom"), "text_bottom", + actions->alignBottom = new TDEToggleAction( i18n("Align Bottom"), "text_bottom", 0, ac, "bottom"); TQT_BASE_OBJECT_NAME::connect( actions->alignBottom, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( alignBottom( bool ) ) ); actions->alignBottom->setExclusiveGroup( "Pos" ); actions->alignBottom->setToolTip(i18n("Align cell contents along the bottom of the cell.")); - actions->wrapText = new KToggleAction( i18n("Wrap Text"), "multirow", + actions->wrapText = new TDEToggleAction( i18n("Wrap Text"), "multirow", 0, ac, "multiRow" ); TQT_BASE_OBJECT_NAME::connect( actions->wrapText, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( wrapText( bool ) ) ); actions->wrapText->setToolTip(i18n("Make the cell text wrap onto multiple lines.")); - actions->verticalText = new KToggleAction( i18n("Vertical Text"),"vertical_text" , + actions->verticalText = new TDEToggleAction( i18n("Vertical Text"),"vertical_text" , 0 ,ac, "verticaltext" ); TQT_BASE_OBJECT_NAME::connect( actions->verticalText, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( verticalText( bool ) ) ); actions->verticalText->setToolTip(i18n("Print cell contents vertically.")); - actions->increaseIndent = new KAction( i18n("Increase Indent"), + actions->increaseIndent = new TDEAction( i18n("Increase Indent"), TQApplication::reverseLayout() ? "format_decreaseindent":"format_increaseindent", 0, TQT_TQOBJECT(view), TQT_SLOT( increaseIndent() ), ac, "increaseindent" ); actions->increaseIndent->setToolTip(i18n("Increase the indentation.")); - actions->decreaseIndent = new KAction( i18n("Decrease Indent"), + actions->decreaseIndent = new TDEAction( i18n("Decrease Indent"), TQApplication::reverseLayout() ? "format_increaseindent" : "format_decreaseindent", 0, TQT_TQOBJECT(view), TQT_SLOT( decreaseIndent() ), ac, "decreaseindent"); actions->decreaseIndent->setToolTip(i18n("Decrease the indentation.")); - actions->changeAngle = new KAction( i18n("Change Angle..."), + actions->changeAngle = new TDEAction( i18n("Change Angle..."), 0, TQT_TQOBJECT(view), TQT_SLOT( changeAngle() ), ac, "changeangle" ); actions->changeAngle->setToolTip(i18n("Change the angle that cell contents are printed.")); - actions->percent = new KToggleAction( i18n("Percent Format"), "percent", + actions->percent = new TDEToggleAction( i18n("Percent Format"), "percent", 0, ac, "percent"); TQT_BASE_OBJECT_NAME::connect( actions->percent, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( percent( bool ) ) ); actions->percent->setToolTip(i18n("Set the cell formatting to look like a percentage.")); - actions->precplus = new KAction( i18n("Increase Precision"), "prec_plus", + actions->precplus = new TDEAction( i18n("Increase Precision"), "prec_plus", 0, TQT_TQOBJECT(view), TQT_SLOT( precisionPlus() ), ac, "precplus"); actions->precplus->setToolTip(i18n("Increase the decimal precision shown onscreen.")); - actions->precminus = new KAction( i18n("Decrease Precision"), "prec_minus", + actions->precminus = new TDEAction( i18n("Decrease Precision"), "prec_minus", 0, TQT_TQOBJECT(view), TQT_SLOT( precisionMinus() ), ac, "precminus"); actions->precminus->setToolTip(i18n("Decrease the decimal precision shown onscreen.")); - actions->money = new KToggleAction( i18n("Money Format"), "money", + actions->money = new TDEToggleAction( i18n("Money Format"), "money", 0, ac, "money"); TQT_BASE_OBJECT_NAME::connect( actions->money, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( moneyFormat( bool ) ) ); actions->money->setToolTip(i18n("Set the cell formatting to look like your local currency.")); - actions->upper = new KAction( i18n("Upper Case"), "fontsizeup", + actions->upper = new TDEAction( i18n("Upper Case"), "fontsizeup", 0, TQT_TQOBJECT(view), TQT_SLOT( upper() ), ac, "upper" ); actions->upper->setToolTip(i18n("Convert all letters to upper case.")); - actions->lower = new KAction( i18n("Lower Case"), "fontsizedown", + actions->lower = new TDEAction( i18n("Lower Case"), "fontsizedown", 0, TQT_TQOBJECT(view), TQT_SLOT( lower() ), ac, "lower" ); actions->lower->setToolTip(i18n("Convert all letters to lower case.")); - actions->firstLetterUpper = new KAction( i18n("Convert First Letter to Upper Case"), "first_letter_upper", + actions->firstLetterUpper = new TDEAction( i18n("Convert First Letter to Upper Case"), "first_letter_upper", 0, TQT_TQOBJECT(view), TQT_SLOT( firstLetterUpper() ),ac, "firstletterupper" ); actions->firstLetterUpper->setToolTip(i18n("Capitalize the first letter.")); - actions->bgColor = new TKSelectColorAction( i18n("Background Color"), - TKSelectColorAction::FillColor, ac, "backgroundColor", true ); + actions->bgColor = new TTDESelectColorAction( i18n("Background Color"), + TTDESelectColorAction::FillColor, ac, "backgroundColor", true ); TQT_BASE_OBJECT_NAME::connect(actions->bgColor, TQT_SIGNAL( activated() ), TQT_TQOBJECT(view), TQT_SLOT( changeBackgroundColor() ) ); actions->bgColor->setDefaultColor(TQColor()); actions->bgColor->setToolTip(i18n("Set the background color.")); - actions->borderLeft = new KAction( i18n("Border Left"), "border_left", + actions->borderLeft = new TDEAction( i18n("Border Left"), "border_left", 0, TQT_TQOBJECT(view), TQT_SLOT( borderLeft() ), ac, "borderLeft" ); actions->borderLeft->setToolTip(i18n("Set a left border to the selected area.")); - actions->borderRight = new KAction( i18n("Border Right"), "border_right", + actions->borderRight = new TDEAction( i18n("Border Right"), "border_right", 0, TQT_TQOBJECT(view), TQT_SLOT( borderRight() ), ac, "borderRight" ); actions->borderRight->setToolTip(i18n("Set a right border to the selected area.")); - actions->borderTop = new KAction( i18n("Border Top"), "border_top", + actions->borderTop = new TDEAction( i18n("Border Top"), "border_top", 0, TQT_TQOBJECT(view), TQT_SLOT( borderTop() ), ac, "borderTop" ); actions->borderTop->setToolTip(i18n("Set a top border to the selected area.")); - actions->borderBottom = new KAction( i18n("Border Bottom"), "border_bottom", + actions->borderBottom = new TDEAction( i18n("Border Bottom"), "border_bottom", 0, TQT_TQOBJECT(view), TQT_SLOT( borderBottom() ), ac, "borderBottom" ); actions->borderBottom->setToolTip(i18n("Set a bottom border to the selected area.")); - actions->borderAll = new KAction( i18n("All Borders"), "border_all", + actions->borderAll = new TDEAction( i18n("All Borders"), "border_all", 0, TQT_TQOBJECT(view), TQT_SLOT( borderAll() ), ac, "borderAll" ); actions->borderAll->setToolTip(i18n("Set a border around all cells in the selected area.")); - actions->borderRemove = new KAction( i18n("Remove Borders"), "border_remove", + actions->borderRemove = new TDEAction( i18n("Remove Borders"), "border_remove", 0, TQT_TQOBJECT(view), TQT_SLOT( borderRemove() ), ac, "borderRemove" ); actions->borderRemove->setToolTip(i18n("Remove all borders in the selected area.")); - actions->borderOutline = new KAction( i18n("Border Outline"), ("border_outline"), + actions->borderOutline = new TDEAction( i18n("Border Outline"), ("border_outline"), 0, TQT_TQOBJECT(view), TQT_SLOT( borderOutline() ), ac, "borderOutline" ); actions->borderOutline->setToolTip(i18n("Set a border to the outline of the selected area.")); - actions->borderColor = new TKSelectColorAction( i18n("Border Color"), - TKSelectColorAction::LineColor, ac, "borderColor" ); + actions->borderColor = new TTDESelectColorAction( i18n("Border Color"), + TTDESelectColorAction::LineColor, ac, "borderColor" ); TQT_BASE_OBJECT_NAME::connect( actions->borderColor, TQT_SIGNAL( activated() ), TQT_TQOBJECT(view), TQT_SLOT( changeBorderColor() ) ); actions->borderColor->setToolTip( i18n( "Select a new border color." ) ); - actions->selectStyle = new KSelectAction( i18n( "St&yle" ), + actions->selectStyle = new TDESelectAction( i18n( "St&yle" ), 0, ac, "stylemenu" ); actions->selectStyle->setToolTip( i18n( "Apply a predefined style to the selected cells." ) ); TQT_BASE_OBJECT_NAME::connect( actions->selectStyle, TQT_SIGNAL( activated( const TQString & ) ), TQT_TQOBJECT(view), TQT_SLOT( styleSelected( const TQString & ) ) ); - actions->createStyle = new KAction( i18n( "Create Style From Cell..." ), + actions->createStyle = new TDEAction( i18n( "Create Style From Cell..." ), 0, TQT_TQOBJECT(view), TQT_SLOT( createStyleFromCell()), ac, "createStyle" ); actions->createStyle->setToolTip( i18n( "Create a new style based on the currently selected cell." ) ); // -- cell operation actions -- - actions->editCell = new KAction( i18n("Modify Cell"),"cell_edit", + actions->editCell = new TDEAction( i18n("Modify Cell"),"cell_edit", TQt::CTRL+TQt::Key_M, TQT_TQOBJECT(view), TQT_SLOT( editCell() ), ac, "editCell" ); actions->editCell->setToolTip(i18n("Edit the highlighted cell.")); - actions->insertCell = new KAction( i18n("Insert Cells..."), "insertcell", + actions->insertCell = new TDEAction( i18n("Insert Cells..."), "insertcell", 0, TQT_TQOBJECT(view), TQT_SLOT( slotInsert() ), ac, "insertCell" ); actions->insertCell->setToolTip(i18n("Insert a blank cell into the spreadsheet.")); - actions->removeCell = new KAction( i18n("Remove Cells..."), "removecell", + actions->removeCell = new TDEAction( i18n("Remove Cells..."), "removecell", 0, TQT_TQOBJECT(view), TQT_SLOT( slotRemove() ), ac, "removeCell" ); actions->removeCell->setToolTip(i18n("Removes the current cell from the spreadsheet.")); - actions->deleteCell = new KAction( i18n("Delete"), "deletecell", + actions->deleteCell = new TDEAction( i18n("Delete"), "deletecell", 0, TQT_TQOBJECT(view), TQT_SLOT( deleteSelection() ), ac, "delete" ); actions->deleteCell->setToolTip(i18n("Delete all contents and formatting of the current cell.")); - actions->mergeCell = new KToolBarPopupAction( i18n("Merge Cells"),"mergecell", + actions->mergeCell = new TDEToolBarPopupAction( i18n("Merge Cells"),"mergecell", 0, TQT_TQOBJECT(view), TQT_SLOT( mergeCell() ), ac, "mergecell" ); actions->mergeCell->setToolTip(i18n("Merge the selected region.")); actions->mergeCell->plug( actions->mergeCell->popupMenu() ); - actions->mergeCellHorizontal = new KAction( i18n("Merge CellsQt::Horizontally"),"mergecell-horizontal", + actions->mergeCellHorizontal = new TDEAction( i18n("Merge CellsQt::Horizontally"),"mergecell-horizontal", 0, TQT_TQOBJECT(view), TQT_SLOT( mergeCellHorizontal() ), ac, "mergecellHorizontal" ); actions->mergeCellHorizontal->setToolTip(i18n("Merge the selected region horizontally.")); actions->mergeCellHorizontal->plug( actions->mergeCell->popupMenu() ); - actions->mergeCellVertical = new KAction( i18n("Merge CellsQt::Vertically"),"mergecell-vertical", + actions->mergeCellVertical = new TDEAction( i18n("Merge CellsQt::Vertically"),"mergecell-vertical", 0, TQT_TQOBJECT(view), TQT_SLOT( mergeCellVertical() ), ac, "mergecellVertical" ); actions->mergeCellVertical->setToolTip(i18n("Merge the selected region vertically.")); actions->mergeCellVertical->plug( actions->mergeCell->popupMenu() ); - actions->dissociateCell = new KAction( i18n("Dissociate Cells"),"dissociatecell", + actions->dissociateCell = new TDEAction( i18n("Dissociate Cells"),"dissociatecell", 0, TQT_TQOBJECT(view), TQT_SLOT( dissociateCell() ), ac, "dissociatecell" ); actions->dissociateCell->setToolTip(i18n("Unmerge the selected region.")); - actions->clearText = new KAction( i18n("Text"), + actions->clearText = new TDEAction( i18n("Text"), 0, TQT_TQOBJECT(view), TQT_SLOT( clearTextSelection() ), ac, "cleartext" ); actions->clearText->setToolTip(i18n("Remove the contents of the current cell.")); - actions->conditional = new KAction( i18n("Conditional Cell Attributes..."), + actions->conditional = new TDEAction( i18n("Conditional Cell Attributes..."), 0, TQT_TQOBJECT(view), TQT_SLOT( conditional() ), ac, "conditional" ); actions->conditional->setToolTip(i18n("Set cell format based on certain conditions.")); - actions->clearConditional = new KAction( i18n("Conditional Cell Attributes"), + actions->clearConditional = new TDEAction( i18n("Conditional Cell Attributes"), 0, TQT_TQOBJECT(view), TQT_SLOT( clearConditionalSelection() ), ac, "clearconditional" ); actions->clearConditional->setToolTip(i18n("Remove the conditional cell formatting.")); - actions->validity = new KAction( i18n("Validity..."), + actions->validity = new TDEAction( i18n("Validity..."), 0, TQT_TQOBJECT(view), TQT_SLOT( validity() ), ac, "validity" ); actions->validity->setToolTip(i18n("Set tests to confirm cell data is valid.")); - actions->clearValidity = new KAction( i18n("Validity"), + actions->clearValidity = new TDEAction( i18n("Validity"), 0, TQT_TQOBJECT(view), TQT_SLOT( clearValiditySelection() ), ac, "clearvalidity" ); actions->clearValidity->setToolTip(i18n("Remove the validity tests on this cell.")); - actions->addModifyComment = new KAction( i18n("&Add/Modify Comment..."),"comment", + actions->addModifyComment = new TDEAction( i18n("&Add/Modify Comment..."),"comment", 0, TQT_TQOBJECT(view), TQT_SLOT( addModifyComment() ), ac, "addmodifycomment" ); actions->addModifyComment->setToolTip(i18n("Edit a comment for this cell.")); - actions->removeComment = new KAction( i18n("&Remove Comment"),"removecomment", + actions->removeComment = new TDEAction( i18n("&Remove Comment"),"removecomment", 0, TQT_TQOBJECT(view), TQT_SLOT( removeComment() ), ac, "removecomment" ); actions->removeComment->setToolTip(i18n("Remove this cell's comment.")); - actions->clearComment = new KAction( i18n("Comment"), + actions->clearComment = new TDEAction( i18n("Comment"), 0, TQT_TQOBJECT(view), TQT_SLOT( clearCommentSelection() ), ac, "clearcomment" ); actions->clearComment->setToolTip(i18n("Remove this cell's comment.")); // -- column & row actions -- - actions->resizeColumn = new KAction( i18n("Resize Column..."), "resizecol", + actions->resizeColumn = new TDEAction( i18n("Resize Column..."), "resizecol", 0, TQT_TQOBJECT(view), TQT_SLOT( resizeColumn() ), ac, "resizeCol" ); actions->resizeColumn->setToolTip(i18n("Change the width of a column.")); - actions->insertColumn = new KAction( i18n("Insert Columns"), "insert_table_col", + actions->insertColumn = new TDEAction( i18n("Insert Columns"), "insert_table_col", 0, TQT_TQOBJECT(view), TQT_SLOT( insertColumn() ), ac, "insertColumn" ); actions->insertColumn->setToolTip(i18n("Inserts a new column into the spreadsheet.")); - actions->deleteColumn = new KAction( i18n("Delete Columns"), "delete_table_col", + actions->deleteColumn = new TDEAction( i18n("Delete Columns"), "delete_table_col", 0, TQT_TQOBJECT(view), TQT_SLOT( deleteColumn() ), ac, "deleteColumn" ); actions->deleteColumn->setToolTip(i18n("Removes a column from the spreadsheet.")); - actions->hideColumn = new KAction( i18n("Hide Columns"), "hide_table_column", + actions->hideColumn = new TDEAction( i18n("Hide Columns"), "hide_table_column", 0, TQT_TQOBJECT(view), TQT_SLOT( hideColumn() ), ac, "hideColumn" ); actions->hideColumn->setToolTip(i18n("Hide the column from view.")); - actions->showColumn = new KAction( i18n("Show Columns..."), "show_table_column", + actions->showColumn = new TDEAction( i18n("Show Columns..."), "show_table_column", 0, TQT_TQOBJECT(view), TQT_SLOT( showColumn() ), ac, "showColumn" ); actions->showColumn->setToolTip(i18n("Show hidden columns.")); - actions->equalizeColumn = new KAction( i18n("Equalize Column"), "adjustcol", + actions->equalizeColumn = new TDEAction( i18n("Equalize Column"), "adjustcol", 0, TQT_TQOBJECT(view), TQT_SLOT( equalizeColumn() ), ac, "equalizeCol" ); actions->equalizeColumn->setToolTip(i18n("Resizes selected columns to be the same size.")); - actions->showSelColumns = new KAction( i18n("Show Columns"), "show_sheet_column", + actions->showSelColumns = new TDEAction( i18n("Show Columns"), "show_sheet_column", 0, TQT_TQOBJECT(view), TQT_SLOT( showSelColumns() ), ac, "showSelColumns" ); actions->showSelColumns->setToolTip(i18n("Show hidden columns in the selection.")); actions->showSelColumns->setEnabled(false); - actions->resizeRow = new KAction( i18n("Resize Row..."), "resizerow", + actions->resizeRow = new TDEAction( i18n("Resize Row..."), "resizerow", 0, TQT_TQOBJECT(view), TQT_SLOT( resizeRow() ), ac, "resizeRow" ); actions->resizeRow->setToolTip(i18n("Change the height of a row.")); - actions->insertRow = new KAction( i18n("Insert Rows"), "insert_table_row", + actions->insertRow = new TDEAction( i18n("Insert Rows"), "insert_table_row", 0, TQT_TQOBJECT(view), TQT_SLOT( insertRow() ), ac, "insertRow" ); actions->insertRow->setToolTip(i18n("Inserts a new row into the spreadsheet.")); - actions->deleteRow = new KAction( i18n("Delete Rows"), "delete_table_row", + actions->deleteRow = new TDEAction( i18n("Delete Rows"), "delete_table_row", 0, TQT_TQOBJECT(view), TQT_SLOT( deleteRow() ), ac, "deleteRow" ); actions->deleteRow->setToolTip(i18n("Removes a row from the spreadsheet.")); - actions->hideRow = new KAction( i18n("Hide Rows"), "hide_table_row", + actions->hideRow = new TDEAction( i18n("Hide Rows"), "hide_table_row", 0, TQT_TQOBJECT(view), TQT_SLOT( hideRow() ), ac, "hideRow" ); actions->hideRow->setToolTip(i18n("Hide a row from view.")); - actions->showRow = new KAction( i18n("Show Rows..."), "show_table_row", + actions->showRow = new TDEAction( i18n("Show Rows..."), "show_table_row", 0, TQT_TQOBJECT(view), TQT_SLOT( showRow() ), ac, "showRow" ); actions->showRow->setToolTip(i18n("Show hidden rows.")); - actions->equalizeRow = new KAction( i18n("Equalize Row"), "adjustrow", + actions->equalizeRow = new TDEAction( i18n("Equalize Row"), "adjustrow", 0, TQT_TQOBJECT(view), TQT_SLOT( equalizeRow() ), ac, "equalizeRow" ); actions->equalizeRow->setToolTip(i18n("Resizes selected rows to be the same size.")); - actions->showSelRows = new KAction( i18n("Show Rows"), "show_table_row", + actions->showSelRows = new TDEAction( i18n("Show Rows"), "show_table_row", 0, TQT_TQOBJECT(view), TQT_SLOT( showSelRows() ), ac, "showSelRows" ); actions->showSelRows->setEnabled(false); actions->showSelRows->setToolTip(i18n("Show hidden rows in the selection.")); - actions->adjust = new KAction( i18n("Adjust Row && Column"), + actions->adjust = new TDEAction( i18n("Adjust Row && Column"), 0, TQT_TQOBJECT(view), TQT_SLOT( adjust() ), ac, "adjust" ); actions->adjust->setToolTip(i18n("Adjusts row/column size so that the contents will fit.")); // -- sheet/workbook actions -- - actions->sheetProperties = new KAction( i18n("Sheet Properties"), + actions->sheetProperties = new TDEAction( i18n("Sheet Properties"), 0, TQT_TQOBJECT(view), TQT_SLOT( sheetProperties() ), ac, "sheetProperties" ); actions->sheetProperties->setToolTip(i18n("Modify current sheet's properties.")); - actions->insertSheet = new KAction( i18n("Insert Sheet"),"inserttable", + actions->insertSheet = new TDEAction( i18n("Insert Sheet"),"inserttable", 0, TQT_TQOBJECT(view), TQT_SLOT( insertSheet() ), ac, "insertSheet" ); actions->insertSheet->setToolTip(i18n("Insert a new sheet.")); // same action as insertSheet, but without 'insert' in the caption - actions->menuInsertSheet = new KAction( i18n("&Sheet"),"inserttable", + actions->menuInsertSheet = new TDEAction( i18n("&Sheet"),"inserttable", 0, TQT_TQOBJECT(view), TQT_SLOT( insertSheet() ), ac, "menuInsertSheet" ); actions->menuInsertSheet->setToolTip(i18n("Insert a new sheet.")); - actions->removeSheet = new KAction( i18n("Remove Sheet"), "delete_table", + actions->removeSheet = new TDEAction( i18n("Remove Sheet"), "delete_table", 0, TQT_TQOBJECT(view), TQT_SLOT( removeSheet() ), ac, "removeSheet" ); actions->removeSheet->setToolTip(i18n("Remove the active sheet.")); - actions->renameSheet=new KAction( i18n("Rename Sheet..."), + actions->renameSheet=new TDEAction( i18n("Rename Sheet..."), 0, TQT_TQOBJECT(view), TQT_SLOT( slotRename() ), ac, "renameSheet" ); actions->renameSheet->setToolTip(i18n("Rename the active sheet.")); - actions->showSheet = new KAction(i18n("Show Sheet..."), + actions->showSheet = new TDEAction(i18n("Show Sheet..."), 0, TQT_TQOBJECT(view), TQT_SLOT( showSheet()), ac, "showSheet" ); actions->showSheet->setToolTip(i18n("Show a hidden sheet.")); - actions->hideSheet = new KAction(i18n("Hide Sheet"), + actions->hideSheet = new TDEAction(i18n("Hide Sheet"), 0, TQT_TQOBJECT(view), TQT_SLOT( hideSheet() ), ac, "hideSheet" ); actions->hideSheet->setToolTip(i18n("Hide the active sheet.")); - actions->autoFormat = new KAction( i18n("AutoFormat..."), + actions->autoFormat = new TDEAction( i18n("AutoFormat..."), 0, TQT_TQOBJECT(view), TQT_SLOT( sheetFormat() ), ac, "sheetFormat" ); actions->autoFormat->setToolTip(i18n("Set the worksheet formatting.")); - actions->areaName = new KAction( i18n("Area Name..."), + actions->areaName = new TDEAction( i18n("Area Name..."), 0, TQT_TQOBJECT(view), TQT_SLOT( setAreaName() ), ac, "areaname" ); actions->areaName->setToolTip(i18n("Set a name for a region of the spreadsheet.")); - actions->showArea = new KAction( i18n("Show Area..."), + actions->showArea = new TDEAction( i18n("Show Area..."), 0, TQT_TQOBJECT(view), TQT_SLOT( showAreaName() ), ac, "showArea" ); actions->showArea->setToolTip(i18n("Display a named area.")); - actions->insertFunction = new KAction( i18n("&Function..."), "funct", + actions->insertFunction = new TDEAction( i18n("&Function..."), "funct", 0, TQT_TQOBJECT(view), TQT_SLOT( insertMathExpr() ), ac, "insertMathExpr" ); actions->insertFunction->setToolTip(i18n("Insert math expression.")); - actions->insertSeries = new KAction( i18n("&Series..."),"series", + actions->insertSeries = new TDEAction( i18n("&Series..."),"series", 0, TQT_TQOBJECT(view), TQT_SLOT( insertSeries() ), ac, "series"); actions->insertSeries ->setToolTip(i18n("Insert a series.")); - actions->insertLink = new KAction( i18n("&Link..."), "insert_link", + actions->insertLink = new TDEAction( i18n("&Link..."), "insert_link", 0, TQT_TQOBJECT(view), TQT_SLOT( insertHyperlink() ), ac, "insertHyperlink" ); actions->insertLink->setToolTip(i18n("Insert an Internet hyperlink.")); - actions->removeLink = new KAction( i18n("&Remove Link"), + actions->removeLink = new TDEAction( i18n("&Remove Link"), 0, TQT_TQOBJECT(view), TQT_SLOT( removeHyperlink() ), ac, "removeHyperlink" ); actions->removeLink->setToolTip(i18n("Remove a link.")); - actions->insertSpecialChar = new KAction( i18n( "S&pecial Character..." ), "char", + actions->insertSpecialChar = new TDEAction( i18n( "S&pecial Character..." ), "char", TQT_TQOBJECT(view), TQT_SLOT( insertSpecialChar() ), ac, "insertSpecialChar" ); actions->insertSpecialChar->setToolTip( i18n( "Insert one or more symbols or letters not found on the keyboard." ) ); @@ -870,79 +870,79 @@ void View::Private::initActions() TQT_TQOBJECT(view), TQT_SLOT( insertObject() ), ac, "insertPart"); actions->insertPart->setToolTip(i18n("Insert an object from another program.")); - actions->insertChartFrame = new KToggleAction( i18n("&Chart"), "insert_chart", + actions->insertChartFrame = new TDEToggleAction( i18n("&Chart"), "insert_chart", 0, TQT_TQOBJECT(view), TQT_SLOT( insertChart() ), ac, "insertChart" ); actions->insertChartFrame->setToolTip(i18n("Insert a chart.")); - actions->insertPicture = new KAction( i18n("&Picture"), + actions->insertPicture = new TDEAction( i18n("&Picture"), 0, TQT_TQOBJECT(view), TQT_SLOT( insertPicture() ), ac, "insertPicture" ); actions->insertPicture->setToolTip(i18n("Insert a picture.")); #ifndef TQT_NO_SQL - actions->insertFromDatabase = new KAction( i18n("From &Database..."), + actions->insertFromDatabase = new TDEAction( i18n("From &Database..."), 0, TQT_TQOBJECT(view), TQT_SLOT( insertFromDatabase() ), ac, "insertFromDatabase"); actions->insertFromDatabase->setToolTip(i18n("Insert data from a SQL database.")); #endif - actions->insertFromTextfile = new KAction( i18n("From &Text File..."), + actions->insertFromTextfile = new TDEAction( i18n("From &Text File..."), 0, TQT_TQOBJECT(view), TQT_SLOT( insertFromTextfile() ), ac, "insertFromTextfile"); actions->insertFromTextfile->setToolTip(i18n("Insert data from a text file to the current cursor position/selection.")); - actions->insertFromClipboard = new KAction( i18n("From &Clipboard..."), + actions->insertFromClipboard = new TDEAction( i18n("From &Clipboard..."), 0, TQT_TQOBJECT(view), TQT_SLOT( insertFromClipboard() ), ac, "insertFromClipboard"); actions->insertFromClipboard->setToolTip(i18n("Insert CSV data from the clipboard to the current cursor position/selection.")); -// actions->transform = new KAction( i18n("Transform Object..."), "rotate", +// actions->transform = new TDEAction( i18n("Transform Object..."), "rotate", // 0, TQT_TQOBJECT(view), TQT_SLOT( transformPart() ), ac, "transform" ); // actions->transform->setToolTip(i18n("Rotate the contents of the cell.")); // actions->transform->setEnabled( false ); - actions->sort = new KAction( i18n("&Sort..."), + actions->sort = new TDEAction( i18n("&Sort..."), 0, TQT_TQOBJECT(view), TQT_SLOT( sort() ), ac, "sort" ); actions->sort->setToolTip(i18n("Sort a group of cells.")); - actions->sortDec = new KAction( i18n("Sort &Decreasing"), "sort_decrease", + actions->sortDec = new TDEAction( i18n("Sort &Decreasing"), "sort_decrease", 0, TQT_TQOBJECT(view), TQT_SLOT( sortDec() ), ac, "sortDec" ); actions->sortDec->setToolTip(i18n("Sort a group of cells in decreasing (last to first) order.")); - actions->sortInc = new KAction( i18n("Sort &Increasing"), "sort_incr", + actions->sortInc = new TDEAction( i18n("Sort &Increasing"), "sort_incr", 0, TQT_TQOBJECT(view), TQT_SLOT( sortInc() ), ac, "sortInc" ); actions->sortInc->setToolTip(i18n("Sort a group of cells in ascending (first to last) order.")); - actions->paperLayout = new KAction( i18n("Page Layout..."), + actions->paperLayout = new TDEAction( i18n("Page Layout..."), 0, TQT_TQOBJECT(view), TQT_SLOT( paperLayoutDlg() ), ac, "paperLayout" ); actions->paperLayout->setToolTip(i18n("Specify the layout of the spreadsheet for a printout.")); - actions->definePrintRange = new KAction( i18n("Define Print Range"), + actions->definePrintRange = new TDEAction( i18n("Define Print Range"), 0, TQT_TQOBJECT(view), TQT_SLOT( definePrintRange() ), ac, "definePrintRange" ); actions->definePrintRange->setToolTip(i18n("Define the print range in the current sheet.")); - actions->resetPrintRange = new KAction( i18n("Reset Print Range"), + actions->resetPrintRange = new TDEAction( i18n("Reset Print Range"), 0, TQT_TQOBJECT(view), TQT_SLOT( resetPrintRange() ), ac, "resetPrintRange" ); actions->definePrintRange->setToolTip(i18n("Define the print range in the current sheet.")); - actions->showPageBorders = new KToggleAction( i18n("Show Page Borders"), + actions->showPageBorders = new TDEToggleAction( i18n("Show Page Borders"), 0, ac, "showPageBorders"); actions->showPageBorders->setCheckedState(i18n("Hide Page Borders")); TQT_BASE_OBJECT_NAME::connect( actions->showPageBorders, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( togglePageBorders( bool ) ) ); actions->showPageBorders->setToolTip( i18n( "Show on the spreadsheet where the page borders will be." ) ); - actions->recalcWorksheet = new KAction( i18n("Recalculate Sheet"), + actions->recalcWorksheet = new TDEAction( i18n("Recalculate Sheet"), TQt::SHIFT + TQt::Key_F9, TQT_TQOBJECT(view), TQT_SLOT( recalcWorkSheet() ), ac, "RecalcWorkSheet" ); actions->recalcWorksheet->setToolTip(i18n("Recalculate the value of every cell in the current worksheet.")); - actions->recalcWorkbook = new KAction( i18n("Recalculate Document"), + actions->recalcWorkbook = new TDEAction( i18n("Recalculate Document"), TQt::Key_F9, TQT_TQOBJECT(view), TQT_SLOT( recalcWorkBook() ), ac, "RecalcWorkBook" ); actions->recalcWorkbook->setToolTip(i18n("Recalculate the value of every cell in all worksheets.")); - actions->protectSheet = new KToggleAction( i18n( "Protect &Sheet..." ), + actions->protectSheet = new TDEToggleAction( i18n( "Protect &Sheet..." ), 0, ac, "protectSheet" ); actions->protectSheet->setToolTip( i18n( "Protect the sheet from being modified." ) ); TQT_BASE_OBJECT_NAME::connect( actions->protectSheet, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( toggleProtectSheet( bool ) ) ); - actions->protectDoc = new KToggleAction( i18n( "Protect &Document..." ), + actions->protectDoc = new TDEToggleAction( i18n( "Protect &Document..." ), 0, ac, "protectDoc" ); actions->protectDoc->setToolTip( i18n( "Protect the document from being modified." ) ); TQT_BASE_OBJECT_NAME::connect( actions->protectDoc, TQT_SIGNAL( toggled( bool ) ), @@ -959,11 +959,11 @@ void View::Private::initActions() actions->cut = KStdAction::cut( TQT_TQOBJECT(view), TQT_SLOT( cutSelection() ), ac, "cut" ); actions->cut->setToolTip(i18n("Move the cell object to the clipboard.")); - actions->specialPaste = new KAction( i18n("Special Paste..."), "special_paste", + actions->specialPaste = new TDEAction( i18n("Special Paste..."), "special_paste", 0, TQT_TQOBJECT(view), TQT_SLOT( specialPaste() ), ac, "specialPaste" ); actions->specialPaste->setToolTip(i18n("Paste the contents of the clipboard with special options.")); - actions->insertCellCopy = new KAction( i18n("Paste with Insertion"), "insertcellcopy", + actions->insertCellCopy = new TDEAction( i18n("Paste with Insertion"), "insertcellcopy", 0, TQT_TQOBJECT(view), TQT_SLOT( slotInsertCellCopy() ), ac, "insertCellCopy" ); actions->insertCellCopy->setToolTip(i18n("Inserts a cell from the clipboard into the spreadsheet.")); @@ -973,25 +973,25 @@ void View::Private::initActions() actions->replace = KStdAction::replace( TQT_TQOBJECT(view), TQT_SLOT(replace()), ac ); - actions->fillRight = new KAction( i18n( "&Right" ), 0, + actions->fillRight = new TDEAction( i18n( "&Right" ), 0, 0, TQT_TQOBJECT(view), TQT_SLOT( fillRight() ), ac, "fillRight" ); - actions->fillLeft = new KAction( i18n( "&Left" ), 0, + actions->fillLeft = new TDEAction( i18n( "&Left" ), 0, 0, TQT_TQOBJECT(view), TQT_SLOT( fillLeft() ), ac, "fillLeft" ); - actions->fillDown = new KAction( i18n( "&Down" ), 0, + actions->fillDown = new TDEAction( i18n( "&Down" ), 0, 0, TQT_TQOBJECT(view), TQT_SLOT( fillDown() ), ac, "fillDown" ); - actions->fillUp = new KAction( i18n( "&Up" ), 0, + actions->fillUp = new TDEAction( i18n( "&Up" ), 0, 0, TQT_TQOBJECT(view), TQT_SLOT( fillUp() ), ac, "fillUp" ); // -- misc actions -- - actions->styleDialog = new KAction( i18n( "Style Manager" ), + actions->styleDialog = new TDEAction( i18n( "Style Manager" ), 0, TQT_TQOBJECT(view), TQT_SLOT( styleDialog() ), ac, "styles" ); actions->styleDialog->setToolTip( i18n( "Edit and organize cell styles." ) ); - actions->autoSum = new KAction( i18n("Autosum"), "black_sum", + actions->autoSum = new TDEAction( i18n("Autosum"), "black_sum", 0, TQT_TQOBJECT(view), TQT_SLOT( autoSum() ), ac, "autoSum" ); actions->autoSum->setToolTip(i18n("Insert the 'sum' function")); @@ -999,7 +999,7 @@ void View::Private::initActions() ac, "spelling" ); actions->spellChecking->setToolTip(i18n("Check the spelling.")); - actions->formulaSelection = new KSelectAction(i18n("Formula Selection"), + actions->formulaSelection = new TDESelectAction(i18n("Formula Selection"), 0, ac, "formulaSelection"); actions->formulaSelection->setToolTip(i18n("Insert a function.")); TQStringList lst; @@ -1010,7 +1010,7 @@ void View::Private::initActions() lst.append( "MIN"); lst.append( "MAX"); lst.append( i18n("Others...") ); - ((KSelectAction*) actions->formulaSelection)->setItems( lst ); + ((TDESelectAction*) actions->formulaSelection)->setItems( lst ); actions->formulaSelection->setComboWidth( 80 ); actions->formulaSelection->setCurrentItem(0); TQT_BASE_OBJECT_NAME::connect( actions->formulaSelection, TQT_SIGNAL( activated( const TQString& ) ), @@ -1020,121 +1020,121 @@ void View::Private::initActions() TQT_BASE_OBJECT_NAME::connect( actions->viewZoom, TQT_SIGNAL( zoomChanged( const TQString & ) ), TQT_TQOBJECT(view), TQT_SLOT( viewZoom( const TQString & ) ) ); - actions->consolidate = new KAction( i18n("&Consolidate..."), + actions->consolidate = new TDEAction( i18n("&Consolidate..."), 0, TQT_TQOBJECT(view), TQT_SLOT( consolidate() ), ac, "consolidate" ); actions->consolidate->setToolTip(i18n("Create a region of summary data from a group of similar regions.")); - actions->goalSeek = new KAction( i18n("&Goal Seek..."), + actions->goalSeek = new TDEAction( i18n("&Goal Seek..."), 0, TQT_TQOBJECT(view), TQT_SLOT( goalSeek() ), ac, "goalSeek" ); actions->goalSeek->setToolTip( i18n("Repeating calculation to find a specific value.") ); - actions->subTotals = new KAction( i18n("&Subtotals..."), + actions->subTotals = new TDEAction( i18n("&Subtotals..."), 0, TQT_TQOBJECT(view), TQT_SLOT( subtotals() ), ac, "subtotals" ); actions->subTotals->setToolTip( i18n("Create different kind of subtotals to a list or database.") ); - actions->textToColumns = new KAction( i18n("&Text to Columns..."), + actions->textToColumns = new TDEAction( i18n("&Text to Columns..."), 0, TQT_TQOBJECT(view), TQT_SLOT( textToColumns() ), ac, "textToColumns" ); actions->textToColumns->setToolTip( i18n("Expand the content of cells to multiple columns.") ); - actions->multipleOperations = new KAction( i18n("&Multiple Operations..."), + actions->multipleOperations = new TDEAction( i18n("&Multiple Operations..."), 0, TQT_TQOBJECT(view), TQT_SLOT( multipleOperations() ), ac, "multipleOperations" ); actions->multipleOperations->setToolTip( i18n("Apply the same formula to various cells using different values for the parameter.") ); - actions->createTemplate = new KAction( i18n( "&Create Template From Document..." ), + actions->createTemplate = new TDEAction( i18n( "&Create Template From Document..." ), 0, TQT_TQOBJECT(view), TQT_SLOT( createTemplate() ), ac, "createTemplate" ); - actions->customList = new KAction( i18n("Custom Lists..."), + actions->customList = new TDEAction( i18n("Custom Lists..."), 0, TQT_TQOBJECT(view), TQT_SLOT( sortList() ), ac, "sortlist" ); actions->customList->setToolTip(i18n("Create custom lists for sorting or autofill.")); // -- navigation actions -- - actions->gotoCell = new KAction( i18n("Goto Cell..."),"goto", + actions->gotoCell = new TDEAction( i18n("Goto Cell..."),"goto", 0, TQT_TQOBJECT(view), TQT_SLOT( gotoCell() ), ac, "gotoCell" ); actions->gotoCell->setToolTip(i18n("Move to a particular cell.")); - actions->nextSheet = new KAction( i18n("Next Sheet"), "forward", + actions->nextSheet = new TDEAction( i18n("Next Sheet"), "forward", TQt::CTRL+TQt::Key_PageDown, TQT_TQOBJECT(view), TQT_SLOT( nextSheet() ), ac, "nextSheet"); actions->nextSheet->setToolTip(i18n("Move to the next sheet.")); - actions->prevSheet = new KAction( i18n("Previous Sheet"), "back", + actions->prevSheet = new TDEAction( i18n("Previous Sheet"), "back", TQt::CTRL+TQt::Key_PageUp, TQT_TQOBJECT(view), TQT_SLOT( previousSheet() ), ac, "previousSheet"); actions->prevSheet->setToolTip(i18n("Move to the previous sheet.")); - actions->firstSheet = new KAction( i18n("First Sheet"), "start", + actions->firstSheet = new TDEAction( i18n("First Sheet"), "start", 0, TQT_TQOBJECT(view), TQT_SLOT( firstSheet() ), ac, "firstSheet"); actions->firstSheet->setToolTip(i18n("Move to the first sheet.")); - actions->lastSheet = new KAction( i18n("Last Sheet"), "finish", + actions->lastSheet = new TDEAction( i18n("Last Sheet"), "finish", 0, TQT_TQOBJECT(view), TQT_SLOT( lastSheet() ), ac, "lastSheet"); actions->lastSheet->setToolTip(i18n("Move to the last sheet.")); // -- settings actions -- - actions->showStatusBar = new KToggleAction( i18n("Show Status Bar"), + actions->showStatusBar = new TDEToggleAction( i18n("Show Status Bar"), 0, ac, "showStatusBar" ); actions->showStatusBar->setCheckedState(i18n("Hide Status Bar")); TQT_BASE_OBJECT_NAME::connect( actions->showStatusBar, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( showStatusBar( bool ) ) ); actions->showStatusBar->setToolTip(i18n("Show the status bar.")); - actions->showTabBar = new KToggleAction( i18n("Show Tab Bar"), + actions->showTabBar = new TDEToggleAction( i18n("Show Tab Bar"), 0, ac, "showTabBar" ); actions->showTabBar->setCheckedState(i18n("Hide Tab Bar")); TQT_BASE_OBJECT_NAME::connect( actions->showTabBar, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( showTabBar( bool ) ) ); actions->showTabBar->setToolTip(i18n("Show the tab bar.")); - actions->showFormulaBar = new KToggleAction( i18n("Show Formula Bar"), + actions->showFormulaBar = new TDEToggleAction( i18n("Show Formula Bar"), 0, ac, "showFormulaBar" ); actions->showFormulaBar->setCheckedState(i18n("Hide Formula Bar")); TQT_BASE_OBJECT_NAME::connect( actions->showFormulaBar, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( showFormulaBar( bool ) ) ); actions->showFormulaBar->setToolTip(i18n("Show the formula bar.")); - actions->preference = new KAction( i18n("Configure KSpread..."),"configure", + actions->preference = new TDEAction( i18n("Configure KSpread..."),"configure", 0, TQT_TQOBJECT(view), TQT_SLOT( preference() ), ac, "preference" ); actions->preference->setToolTip(i18n("Set various KSpread options.")); // -- running calculation actions -- - actions->calcNone = new KToggleAction( i18n("None"), 0, ac, "menu_none"); + actions->calcNone = new TDEToggleAction( i18n("None"), 0, ac, "menu_none"); TQT_BASE_OBJECT_NAME::connect( actions->calcNone, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( menuCalc( bool ) ) ); actions->calcNone->setExclusiveGroup( "Calc" ); actions->calcNone->setToolTip(i18n("No calculation")); - actions->calcSum = new KToggleAction( i18n("Sum"), 0, ac, "menu_sum"); + actions->calcSum = new TDEToggleAction( i18n("Sum"), 0, ac, "menu_sum"); TQT_BASE_OBJECT_NAME::connect( actions->calcSum, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( menuCalc( bool ) ) ); actions->calcSum->setExclusiveGroup( "Calc" ); actions->calcSum->setToolTip(i18n("Calculate using sum.")); - actions->calcMin = new KToggleAction( i18n("Min"), 0, ac, "menu_min"); + actions->calcMin = new TDEToggleAction( i18n("Min"), 0, ac, "menu_min"); TQT_BASE_OBJECT_NAME::connect( actions->calcMin, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( menuCalc( bool ) ) ); actions->calcMin->setExclusiveGroup( "Calc" ); actions->calcMin->setToolTip(i18n("Calculate using minimum.")); - actions->calcMax = new KToggleAction( i18n("Max"), 0, ac, "menu_max"); + actions->calcMax = new TDEToggleAction( i18n("Max"), 0, ac, "menu_max"); TQT_BASE_OBJECT_NAME::connect( actions->calcMax, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( menuCalc( bool ) ) ); actions->calcMax->setExclusiveGroup( "Calc" ); actions->calcMax->setToolTip(i18n("Calculate using maximum.")); - actions->calcAverage = new KToggleAction( i18n("Average"), 0, ac, "menu_average"); + actions->calcAverage = new TDEToggleAction( i18n("Average"), 0, ac, "menu_average"); TQT_BASE_OBJECT_NAME::connect( actions->calcAverage, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( menuCalc( bool ) ) ); actions->calcAverage->setExclusiveGroup( "Calc" ); actions->calcAverage->setToolTip(i18n("Calculate using average.")); - actions->calcCount = new KToggleAction( i18n("Count"), 0, ac, "menu_count"); + actions->calcCount = new TDEToggleAction( i18n("Count"), 0, ac, "menu_count"); TQT_BASE_OBJECT_NAME::connect( actions->calcCount, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( menuCalc( bool ) ) ); actions->calcCount->setExclusiveGroup( "Calc" ); actions->calcCount->setToolTip(i18n("Calculate using the count.")); - actions->calcCountA = new KToggleAction( i18n("CountA"), 0, ac, "menu_counta"); + actions->calcCountA = new TDEToggleAction( i18n("CountA"), 0, ac, "menu_counta"); TQT_BASE_OBJECT_NAME::connect( actions->calcCountA, TQT_SIGNAL( toggled( bool ) ), TQT_TQOBJECT(view), TQT_SLOT( menuCalc( bool ) ) ); actions->calcCountA->setExclusiveGroup( "Calc" ); @@ -1142,9 +1142,9 @@ void View::Private::initActions() // -- special action, only for developers -- - actions->internalTests = new KAction( i18n("Run Internal Tests..."), "internalTests", + actions->internalTests = new TDEAction( i18n("Run Internal Tests..."), "internalTests", TQt::CTRL+ TQt::SHIFT + TQt::Key_T, TQT_TQOBJECT(view), TQT_SLOT( runInternalTests() ), ac, "internalTests" ); - actions->inspector = new KAction( i18n("Run Inspector..."), "inspector", + actions->inspector = new TDEAction( i18n("Run Inspector..."), "inspector", TQt::CTRL+ TQt::SHIFT + TQt::Key_I, TQT_TQOBJECT(view), TQT_SLOT( runInspector() ), ac, "inspector" ); m_propertyEditor = 0; @@ -1345,7 +1345,7 @@ void View::Private::updateButton( Cell *cell, int column, int row) // certain TQt and Fontconfig combination fail miserably if can not // find the font name (e.g. not installed in the system) TQStringList fontList; - KFontChooser::getFontList( fontList, 0 ); + TDEFontChooser::getFontList( fontList, 0 ); TQString fontFamily = cell->format()->textFontFamily( column,row ); for ( TQStringList::Iterator it = fontList.begin(); it != fontList.end(); ++it ) if ((*it).lower() == fontFamily.lower()) @@ -2818,9 +2818,9 @@ void View::updateReadWrite( bool readwrite ) // d->okButton->setEnabled( readwrite ); d->editWidget->setEnabled( readwrite ); - TQValueList actions = actionCollection()->actions(); - TQValueList::ConstIterator aIt = actions.begin(); - TQValueList::ConstIterator aEnd = actions.end(); + TQValueList actions = actionCollection()->actions(); + TQValueList::ConstIterator aIt = actions.begin(); + TQValueList::ConstIterator aEnd = actions.end(); for (; aIt != aEnd; ++aIt ) (*aIt)->setEnabled( readwrite ); @@ -3060,13 +3060,13 @@ void View::helpUsing() void View::enableUndo( bool _b ) { - KAction* action = actionCollection()->action( "office_undo" ); + TDEAction* action = actionCollection()->action( "office_undo" ); if( action ) action->setEnabled( _b ); } void View::enableRedo( bool _b ) { - KAction* action = actionCollection()->action( "office_redo" ); + TDEAction* action = actionCollection()->action( "office_redo" ); if( action ) action->setEnabled( _b ); } diff --git a/kspread/plugins/calculator/main.cpp b/kspread/plugins/calculator/main.cpp index 5bab1541..31e8ea78 100644 --- a/kspread/plugins/calculator/main.cpp +++ b/kspread/plugins/calculator/main.cpp @@ -86,7 +86,7 @@ Calculator::Calculator( View* parent, const char* name ) TDEGlobal::locale()->insertCatalogue("kspreadcalc_calc"); parent->installEventFilter( this ); - (void)new KAction( i18n("Calculator"), SmallIcon("kcalc", CalcFactory::global()), + (void)new TDEAction( i18n("Calculator"), SmallIcon("kcalc", CalcFactory::global()), 0, this, TQT_SLOT( showCalculator() ), actionCollection(), "kspreadcalc"); } diff --git a/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cc b/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cc index 9ad856f9..f2ea90a2 100644 --- a/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cc +++ b/kspread/plugins/insertcalendar/kspread_plugininsertcalendar.cc @@ -73,7 +73,7 @@ PluginInsertCalendar::PluginInsertCalendar( TQObject *parent, const char *name, this->m_dialog = NULL; - (void)new KAction( i18n("Insert Calendar..."), KShortcut::null(), + (void)new TDEAction( i18n("Insert Calendar..."), TDEShortcut::null(), this, TQT_SLOT( slotShowDialog() ), actionCollection(), "kspreadinsertcalendar"); } diff --git a/kspread/plugins/scripting/scripting.cc b/kspread/plugins/scripting/scripting.cc index a919b31d..040bd98d 100644 --- a/kspread/plugins/scripting/scripting.cc +++ b/kspread/plugins/scripting/scripting.cc @@ -58,10 +58,10 @@ Scripting::Scripting(TQObject *parent, const char *name, const TQStringList &) setXMLFile(locate("data","kspread/kpartplugins/scripting.rc"), true); - new KAction(i18n("Execute Script File..."), 0, 0, m_scriptguiclient, TQT_SLOT(executeScriptFile()), actionCollection(), "executescriptfile"); - new KAction(i18n("Script Manager..."), 0, 0, m_scriptguiclient, TQT_SLOT(showScriptManager()), actionCollection(), "configurescripts"); + 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"); - KAction* scriptmenuaction = m_scriptguiclient->action("installedscripts"); + 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*))); -- cgit v1.2.1