@ -480,32 +480,32 @@ void View::Private::initActions()
actions - > bold = new TDEToggleAction ( i18n ( " Bold " ) , " format-text-bold " ,
TQt : : CTRL + TQt : : Key_B , ac , " bold " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > bold , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : connect ( actions - > bold , TQT_SIGNAL ( toggled ( bool ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( bold ( bool ) ) ) ;
actions - > italic = new TDEToggleAction ( i18n ( " Italic " ) , " format-text-italic " ,
TQt : : CTRL + TQt : : Key_I , ac , " italic " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > italic , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : connect ( actions - > italic , TQT_SIGNAL ( toggled ( bool ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( italic ( bool ) ) ) ;
actions - > underline = new TDEToggleAction ( i18n ( " Underline " ) , " format-text-underline " ,
TQt : : CTRL + TQt : : Key_U , ac , " underline " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > underline , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : connect ( actions - > underline , TQT_SIGNAL ( toggled ( bool ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( underline ( bool ) ) ) ;
actions - > strikeOut = new TDEToggleAction ( i18n ( " Strike Out " ) , " format-text-strikethrough " ,
0 , ac , " strikeout " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > strikeOut , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : connect ( actions - > strikeOut , TQT_SIGNAL ( toggled ( bool ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( strikeOut ( bool ) ) ) ;
actions - > selectFont = new TDEFontAction ( i18n ( " Select Font... " ) ,
0 , ac , " selectFont " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > selectFont , TQT_SIGNAL ( activated ( const TQString & ) ) ,
TQ Object : : connect ( actions - > selectFont , TQT_SIGNAL ( activated ( const TQString & ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( fontSelected ( const TQString & ) ) ) ;
actions - > selectFontSize = new TDEFontSizeAction ( i18n ( " Select Font Size " ) ,
0 , ac , " selectFontSize " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > selectFontSize , TQT_SIGNAL ( fontSizeChanged ( int ) ) ,
TQ Object : : connect ( actions - > selectFontSize , TQT_SIGNAL ( fontSizeChanged ( int ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( fontSizeSelected ( int ) ) ) ;
actions - > fontSizeUp = new TDEAction ( i18n ( " Increase Font Size " ) , " fontsizeup " ,
@ -521,55 +521,55 @@ void View::Private::initActions()
actions - > alignLeft = new TDEToggleAction ( i18n ( " Align Left " ) , " format-text-direction-ltr " ,
0 , ac , " left " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > alignLeft , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Align Center " ) , " text_center " ,
0 , ac , " center " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > alignCenter , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Align Right " ) , " format-text-direction-rtl " ,
0 , ac , " right " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > alignRight , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Align Top " ) , " text_top " ,
0 , ac , " top " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > alignTop , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Align Middle " ) , " middle " ,
0 , ac , " middle " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > alignMiddle , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Align Bottom " ) , " text_bottom " ,
0 , ac , " bottom " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > alignBottom , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Wrap Text " ) , " multirow " ,
0 , ac , " multiRow " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > wrapText , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Vertical Text " ) , " vertical_text " ,
0 , ac , " verticaltext " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > verticalText , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : connect ( actions - > verticalText , TQT_SIGNAL ( toggled ( bool ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( verticalText ( bool ) ) ) ;
actions - > verticalText - > setToolTip ( i18n ( " Print cell contents vertically. " ) ) ;
@ -589,7 +589,7 @@ void View::Private::initActions()
actions - > percent = new TDEToggleAction ( i18n ( " Percent Format " ) , " percent " ,
0 , ac , " percent " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > percent , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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. " ) ) ;
@ -603,7 +603,7 @@ void View::Private::initActions()
actions - > money = new TDEToggleAction ( i18n ( " Money Format " ) , " money " ,
0 , ac , " money " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > money , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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. " ) ) ;
@ -621,7 +621,7 @@ void View::Private::initActions()
actions - > bgColor = new TTDESelectColorAction ( i18n ( " Background Color " ) ,
TTDESelectColorAction : : FillColor , ac , " backgroundColor " , true ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > bgColor , TQT_SIGNAL ( activated ( ) ) ,
TQ Object : : connect ( actions - > bgColor , TQT_SIGNAL ( activated ( ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( changeBackgroundColor ( ) ) ) ;
actions - > bgColor - > setDefaultColor ( TQColor ( ) ) ;
actions - > bgColor - > setToolTip ( i18n ( " Set the background color. " ) ) ;
@ -656,14 +656,14 @@ void View::Private::initActions()
actions - > borderColor = new TTDESelectColorAction ( i18n ( " Border Color " ) ,
TTDESelectColorAction : : LineColor , ac , " borderColor " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > borderColor , TQT_SIGNAL ( activated ( ) ) ,
TQ Object : : connect ( actions - > borderColor , TQT_SIGNAL ( activated ( ) ) ,
TQT_TQOBJECT ( view ) , TQT_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. " ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > selectStyle , TQT_SIGNAL ( activated ( const TQString & ) ) ,
TQ Object : : connect ( actions - > selectStyle , TQT_SIGNAL ( activated ( const TQString & ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( styleSelected ( const TQString & ) ) ) ;
actions - > createStyle = new TDEAction ( i18n ( " Create Style From Cell... " ) ,
@ -924,7 +924,7 @@ void View::Private::initActions()
actions - > showPageBorders = new TDEToggleAction ( i18n ( " Show Page Borders " ) ,
0 , ac , " showPageBorders " ) ;
actions - > showPageBorders - > setCheckedState ( i18n ( " Hide Page Borders " ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > showPageBorders , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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. " ) ) ;
@ -939,13 +939,13 @@ void View::Private::initActions()
actions - > protectSheet = new TDEToggleAction ( i18n ( " Protect &Sheet... " ) ,
0 , ac , " protectSheet " ) ;
actions - > protectSheet - > setToolTip ( i18n ( " Protect the sheet from being modified. " ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > protectSheet , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : connect ( actions - > protectSheet , TQT_SIGNAL ( toggled ( bool ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( toggleProtectSheet ( bool ) ) ) ;
actions - > protectDoc = new TDEToggleAction ( i18n ( " Protect &Document... " ) ,
0 , ac , " protectDoc " ) ;
actions - > protectDoc - > setToolTip ( i18n ( " Protect the document from being modified. " ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > protectDoc , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : connect ( actions - > protectDoc , TQT_SIGNAL ( toggled ( bool ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( toggleProtectDoc ( bool ) ) ) ;
// -- editing actions --
@ -1013,11 +1013,11 @@ void View::Private::initActions()
( ( TDESelectAction * ) actions - > formulaSelection ) - > setItems ( lst ) ;
actions - > formulaSelection - > setComboWidth ( 80 ) ;
actions - > formulaSelection - > setCurrentItem ( 0 ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > formulaSelection , TQT_SIGNAL ( activated ( const TQString & ) ) ,
TQ Object : : connect ( actions - > formulaSelection , TQT_SIGNAL ( activated ( const TQString & ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( formulaSelection ( const TQString & ) ) ) ;
actions - > viewZoom = new KoZoomAction ( i18n ( " Zoom " ) , " viewmag " , 0 , ac , " view_zoom " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > viewZoom , TQT_SIGNAL ( zoomChanged ( const TQString & ) ) ,
TQ Object : : connect ( actions - > viewZoom , TQT_SIGNAL ( zoomChanged ( const TQString & ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( viewZoom ( const TQString & ) ) ) ;
actions - > consolidate = new TDEAction ( i18n ( " &Consolidate... " ) ,
@ -1074,21 +1074,21 @@ void View::Private::initActions()
actions - > showStatusBar = new TDEToggleAction ( i18n ( " Show Status Bar " ) ,
0 , ac , " showStatusBar " ) ;
actions - > showStatusBar - > setCheckedState ( i18n ( " Hide Status Bar " ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > showStatusBar , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Show Tab Bar " ) ,
0 , ac , " showTabBar " ) ;
actions - > showTabBar - > setCheckedState ( i18n ( " Hide Tab Bar " ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > showTabBar , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Show Formula Bar " ) ,
0 , ac , " showFormulaBar " ) ;
actions - > showFormulaBar - > setCheckedState ( i18n ( " Hide Formula Bar " ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > showFormulaBar , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : connect ( actions - > showFormulaBar , TQT_SIGNAL ( toggled ( bool ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( showFormulaBar ( bool ) ) ) ;
actions - > showFormulaBar - > setToolTip ( i18n ( " Show the formula bar. " ) ) ;
@ -1099,43 +1099,43 @@ void View::Private::initActions()
// -- running calculation actions --
actions - > calcNone = new TDEToggleAction ( i18n ( " None " ) , 0 , ac , " menu_none " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > calcNone , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Sum " ) , 0 , ac , " menu_sum " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > calcSum , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Min " ) , 0 , ac , " menu_min " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > calcMin , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Max " ) , 0 , ac , " menu_max " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > calcMax , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Average " ) , 0 , ac , " menu_average " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > calcAverage , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " Count " ) , 0 , ac , " menu_count " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > calcCount , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : 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 TDEToggleAction ( i18n ( " CountA " ) , 0 , ac , " menu_counta " ) ;
TQ T_BASE_OBJECT_NAME : : connect ( actions - > calcCountA , TQT_SIGNAL ( toggled ( bool ) ) ,
TQ Object : : connect ( actions - > calcCountA , TQT_SIGNAL ( toggled ( bool ) ) ,
TQT_TQOBJECT ( view ) , TQT_SLOT ( menuCalc ( bool ) ) ) ;
actions - > calcCountA - > setExclusiveGroup ( " Calc " ) ;
actions - > calcCountA - > setToolTip ( i18n ( " Calculate using the countA. " ) ) ;
@ -1823,17 +1823,17 @@ View::View( TQWidget *_parent, const char *_name,
connect ( d - > canvas , TQT_SIGNAL ( objectSelectedChanged ( ) ) ,
this , TQT_SLOT ( objectSelectedChanged ( ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( doc ( ) - > map ( ) , TQT_SIGNAL ( sig_addSheet ( Sheet * ) ) , TQT_SLOT ( slotAddSheet ( Sheet * ) ) ) ;
TQ Object : : connect ( doc ( ) - > map ( ) , TQT_SIGNAL ( sig_addSheet ( Sheet * ) ) , TQT_SLOT ( slotAddSheet ( Sheet * ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( doc ( ) , TQT_SIGNAL ( sig_refreshView ( ) ) , this , TQT_SLOT ( slotRefreshView ( ) ) ) ;
TQ Object : : connect ( doc ( ) , TQT_SIGNAL ( sig_refreshView ( ) ) , this , TQT_SLOT ( slotRefreshView ( ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( doc ( ) , TQT_SIGNAL ( sig_refreshLocale ( ) ) , this , TQT_SLOT ( refreshLocale ( ) ) ) ;
TQ Object : : connect ( doc ( ) , TQT_SIGNAL ( sig_refreshLocale ( ) ) , this , TQT_SLOT ( refreshLocale ( ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( doc ( ) , TQT_SIGNAL ( sig_addAreaName ( const TQString & ) ) , d - > posWidget , TQT_SLOT ( slotAddAreaName ( const TQString & ) ) ) ;
TQ Object : : connect ( doc ( ) , TQT_SIGNAL ( sig_addAreaName ( const TQString & ) ) , d - > posWidget , TQT_SLOT ( slotAddAreaName ( const TQString & ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( doc ( ) , TQT_SIGNAL ( sig_removeAreaName ( const TQString & ) ) , d - > posWidget , TQT_SLOT ( slotRemoveAreaName ( const TQString & ) ) ) ;
TQ Object : : connect ( doc ( ) , TQT_SIGNAL ( sig_removeAreaName ( const TQString & ) ) , d - > posWidget , TQT_SLOT ( slotRemoveAreaName ( const TQString & ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( doc ( ) , TQT_SIGNAL ( damagesFlushed ( const TQValueList < Damage * > & ) ) ,
TQ Object : : connect ( doc ( ) , TQT_SIGNAL ( damagesFlushed ( const TQValueList < Damage * > & ) ) ,
this , TQT_SLOT ( handleDamages ( const TQValueList < Damage * > & ) ) ) ;
//KoView::setZoom( doc()->zoomedResolutionY() /* KoView only supports one zoom */ ); // initial value
@ -1989,12 +1989,12 @@ void View::initView()
d - > horzScrollBar - > setLineStep ( 60 ) ; //just random guess based on what feels okay
d - > horzScrollBar - > setPageStep ( 60 ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > tabBar , TQT_SIGNAL ( tabChanged ( const TQString & ) ) , this , TQT_SLOT ( changeSheet ( const TQString & ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > tabBar , TQT_SIGNAL ( tabMoved ( unsigned , unsigned ) ) ,
TQ Object : : connect ( d - > tabBar , TQT_SIGNAL ( tabChanged ( const TQString & ) ) , this , TQT_SLOT ( changeSheet ( const TQString & ) ) ) ;
TQ Object : : connect ( d - > tabBar , TQT_SIGNAL ( tabMoved ( unsigned , unsigned ) ) ,
this , TQT_SLOT ( moveSheet ( unsigned , unsigned ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > tabBar , TQT_SIGNAL ( contextMenu ( const TQPoint & ) ) ,
TQ Object : : connect ( d - > tabBar , TQT_SIGNAL ( contextMenu ( const TQPoint & ) ) ,
this , TQT_SLOT ( popupTabBarMenu ( const TQPoint & ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > tabBar , TQT_SIGNAL ( doubleClicked ( ) ) ,
TQ Object : : connect ( d - > tabBar , TQT_SIGNAL ( doubleClicked ( ) ) ,
this , TQT_SLOT ( slotRename ( ) ) ) ;
d - > viewLayout - > setColStretch ( 1 , 10 ) ;
@ -2014,8 +2014,8 @@ void View::initView()
connect ( d - > calcLabel , TQT_SIGNAL ( itemPressed ( int ) ) , this , TQT_SLOT ( statusBarClicked ( int ) ) ) ;
// signal slot
TQ T_BASE_OBJECT_NAME : : connect ( d - > vertScrollBar , TQT_SIGNAL ( valueChanged ( int ) ) , d - > canvas , TQT_SLOT ( slotScrollVert ( int ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > horzScrollBar , TQT_SIGNAL ( valueChanged ( int ) ) , d - > canvas , TQT_SLOT ( slotScrollHorz ( int ) ) ) ;
TQ Object : : connect ( d - > vertScrollBar , TQT_SIGNAL ( valueChanged ( int ) ) , d - > canvas , TQT_SLOT ( slotScrollVert ( int ) ) ) ;
TQ Object : : connect ( d - > horzScrollBar , TQT_SIGNAL ( valueChanged ( int ) ) , d - > canvas , TQT_SLOT ( slotScrollHorz ( int ) ) ) ;
}
@ -2303,26 +2303,26 @@ void View::startKSpell()
d - > spell . tdespell - > setIgnoreUpperWords ( doc ( ) - > dontCheckUpperWord ( ) ) ;
d - > spell . tdespell - > setIgnoreTitleCase ( doc ( ) - > dontCheckTitleCase ( ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > spell . tdespell , TQT_SIGNAL ( death ( ) ) ,
TQ Object : : connect ( d - > spell . tdespell , TQT_SIGNAL ( death ( ) ) ,
this , TQT_SLOT ( spellCheckerFinished ( ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > spell . tdespell , TQT_SIGNAL ( misspelling ( const TQString & ,
TQ Object : : connect ( d - > spell . tdespell , TQT_SIGNAL ( misspelling ( const TQString & ,
const TQStringList & ,
unsigned int ) ) ,
this , TQT_SLOT ( spellCheckerMisspelling ( const TQString & ,
const TQStringList & ,
unsigned int ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > spell . tdespell , TQT_SIGNAL ( corrected ( const TQString & ,
TQ Object : : connect ( d - > spell . tdespell , TQT_SIGNAL ( corrected ( const TQString & ,
const TQString & ,
unsigned int ) ) ,
this , TQT_SLOT ( spellCheckerCorrected ( const TQString & ,
const TQString & ,
unsigned int ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > spell . tdespell , TQT_SIGNAL ( done ( const TQString & ) ) ,
TQ Object : : connect ( d - > spell . tdespell , TQT_SIGNAL ( done ( const TQString & ) ) ,
this , TQT_SLOT ( spellCheckerDone ( const TQString & ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > spell . tdespell , TQT_SIGNAL ( ignoreall ( const TQString & ) ) ,
TQ Object : : connect ( d - > spell . tdespell , TQT_SIGNAL ( ignoreall ( const TQString & ) ) ,
this , TQT_SLOT ( spellCheckerIgnoreAll ( const TQString & ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > spell . tdespell , TQT_SIGNAL ( replaceall ( const TQString & , const TQString & ) ) , this , TQT_SLOT ( spellCheckerReplaceAll ( const TQString & , const TQString & ) ) ) ;
TQ Object : : connect ( d - > spell . tdespell , TQT_SIGNAL ( replaceall ( const TQString & , const TQString & ) ) , this , TQT_SLOT ( spellCheckerReplaceAll ( const TQString & , const TQString & ) ) ) ;
}
@ -3726,31 +3726,31 @@ void View::addSheet( Sheet * _t )
insertSheet ( _t ) ;
// Connect some signals
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_refreshView ( ) ) , TQT_SLOT ( slotRefreshView ( ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_updateView ( Sheet * ) ) , TQT_SLOT ( slotUpdateView ( Sheet * ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t - > print ( ) , TQT_SIGNAL ( sig_updateView ( Sheet * ) ) , TQT_SLOT ( slotUpdateView ( Sheet * ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_updateView ( Sheet * , const Region & ) ) ,
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_refreshView ( ) ) , TQT_SLOT ( slotRefreshView ( ) ) ) ;
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_updateView ( Sheet * ) ) , TQT_SLOT ( slotUpdateView ( Sheet * ) ) ) ;
TQ Object : : connect ( _t - > print ( ) , TQT_SIGNAL ( sig_updateView ( Sheet * ) ) , TQT_SLOT ( slotUpdateView ( Sheet * ) ) ) ;
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_updateView ( Sheet * , const Region & ) ) ,
TQT_SLOT ( slotUpdateView ( Sheet * , const Region & ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_updateView ( EmbeddedObject * ) ) , TQT_SLOT ( slotUpdateView ( EmbeddedObject * ) ) ) ;
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_updateView ( EmbeddedObject * ) ) , TQT_SLOT ( slotUpdateView ( EmbeddedObject * ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_updateHBorder ( Sheet * ) ) ,
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_updateHBorder ( Sheet * ) ) ,
TQT_SLOT ( slotUpdateHBorder ( Sheet * ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_updateVBorder ( Sheet * ) ) ,
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_updateVBorder ( Sheet * ) ) ,
TQT_SLOT ( slotUpdateVBorder ( Sheet * ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_nameChanged ( Sheet * , const TQString & ) ) ,
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_nameChanged ( Sheet * , const TQString & ) ) ,
this , TQT_SLOT ( slotSheetRenamed ( Sheet * , const TQString & ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_SheetHidden ( Sheet * ) ) ,
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_SheetHidden ( Sheet * ) ) ,
this , TQT_SLOT ( slotSheetHidden ( Sheet * ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_SheetShown ( Sheet * ) ) ,
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_SheetShown ( Sheet * ) ) ,
this , TQT_SLOT ( slotSheetShown ( Sheet * ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_SheetRemoved ( Sheet * ) ) ,
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_SheetRemoved ( Sheet * ) ) ,
this , TQT_SLOT ( slotSheetRemoved ( Sheet * ) ) ) ;
// ########### Why do these signals not send a pointer to the sheet?
// This will lead to bugs.
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_updateChildGeometry ( EmbeddedKOfficeObject * ) ) ,
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_updateChildGeometry ( EmbeddedKOfficeObject * ) ) ,
TQT_SLOT ( slotUpdateChildGeometry ( EmbeddedKOfficeObject * ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_maxColumn ( int ) ) , d - > canvas , TQT_SLOT ( slotMaxColumn ( int ) ) ) ;
TQ T_BASE_OBJECT_NAME : : connect ( _t , TQT_SIGNAL ( sig_maxRow ( int ) ) , d - > canvas , TQT_SLOT ( slotMaxRow ( int ) ) ) ;
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_maxColumn ( int ) ) , d - > canvas , TQT_SLOT ( slotMaxColumn ( int ) ) ) ;
TQ Object : : connect ( _t , TQT_SIGNAL ( sig_maxRow ( int ) ) , d - > canvas , TQT_SLOT ( slotMaxRow ( int ) ) ) ;
if ( ! d - > loading )
updateBorderButton ( ) ;
@ -5709,7 +5709,7 @@ void View::popupColumnMenu( const TQPoint & _point )
}
}
TQ T_BASE_OBJECT_NAME : : connect ( d - > popupColumn , TQT_SIGNAL ( activated ( int ) ) , this , TQT_SLOT ( slotActivateTool ( int ) ) ) ;
TQ Object : : connect ( d - > popupColumn , TQT_SIGNAL ( activated ( int ) ) , this , TQT_SLOT ( slotActivateTool ( int ) ) ) ;
d - > popupColumn - > popup ( _point ) ;
}
@ -5804,7 +5804,7 @@ void View::popupRowMenu( const TQPoint & _point )
}
}
TQ T_BASE_OBJECT_NAME : : connect ( d - > popupRow , TQT_SIGNAL ( activated ( int ) ) , this , TQT_SLOT ( slotActivateTool ( int ) ) ) ;
TQ Object : : connect ( d - > popupRow , TQT_SIGNAL ( activated ( int ) ) , this , TQT_SLOT ( slotActivateTool ( int ) ) ) ;
d - > popupRow - > popup ( _point ) ;
}
@ -5896,7 +5896,7 @@ void View::slotListChoosePopupMenu( )
}
d - > popupListChoose - > popup ( p2 ) ;
TQ T_BASE_OBJECT_NAME : : connect ( d - > popupListChoose , TQT_SIGNAL ( activated ( int ) ) ,
TQ Object : : connect ( d - > popupListChoose , TQT_SIGNAL ( activated ( int ) ) ,
this , TQT_SLOT ( slotItemSelected ( int ) ) ) ;
}
@ -6032,7 +6032,7 @@ void View::openPopupMenu( const TQPoint & _point )
}
}
TQ T_BASE_OBJECT_NAME : : connect ( d - > popupMenu , TQT_SIGNAL ( activated ( int ) ) , this , TQT_SLOT ( slotActivateTool ( int ) ) ) ;
TQ Object : : connect ( d - > popupMenu , TQT_SIGNAL ( activated ( int ) ) , this , TQT_SLOT ( slotActivateTool ( int ) ) ) ;
}
}