diff options
Diffstat (limited to 'kspread/kspread_view.cpp')
-rw-r--r-- | kspread/kspread_view.cpp | 574 |
1 files changed, 287 insertions, 287 deletions
diff --git a/kspread/kspread_view.cpp b/kspread/kspread_view.cpp index 91f5edce..f74dc420 100644 --- a/kspread/kspread_view.cpp +++ b/kspread/kspread_view.cpp @@ -468,534 +468,534 @@ void View::Private::initActions() // -- cell formatting actions -- actions->cellLayout = new TDEAction( i18n("Cell Format..."), "cell_layout", - TQt::CTRL+ TQt::ALT+ TQt::Key_F, view, TQT_SLOT( layoutDlg() ), ac, "cellLayout" ); + TQt::CTRL+ TQt::ALT+ TQt::Key_F, view, TQ_SLOT( layoutDlg() ), ac, "cellLayout" ); actions->cellLayout->setToolTip( i18n("Set the cell formatting.") ); actions->actionExtraProperties = new TDEAction( i18n( "&Properties" ), "penbrush", 0, - view, TQT_SLOT( extraProperties() ), ac, "extra_properties" ); + view, TQ_SLOT( extraProperties() ), ac, "extra_properties" ); actions->defaultFormat = new TDEAction( i18n("Default"), - 0, view, TQT_SLOT( defaultSelection() ), ac, "default" ); + 0, view, TQ_SLOT( defaultSelection() ), ac, "default" ); actions->defaultFormat->setToolTip( i18n("Resets to the default format.") ); actions->bold = new TDEToggleAction( i18n("Bold"), "format-text-bold", TQt::CTRL+TQt::Key_B, ac, "bold"); - TQObject::connect( actions->bold, TQT_SIGNAL( toggled( bool) ), - view, TQT_SLOT( bold( bool ) ) ); + TQObject::connect( actions->bold, TQ_SIGNAL( toggled( bool) ), + view, TQ_SLOT( bold( bool ) ) ); actions->italic = new TDEToggleAction( i18n("Italic"), "format-text-italic", TQt::CTRL+TQt::Key_I, ac, "italic"); - TQObject::connect( actions->italic, TQT_SIGNAL( toggled( bool) ), - view, TQT_SLOT( italic( bool ) ) ); + TQObject::connect( actions->italic, TQ_SIGNAL( toggled( bool) ), + view, TQ_SLOT( italic( bool ) ) ); actions->underline = new TDEToggleAction( i18n("Underline"), "format-text-underline", TQt::CTRL+TQt::Key_U, ac, "underline"); - TQObject::connect( actions->underline, TQT_SIGNAL( toggled( bool) ), - view, TQT_SLOT( underline( bool ) ) ); + TQObject::connect( actions->underline, TQ_SIGNAL( toggled( bool) ), + view, TQ_SLOT( underline( bool ) ) ); actions->strikeOut = new TDEToggleAction( i18n("Strike Out"), "format-text-strikethrough", 0, ac, "strikeout"); - TQObject::connect( actions->strikeOut, TQT_SIGNAL( toggled( bool) ), - view, TQT_SLOT( strikeOut( bool ) ) ); + TQObject::connect( actions->strikeOut, TQ_SIGNAL( toggled( bool) ), + view, TQ_SLOT( strikeOut( bool ) ) ); actions->selectFont = new TDEFontAction( i18n("Select Font..."), 0, ac, "selectFont" ); - TQObject::connect( actions->selectFont, TQT_SIGNAL( activated( const TQString& ) ), - view, TQT_SLOT( fontSelected( const TQString& ) ) ); + TQObject::connect( actions->selectFont, TQ_SIGNAL( activated( const TQString& ) ), + view, TQ_SLOT( fontSelected( const TQString& ) ) ); actions->selectFontSize = new TDEFontSizeAction( i18n("Select Font Size"), 0, ac, "selectFontSize" ); - TQObject::connect( actions->selectFontSize, TQT_SIGNAL( fontSizeChanged( int ) ), - view, TQT_SLOT( fontSizeSelected( int ) ) ); + TQObject::connect( actions->selectFontSize, TQ_SIGNAL( fontSizeChanged( int ) ), + view, TQ_SLOT( fontSizeSelected( int ) ) ); actions->fontSizeUp = new TDEAction( i18n("Increase Font Size"), "fontsizeup", - 0, view, TQT_SLOT( increaseFontSize() ), ac, "increaseFontSize" ); + 0, view, TQ_SLOT( increaseFontSize() ), ac, "increaseFontSize" ); actions->fontSizeDown = new TDEAction( i18n("Decrease Font Size"), "fontsizedown", - 0, view, TQT_SLOT( decreaseFontSize() ), ac, "decreaseFontSize" ); + 0, view, TQ_SLOT( decreaseFontSize() ), ac, "decreaseFontSize" ); actions->textColor = new TTDESelectColorAction( i18n("Text Color"), - TTDESelectColorAction::TextColor, view, TQT_SLOT( changeTextColor() ), + TTDESelectColorAction::TextColor, view, TQ_SLOT( changeTextColor() ), ac, "textColor",true ); actions->textColor->setDefaultColor(TQColor()); actions->alignLeft = new TDEToggleAction( i18n("Align Left"), "format-text-direction-ltr", 0, ac, "left"); - TQObject::connect( actions->alignLeft, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( alignLeft( bool ) ) ); + TQObject::connect( actions->alignLeft, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( alignLeft( bool ) ) ); actions->alignLeft->setExclusiveGroup( "Align" ); actions->alignLeft->setToolTip(i18n("Left justify the cell contents.")); actions->alignCenter = new TDEToggleAction( i18n("Align Center"), "text_center", 0, ac, "center"); - TQObject::connect( actions->alignCenter, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( alignCenter( bool ) ) ); + TQObject::connect( actions->alignCenter, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( alignCenter( bool ) ) ); actions->alignCenter->setExclusiveGroup( "Align" ); actions->alignCenter->setToolTip(i18n("Center the cell contents.")); actions->alignRight = new TDEToggleAction( i18n("Align Right"), "format-text-direction-rtl", 0, ac, "right"); - TQObject::connect( actions->alignRight, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( alignRight( bool ) ) ); + TQObject::connect( actions->alignRight, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( alignRight( bool ) ) ); actions->alignRight->setExclusiveGroup( "Align" ); actions->alignRight->setToolTip(i18n("Right justify the cell contents.")); actions->alignTop = new TDEToggleAction( i18n("Align Top"), "text_top", 0, ac, "top"); - TQObject::connect( actions->alignTop, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( alignTop( bool ) ) ); + TQObject::connect( actions->alignTop, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( alignTop( bool ) ) ); actions->alignTop->setExclusiveGroup( "Pos" ); actions->alignTop->setToolTip(i18n("Align cell contents along the top of the cell.")); actions->alignMiddle = new TDEToggleAction( i18n("Align Middle"), "middle", 0, ac, "middle"); - TQObject::connect( actions->alignMiddle, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( alignMiddle( bool ) ) ); + TQObject::connect( actions->alignMiddle, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( alignMiddle( bool ) ) ); actions->alignMiddle->setExclusiveGroup( "Pos" ); actions->alignMiddle->setToolTip(i18n("Align cell contents centered in the cell.")); actions->alignBottom = new TDEToggleAction( i18n("Align Bottom"), "text_bottom", 0, ac, "bottom"); - TQObject::connect( actions->alignBottom, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( alignBottom( bool ) ) ); + TQObject::connect( actions->alignBottom, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( alignBottom( bool ) ) ); actions->alignBottom->setExclusiveGroup( "Pos" ); actions->alignBottom->setToolTip(i18n("Align cell contents along the bottom of the cell.")); actions->wrapText = new TDEToggleAction( i18n("Wrap Text"), "multirow", 0, ac, "multiRow" ); - TQObject::connect( actions->wrapText, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( wrapText( bool ) ) ); + TQObject::connect( actions->wrapText, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( wrapText( bool ) ) ); actions->wrapText->setToolTip(i18n("Make the cell text wrap onto multiple lines.")); actions->verticalText = new TDEToggleAction( i18n("Vertical Text"),"vertical_text" , 0 ,ac, "verticaltext" ); - TQObject::connect( actions->verticalText, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( verticalText( bool ) ) ); + TQObject::connect( actions->verticalText, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( verticalText( bool ) ) ); actions->verticalText->setToolTip(i18n("Print cell contents vertically.")); actions->increaseIndent = new TDEAction( i18n("Increase Indent"), TQApplication::reverseLayout() ? "format_decreaseindent":"format_increaseindent", - 0, view, TQT_SLOT( increaseIndent() ), ac, "increaseindent" ); + 0, view, TQ_SLOT( increaseIndent() ), ac, "increaseindent" ); actions->increaseIndent->setToolTip(i18n("Increase the indentation.")); actions->decreaseIndent = new TDEAction( i18n("Decrease Indent"), TQApplication::reverseLayout() ? "format_increaseindent" : "format_decreaseindent", - 0, view, TQT_SLOT( decreaseIndent() ), ac, "decreaseindent"); + 0, view, TQ_SLOT( decreaseIndent() ), ac, "decreaseindent"); actions->decreaseIndent->setToolTip(i18n("Decrease the indentation.")); actions->changeAngle = new TDEAction( i18n("Change Angle..."), - 0, view, TQT_SLOT( changeAngle() ), ac, "changeangle" ); + 0, view, TQ_SLOT( changeAngle() ), ac, "changeangle" ); actions->changeAngle->setToolTip(i18n("Change the angle that cell contents are printed.")); actions->percent = new TDEToggleAction( i18n("Percent Format"), "percent", 0, ac, "percent"); - TQObject::connect( actions->percent, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( percent( bool ) ) ); + TQObject::connect( actions->percent, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( percent( bool ) ) ); actions->percent->setToolTip(i18n("Set the cell formatting to look like a percentage.")); actions->precplus = new TDEAction( i18n("Increase Precision"), "prec_plus", - 0, view, TQT_SLOT( precisionPlus() ), ac, "precplus"); + 0, view, TQ_SLOT( precisionPlus() ), ac, "precplus"); actions->precplus->setToolTip(i18n("Increase the decimal precision shown onscreen.")); actions->precminus = new TDEAction( i18n("Decrease Precision"), "prec_minus", - 0, view, TQT_SLOT( precisionMinus() ), ac, "precminus"); + 0, view, TQ_SLOT( precisionMinus() ), ac, "precminus"); actions->precminus->setToolTip(i18n("Decrease the decimal precision shown onscreen.")); actions->money = new TDEToggleAction( i18n("Money Format"), "money", 0, ac, "money"); - TQObject::connect( actions->money, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( moneyFormat( bool ) ) ); + TQObject::connect( actions->money, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( moneyFormat( bool ) ) ); actions->money->setToolTip(i18n("Set the cell formatting to look like your local currency.")); actions->upper = new TDEAction( i18n("Upper Case"), "fontsizeup", - 0, view, TQT_SLOT( upper() ), ac, "upper" ); + 0, view, TQ_SLOT( upper() ), ac, "upper" ); actions->upper->setToolTip(i18n("Convert all letters to upper case.")); actions->lower = new TDEAction( i18n("Lower Case"), "fontsizedown", - 0, view, TQT_SLOT( lower() ), ac, "lower" ); + 0, view, TQ_SLOT( lower() ), ac, "lower" ); actions->lower->setToolTip(i18n("Convert all letters to lower case.")); actions->firstLetterUpper = new TDEAction( i18n("Convert First Letter to Upper Case"), "first_letter_upper", - 0, view, TQT_SLOT( firstLetterUpper() ),ac, "firstletterupper" ); + 0, view, TQ_SLOT( firstLetterUpper() ),ac, "firstletterupper" ); actions->firstLetterUpper->setToolTip(i18n("Capitalize the first letter.")); actions->bgColor = new TTDESelectColorAction( i18n("Background Color"), TTDESelectColorAction::FillColor, ac, "backgroundColor", true ); - TQObject::connect(actions->bgColor, TQT_SIGNAL( activated() ), - view, TQT_SLOT( changeBackgroundColor() ) ); + TQObject::connect(actions->bgColor, TQ_SIGNAL( activated() ), + view, TQ_SLOT( changeBackgroundColor() ) ); actions->bgColor->setDefaultColor(TQColor()); actions->bgColor->setToolTip(i18n("Set the background color.")); actions->borderLeft = new TDEAction( i18n("Border Left"), "border_left", - 0, view, TQT_SLOT( borderLeft() ), ac, "borderLeft" ); + 0, view, TQ_SLOT( borderLeft() ), ac, "borderLeft" ); actions->borderLeft->setToolTip(i18n("Set a left border to the selected area.")); actions->borderRight = new TDEAction( i18n("Border Right"), "border_right", - 0, view, TQT_SLOT( borderRight() ), ac, "borderRight" ); + 0, view, TQ_SLOT( borderRight() ), ac, "borderRight" ); actions->borderRight->setToolTip(i18n("Set a right border to the selected area.")); actions->borderTop = new TDEAction( i18n("Border Top"), "border_top", - 0, view, TQT_SLOT( borderTop() ), ac, "borderTop" ); + 0, view, TQ_SLOT( borderTop() ), ac, "borderTop" ); actions->borderTop->setToolTip(i18n("Set a top border to the selected area.")); actions->borderBottom = new TDEAction( i18n("Border Bottom"), "border_bottom", - 0, view, TQT_SLOT( borderBottom() ), ac, "borderBottom" ); + 0, view, TQ_SLOT( borderBottom() ), ac, "borderBottom" ); actions->borderBottom->setToolTip(i18n("Set a bottom border to the selected area.")); actions->borderAll = new TDEAction( i18n("All Borders"), "border_all", - 0, view, TQT_SLOT( borderAll() ), ac, "borderAll" ); + 0, view, TQ_SLOT( borderAll() ), ac, "borderAll" ); actions->borderAll->setToolTip(i18n("Set a border around all cells in the selected area.")); actions->borderRemove = new TDEAction( i18n("Remove Borders"), "border_remove", - 0, view, TQT_SLOT( borderRemove() ), ac, "borderRemove" ); + 0, view, TQ_SLOT( borderRemove() ), ac, "borderRemove" ); actions->borderRemove->setToolTip(i18n("Remove all borders in the selected area.")); actions->borderOutline = new TDEAction( i18n("Border Outline"), ("border_outline"), - 0, view, TQT_SLOT( borderOutline() ), ac, "borderOutline" ); + 0, view, TQ_SLOT( borderOutline() ), ac, "borderOutline" ); actions->borderOutline->setToolTip(i18n("Set a border to the outline of the selected area.")); actions->borderColor = new TTDESelectColorAction( i18n("Border Color"), TTDESelectColorAction::LineColor, ac, "borderColor" ); - TQObject::connect( actions->borderColor, TQT_SIGNAL( activated() ), - view, TQT_SLOT( changeBorderColor() ) ); + TQObject::connect( actions->borderColor, TQ_SIGNAL( activated() ), + view, TQ_SLOT( changeBorderColor() ) ); actions->borderColor->setToolTip( i18n( "Select a new border color." ) ); actions->selectStyle = new TDESelectAction( i18n( "St&yle" ), 0, ac, "stylemenu" ); actions->selectStyle->setToolTip( i18n( "Apply a predefined style to the selected cells." ) ); - TQObject::connect( actions->selectStyle, TQT_SIGNAL( activated( const TQString & ) ), - view, TQT_SLOT( styleSelected( const TQString & ) ) ); + TQObject::connect( actions->selectStyle, TQ_SIGNAL( activated( const TQString & ) ), + view, TQ_SLOT( styleSelected( const TQString & ) ) ); actions->createStyle = new TDEAction( i18n( "Create Style From Cell..." ), - 0, view, TQT_SLOT( createStyleFromCell()), ac, "createStyle" ); + 0, view, TQ_SLOT( createStyleFromCell()), ac, "createStyle" ); actions->createStyle->setToolTip( i18n( "Create a new style based on the currently selected cell." ) ); // -- cell operation actions -- actions->editCell = new TDEAction( i18n("Modify Cell"),"cell_edit", - TQt::CTRL+TQt::Key_M, view, TQT_SLOT( editCell() ), ac, "editCell" ); + TQt::CTRL+TQt::Key_M, view, TQ_SLOT( editCell() ), ac, "editCell" ); actions->editCell->setToolTip(i18n("Edit the highlighted cell.")); actions->insertCell = new TDEAction( i18n("Insert Cells..."), "insertcell", - 0, view, TQT_SLOT( slotInsert() ), ac, "insertCell" ); + 0, view, TQ_SLOT( slotInsert() ), ac, "insertCell" ); actions->insertCell->setToolTip(i18n("Insert a blank cell into the spreadsheet.")); actions->removeCell = new TDEAction( i18n("Remove Cells..."), "removecell", - 0, view, TQT_SLOT( slotRemove() ), ac, "removeCell" ); + 0, view, TQ_SLOT( slotRemove() ), ac, "removeCell" ); actions->removeCell->setToolTip(i18n("Removes the current cell from the spreadsheet.")); actions->deleteCell = new TDEAction( i18n("Delete"), "deletecell", - 0, view, TQT_SLOT( deleteSelection() ), ac, "delete" ); + 0, view, TQ_SLOT( deleteSelection() ), ac, "delete" ); actions->deleteCell->setToolTip(i18n("Delete all contents and formatting of the current cell.")); actions->mergeCell = new TDEToolBarPopupAction( i18n("Merge Cells"),"mergecell", - 0, view, TQT_SLOT( mergeCell() ), ac, "mergecell" ); + 0, view, TQ_SLOT( mergeCell() ), ac, "mergecell" ); actions->mergeCell->setToolTip(i18n("Merge the selected region.")); actions->mergeCell->plug( actions->mergeCell->popupMenu() ); actions->mergeCellHorizontal = new TDEAction( i18n("Merge Cells Horizontally"),"mergecell-horizontal", - 0, view, TQT_SLOT( mergeCellHorizontal() ), ac, "mergecellHorizontal" ); + 0, view, TQ_SLOT( mergeCellHorizontal() ), ac, "mergecellHorizontal" ); actions->mergeCellHorizontal->setToolTip(i18n("Merge the selected region horizontally.")); actions->mergeCellHorizontal->plug( actions->mergeCell->popupMenu() ); actions->mergeCellVertical = new TDEAction( i18n("Merge Cells Vertically"),"mergecell-vertical", - 0, view, TQT_SLOT( mergeCellVertical() ), ac, "mergecellVertical" ); + 0, view, TQ_SLOT( mergeCellVertical() ), ac, "mergecellVertical" ); actions->mergeCellVertical->setToolTip(i18n("Merge the selected region vertically.")); actions->mergeCellVertical->plug( actions->mergeCell->popupMenu() ); actions->dissociateCell = new TDEAction( i18n("Dissociate Cells"),"dissociatecell", - 0, view, TQT_SLOT( dissociateCell() ), ac, "dissociatecell" ); + 0, view, TQ_SLOT( dissociateCell() ), ac, "dissociatecell" ); actions->dissociateCell->setToolTip(i18n("Unmerge the selected region.")); actions->clearText = new TDEAction( i18n("Text"), - 0, view, TQT_SLOT( clearTextSelection() ), ac, "cleartext" ); + 0, view, TQ_SLOT( clearTextSelection() ), ac, "cleartext" ); actions->clearText->setToolTip(i18n("Remove the contents of the current cell.")); actions->conditional = new TDEAction( i18n("Conditional Cell Attributes..."), - 0, view, TQT_SLOT( conditional() ), ac, "conditional" ); + 0, view, TQ_SLOT( conditional() ), ac, "conditional" ); actions->conditional->setToolTip(i18n("Set cell format based on certain conditions.")); actions->clearConditional = new TDEAction( i18n("Conditional Cell Attributes"), - 0, view, TQT_SLOT( clearConditionalSelection() ), ac, "clearconditional" ); + 0, view, TQ_SLOT( clearConditionalSelection() ), ac, "clearconditional" ); actions->clearConditional->setToolTip(i18n("Remove the conditional cell formatting.")); actions->validity = new TDEAction( i18n("Validity..."), - 0, view, TQT_SLOT( validity() ), ac, "validity" ); + 0, view, TQ_SLOT( validity() ), ac, "validity" ); actions->validity->setToolTip(i18n("Set tests to confirm cell data is valid.")); actions->clearValidity = new TDEAction( i18n("Validity"), - 0, view, TQT_SLOT( clearValiditySelection() ), ac, "clearvalidity" ); + 0, view, TQ_SLOT( clearValiditySelection() ), ac, "clearvalidity" ); actions->clearValidity->setToolTip(i18n("Remove the validity tests on this cell.")); actions->addModifyComment = new TDEAction( i18n("&Add/Modify Comment..."),"comment", - 0, view, TQT_SLOT( addModifyComment() ), ac, "addmodifycomment" ); + 0, view, TQ_SLOT( addModifyComment() ), ac, "addmodifycomment" ); actions->addModifyComment->setToolTip(i18n("Edit a comment for this cell.")); actions->removeComment = new TDEAction( i18n("&Remove Comment"),"removecomment", - 0, view, TQT_SLOT( removeComment() ), ac, "removecomment" ); + 0, view, TQ_SLOT( removeComment() ), ac, "removecomment" ); actions->removeComment->setToolTip(i18n("Remove this cell's comment.")); actions->clearComment = new TDEAction( i18n("Comment"), - 0, view, TQT_SLOT( clearCommentSelection() ), ac, "clearcomment" ); + 0, view, TQ_SLOT( clearCommentSelection() ), ac, "clearcomment" ); actions->clearComment->setToolTip(i18n("Remove this cell's comment.")); // -- column & row actions -- actions->resizeColumn = new TDEAction( i18n("Resize Column..."), "resizecol", - 0, view, TQT_SLOT( resizeColumn() ), ac, "resizeCol" ); + 0, view, TQ_SLOT( resizeColumn() ), ac, "resizeCol" ); actions->resizeColumn->setToolTip(i18n("Change the width of a column.")); actions->insertColumn = new TDEAction( i18n("Insert Columns"), "insert_table_col", - 0, view, TQT_SLOT( insertColumn() ), ac, "insertColumn" ); + 0, view, TQ_SLOT( insertColumn() ), ac, "insertColumn" ); actions->insertColumn->setToolTip(i18n("Inserts a new column into the spreadsheet.")); actions->deleteColumn = new TDEAction( i18n("Delete Columns"), "delete_table_col", - 0, view, TQT_SLOT( deleteColumn() ), ac, "deleteColumn" ); + 0, view, TQ_SLOT( deleteColumn() ), ac, "deleteColumn" ); actions->deleteColumn->setToolTip(i18n("Removes a column from the spreadsheet.")); actions->hideColumn = new TDEAction( i18n("Hide Columns"), "hide_table_column", - 0, view, TQT_SLOT( hideColumn() ), ac, "hideColumn" ); + 0, view, TQ_SLOT( hideColumn() ), ac, "hideColumn" ); actions->hideColumn->setToolTip(i18n("Hide the column from view.")); actions->showColumn = new TDEAction( i18n("Show Columns..."), "show_table_column", - 0, view, TQT_SLOT( showColumn() ), ac, "showColumn" ); + 0, view, TQ_SLOT( showColumn() ), ac, "showColumn" ); actions->showColumn->setToolTip(i18n("Show hidden columns.")); actions->equalizeColumn = new TDEAction( i18n("Equalize Column"), "adjustcol", - 0, view, TQT_SLOT( equalizeColumn() ), ac, "equalizeCol" ); + 0, view, TQ_SLOT( equalizeColumn() ), ac, "equalizeCol" ); actions->equalizeColumn->setToolTip(i18n("Resizes selected columns to be the same size.")); actions->showSelColumns = new TDEAction( i18n("Show Columns"), "show_sheet_column", - 0, view, TQT_SLOT( showSelColumns() ), ac, "showSelColumns" ); + 0, view, TQ_SLOT( showSelColumns() ), ac, "showSelColumns" ); actions->showSelColumns->setToolTip(i18n("Show hidden columns in the selection.")); actions->showSelColumns->setEnabled(false); actions->resizeRow = new TDEAction( i18n("Resize Row..."), "resizerow", - 0, view, TQT_SLOT( resizeRow() ), ac, "resizeRow" ); + 0, view, TQ_SLOT( resizeRow() ), ac, "resizeRow" ); actions->resizeRow->setToolTip(i18n("Change the height of a row.")); actions->insertRow = new TDEAction( i18n("Insert Rows"), "insert_table_row", - 0, view, TQT_SLOT( insertRow() ), ac, "insertRow" ); + 0, view, TQ_SLOT( insertRow() ), ac, "insertRow" ); actions->insertRow->setToolTip(i18n("Inserts a new row into the spreadsheet.")); actions->deleteRow = new TDEAction( i18n("Delete Rows"), "delete_table_row", - 0, view, TQT_SLOT( deleteRow() ), ac, "deleteRow" ); + 0, view, TQ_SLOT( deleteRow() ), ac, "deleteRow" ); actions->deleteRow->setToolTip(i18n("Removes a row from the spreadsheet.")); actions->hideRow = new TDEAction( i18n("Hide Rows"), "hide_table_row", - 0, view, TQT_SLOT( hideRow() ), ac, "hideRow" ); + 0, view, TQ_SLOT( hideRow() ), ac, "hideRow" ); actions->hideRow->setToolTip(i18n("Hide a row from view.")); actions->showRow = new TDEAction( i18n("Show Rows..."), "show_table_row", - 0, view, TQT_SLOT( showRow() ), ac, "showRow" ); + 0, view, TQ_SLOT( showRow() ), ac, "showRow" ); actions->showRow->setToolTip(i18n("Show hidden rows.")); actions->equalizeRow = new TDEAction( i18n("Equalize Row"), "adjustrow", - 0, view, TQT_SLOT( equalizeRow() ), ac, "equalizeRow" ); + 0, view, TQ_SLOT( equalizeRow() ), ac, "equalizeRow" ); actions->equalizeRow->setToolTip(i18n("Resizes selected rows to be the same size.")); actions->showSelRows = new TDEAction( i18n("Show Rows"), "show_table_row", - 0, view, TQT_SLOT( showSelRows() ), ac, "showSelRows" ); + 0, view, TQ_SLOT( showSelRows() ), ac, "showSelRows" ); actions->showSelRows->setEnabled(false); actions->showSelRows->setToolTip(i18n("Show hidden rows in the selection.")); actions->adjust = new TDEAction( i18n("Adjust Row && Column"), - 0, view, TQT_SLOT( adjust() ), ac, "adjust" ); + 0, view, TQ_SLOT( adjust() ), ac, "adjust" ); actions->adjust->setToolTip(i18n("Adjusts row/column size so that the contents will fit.")); // -- sheet/workbook actions -- actions->sheetProperties = new TDEAction( i18n("Sheet Properties"), - 0, view, TQT_SLOT( sheetProperties() ), ac, "sheetProperties" ); + 0, view, TQ_SLOT( sheetProperties() ), ac, "sheetProperties" ); actions->sheetProperties->setToolTip(i18n("Modify current sheet's properties.")); actions->insertSheet = new TDEAction( i18n("Insert Sheet"),"inserttable", - 0, view, TQT_SLOT( insertSheet() ), ac, "insertSheet" ); + 0, view, TQ_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 TDEAction( i18n("&Sheet"),"inserttable", - 0, view, TQT_SLOT( insertSheet() ), ac, "menuInsertSheet" ); + 0, view, TQ_SLOT( insertSheet() ), ac, "menuInsertSheet" ); actions->menuInsertSheet->setToolTip(i18n("Insert a new sheet.")); actions->removeSheet = new TDEAction( i18n("Remove Sheet"), "delete_table", - 0, view, TQT_SLOT( removeSheet() ), ac, "removeSheet" ); + 0, view, TQ_SLOT( removeSheet() ), ac, "removeSheet" ); actions->removeSheet->setToolTip(i18n("Remove the active sheet.")); actions->renameSheet=new TDEAction( i18n("Rename Sheet..."), - 0, view, TQT_SLOT( slotRename() ), ac, "renameSheet" ); + 0, view, TQ_SLOT( slotRename() ), ac, "renameSheet" ); actions->renameSheet->setToolTip(i18n("Rename the active sheet.")); actions->showSheet = new TDEAction(i18n("Show Sheet..."), - 0, view, TQT_SLOT( showSheet()), ac, "showSheet" ); + 0, view, TQ_SLOT( showSheet()), ac, "showSheet" ); actions->showSheet->setToolTip(i18n("Show a hidden sheet.")); actions->hideSheet = new TDEAction(i18n("Hide Sheet"), - 0, view, TQT_SLOT( hideSheet() ), ac, "hideSheet" ); + 0, view, TQ_SLOT( hideSheet() ), ac, "hideSheet" ); actions->hideSheet->setToolTip(i18n("Hide the active sheet.")); actions->autoFormat = new TDEAction( i18n("AutoFormat..."), - 0, view, TQT_SLOT( sheetFormat() ), ac, "sheetFormat" ); + 0, view, TQ_SLOT( sheetFormat() ), ac, "sheetFormat" ); actions->autoFormat->setToolTip(i18n("Set the worksheet formatting.")); actions->areaName = new TDEAction( i18n("Area Name..."), - 0, view, TQT_SLOT( setAreaName() ), ac, "areaname" ); + 0, view, TQ_SLOT( setAreaName() ), ac, "areaname" ); actions->areaName->setToolTip(i18n("Set a name for a region of the spreadsheet.")); actions->showArea = new TDEAction( i18n("Show Area..."), - 0, view, TQT_SLOT( showAreaName() ), ac, "showArea" ); + 0, view, TQ_SLOT( showAreaName() ), ac, "showArea" ); actions->showArea->setToolTip(i18n("Display a named area.")); actions->insertFunction = new TDEAction( i18n("&Function..."), "funct", - 0, view, TQT_SLOT( insertMathExpr() ), ac, "insertMathExpr" ); + 0, view, TQ_SLOT( insertMathExpr() ), ac, "insertMathExpr" ); actions->insertFunction->setToolTip(i18n("Insert math expression.")); actions->insertSeries = new TDEAction( i18n("&Series..."),"series", - 0, view, TQT_SLOT( insertSeries() ), ac, "series"); + 0, view, TQ_SLOT( insertSeries() ), ac, "series"); actions->insertSeries ->setToolTip(i18n("Insert a series.")); actions->insertLink = new TDEAction( i18n("&Link..."), "insert_link", - 0, view, TQT_SLOT( insertHyperlink() ), ac, "insertHyperlink" ); + 0, view, TQ_SLOT( insertHyperlink() ), ac, "insertHyperlink" ); actions->insertLink->setToolTip(i18n("Insert an Internet hyperlink.")); actions->removeLink = new TDEAction( i18n("&Remove Link"), - 0, view, TQT_SLOT( removeHyperlink() ), ac, "removeHyperlink" ); + 0, view, TQ_SLOT( removeHyperlink() ), ac, "removeHyperlink" ); actions->removeLink->setToolTip(i18n("Remove a link.")); actions->insertSpecialChar = new TDEAction( i18n( "S&pecial Character..." ), "char", - view, TQT_SLOT( insertSpecialChar() ), ac, "insertSpecialChar" ); + view, TQ_SLOT( insertSpecialChar() ), ac, "insertSpecialChar" ); actions->insertSpecialChar->setToolTip( i18n( "Insert one or more symbols or letters not found on the keyboard." ) ); actions->insertPart = new KoPartSelectAction( i18n("&Object"), "frame_query", - view, TQT_SLOT( insertObject() ), ac, "insertPart"); + view, TQ_SLOT( insertObject() ), ac, "insertPart"); actions->insertPart->setToolTip(i18n("Insert an object from another program.")); actions->insertChartFrame = new TDEToggleAction( i18n("&Chart"), "insert_chart", - 0, view, TQT_SLOT( insertChart() ), ac, "insertChart" ); + 0, view, TQ_SLOT( insertChart() ), ac, "insertChart" ); actions->insertChartFrame->setToolTip(i18n("Insert a chart.")); actions->insertPicture = new TDEAction( i18n("&Picture"), - 0, view, TQT_SLOT( insertPicture() ), ac, "insertPicture" ); + 0, view, TQ_SLOT( insertPicture() ), ac, "insertPicture" ); actions->insertPicture->setToolTip(i18n("Insert a picture.")); #ifndef TQT_NO_SQL actions->insertFromDatabase = new TDEAction( i18n("From &Database..."), - 0, view, TQT_SLOT( insertFromDatabase() ), ac, "insertFromDatabase"); + 0, view, TQ_SLOT( insertFromDatabase() ), ac, "insertFromDatabase"); actions->insertFromDatabase->setToolTip(i18n("Insert data from a SQL database.")); #endif actions->insertFromTextfile = new TDEAction( i18n("From &Text File..."), - 0, view, TQT_SLOT( insertFromTextfile() ), ac, "insertFromTextfile"); + 0, view, TQ_SLOT( insertFromTextfile() ), ac, "insertFromTextfile"); actions->insertFromTextfile->setToolTip(i18n("Insert data from a text file to the current cursor position/selection.")); actions->insertFromClipboard = new TDEAction( i18n("From &Clipboard..."), - 0, view, TQT_SLOT( insertFromClipboard() ), ac, "insertFromClipboard"); + 0, view, TQ_SLOT( insertFromClipboard() ), ac, "insertFromClipboard"); actions->insertFromClipboard->setToolTip(i18n("Insert CSV data from the clipboard to the current cursor position/selection.")); // actions->transform = new TDEAction( i18n("Transform Object..."), "rotate", -// 0, view, TQT_SLOT( transformPart() ), ac, "transform" ); +// 0, view, TQ_SLOT( transformPart() ), ac, "transform" ); // actions->transform->setToolTip(i18n("Rotate the contents of the cell.")); // actions->transform->setEnabled( false ); actions->sort = new TDEAction( i18n("&Sort..."), - 0, view, TQT_SLOT( sort() ), ac, "sort" ); + 0, view, TQ_SLOT( sort() ), ac, "sort" ); actions->sort->setToolTip(i18n("Sort a group of cells.")); actions->sortDec = new TDEAction( i18n("Sort &Decreasing"), "sort_decrease", - 0, view, TQT_SLOT( sortDec() ), ac, "sortDec" ); + 0, view, TQ_SLOT( sortDec() ), ac, "sortDec" ); actions->sortDec->setToolTip(i18n("Sort a group of cells in decreasing (last to first) order.")); actions->sortInc = new TDEAction( i18n("Sort &Increasing"), "sort_incr", - 0, view, TQT_SLOT( sortInc() ), ac, "sortInc" ); + 0, view, TQ_SLOT( sortInc() ), ac, "sortInc" ); actions->sortInc->setToolTip(i18n("Sort a group of cells in ascending (first to last) order.")); actions->paperLayout = new TDEAction( i18n("Page Layout..."), - 0, view, TQT_SLOT( paperLayoutDlg() ), ac, "paperLayout" ); + 0, view, TQ_SLOT( paperLayoutDlg() ), ac, "paperLayout" ); actions->paperLayout->setToolTip(i18n("Specify the layout of the spreadsheet for a printout.")); actions->definePrintRange = new TDEAction( i18n("Define Print Range"), - 0, view, TQT_SLOT( definePrintRange() ), ac, "definePrintRange" ); + 0, view, TQ_SLOT( definePrintRange() ), ac, "definePrintRange" ); actions->definePrintRange->setToolTip(i18n("Define the print range in the current sheet.")); actions->resetPrintRange = new TDEAction( i18n("Reset Print Range"), - 0, view, TQT_SLOT( resetPrintRange() ), ac, "resetPrintRange" ); + 0, view, TQ_SLOT( resetPrintRange() ), ac, "resetPrintRange" ); actions->definePrintRange->setToolTip(i18n("Define the print range in the current sheet.")); actions->showPageBorders = new TDEToggleAction( i18n("Show Page Borders"), 0, ac, "showPageBorders"); actions->showPageBorders->setCheckedState(i18n("Hide Page Borders")); - TQObject::connect( actions->showPageBorders, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( togglePageBorders( bool ) ) ); + TQObject::connect( actions->showPageBorders, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( togglePageBorders( bool ) ) ); actions->showPageBorders->setToolTip( i18n( "Show on the spreadsheet where the page borders will be." ) ); actions->recalcWorksheet = new TDEAction( i18n("Recalculate Sheet"), - TQt::SHIFT + TQt::Key_F9, view, TQT_SLOT( recalcWorkSheet() ), ac, "RecalcWorkSheet" ); + TQt::SHIFT + TQt::Key_F9, view, TQ_SLOT( recalcWorkSheet() ), ac, "RecalcWorkSheet" ); actions->recalcWorksheet->setToolTip(i18n("Recalculate the value of every cell in the current worksheet.")); actions->recalcWorkbook = new TDEAction( i18n("Recalculate Document"), - TQt::Key_F9, view, TQT_SLOT( recalcWorkBook() ), ac, "RecalcWorkBook" ); + TQt::Key_F9, view, TQ_SLOT( recalcWorkBook() ), ac, "RecalcWorkBook" ); actions->recalcWorkbook->setToolTip(i18n("Recalculate the value of every cell in all worksheets.")); actions->protectSheet = new TDEToggleAction( i18n( "Protect &Sheet..." ), 0, ac, "protectSheet" ); actions->protectSheet->setToolTip( i18n( "Protect the sheet from being modified." ) ); - TQObject::connect( actions->protectSheet, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( toggleProtectSheet( bool ) ) ); + TQObject::connect( actions->protectSheet, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( toggleProtectSheet( bool ) ) ); actions->protectDoc = new TDEToggleAction( i18n( "Protect &Document..." ), 0, ac, "protectDoc" ); actions->protectDoc->setToolTip( i18n( "Protect the document from being modified." ) ); - TQObject::connect( actions->protectDoc, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( toggleProtectDoc( bool ) ) ); + TQObject::connect( actions->protectDoc, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( toggleProtectDoc( bool ) ) ); // -- editing actions -- - actions->copy = KStdAction::copy( view, TQT_SLOT( copySelection() ), ac, "copy" ); + actions->copy = KStdAction::copy( view, TQ_SLOT( copySelection() ), ac, "copy" ); actions->copy->setToolTip(i18n("Copy the cell object to the clipboard.")); - actions->paste = KStdAction::paste( view, TQT_SLOT( paste() ), ac, "paste" ); + actions->paste = KStdAction::paste( view, TQ_SLOT( paste() ), ac, "paste" ); actions->paste->setToolTip(i18n("Paste the contents of the clipboard at the cursor.")); - actions->cut = KStdAction::cut( view, TQT_SLOT( cutSelection() ), ac, "cut" ); + actions->cut = KStdAction::cut( view, TQ_SLOT( cutSelection() ), ac, "cut" ); actions->cut->setToolTip(i18n("Move the cell object to the clipboard.")); actions->specialPaste = new TDEAction( i18n("Special Paste..."), "special_paste", - 0, view, TQT_SLOT( specialPaste() ), ac, "specialPaste" ); + 0, view, TQ_SLOT( specialPaste() ), ac, "specialPaste" ); actions->specialPaste->setToolTip(i18n("Paste the contents of the clipboard with special options.")); actions->insertCellCopy = new TDEAction( i18n("Paste with Insertion"), "insertcellcopy", - 0, view, TQT_SLOT( slotInsertCellCopy() ), ac, "insertCellCopy" ); + 0, view, TQ_SLOT( slotInsertCellCopy() ), ac, "insertCellCopy" ); actions->insertCellCopy->setToolTip(i18n("Inserts a cell from the clipboard into the spreadsheet.")); - actions->find = KStdAction::find( view, TQT_SLOT(find()), ac ); - /*actions->findNext =*/ KStdAction::findNext( view, TQT_SLOT( findNext() ), ac ); - /*actions->findPrevious =*/ KStdAction::findPrev( view, TQT_SLOT( findPrevious() ), ac ); + actions->find = KStdAction::find( view, TQ_SLOT(find()), ac ); + /*actions->findNext =*/ KStdAction::findNext( view, TQ_SLOT( findNext() ), ac ); + /*actions->findPrevious =*/ KStdAction::findPrev( view, TQ_SLOT( findPrevious() ), ac ); - actions->replace = KStdAction::replace( view, TQT_SLOT(replace()), ac ); + actions->replace = KStdAction::replace( view, TQ_SLOT(replace()), ac ); actions->fillRight = new TDEAction( i18n( "&Right" ), 0, - 0, view, TQT_SLOT( fillRight() ), ac, "fillRight" ); + 0, view, TQ_SLOT( fillRight() ), ac, "fillRight" ); actions->fillLeft = new TDEAction( i18n( "&Left" ), 0, - 0, view, TQT_SLOT( fillLeft() ), ac, "fillLeft" ); + 0, view, TQ_SLOT( fillLeft() ), ac, "fillLeft" ); actions->fillDown = new TDEAction( i18n( "&Down" ), 0, - 0, view, TQT_SLOT( fillDown() ), ac, "fillDown" ); + 0, view, TQ_SLOT( fillDown() ), ac, "fillDown" ); actions->fillUp = new TDEAction( i18n( "&Up" ), 0, - 0, view, TQT_SLOT( fillUp() ), ac, "fillUp" ); + 0, view, TQ_SLOT( fillUp() ), ac, "fillUp" ); // -- misc actions -- actions->styleDialog = new TDEAction( i18n( "Style Manager" ), - 0, view, TQT_SLOT( styleDialog() ), ac, "styles" ); + 0, view, TQ_SLOT( styleDialog() ), ac, "styles" ); actions->styleDialog->setToolTip( i18n( "Edit and organize cell styles." ) ); actions->autoSum = new TDEAction( i18n("Autosum"), "black_sum", - 0, view, TQT_SLOT( autoSum() ), ac, "autoSum" ); + 0, view, TQ_SLOT( autoSum() ), ac, "autoSum" ); actions->autoSum->setToolTip(i18n("Insert the 'sum' function")); - actions->spellChecking = KStdAction::spelling( view, TQT_SLOT( extraSpelling() ), + actions->spellChecking = KStdAction::spelling( view, TQ_SLOT( extraSpelling() ), ac, "spelling" ); actions->spellChecking->setToolTip(i18n("Check the spelling.")); @@ -1013,60 +1013,60 @@ void View::Private::initActions() ((TDESelectAction*) actions->formulaSelection)->setItems( lst ); actions->formulaSelection->setComboWidth( 80 ); actions->formulaSelection->setCurrentItem(0); - TQObject::connect( actions->formulaSelection, TQT_SIGNAL( activated( const TQString& ) ), - view, TQT_SLOT( formulaSelection( const TQString& ) ) ); + TQObject::connect( actions->formulaSelection, TQ_SIGNAL( activated( const TQString& ) ), + view, TQ_SLOT( formulaSelection( const TQString& ) ) ); actions->viewZoom = new KoZoomAction( i18n( "Zoom" ), "viewmag", 0, ac, "view_zoom" ); - TQObject::connect( actions->viewZoom, TQT_SIGNAL( zoomChanged( const TQString & ) ), - view, TQT_SLOT( viewZoom( const TQString & ) ) ); + TQObject::connect( actions->viewZoom, TQ_SIGNAL( zoomChanged( const TQString & ) ), + view, TQ_SLOT( viewZoom( const TQString & ) ) ); actions->consolidate = new TDEAction( i18n("&Consolidate..."), - 0, view, TQT_SLOT( consolidate() ), ac, "consolidate" ); + 0, view, TQ_SLOT( consolidate() ), ac, "consolidate" ); actions->consolidate->setToolTip(i18n("Create a region of summary data from a group of similar regions.")); actions->goalSeek = new TDEAction( i18n("&Goal Seek..."), - 0, view, TQT_SLOT( goalSeek() ), ac, "goalSeek" ); + 0, view, TQ_SLOT( goalSeek() ), ac, "goalSeek" ); actions->goalSeek->setToolTip( i18n("Repeating calculation to find a specific value.") ); actions->subTotals = new TDEAction( i18n("&Subtotals..."), - 0, view, TQT_SLOT( subtotals() ), ac, "subtotals" ); + 0, view, TQ_SLOT( subtotals() ), ac, "subtotals" ); actions->subTotals->setToolTip( i18n("Create different kind of subtotals to a list or database.") ); actions->textToColumns = new TDEAction( i18n("&Text to Columns..."), - 0, view, TQT_SLOT( textToColumns() ), ac, "textToColumns" ); + 0, view, TQ_SLOT( textToColumns() ), ac, "textToColumns" ); actions->textToColumns->setToolTip( i18n("Expand the content of cells to multiple columns.") ); actions->multipleOperations = new TDEAction( i18n("&Multiple Operations..."), - 0, view, TQT_SLOT( multipleOperations() ), ac, "multipleOperations" ); + 0, view, TQ_SLOT( multipleOperations() ), ac, "multipleOperations" ); actions->multipleOperations->setToolTip( i18n("Apply the same formula to various cells using different values for the parameter.") ); actions->createTemplate = new TDEAction( i18n( "&Create Template From Document..." ), - 0, view, TQT_SLOT( createTemplate() ), ac, "createTemplate" ); + 0, view, TQ_SLOT( createTemplate() ), ac, "createTemplate" ); actions->customList = new TDEAction( i18n("Custom Lists..."), - 0, view, TQT_SLOT( sortList() ), ac, "sortlist" ); + 0, view, TQ_SLOT( sortList() ), ac, "sortlist" ); actions->customList->setToolTip(i18n("Create custom lists for sorting or autofill.")); // -- navigation actions -- actions->gotoCell = new TDEAction( i18n("Goto Cell..."),"goto", - 0, view, TQT_SLOT( gotoCell() ), ac, "gotoCell" ); + 0, view, TQ_SLOT( gotoCell() ), ac, "gotoCell" ); actions->gotoCell->setToolTip(i18n("Move to a particular cell.")); actions->nextSheet = new TDEAction( i18n("Next Sheet"), "forward", - TQt::CTRL+TQt::Key_PageDown, view, TQT_SLOT( nextSheet() ), ac, "nextSheet"); + TQt::CTRL+TQt::Key_PageDown, view, TQ_SLOT( nextSheet() ), ac, "nextSheet"); actions->nextSheet->setToolTip(i18n("Move to the next sheet.")); actions->prevSheet = new TDEAction( i18n("Previous Sheet"), "back", - TQt::CTRL+TQt::Key_PageUp, view, TQT_SLOT( previousSheet() ), ac, "previousSheet"); + TQt::CTRL+TQt::Key_PageUp, view, TQ_SLOT( previousSheet() ), ac, "previousSheet"); actions->prevSheet->setToolTip(i18n("Move to the previous sheet.")); actions->firstSheet = new TDEAction( i18n("First Sheet"), "go-first", - 0, view, TQT_SLOT( firstSheet() ), ac, "firstSheet"); + 0, view, TQ_SLOT( firstSheet() ), ac, "firstSheet"); actions->firstSheet->setToolTip(i18n("Move to the first sheet.")); actions->lastSheet = new TDEAction( i18n("Last Sheet"), "go-last", - 0, view, TQT_SLOT( lastSheet() ), ac, "lastSheet"); + 0, view, TQ_SLOT( lastSheet() ), ac, "lastSheet"); actions->lastSheet->setToolTip(i18n("Move to the last sheet.")); // -- settings actions -- @@ -1074,78 +1074,78 @@ void View::Private::initActions() actions->showStatusBar = new TDEToggleAction( i18n("Show Status Bar"), 0, ac, "showStatusBar" ); actions->showStatusBar->setCheckedState(i18n("Hide Status Bar")); - TQObject::connect( actions->showStatusBar, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( showStatusBar( bool ) ) ); + TQObject::connect( actions->showStatusBar, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( showStatusBar( bool ) ) ); actions->showStatusBar->setToolTip(i18n("Show the status bar.")); actions->showTabBar = new TDEToggleAction( i18n("Show Tab Bar"), 0, ac, "showTabBar" ); actions->showTabBar->setCheckedState(i18n("Hide Tab Bar")); - TQObject::connect( actions->showTabBar, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( showTabBar( bool ) ) ); + TQObject::connect( actions->showTabBar, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( showTabBar( bool ) ) ); actions->showTabBar->setToolTip(i18n("Show the tab bar.")); actions->showFormulaBar = new TDEToggleAction( i18n("Show Formula Bar"), 0, ac, "showFormulaBar" ); actions->showFormulaBar->setCheckedState(i18n("Hide Formula Bar")); - TQObject::connect( actions->showFormulaBar, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( showFormulaBar( bool ) ) ); + TQObject::connect( actions->showFormulaBar, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( showFormulaBar( bool ) ) ); actions->showFormulaBar->setToolTip(i18n("Show the formula bar.")); actions->preference = new TDEAction( i18n("Configure KSpread..."),"configure", - 0, view, TQT_SLOT( preference() ), ac, "preference" ); + 0, view, TQ_SLOT( preference() ), ac, "preference" ); actions->preference->setToolTip(i18n("Set various KSpread options.")); // -- running calculation actions -- actions->calcNone = new TDEToggleAction( i18n("None"), 0, ac, "menu_none"); - TQObject::connect( actions->calcNone, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( menuCalc( bool ) ) ); + TQObject::connect( actions->calcNone, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( menuCalc( bool ) ) ); actions->calcNone->setExclusiveGroup( "Calc" ); actions->calcNone->setToolTip(i18n("No calculation")); actions->calcSum = new TDEToggleAction( i18n("Sum"), 0, ac, "menu_sum"); - TQObject::connect( actions->calcSum, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( menuCalc( bool ) ) ); + TQObject::connect( actions->calcSum, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( menuCalc( bool ) ) ); actions->calcSum->setExclusiveGroup( "Calc" ); actions->calcSum->setToolTip(i18n("Calculate using sum.")); actions->calcMin = new TDEToggleAction( i18n("Min"), 0, ac, "menu_min"); - TQObject::connect( actions->calcMin, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( menuCalc( bool ) ) ); + TQObject::connect( actions->calcMin, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( menuCalc( bool ) ) ); actions->calcMin->setExclusiveGroup( "Calc" ); actions->calcMin->setToolTip(i18n("Calculate using minimum.")); actions->calcMax = new TDEToggleAction( i18n("Max"), 0, ac, "menu_max"); - TQObject::connect( actions->calcMax, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( menuCalc( bool ) ) ); + TQObject::connect( actions->calcMax, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( menuCalc( bool ) ) ); actions->calcMax->setExclusiveGroup( "Calc" ); actions->calcMax->setToolTip(i18n("Calculate using maximum.")); actions->calcAverage = new TDEToggleAction( i18n("Average"), 0, ac, "menu_average"); - TQObject::connect( actions->calcAverage, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( menuCalc( bool ) ) ); + TQObject::connect( actions->calcAverage, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( menuCalc( bool ) ) ); actions->calcAverage->setExclusiveGroup( "Calc" ); actions->calcAverage->setToolTip(i18n("Calculate using average.")); actions->calcCount = new TDEToggleAction( i18n("Count"), 0, ac, "menu_count"); - TQObject::connect( actions->calcCount, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( menuCalc( bool ) ) ); + TQObject::connect( actions->calcCount, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( menuCalc( bool ) ) ); actions->calcCount->setExclusiveGroup( "Calc" ); actions->calcCount->setToolTip(i18n("Calculate using the count.")); actions->calcCountA = new TDEToggleAction( i18n("CountA"), 0, ac, "menu_counta"); - TQObject::connect( actions->calcCountA, TQT_SIGNAL( toggled( bool ) ), - view, TQT_SLOT( menuCalc( bool ) ) ); + TQObject::connect( actions->calcCountA, TQ_SIGNAL( toggled( bool ) ), + view, TQ_SLOT( menuCalc( bool ) ) ); actions->calcCountA->setExclusiveGroup( "Calc" ); actions->calcCountA->setToolTip(i18n("Calculate using the countA.")); // -- special action, only for developers -- actions->internalTests = new TDEAction( i18n("Run Internal Tests..."), "internalTests", - TQt::CTRL+ TQt::SHIFT + TQt::Key_T, view, TQT_SLOT( runInternalTests() ), ac, "internalTests" ); + TQt::CTRL+ TQt::SHIFT + TQt::Key_T, view, TQ_SLOT( runInternalTests() ), ac, "internalTests" ); actions->inspector = new TDEAction( i18n("Run Inspector..."), "inspector", - TQt::CTRL+ TQt::SHIFT + TQt::Key_I, view, TQT_SLOT( runInspector() ), ac, "inspector" ); + TQt::CTRL+ TQt::SHIFT + TQt::Key_I, view, TQ_SLOT( runInspector() ), ac, "inspector" ); m_propertyEditor = 0; } @@ -1414,15 +1414,15 @@ KPSheetSelectPage::KPSheetSelectPage( TQWidget *parent ) gui->ListViewSelected->setSorting(-1); //connect buttons - connect(gui->ButtonSelectAll,TQT_SIGNAL(clicked()),this,TQT_SLOT(selectAll())); - connect(gui->ButtonSelect,TQT_SIGNAL(clicked()),this,TQT_SLOT(select())); - connect(gui->ButtonRemove,TQT_SIGNAL(clicked()),this,TQT_SLOT(remove())); - connect(gui->ButtonRemoveAll,TQT_SIGNAL(clicked()),this,TQT_SLOT(removeAll())); + connect(gui->ButtonSelectAll,TQ_SIGNAL(clicked()),this,TQ_SLOT(selectAll())); + connect(gui->ButtonSelect,TQ_SIGNAL(clicked()),this,TQ_SLOT(select())); + connect(gui->ButtonRemove,TQ_SIGNAL(clicked()),this,TQ_SLOT(remove())); + connect(gui->ButtonRemoveAll,TQ_SIGNAL(clicked()),this,TQ_SLOT(removeAll())); - connect(gui->ButtonMoveTop,TQT_SIGNAL(clicked()),this,TQT_SLOT(moveTop())); - connect(gui->ButtonMoveUp,TQT_SIGNAL(clicked()),this,TQT_SLOT(moveUp())); - connect(gui->ButtonMoveDown,TQT_SIGNAL(clicked()),this,TQT_SLOT(moveDown())); - connect(gui->ButtonMoveBottom,TQT_SIGNAL(clicked()),this,TQT_SLOT(moveBottom())); + connect(gui->ButtonMoveTop,TQ_SIGNAL(clicked()),this,TQ_SLOT(moveTop())); + connect(gui->ButtonMoveUp,TQ_SIGNAL(clicked()),this,TQ_SLOT(moveUp())); + connect(gui->ButtonMoveDown,TQ_SIGNAL(clicked()),this,TQ_SLOT(moveDown())); + connect(gui->ButtonMoveBottom,TQ_SIGNAL(clicked()),this,TQ_SLOT(moveBottom())); } // KPSheetSelectPage::~KPSheetSelectPage() @@ -1750,9 +1750,9 @@ View::View( TQWidget *_parent, const char *_name, d->selection = new Selection( this ); d->choice = new Selection( this ); d->choice->setMultipleSelection(true); - connect(d->selection, TQT_SIGNAL(changed(const Region&)), this, TQT_SLOT(slotChangeSelection(const Region&))); - connect(d->choice, TQT_SIGNAL(changed(const Region&)), this, TQT_SLOT(slotChangeChoice(const Region&))); - connect(d->choice, TQT_SIGNAL(changed(const Region&)), this, TQT_SLOT(slotScrollChoice(const Region&))); + connect(d->selection, TQ_SIGNAL(changed(const Region&)), this, TQ_SLOT(slotChangeSelection(const Region&))); + connect(d->choice, TQ_SIGNAL(changed(const Region&)), this, TQ_SLOT(slotChangeChoice(const Region&))); + connect(d->choice, TQ_SIGNAL(changed(const Region&)), this, TQ_SLOT(slotScrollChoice(const Region&))); d->findOptions = 0; d->findLeftColumn = 0; @@ -1797,8 +1797,8 @@ View::View( TQWidget *_parent, const char *_name, // build the DCOP object dcopObject(); - connect( doc()->commandHistory(), TQT_SIGNAL( commandExecuted() ), - this, TQT_SLOT( commandExecuted() ) ); + connect( doc()->commandHistory(), TQ_SIGNAL( commandExecuted() ), + this, TQ_SLOT( commandExecuted() ) ); // GUI Initializations initView(); @@ -1808,33 +1808,33 @@ View::View( TQWidget *_parent, const char *_name, // Handler for moving and resizing embedded parts KoContainerHandler* h = new KoContainerHandler( this, d->canvas ); - connect( h, TQT_SIGNAL( popupMenu( KoChild*, const TQPoint& ) ), this, TQT_SLOT( popupChildMenu( KoChild*, const TQPoint& ) ) ); + connect( h, TQ_SIGNAL( popupMenu( KoChild*, const TQPoint& ) ), this, TQ_SLOT( popupChildMenu( KoChild*, const TQPoint& ) ) ); - connect( this, TQT_SIGNAL( childSelected( KoDocumentChild* ) ), - this, TQT_SLOT( slotChildSelected( KoDocumentChild* ) ) ); - connect( this, TQT_SIGNAL( childUnselected( KoDocumentChild* ) ), - this, TQT_SLOT( slotChildUnselected( KoDocumentChild* ) ) ); + connect( this, TQ_SIGNAL( childSelected( KoDocumentChild* ) ), + this, TQ_SLOT( slotChildSelected( KoDocumentChild* ) ) ); + connect( this, TQ_SIGNAL( childUnselected( KoDocumentChild* ) ), + this, TQ_SLOT( slotChildUnselected( KoDocumentChild* ) ) ); // If a selected part becomes active this is like it is deselected // just before. - connect( this, TQT_SIGNAL( childActivated( KoDocumentChild* ) ), - this, TQT_SLOT( slotChildUnselected( KoDocumentChild* ) ) ); + connect( this, TQ_SIGNAL( childActivated( KoDocumentChild* ) ), + this, TQ_SLOT( slotChildUnselected( KoDocumentChild* ) ) ); - connect( d->canvas, TQT_SIGNAL( objectSelectedChanged() ), - this, TQT_SLOT( objectSelectedChanged() ) ); + connect( d->canvas, TQ_SIGNAL( objectSelectedChanged() ), + this, TQ_SLOT( objectSelectedChanged() ) ); - TQObject::connect( doc()->map(), TQT_SIGNAL( sig_addSheet( Sheet* ) ), TQT_SLOT( slotAddSheet( Sheet* ) ) ); + TQObject::connect( doc()->map(), TQ_SIGNAL( sig_addSheet( Sheet* ) ), TQ_SLOT( slotAddSheet( Sheet* ) ) ); - TQObject::connect( doc(), TQT_SIGNAL( sig_refreshView( ) ), this, TQT_SLOT( slotRefreshView() ) ); + TQObject::connect( doc(), TQ_SIGNAL( sig_refreshView( ) ), this, TQ_SLOT( slotRefreshView() ) ); - TQObject::connect( doc(), TQT_SIGNAL( sig_refreshLocale() ), this, TQT_SLOT( refreshLocale())); + TQObject::connect( doc(), TQ_SIGNAL( sig_refreshLocale() ), this, TQ_SLOT( refreshLocale())); - TQObject::connect( doc(), TQT_SIGNAL( sig_addAreaName( const TQString & ) ), d->posWidget, TQT_SLOT( slotAddAreaName( const TQString & ) ) ); + TQObject::connect( doc(), TQ_SIGNAL( sig_addAreaName( const TQString & ) ), d->posWidget, TQ_SLOT( slotAddAreaName( const TQString & ) ) ); - TQObject::connect( doc(), TQT_SIGNAL( sig_removeAreaName( const TQString & ) ), d->posWidget, TQT_SLOT( slotRemoveAreaName( const TQString & ) ) ); + TQObject::connect( doc(), TQ_SIGNAL( sig_removeAreaName( const TQString & ) ), d->posWidget, TQ_SLOT( slotRemoveAreaName( const TQString & ) ) ); - TQObject::connect( doc(), TQT_SIGNAL( damagesFlushed( const TQValueList<Damage*>& ) ), - this, TQT_SLOT( handleDamages( const TQValueList<Damage*>& ) ) ); + TQObject::connect( doc(), TQ_SIGNAL( damagesFlushed( const TQValueList<Damage*>& ) ), + this, TQ_SLOT( handleDamages( const TQValueList<Damage*>& ) ) ); //KoView::setZoom( doc()->zoomedResolutionY() /* KoView only supports one zoom */ ); // initial value //when kspread is embedded into konqueror apply a zoom=100 @@ -1855,9 +1855,9 @@ View::View( TQWidget *_parent, const char *_name, // This is the last operation for the "View loading" process. // The loading flag will be unset at its end. if ( !doc()->map()->sheetList().isEmpty() ) - TQTimer::singleShot(50, this, TQT_SLOT(initialPosition())); + TQTimer::singleShot(50, this, TQ_SLOT(initialPosition())); - connect (&d->statusBarOpTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(calcStatusBarOp())); + connect (&d->statusBarOpTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(calcStatusBarOp())); } View::~View() @@ -1869,7 +1869,7 @@ View::~View() delete (&*d->transformToolBox); /*if (d->calcLabel) { - disconnect(d->calcLabel,TQT_SIGNAL(pressed( int )),this,TQT_SLOT(statusBarClicked(int))); + disconnect(d->calcLabel,TQ_SIGNAL(pressed( int )),this,TQ_SLOT(statusBarClicked(int))); }*/ @@ -1946,7 +1946,7 @@ void View::initView() d->formulaButton = d->newIconButton( "funct", true, d->toolWidget ); d->formulaBarLayout->addWidget( d->formulaButton ); d->formulaBarLayout->addSpacing( 2 ); - connect( d->formulaButton, TQT_SIGNAL( clicked() ), TQT_SLOT( insertMathExpr() ) ); + connect( d->formulaButton, TQ_SIGNAL( clicked() ), TQ_SLOT( insertMathExpr() ) ); d->cancelButton = d->newIconButton( "cancel", true, d->toolWidget ); d->formulaBarLayout->addWidget( d->cancelButton ); @@ -1975,7 +1975,7 @@ void View::initView() TQWidget::setFocusPolicy( TQWidget::StrongFocus ); setFocusProxy( d->canvas ); - connect( this, TQT_SIGNAL( invalidated() ), d->canvas, TQT_SLOT( update() ) ); + connect( this, TQ_SIGNAL( invalidated() ), d->canvas, TQ_SLOT( update() ) ); TQWidget* bottomPart = new TQWidget( this ); d->tabScrollBarLayout = new TQHBoxLayout( bottomPart ); @@ -1989,13 +1989,13 @@ void View::initView() d->horzScrollBar->setLineStep(60); //just random guess based on what feels okay d->horzScrollBar->setPageStep(60); - TQObject::connect( d->tabBar, TQT_SIGNAL( tabChanged( const TQString& ) ), this, TQT_SLOT( changeSheet( const TQString& ) ) ); - TQObject::connect( d->tabBar, TQT_SIGNAL( tabMoved( unsigned, unsigned ) ), - this, TQT_SLOT( moveSheet( unsigned, unsigned ) ) ); - TQObject::connect( d->tabBar, TQT_SIGNAL( contextMenu( const TQPoint& ) ), - this, TQT_SLOT( popupTabBarMenu( const TQPoint& ) ) ); - TQObject::connect( d->tabBar, TQT_SIGNAL( doubleClicked() ), - this, TQT_SLOT( slotRename() ) ); + TQObject::connect( d->tabBar, TQ_SIGNAL( tabChanged( const TQString& ) ), this, TQ_SLOT( changeSheet( const TQString& ) ) ); + TQObject::connect( d->tabBar, TQ_SIGNAL( tabMoved( unsigned, unsigned ) ), + this, TQ_SLOT( moveSheet( unsigned, unsigned ) ) ); + TQObject::connect( d->tabBar, TQ_SIGNAL( contextMenu( const TQPoint& ) ), + this, TQ_SLOT( popupTabBarMenu( const TQPoint& ) ) ); + TQObject::connect( d->tabBar, TQ_SIGNAL( doubleClicked() ), + this, TQ_SLOT( slotRename() ) ); d->viewLayout->setColStretch( 1, 10 ); d->viewLayout->setRowStretch( 2, 10 ); @@ -2011,11 +2011,11 @@ void View::initView() d->calcLabel = sb ? new KStatusBarLabel( TQString(), 0, sb ) : 0; addStatusBarItem( d->calcLabel, 0 ); if (d->calcLabel) - connect(d->calcLabel ,TQT_SIGNAL(itemPressed( int )),this,TQT_SLOT(statusBarClicked(int))); + connect(d->calcLabel ,TQ_SIGNAL(itemPressed( int )),this,TQ_SLOT(statusBarClicked(int))); // signal slot - TQObject::connect( d->vertScrollBar, TQT_SIGNAL( valueChanged(int) ), d->canvas, TQT_SLOT( slotScrollVert(int) ) ); - TQObject::connect( d->horzScrollBar, TQT_SIGNAL( valueChanged(int) ), d->canvas, TQT_SLOT( slotScrollHorz(int) ) ); + TQObject::connect( d->vertScrollBar, TQ_SIGNAL( valueChanged(int) ), d->canvas, TQ_SLOT( slotScrollVert(int) ) ); + TQObject::connect( d->horzScrollBar, TQ_SIGNAL( valueChanged(int) ), d->canvas, TQ_SLOT( slotScrollHorz(int) ) ); } @@ -2297,32 +2297,32 @@ void View::startKSpell() } d->spell.tdespell = new KSpell( this, i18n( "Spell Checking" ), this, - TQT_SLOT( spellCheckerReady() ), + TQ_SLOT( spellCheckerReady() ), doc()->getKSpellConfig() ); d->spell.tdespell->setIgnoreUpperWords( doc()->dontCheckUpperWord() ); d->spell.tdespell->setIgnoreTitleCase( doc()->dontCheckTitleCase() ); - TQObject::connect( d->spell.tdespell, TQT_SIGNAL( death() ), - this, TQT_SLOT( spellCheckerFinished() ) ); - TQObject::connect( d->spell.tdespell, TQT_SIGNAL( misspelling( const TQString &, + TQObject::connect( d->spell.tdespell, TQ_SIGNAL( death() ), + this, TQ_SLOT( spellCheckerFinished() ) ); + TQObject::connect( d->spell.tdespell, TQ_SIGNAL( misspelling( const TQString &, const TQStringList &, unsigned int) ), - this, TQT_SLOT( spellCheckerMisspelling( const TQString &, + this, TQ_SLOT( spellCheckerMisspelling( const TQString &, const TQStringList &, unsigned int) ) ); - TQObject::connect( d->spell.tdespell, TQT_SIGNAL( corrected( const TQString &, + TQObject::connect( d->spell.tdespell, TQ_SIGNAL( corrected( const TQString &, const TQString &, unsigned int) ), - this, TQT_SLOT( spellCheckerCorrected( const TQString &, + this, TQ_SLOT( spellCheckerCorrected( const TQString &, const TQString &, unsigned int ) ) ); - TQObject::connect( d->spell.tdespell, TQT_SIGNAL( done( const TQString & ) ), - this, TQT_SLOT( spellCheckerDone( const TQString & ) ) ); - TQObject::connect( d->spell.tdespell, TQT_SIGNAL( ignoreall (const TQString & ) ), - this, TQT_SLOT( spellCheckerIgnoreAll( const TQString & ) ) ); + TQObject::connect( d->spell.tdespell, TQ_SIGNAL( done( const TQString & ) ), + this, TQ_SLOT( spellCheckerDone( const TQString & ) ) ); + TQObject::connect( d->spell.tdespell, TQ_SIGNAL( ignoreall (const TQString & ) ), + this, TQ_SLOT( spellCheckerIgnoreAll( const TQString & ) ) ); - TQObject::connect( d->spell.tdespell, TQT_SIGNAL( replaceall( const TQString & , const TQString & )), this, TQT_SLOT( spellCheckerReplaceAll( const TQString & , const TQString & ))); + TQObject::connect( d->spell.tdespell, TQ_SIGNAL( replaceall( const TQString & , const TQString & )), this, TQ_SLOT( spellCheckerReplaceAll( const TQString & , const TQString & ))); } @@ -3319,10 +3319,10 @@ void View::insertSpecialChar() if ( d->specialCharDlg == 0 ) { d->specialCharDlg = new KoCharSelectDia( this, "insert special char", f, c, false ); - connect( d->specialCharDlg, TQT_SIGNAL( insertChar( TQChar, const TQString & ) ), - this, TQT_SLOT( slotSpecialChar( TQChar, const TQString & ) ) ); - connect( d->specialCharDlg, TQT_SIGNAL( finished() ), - this, TQT_SLOT( slotSpecialCharDlgClosed() ) ); + connect( d->specialCharDlg, TQ_SIGNAL( insertChar( TQChar, const TQString & ) ), + this, TQ_SLOT( slotSpecialChar( TQChar, const TQString & ) ) ); + connect( d->specialCharDlg, TQ_SIGNAL( finished() ), + this, TQ_SLOT( slotSpecialCharDlgClosed() ) ); } d->specialCharDlg->show(); } @@ -3331,10 +3331,10 @@ void View::slotSpecialCharDlgClosed() { if ( d->specialCharDlg ) { - disconnect( d->specialCharDlg, TQT_SIGNAL(insertChar(TQChar,const TQString &)), - this, TQT_SLOT(slotSpecialChar(TQChar,const TQString &))); - disconnect( d->specialCharDlg, TQT_SIGNAL( finished() ), - this, TQT_SLOT( slotSpecialCharDlgClosed() ) ); + disconnect( d->specialCharDlg, TQ_SIGNAL(insertChar(TQChar,const TQString &)), + this, TQ_SLOT(slotSpecialChar(TQChar,const TQString &))); + disconnect( d->specialCharDlg, TQ_SIGNAL( finished() ), + this, TQ_SLOT( slotSpecialCharDlgClosed() ) ); d->specialCharDlg->deleteLater(); d->specialCharDlg = 0L; } @@ -3726,31 +3726,31 @@ void View::addSheet( Sheet * _t ) insertSheet( _t ); // Connect some signals - TQObject::connect( _t, TQT_SIGNAL( sig_refreshView() ), TQT_SLOT( slotRefreshView() ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_updateView( Sheet* ) ), TQT_SLOT( slotUpdateView( Sheet* ) ) ); - TQObject::connect( _t->print(), TQT_SIGNAL( sig_updateView( Sheet* ) ), TQT_SLOT( slotUpdateView( Sheet* ) ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_updateView( Sheet *, const Region& ) ), - TQT_SLOT( slotUpdateView( Sheet*, const Region& ) ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_updateView( EmbeddedObject* )), TQT_SLOT( slotUpdateView( EmbeddedObject* ) ) ); - - TQObject::connect( _t, TQT_SIGNAL( sig_updateHBorder( Sheet * ) ), - TQT_SLOT( slotUpdateHBorder( Sheet * ) ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_updateVBorder( Sheet * ) ), - TQT_SLOT( slotUpdateVBorder( Sheet * ) ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_nameChanged( Sheet*, const TQString& ) ), - this, TQT_SLOT( slotSheetRenamed( Sheet*, const TQString& ) ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_SheetHidden( Sheet* ) ), - this, TQT_SLOT( slotSheetHidden( Sheet* ) ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_SheetShown( Sheet* ) ), - this, TQT_SLOT( slotSheetShown( Sheet* ) ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_SheetRemoved( Sheet* ) ), - this, TQT_SLOT( slotSheetRemoved( Sheet* ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_refreshView() ), TQ_SLOT( slotRefreshView() ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_updateView( Sheet* ) ), TQ_SLOT( slotUpdateView( Sheet* ) ) ); + TQObject::connect( _t->print(), TQ_SIGNAL( sig_updateView( Sheet* ) ), TQ_SLOT( slotUpdateView( Sheet* ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_updateView( Sheet *, const Region& ) ), + TQ_SLOT( slotUpdateView( Sheet*, const Region& ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_updateView( EmbeddedObject* )), TQ_SLOT( slotUpdateView( EmbeddedObject* ) ) ); + + TQObject::connect( _t, TQ_SIGNAL( sig_updateHBorder( Sheet * ) ), + TQ_SLOT( slotUpdateHBorder( Sheet * ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_updateVBorder( Sheet * ) ), + TQ_SLOT( slotUpdateVBorder( Sheet * ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_nameChanged( Sheet*, const TQString& ) ), + this, TQ_SLOT( slotSheetRenamed( Sheet*, const TQString& ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_SheetHidden( Sheet* ) ), + this, TQ_SLOT( slotSheetHidden( Sheet* ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_SheetShown( Sheet* ) ), + this, TQ_SLOT( slotSheetShown( Sheet* ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_SheetRemoved( Sheet* ) ), + this, TQ_SLOT( slotSheetRemoved( Sheet* ) ) ); // ########### Why do these signals not send a pointer to the sheet? // This will lead to bugs. - TQObject::connect( _t, TQT_SIGNAL( sig_updateChildGeometry( EmbeddedKOfficeObject* ) ), - TQT_SLOT( slotUpdateChildGeometry( EmbeddedKOfficeObject* ) ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_maxColumn( int ) ), d->canvas, TQT_SLOT( slotMaxColumn( int ) ) ); - TQObject::connect( _t, TQT_SIGNAL( sig_maxRow( int ) ), d->canvas, TQT_SLOT( slotMaxRow( int ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_updateChildGeometry( EmbeddedKOfficeObject* ) ), + TQ_SLOT( slotUpdateChildGeometry( EmbeddedKOfficeObject* ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_maxColumn( int ) ), d->canvas, TQ_SLOT( slotMaxColumn( int ) ) ); + TQObject::connect( _t, TQ_SIGNAL( sig_maxRow( int ) ), d->canvas, TQ_SLOT( slotMaxRow( int ) ) ); if ( !d->loading ) updateBorderButton(); @@ -4487,10 +4487,10 @@ void View::initFindReplace() { KFind* findObj = d->find ? d->find : d->replace; Q_ASSERT( findObj ); - connect(findObj, TQT_SIGNAL( highlight( const TQString &, int, int ) ), - this, TQT_SLOT( slotHighlight( const TQString &, int, int ) ) ); - connect(findObj, TQT_SIGNAL( findNext() ), - this, TQT_SLOT( findNext() ) ); + connect(findObj, TQ_SIGNAL( highlight( const TQString &, int, int ) ), + this, TQ_SLOT( slotHighlight( const TQString &, int, int ) ) ); + connect(findObj, TQ_SIGNAL( findNext() ), + this, TQ_SLOT( findNext() ) ); bool bck = d->findOptions & KFindDialog::FindBackwards; Sheet* currentSheet = d->searchInSheets.currentSheet; @@ -4708,8 +4708,8 @@ void View::replace() d->searchInSheets.currentSheet = activeSheet(); d->searchInSheets.firstSheet = d->searchInSheets.currentSheet; initFindReplace(); - connect( d->replace, TQT_SIGNAL( replace( const TQString &, int, int, int ) ), - this, TQT_SLOT( slotReplace( const TQString &, int, int, int ) ) ); + connect( d->replace, TQ_SIGNAL( replace( const TQString &, int, int, int ) ), + this, TQ_SLOT( slotReplace( const TQString &, int, int, int ) ) ); if ( !doc()->undoLocked() ) { @@ -5600,7 +5600,7 @@ void View::popupChildMenu( KoChild* child, const TQPoint& /*global_pos*/ ) // // d->popupChild = new TQPopupMenu( this ); // -// d->popupChild->insertItem( i18n("Delete Embedded Document"), this, TQT_SLOT( slotPopupDeleteChild() ) ); +// d->popupChild->insertItem( i18n("Delete Embedded Document"), this, TQ_SLOT( slotPopupDeleteChild() ) ); // // d->popupChild->popup( global_pos ); @@ -5660,7 +5660,7 @@ void View::popupColumnMenu( const TQPoint & _point ) } d->actions->resizeColumn->plug( d->popupColumn ); - d->popupColumn->insertItem( i18n("Adjust Column"), this, TQT_SLOT(slotPopupAdjustColumn() ) ); + d->popupColumn->insertItem( i18n("Adjust Column"), this, TQ_SLOT(slotPopupAdjustColumn() ) ); d->popupColumn->insertSeparator(); d->actions->insertColumn->plug( d->popupColumn ); d->actions->deleteColumn->plug( d->popupColumn ); @@ -5709,7 +5709,7 @@ void View::popupColumnMenu( const TQPoint & _point ) } } - TQObject::connect( d->popupColumn, TQT_SIGNAL(activated( int ) ), this, TQT_SLOT( slotActivateTool( int ) ) ); + TQObject::connect( d->popupColumn, TQ_SIGNAL(activated( int ) ), this, TQ_SLOT( slotActivateTool( int ) ) ); d->popupColumn->popup( _point ); } @@ -5756,7 +5756,7 @@ void View::popupRowMenu( const TQPoint & _point ) } d->actions->resizeRow->plug( d->popupRow ); - d->popupRow->insertItem( i18n("Adjust Row"), this, TQT_SLOT( slotPopupAdjustRow() ) ); + d->popupRow->insertItem( i18n("Adjust Row"), this, TQ_SLOT( slotPopupAdjustRow() ) ); d->popupRow->insertSeparator(); d->actions->insertRow->plug( d->popupRow ); d->actions->deleteRow->plug( d->popupRow ); @@ -5804,7 +5804,7 @@ void View::popupRowMenu( const TQPoint & _point ) } } - TQObject::connect( d->popupRow, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotActivateTool( int ) ) ); + TQObject::connect( d->popupRow, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotActivateTool( int ) ) ); d->popupRow->popup( _point ); } @@ -5896,8 +5896,8 @@ void View::slotListChoosePopupMenu( ) } d->popupListChoose->popup( p2 ); - TQObject::connect( d->popupListChoose, TQT_SIGNAL( activated( int ) ), - this, TQT_SLOT( slotItemSelected( int ) ) ); + TQObject::connect( d->popupListChoose, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( slotItemSelected( int ) ) ); } @@ -5995,7 +5995,7 @@ void View::openPopupMenu( const TQPoint & _point ) if (activeSheet()->testListChoose(selectionInfo())) { d->popupMenu->insertSeparator(); - d->popupMenu->insertItem( i18n("Selection List..."), this, TQT_SLOT( slotListChoosePopupMenu() ) ); + d->popupMenu->insertItem( i18n("Selection List..."), this, TQ_SLOT( slotListChoosePopupMenu() ) ); } } @@ -6032,7 +6032,7 @@ void View::openPopupMenu( const TQPoint & _point ) } } - TQObject::connect( d->popupMenu, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotActivateTool( int ) ) ); + TQObject::connect( d->popupMenu, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotActivateTool( int ) ) ); } } @@ -6366,9 +6366,9 @@ void View::extraProperties() d->m_propertyEditor = new PropertyEditor( this, "KPrPropertyEditor", d->activeSheet, doc() ); d->m_propertyEditor->setCaption( i18n( "Properties" ) ); - connect( d->m_propertyEditor, TQT_SIGNAL( propertiesOk() ), this, TQT_SLOT( propertiesOk() ) ); + connect( d->m_propertyEditor, TQ_SIGNAL( propertiesOk() ), this, TQ_SLOT( propertiesOk() ) ); d->m_propertyEditor->exec(); - disconnect( d->m_propertyEditor, TQT_SIGNAL( propertiesOk() ), this, TQT_SLOT( propertiesOk() ) ); + disconnect( d->m_propertyEditor, TQ_SIGNAL( propertiesOk() ), this, TQ_SLOT( propertiesOk() ) ); delete d->m_propertyEditor; d->m_propertyEditor = 0; @@ -7315,7 +7315,7 @@ void View::guiActivateEvent( KParts::GUIActivateEvent *ev ) { /*if (d->calcLabel) { - disconnect(d->calcLabel,TQT_SIGNAL(pressed( int )),this,TQT_SLOT(statusBarClicked(int))); + disconnect(d->calcLabel,TQ_SIGNAL(pressed( int )),this,TQ_SLOT(statusBarClicked(int))); }*/ } } |