@ -147,7 +147,7 @@ KCalculator::KCalculator(TQWidget *parent, const char *name)
i18n ( " Inverse mode " ) ) ;
i18n ( " Inverse mode " ) ) ;
pbInv - > setAccel ( Key_I ) ;
pbInv - > setAccel ( Key_I ) ;
connect ( pbInv , TQT_SIGNAL ( toggled ( bool ) ) , TQT_SLOT ( slotInvtoggled ( bool ) ) ) ;
connect ( pbInv , TQT_SIGNAL ( toggled ( bool ) ) , TQT_SLOT ( slotInvtoggled ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbInv , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbInv , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbInv - > setToggleButton ( true ) ;
pbInv - > setToggleButton ( true ) ;
@ -170,23 +170,23 @@ KCalculator::KCalculator(TQWidget *parent, const char *name)
pbMod - > addMode ( ModeNormal , " Mod " , i18n ( " Modulo " ) ) ;
pbMod - > addMode ( ModeNormal , " Mod " , i18n ( " Modulo " ) ) ;
pbMod - > addMode ( ModeInverse , " IntDiv " , i18n ( " Integer division " ) ) ;
pbMod - > addMode ( ModeInverse , " IntDiv " , i18n ( " Integer division " ) ) ;
pbMod - > setAccel ( Key_Colon ) ;
pbMod - > setAccel ( Key_Colon ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
pbMod , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
pbMod , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbMod , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbMod , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbMod , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotModclicked ( void ) ) ) ;
connect ( pbMod , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotModclicked ( void ) ) ) ;
pbReci = new KCalcButton ( mSmallPage , " Reciprocal-Button " ) ;
pbReci = new KCalcButton ( mSmallPage , " Reciprocal-Button " ) ;
pbReci - > addMode ( ModeNormal , " 1/x " , i18n ( " Reciprocal " ) ) ;
pbReci - > addMode ( ModeNormal , " 1/x " , i18n ( " Reciprocal " ) ) ;
pbReci - > setAccel ( Key_R ) ;
pbReci - > setAccel ( Key_R ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbReci , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbReci , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbReci , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotReciclicked ( void ) ) ) ;
connect ( pbReci , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotReciclicked ( void ) ) ) ;
pbFactorial = new KCalcButton ( mSmallPage , " Factorial-Button " ) ;
pbFactorial = new KCalcButton ( mSmallPage , " Factorial-Button " ) ;
pbFactorial - > addMode ( ModeNormal , " x! " , i18n ( " Factorial " ) ) ;
pbFactorial - > addMode ( ModeNormal , " x! " , i18n ( " Factorial " ) ) ;
pbFactorial - > setAccel ( Key_Exclam ) ;
pbFactorial - > setAccel ( Key_Exclam ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbFactorial , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbFactorial , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbFactorial , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotFactorialclicked ( void ) ) ) ;
connect ( pbFactorial , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotFactorialclicked ( void ) ) ) ;
@ -197,18 +197,18 @@ KCalculator::KCalculator(TQWidget *parent, const char *name)
pbSquare = new KCalcButton ( mSmallPage , " Square-Button " ) ;
pbSquare = new KCalcButton ( mSmallPage , " Square-Button " ) ;
pbSquare - > addMode ( ModeNormal , " x<sup>2</sup> " , i18n ( " Square " ) , true ) ;
pbSquare - > addMode ( ModeNormal , " x<sup>2</sup> " , i18n ( " Square " ) , true ) ;
pbSquare - > addMode ( ModeInverse , " x<sup>3</sup> " , i18n ( " Third power " ) , true ) ;
pbSquare - > addMode ( ModeInverse , " x<sup>3</sup> " , i18n ( " Third power " ) , true ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbSquare , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbSquare , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
pbSquare , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
pbSquare , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( pbSquare , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotSquareclicked ( void ) ) ) ;
connect ( pbSquare , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotSquareclicked ( void ) ) ) ;
pbRoot = new KSquareButton ( mSmallPage , " Square-Button " ) ;
pbRoot = new KSquareButton ( mSmallPage , " Square-Button " ) ;
pbRoot - > addMode ( ModeNormal , " sqrt(x) " , i18n ( " Square root " ) ) ;
pbRoot - > addMode ( ModeNormal , " sqrt(x) " , i18n ( " Square root " ) ) ;
pbRoot - > addMode ( ModeInverse , " sqrt[3](x) " , i18n ( " Cube root " ) ) ;
pbRoot - > addMode ( ModeInverse , " sqrt[3](x) " , i18n ( " Cube root " ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbRoot , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbRoot , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
pbRoot , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
pbRoot , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( pbRoot , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotRootclicked ( void ) ) ) ;
connect ( pbRoot , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotRootclicked ( void ) ) ) ;
@ -219,9 +219,9 @@ KCalculator::KCalculator(TQWidget *parent, const char *name)
pbPower = new KCalcButton ( mSmallPage , " Power-Button " ) ;
pbPower = new KCalcButton ( mSmallPage , " Power-Button " ) ;
pbPower - > addMode ( ModeNormal , " x<sup>y</sup> " , i18n ( " x to the power of y " ) , true ) ;
pbPower - > addMode ( ModeNormal , " x<sup>y</sup> " , i18n ( " x to the power of y " ) , true ) ;
pbPower - > addMode ( ModeInverse , " x<sup>1/y</sup> " , i18n ( " x to the power of 1/y " ) , true ) ;
pbPower - > addMode ( ModeInverse , " x<sup>1/y</sup> " , i18n ( " x to the power of 1/y " ) , true ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbPower , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbPower , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
pbPower , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
pbPower , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
pbPower - > setAccel ( Key_AsciiCircum ) ;
pbPower - > setAccel ( Key_AsciiCircum ) ;
connect ( pbPower , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPowerclicked ( void ) ) ) ;
connect ( pbPower , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPowerclicked ( void ) ) ) ;
@ -409,12 +409,12 @@ KCalculator::~KCalculator()
void KCalculator : : setupMainActions ( void )
void KCalculator : : setupMainActions ( void )
{
{
// file menu
// file menu
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( close ( ) ) , actionCollection ( ) ) ;
KStdAction : : quit ( this , TQT_SLOT ( close ( ) ) , actionCollection ( ) ) ;
// edit menu
// edit menu
KStdAction : : cut ( TQT_TQOBJECT( calc_display) , TQT_SLOT ( slotCut ( ) ) , actionCollection ( ) ) ;
KStdAction : : cut ( calc_display, TQT_SLOT ( slotCut ( ) ) , actionCollection ( ) ) ;
KStdAction : : copy ( TQT_TQOBJECT( calc_display) , TQT_SLOT ( slotCopy ( ) ) , actionCollection ( ) ) ;
KStdAction : : copy ( calc_display, TQT_SLOT ( slotCopy ( ) ) , actionCollection ( ) ) ;
KStdAction : : paste ( TQT_TQOBJECT( calc_display) , TQT_SLOT ( slotPaste ( ) ) , actionCollection ( ) ) ;
KStdAction : : paste ( calc_display, TQT_SLOT ( slotPaste ( ) ) , actionCollection ( ) ) ;
// settings menu
// settings menu
actionStatshow = new TDEToggleAction ( i18n ( " &Statistic Buttons " ) , 0 ,
actionStatshow = new TDEToggleAction ( i18n ( " &Statistic Buttons " ) , 0 ,
@ -442,13 +442,13 @@ void KCalculator::setupMainActions(void)
TQT_SLOT ( slotConstantsShow ( bool ) ) ) ;
TQT_SLOT ( slotConstantsShow ( bool ) ) ) ;
( void ) new TDEAction ( i18n ( " &Show All " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowAll ( ) ) ,
( void ) new TDEAction ( i18n ( " &Show All " ) , 0 , this , TQT_SLOT ( slotShowAll ( ) ) ,
actionCollection ( ) , " show_all " ) ;
actionCollection ( ) , " show_all " ) ;
( void ) new TDEAction ( i18n ( " &Hide All " ) , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotHideAll ( ) ) ,
( void ) new TDEAction ( i18n ( " &Hide All " ) , 0 , this , TQT_SLOT ( slotHideAll ( ) ) ,
actionCollection ( ) , " hide_all " ) ;
actionCollection ( ) , " hide_all " ) ;
KStdAction : : preferences ( TQT_TQOBJECT ( this ) , TQT_SLOT ( showSettings ( ) ) , actionCollection ( ) ) ;
KStdAction : : preferences ( this , TQT_SLOT ( showSettings ( ) ) , actionCollection ( ) ) ;
KStdAction : : keyBindings ( guiFactory ( ) , TQT_SLOT ( configureShortcuts ( ) ) ,
KStdAction : : keyBindings ( guiFactory ( ) , TQT_SLOT ( configureShortcuts ( ) ) ,
actionCollection ( ) ) ;
actionCollection ( ) ) ;
@ -486,61 +486,61 @@ TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
tmp_pb = new KCalcButton ( " 0 " , thisPage , " 0-Button " ) ;
tmp_pb = new KCalcButton ( " 0 " , thisPage , " 0-Button " ) ;
tmp_pb - > setAccel ( Key_0 ) ;
tmp_pb - > setAccel ( Key_0 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 0 ) ;
NumButtonGroup - > insert ( tmp_pb , 0 ) ;
tmp_pb = new KCalcButton ( " 1 " , thisPage , " 1-Button " ) ;
tmp_pb = new KCalcButton ( " 1 " , thisPage , " 1-Button " ) ;
tmp_pb - > setAccel ( Key_1 ) ;
tmp_pb - > setAccel ( Key_1 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 1 ) ;
NumButtonGroup - > insert ( tmp_pb , 1 ) ;
tmp_pb = new KCalcButton ( " 2 " , thisPage , " 2-Button " ) ;
tmp_pb = new KCalcButton ( " 2 " , thisPage , " 2-Button " ) ;
tmp_pb - > setAccel ( Key_2 ) ;
tmp_pb - > setAccel ( Key_2 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 2 ) ;
NumButtonGroup - > insert ( tmp_pb , 2 ) ;
tmp_pb = new KCalcButton ( " 3 " , thisPage , " 3-Button " ) ;
tmp_pb = new KCalcButton ( " 3 " , thisPage , " 3-Button " ) ;
tmp_pb - > setAccel ( Key_3 ) ;
tmp_pb - > setAccel ( Key_3 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 3 ) ;
NumButtonGroup - > insert ( tmp_pb , 3 ) ;
tmp_pb = new KCalcButton ( " 4 " , thisPage , " 4-Button " ) ;
tmp_pb = new KCalcButton ( " 4 " , thisPage , " 4-Button " ) ;
tmp_pb - > setAccel ( Key_4 ) ;
tmp_pb - > setAccel ( Key_4 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 4 ) ;
NumButtonGroup - > insert ( tmp_pb , 4 ) ;
tmp_pb = new KCalcButton ( " 5 " , thisPage , " 5-Button " ) ;
tmp_pb = new KCalcButton ( " 5 " , thisPage , " 5-Button " ) ;
tmp_pb - > setAccel ( Key_5 ) ;
tmp_pb - > setAccel ( Key_5 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 5 ) ;
NumButtonGroup - > insert ( tmp_pb , 5 ) ;
tmp_pb = new KCalcButton ( " 6 " , thisPage , " 6-Button " ) ;
tmp_pb = new KCalcButton ( " 6 " , thisPage , " 6-Button " ) ;
tmp_pb - > setAccel ( Key_6 ) ;
tmp_pb - > setAccel ( Key_6 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 6 ) ;
NumButtonGroup - > insert ( tmp_pb , 6 ) ;
tmp_pb = new KCalcButton ( " 7 " , thisPage , " 7-Button " ) ;
tmp_pb = new KCalcButton ( " 7 " , thisPage , " 7-Button " ) ;
tmp_pb - > setAccel ( Key_7 ) ;
tmp_pb - > setAccel ( Key_7 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 7 ) ;
NumButtonGroup - > insert ( tmp_pb , 7 ) ;
tmp_pb = new KCalcButton ( " 8 " , thisPage , " 8-Button " ) ;
tmp_pb = new KCalcButton ( " 8 " , thisPage , " 8-Button " ) ;
tmp_pb - > setAccel ( Key_8 ) ;
tmp_pb - > setAccel ( Key_8 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 8 ) ;
NumButtonGroup - > insert ( tmp_pb , 8 ) ;
tmp_pb = new KCalcButton ( " 9 " , thisPage , " 9-Button " ) ;
tmp_pb = new KCalcButton ( " 9 " , thisPage , " 9-Button " ) ;
tmp_pb - > setAccel ( Key_9 ) ;
tmp_pb - > setAccel ( Key_9 ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 9 ) ;
NumButtonGroup - > insert ( tmp_pb , 9 ) ;
@ -548,61 +548,61 @@ TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
pbEE - > addMode ( ModeNormal , " x<small> " " \xb7 " " 10</small><sup>y</sup> " ,
pbEE - > addMode ( ModeNormal , " x<small> " " \xb7 " " 10</small><sup>y</sup> " ,
i18n ( " Exponent " ) , true ) ;
i18n ( " Exponent " ) , true ) ;
pbEE - > setAccel ( Key_E ) ;
pbEE - > setAccel ( Key_E ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbEE , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbEE , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbEE , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotEEclicked ( void ) ) ) ;
connect ( pbEE , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotEEclicked ( void ) ) ) ;
pbParenClose = new KCalcButton ( " ) " , mLargePage , " ParenClose-Button " ) ;
pbParenClose = new KCalcButton ( " ) " , mLargePage , " ParenClose-Button " ) ;
pbParenClose - > setAccel ( Key_ParenRight ) ;
pbParenClose - > setAccel ( Key_ParenRight ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbParenClose , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbParenClose , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbParenClose , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotParenCloseclicked ( void ) ) ) ;
connect ( pbParenClose , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotParenCloseclicked ( void ) ) ) ;
pbX = new KCalcButton ( " X " , thisPage , " Multiply-Button " , i18n ( " Multiplication " ) ) ;
pbX = new KCalcButton ( " X " , thisPage , " Multiply-Button " , i18n ( " Multiplication " ) ) ;
pbX - > setAccel ( Key_multiply ) ;
pbX - > setAccel ( Key_multiply ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbX , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbX , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
accel ( ) - > insert ( " Pressed '*' " , i18n ( " Pressed Multiplication-Button " ) ,
accel ( ) - > insert ( " Pressed '*' " , i18n ( " Pressed Multiplication-Button " ) ,
0 , Key_Asterisk , TQT_TQOBJECT( pbX) , TQT_SLOT ( animateClick ( ) ) ) ;
0 , Key_Asterisk , pbX, TQT_SLOT ( animateClick ( ) ) ) ;
connect ( pbX , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotXclicked ( void ) ) ) ;
connect ( pbX , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotXclicked ( void ) ) ) ;
pbDivision = new KCalcButton ( " / " , thisPage , " Division-Button " , i18n ( " Division " ) ) ;
pbDivision = new KCalcButton ( " / " , thisPage , " Division-Button " , i18n ( " Division " ) ) ;
pbDivision - > setAccel ( Key_Slash ) ;
pbDivision - > setAccel ( Key_Slash ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbDivision , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbDivision , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbDivision , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotDivisionclicked ( void ) ) ) ;
connect ( pbDivision , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotDivisionclicked ( void ) ) ) ;
pbPlus = new KCalcButton ( " + " , thisPage , " Plus-Button " , i18n ( " Addition " ) ) ;
pbPlus = new KCalcButton ( " + " , thisPage , " Plus-Button " , i18n ( " Addition " ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbPlus , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbPlus , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbPlus - > setAccel ( Key_Plus ) ;
pbPlus - > setAccel ( Key_Plus ) ;
connect ( pbPlus , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPlusclicked ( void ) ) ) ;
connect ( pbPlus , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPlusclicked ( void ) ) ) ;
pbMinus = new KCalcButton ( " - " , thisPage , " Minus-Button " , i18n ( " Subtraction " ) ) ;
pbMinus = new KCalcButton ( " - " , thisPage , " Minus-Button " , i18n ( " Subtraction " ) ) ;
pbMinus - > setAccel ( Key_Minus ) ;
pbMinus - > setAccel ( Key_Minus ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbMinus , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbMinus , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbMinus , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotMinusclicked ( void ) ) ) ;
connect ( pbMinus , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotMinusclicked ( void ) ) ) ;
pbPeriod = new KCalcButton ( TDEGlobal : : locale ( ) - > decimalSymbol ( ) , thisPage ,
pbPeriod = new KCalcButton ( TDEGlobal : : locale ( ) - > decimalSymbol ( ) , thisPage ,
" Period-Button " , i18n ( " Decimal point " ) ) ;
" Period-Button " , i18n ( " Decimal point " ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
TQT_TQOBJECT( pbPeriod) , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbPeriod, TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
accel ( ) - > insert ( " Decimal Point (Period) " , i18n ( " Pressed Decimal Point " ) ,
accel ( ) - > insert ( " Decimal Point (Period) " , i18n ( " Pressed Decimal Point " ) ,
0 , Key_Period , TQT_TQOBJECT( pbPeriod) , TQT_SLOT ( animateClick ( ) ) ) ;
0 , Key_Period , pbPeriod, TQT_SLOT ( animateClick ( ) ) ) ;
accel ( ) - > insert ( " Decimal Point (Comma) " , i18n ( " Pressed Decimal Point " ) ,
accel ( ) - > insert ( " Decimal Point (Comma) " , i18n ( " Pressed Decimal Point " ) ,
0 , Key_Comma , TQT_TQOBJECT( pbPeriod) , TQT_SLOT ( animateClick ( ) ) ) ;
0 , Key_Comma , pbPeriod, TQT_SLOT ( animateClick ( ) ) ) ;
connect ( TQT_TQOBJECT( pbPeriod) , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPeriodclicked ( void ) ) ) ;
connect ( pbPeriod, TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPeriodclicked ( void ) ) ) ;
pbEqual = new KCalcButton ( " = " , thisPage , " Equal-Button " , i18n ( " Result " ) ) ;
pbEqual = new KCalcButton ( " = " , thisPage , " Equal-Button " , i18n ( " Result " ) ) ;
pbEqual - > setAccel ( Key_Enter ) ;
pbEqual - > setAccel ( Key_Enter ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
TQT_TQOBJECT( pbEqual) , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbEqual, TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
accel ( ) - > insert ( " Entered Equal " , i18n ( " Pressed Equal-Button " ) ,
accel ( ) - > insert ( " Entered Equal " , i18n ( " Pressed Equal-Button " ) ,
0 , Key_Equal , TQT_TQOBJECT( pbEqual) , TQT_SLOT ( animateClick ( ) ) ) ;
0 , Key_Equal , pbEqual, TQT_SLOT ( animateClick ( ) ) ) ;
accel ( ) - > insert ( " Entered Return " , i18n ( " Pressed Equal-Button " ) ,
accel ( ) - > insert ( " Entered Return " , i18n ( " Pressed Equal-Button " ) ,
0 , Key_Return , TQT_TQOBJECT( pbEqual) , TQT_SLOT ( animateClick ( ) ) ) ;
0 , Key_Return , pbEqual, TQT_SLOT ( animateClick ( ) ) ) ;
connect ( TQT_TQOBJECT( pbEqual) , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotEqualclicked ( void ) ) ) ;
connect ( pbEqual, TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotEqualclicked ( void ) ) ) ;
TQGridLayout * thisLayout = new TQGridLayout ( thisPage , 5 , 4 , 0 ,
TQGridLayout * thisLayout = new TQGridLayout ( thisPage , 5 , 4 , 0 ,
@ -641,7 +641,7 @@ TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
pbMemRecall = new KCalcButton ( " MR " , mLargePage , " MemRecall-Button " , i18n ( " Memory recall " ) ) ;
pbMemRecall = new KCalcButton ( " MR " , mLargePage , " MemRecall-Button " , i18n ( " Memory recall " ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbMemRecall , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbMemRecall , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbMemRecall , TQT_SIGNAL ( clicked ( void ) ) ,
connect ( pbMemRecall , TQT_SIGNAL ( clicked ( void ) ) ,
TQT_SLOT ( slotMemRecallclicked ( void ) ) ) ;
TQT_SLOT ( slotMemRecallclicked ( void ) ) ) ;
@ -650,91 +650,91 @@ TQWidget* KCalculator::setupNumericKeys(TQWidget *parent)
pbMemPlusMinus = new KCalcButton ( mLargePage , " MPlusMinus-Button " ) ;
pbMemPlusMinus = new KCalcButton ( mLargePage , " MPlusMinus-Button " ) ;
pbMemPlusMinus - > addMode ( ModeNormal , " M+ " , i18n ( " Add display to memory " ) ) ;
pbMemPlusMinus - > addMode ( ModeNormal , " M+ " , i18n ( " Add display to memory " ) ) ;
pbMemPlusMinus - > addMode ( ModeInverse , " M- " , i18n ( " Subtract from memory " ) ) ;
pbMemPlusMinus - > addMode ( ModeInverse , " M- " , i18n ( " Subtract from memory " ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
pbMemPlusMinus , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
pbMemPlusMinus , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbMemPlusMinus , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbMemPlusMinus , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbMemPlusMinus , TQT_SIGNAL ( clicked ( void ) ) ,
connect ( pbMemPlusMinus , TQT_SIGNAL ( clicked ( void ) ) ,
TQT_SLOT ( slotMemPlusMinusclicked ( void ) ) ) ;
TQT_SLOT ( slotMemPlusMinusclicked ( void ) ) ) ;
pbMemStore = new KCalcButton ( " MS " , mLargePage , " MemStore-Button " ,
pbMemStore = new KCalcButton ( " MS " , mLargePage , " MemStore-Button " ,
i18n ( " Memory store " ) ) ;
i18n ( " Memory store " ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbMemStore , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbMemStore , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbMemStore , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotMemStoreclicked ( void ) ) ) ;
connect ( pbMemStore , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotMemStoreclicked ( void ) ) ) ;
pbMC = new KCalcButton ( " MC " , mLargePage , " MemClear-Button " , i18n ( " Clear memory " ) ) ;
pbMC = new KCalcButton ( " MC " , mLargePage , " MemClear-Button " , i18n ( " Clear memory " ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbMC , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbMC , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbMC , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotMCclicked ( void ) ) ) ;
connect ( pbMC , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotMCclicked ( void ) ) ) ;
pbClear = new KCalcButton ( " C " , mLargePage , " Clear-Button " , i18n ( " Clear " ) ) ;
pbClear = new KCalcButton ( " C " , mLargePage , " Clear-Button " , i18n ( " Clear " ) ) ;
pbClear - > setAccel ( Key_Prior ) ;
pbClear - > setAccel ( Key_Prior ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
TQT_TQOBJECT( pbClear) , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbClear, TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
accel ( ) - > insert ( " Entered 'ESC' " , i18n ( " Pressed ESC-Button " ) , 0 ,
accel ( ) - > insert ( " Entered 'ESC' " , i18n ( " Pressed ESC-Button " ) , 0 ,
Key_Escape , TQT_TQOBJECT( pbClear) , TQT_SLOT ( animateClick ( ) ) ) ;
Key_Escape , pbClear, TQT_SLOT ( animateClick ( ) ) ) ;
connect ( TQT_TQOBJECT( pbClear) , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotClearclicked ( void ) ) ) ;
connect ( pbClear, TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotClearclicked ( void ) ) ) ;
pbAC = new KCalcButton ( " AC " , mLargePage , " AC-Button " , i18n ( " Clear all " ) ) ;
pbAC = new KCalcButton ( " AC " , mLargePage , " AC-Button " , i18n ( " Clear all " ) ) ;
pbAC - > setAccel ( Key_Delete ) ;
pbAC - > setAccel ( Key_Delete ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbAC , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbAC , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbAC , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotACclicked ( void ) ) ) ;
connect ( pbAC , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotACclicked ( void ) ) ) ;
pbParenOpen = new KCalcButton ( " ( " , mLargePage , " ParenOpen-Button " ) ;
pbParenOpen = new KCalcButton ( " ( " , mLargePage , " ParenOpen-Button " ) ;
pbParenOpen - > setAccel ( Key_ParenLeft ) ;
pbParenOpen - > setAccel ( Key_ParenLeft ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbParenOpen , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbParenOpen , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbParenOpen , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotParenOpenclicked ( void ) ) ) ;
connect ( pbParenOpen , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotParenOpenclicked ( void ) ) ) ;
pbPercent = new KCalcButton ( " % " , mLargePage , " Percent-Button " , i18n ( " Percent " ) ) ;
pbPercent = new KCalcButton ( " % " , mLargePage , " Percent-Button " , i18n ( " Percent " ) ) ;
pbPercent - > setAccel ( Key_Percent ) ;
pbPercent - > setAccel ( Key_Percent ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbPercent , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbPercent , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbPercent , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPercentclicked ( void ) ) ) ;
connect ( pbPercent , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPercentclicked ( void ) ) ) ;
pbPlusMinus = new KCalcButton ( " \xb1 " , mLargePage , " Sign-Button " , i18n ( " Change sign " ) ) ;
pbPlusMinus = new KCalcButton ( " \xb1 " , mLargePage , " Sign-Button " , i18n ( " Change sign " ) ) ;
pbPlusMinus - > setAccel ( Key_Backslash ) ;
pbPlusMinus - > setAccel ( Key_Backslash ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
pbPlusMinus , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
pbPlusMinus , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( pbPlusMinus , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPlusMinusclicked ( void ) ) ) ;
connect ( pbPlusMinus , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotPlusMinusclicked ( void ) ) ) ;
tmp_pb = new KCalcButton ( " A " , mSmallPage , " A-Button " ) ;
tmp_pb = new KCalcButton ( " A " , mSmallPage , " A-Button " ) ;
tmp_pb - > setAccel ( Key_A ) ;
tmp_pb - > setAccel ( Key_A ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 0xA ) ;
NumButtonGroup - > insert ( tmp_pb , 0xA ) ;
tmp_pb = new KCalcButton ( " B " , mSmallPage , " B-Button " ) ;
tmp_pb = new KCalcButton ( " B " , mSmallPage , " B-Button " ) ;
tmp_pb - > setAccel ( Key_B ) ;
tmp_pb - > setAccel ( Key_B ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 0xB ) ;
NumButtonGroup - > insert ( tmp_pb , 0xB ) ;
tmp_pb = new KCalcButton ( " C " , mSmallPage , " C-Button " ) ;
tmp_pb = new KCalcButton ( " C " , mSmallPage , " C-Button " ) ;
tmp_pb - > setAccel ( Key_C ) ;
tmp_pb - > setAccel ( Key_C ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 0xC ) ;
NumButtonGroup - > insert ( tmp_pb , 0xC ) ;
tmp_pb = new KCalcButton ( " D " , mSmallPage , " D-Button " ) ;
tmp_pb = new KCalcButton ( " D " , mSmallPage , " D-Button " ) ;
tmp_pb - > setAccel ( Key_D ) ;
tmp_pb - > setAccel ( Key_D ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 0xD ) ;
NumButtonGroup - > insert ( tmp_pb , 0xD ) ;
tmp_pb = new KCalcButton ( " E " , mSmallPage , " E-Button " ) ;
tmp_pb = new KCalcButton ( " E " , mSmallPage , " E-Button " ) ;
tmp_pb - > setAccel ( Key_E ) ;
tmp_pb - > setAccel ( Key_E ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 0xE ) ;
NumButtonGroup - > insert ( tmp_pb , 0xE ) ;
tmp_pb = new KCalcButton ( " F " , mSmallPage , " F-Button " ) ;
tmp_pb = new KCalcButton ( " F " , mSmallPage , " F-Button " ) ;
tmp_pb - > setAccel ( Key_F ) ;
tmp_pb - > setAccel ( Key_F ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
NumButtonGroup - > insert ( tmp_pb , 0xF ) ;
NumButtonGroup - > insert ( tmp_pb , 0xF ) ;
@ -750,20 +750,20 @@ void KCalculator::setupLogicKeys(TQWidget *parent)
tmp_pb = new KCalcButton ( " AND " , parent , " AND-Button " , i18n ( " Bitwise AND " ) ) ;
tmp_pb = new KCalcButton ( " AND " , parent , " AND-Button " , i18n ( " Bitwise AND " ) ) ;
pbLogic . insert ( " AND " , tmp_pb ) ;
pbLogic . insert ( " AND " , tmp_pb ) ;
tmp_pb - > setAccel ( Key_Ampersand ) ;
tmp_pb - > setAccel ( Key_Ampersand ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotANDclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotANDclicked ( void ) ) ) ;
tmp_pb = new KCalcButton ( " OR " , parent , " OR-Button " , i18n ( " Bitwise OR " ) ) ;
tmp_pb = new KCalcButton ( " OR " , parent , " OR-Button " , i18n ( " Bitwise OR " ) ) ;
pbLogic . insert ( " OR " , tmp_pb ) ;
pbLogic . insert ( " OR " , tmp_pb ) ;
tmp_pb - > setAccel ( Key_Bar ) ;
tmp_pb - > setAccel ( Key_Bar ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotORclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotORclicked ( void ) ) ) ;
tmp_pb = new KCalcButton ( " XOR " , parent , " XOR-Button " , i18n ( " Bitwise XOR " ) ) ;
tmp_pb = new KCalcButton ( " XOR " , parent , " XOR-Button " , i18n ( " Bitwise XOR " ) ) ;
pbLogic . insert ( " XOR " , tmp_pb ) ;
pbLogic . insert ( " XOR " , tmp_pb ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotXORclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotXORclicked ( void ) ) ) ;
@ -771,7 +771,7 @@ void KCalculator::setupLogicKeys(TQWidget *parent)
i18n ( " One's complement " ) ) ;
i18n ( " One's complement " ) ) ;
pbLogic . insert ( " One-Complement " , tmp_pb ) ;
pbLogic . insert ( " One-Complement " , tmp_pb ) ;
tmp_pb - > setAccel ( Key_AsciiTilde ) ;
tmp_pb - > setAccel ( Key_AsciiTilde ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotNegateclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotNegateclicked ( void ) ) ) ;
@ -779,7 +779,7 @@ void KCalculator::setupLogicKeys(TQWidget *parent)
i18n ( " Left bit shift " ) ) ;
i18n ( " Left bit shift " ) ) ;
tmp_pb - > setAccel ( Key_Less ) ;
tmp_pb - > setAccel ( Key_Less ) ;
pbLogic . insert ( " LeftShift " , tmp_pb ) ;
pbLogic . insert ( " LeftShift " , tmp_pb ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) ,
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) ,
TQT_SLOT ( slotLeftShiftclicked ( void ) ) ) ;
TQT_SLOT ( slotLeftShiftclicked ( void ) ) ) ;
@ -788,7 +788,7 @@ void KCalculator::setupLogicKeys(TQWidget *parent)
i18n ( " Right bit shift " ) ) ;
i18n ( " Right bit shift " ) ) ;
tmp_pb - > setAccel ( Key_Greater ) ;
tmp_pb - > setAccel ( Key_Greater ) ;
pbLogic . insert ( " RightShift " , tmp_pb ) ;
pbLogic . insert ( " RightShift " , tmp_pb ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) ,
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) ,
TQT_SLOT ( slotRightShiftclicked ( void ) ) ) ;
TQT_SLOT ( slotRightShiftclicked ( void ) ) ) ;
@ -803,7 +803,7 @@ void KCalculator::setupScientificKeys(TQWidget *parent)
tmp_pb = new KCalcButton ( " Hyp " , parent , " Hyp-Button " , i18n ( " Hyperbolic mode " ) ) ;
tmp_pb = new KCalcButton ( " Hyp " , parent , " Hyp-Button " , i18n ( " Hyperbolic mode " ) ) ;
pbScientific . insert ( " HypMode " , tmp_pb ) ;
pbScientific . insert ( " HypMode " , tmp_pb ) ;
tmp_pb - > setAccel ( Key_H ) ;
tmp_pb - > setAccel ( Key_H ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( toggled ( bool ) ) , TQT_SLOT ( slotHyptoggled ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( toggled ( bool ) ) , TQT_SLOT ( slotHyptoggled ( bool ) ) ) ;
tmp_pb - > setToggleButton ( true ) ;
tmp_pb - > setToggleButton ( true ) ;
@ -816,9 +816,9 @@ void KCalculator::setupScientificKeys(TQWidget *parent)
tmp_pb - > addMode ( ButtonModeFlags ( ModeInverse | ModeHyperbolic ) ,
tmp_pb - > addMode ( ButtonModeFlags ( ModeInverse | ModeHyperbolic ) ,
" Asinh " , i18n ( " Inverse hyperbolic sine " ) ) ;
" Asinh " , i18n ( " Inverse hyperbolic sine " ) ) ;
tmp_pb - > setAccel ( Key_S ) ;
tmp_pb - > setAccel ( Key_S ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotSinclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotSinclicked ( void ) ) ) ;
@ -830,9 +830,9 @@ void KCalculator::setupScientificKeys(TQWidget *parent)
tmp_pb - > addMode ( ButtonModeFlags ( ModeInverse | ModeHyperbolic ) ,
tmp_pb - > addMode ( ButtonModeFlags ( ModeInverse | ModeHyperbolic ) ,
" Acosh " , i18n ( " Inverse hyperbolic cosine " ) ) ;
" Acosh " , i18n ( " Inverse hyperbolic cosine " ) ) ;
tmp_pb - > setAccel ( Key_C ) ;
tmp_pb - > setAccel ( Key_C ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotCosclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotCosclicked ( void ) ) ) ;
@ -844,9 +844,9 @@ void KCalculator::setupScientificKeys(TQWidget *parent)
tmp_pb - > addMode ( ButtonModeFlags ( ModeInverse | ModeHyperbolic ) ,
tmp_pb - > addMode ( ButtonModeFlags ( ModeInverse | ModeHyperbolic ) ,
" Atanh " , i18n ( " Inverse hyperbolic tangent " ) ) ;
" Atanh " , i18n ( " Inverse hyperbolic tangent " ) ) ;
tmp_pb - > setAccel ( Key_T ) ;
tmp_pb - > setAccel ( Key_T ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotTanclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotTanclicked ( void ) ) ) ;
@ -856,9 +856,9 @@ void KCalculator::setupScientificKeys(TQWidget *parent)
true ) ;
true ) ;
pbScientific . insert ( " LogNatural " , tmp_pb ) ;
pbScientific . insert ( " LogNatural " , tmp_pb ) ;
tmp_pb - > setAccel ( Key_N ) ;
tmp_pb - > setAccel ( Key_N ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotLnclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotLnclicked ( void ) ) ) ;
@ -868,9 +868,9 @@ void KCalculator::setupScientificKeys(TQWidget *parent)
true ) ;
true ) ;
pbScientific . insert ( " Log10 " , tmp_pb ) ;
pbScientific . insert ( " Log10 " , tmp_pb ) ;
tmp_pb - > setAccel ( Key_L ) ;
tmp_pb - > setAccel ( Key_L ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotLogclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotLogclicked ( void ) ) ) ;
@ -888,9 +888,9 @@ void KCalculator::setupStatisticKeys(TQWidget *parent)
+ " x " , i18n ( " Sum of all data items " ) ) ;
+ " x " , i18n ( " Sum of all data items " ) ) ;
pbStat . insert ( " NumData " , tmp_pb ) ;
pbStat . insert ( " NumData " , tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatNumclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatNumclicked ( void ) ) ) ;
@ -899,7 +899,7 @@ void KCalculator::setupStatisticKeys(TQWidget *parent)
pbStat . insert ( " Median " , tmp_pb ) ;
pbStat . insert ( " Median " , tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
TQToolTip : : add ( tmp_pb , i18n ( " Median " ) ) ;
TQToolTip : : add ( tmp_pb , i18n ( " Median " ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatMedianclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatMedianclicked ( void ) ) ) ;
@ -910,9 +910,9 @@ void KCalculator::setupStatisticKeys(TQWidget *parent)
i18n ( " Sum of all data items squared " ) , true ) ;
i18n ( " Sum of all data items squared " ) , true ) ;
pbStat . insert ( " Mean " , tmp_pb ) ;
pbStat . insert ( " Mean " , tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatMeanclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatMeanclicked ( void ) ) ) ;
@ -923,9 +923,9 @@ void KCalculator::setupStatisticKeys(TQWidget *parent)
i18n ( " Standard deviation " ) , true ) ;
i18n ( " Standard deviation " ) , true ) ;
pbStat . insert ( " StandardDeviation " , tmp_pb ) ;
pbStat . insert ( " StandardDeviation " , tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatStdDevclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatStdDevclicked ( void ) ) ) ;
@ -934,9 +934,9 @@ void KCalculator::setupStatisticKeys(TQWidget *parent)
tmp_pb - > addMode ( ModeInverse , " CDat " , i18n ( " Delete last data item " ) ) ;
tmp_pb - > addMode ( ModeInverse , " CDat " , i18n ( " Delete last data item " ) ) ;
pbStat . insert ( " InputData " , tmp_pb ) ;
pbStat . insert ( " InputData " , tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatDataInputclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatDataInputclicked ( void ) ) ) ;
@ -944,7 +944,7 @@ void KCalculator::setupStatisticKeys(TQWidget *parent)
tmp_pb - > addMode ( ModeNormal , " CSt " , i18n ( " Clear data store " ) ) ;
tmp_pb - > addMode ( ModeNormal , " CSt " , i18n ( " Clear data store " ) ) ;
pbStat . insert ( " ClearData " , tmp_pb ) ;
pbStat . insert ( " ClearData " , tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
mStatButtonList . append ( tmp_pb ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatClearDataclicked ( void ) ) ) ;
connect ( tmp_pb , TQT_SIGNAL ( clicked ( void ) ) , TQT_SLOT ( slotStatClearDataclicked ( void ) ) ) ;
}
}
@ -961,54 +961,54 @@ void KCalculator::setupConstantsKeys(TQWidget *parent)
tmp_pb = new KCalcConstButton ( parent , 0 , " C1 " ) ;
tmp_pb = new KCalcConstButton ( parent , 0 , " C1 " ) ;
tmp_pb - > setAccel ( ALT + Key_1 ) ;
tmp_pb - > setAccel ( ALT + Key_1 ) ;
pbConstant [ 0 ] = tmp_pb ;
pbConstant [ 0 ] = tmp_pb ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
ConstButtonGroup - > insert ( tmp_pb , 0 ) ;
ConstButtonGroup - > insert ( tmp_pb , 0 ) ;
tmp_pb = new KCalcConstButton ( parent , 1 , " C2 " ) ;
tmp_pb = new KCalcConstButton ( parent , 1 , " C2 " ) ;
tmp_pb - > setAccel ( ALT + Key_2 ) ;
tmp_pb - > setAccel ( ALT + Key_2 ) ;
pbConstant [ 1 ] = tmp_pb ;
pbConstant [ 1 ] = tmp_pb ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
ConstButtonGroup - > insert ( tmp_pb , 1 ) ;
ConstButtonGroup - > insert ( tmp_pb , 1 ) ;
tmp_pb = new KCalcConstButton ( parent , 2 , " C3 " ) ;
tmp_pb = new KCalcConstButton ( parent , 2 , " C3 " ) ;
tmp_pb - > setAccel ( ALT + Key_3 ) ;
tmp_pb - > setAccel ( ALT + Key_3 ) ;
pbConstant [ 2 ] = tmp_pb ;
pbConstant [ 2 ] = tmp_pb ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
ConstButtonGroup - > insert ( tmp_pb , 2 ) ;
ConstButtonGroup - > insert ( tmp_pb , 2 ) ;
tmp_pb = new KCalcConstButton ( parent , 3 , " C4 " ) ;
tmp_pb = new KCalcConstButton ( parent , 3 , " C4 " ) ;
tmp_pb - > setAccel ( ALT + Key_4 ) ;
tmp_pb - > setAccel ( ALT + Key_4 ) ;
pbConstant [ 3 ] = tmp_pb ;
pbConstant [ 3 ] = tmp_pb ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
ConstButtonGroup - > insert ( tmp_pb , 3 ) ;
ConstButtonGroup - > insert ( tmp_pb , 3 ) ;
tmp_pb = new KCalcConstButton ( parent , 4 , " C5 " ) ;
tmp_pb = new KCalcConstButton ( parent , 4 , " C5 " ) ;
tmp_pb - > setAccel ( ALT + Key_5 ) ;
tmp_pb - > setAccel ( ALT + Key_5 ) ;
pbConstant [ 4 ] = tmp_pb ;
pbConstant [ 4 ] = tmp_pb ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
ConstButtonGroup - > insert ( tmp_pb , 4 ) ;
ConstButtonGroup - > insert ( tmp_pb , 4 ) ;
tmp_pb = new KCalcConstButton ( parent , 5 , " C6 " ) ;
tmp_pb = new KCalcConstButton ( parent , 5 , " C6 " ) ;
tmp_pb - > setAccel ( ALT + Key_6 ) ;
tmp_pb - > setAccel ( ALT + Key_6 ) ;
pbConstant [ 5 ] = tmp_pb ;
pbConstant [ 5 ] = tmp_pb ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
connect ( this , TQT_SIGNAL ( switchShowAccels ( bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetAccelDisplayMode ( bool ) ) ) ;
connect ( TQT_TQOBJECT ( this ) , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
connect ( this , TQT_SIGNAL ( switchMode ( ButtonModeFlags , bool ) ) ,
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
tmp_pb , TQT_SLOT ( slotSetMode ( ButtonModeFlags , bool ) ) ) ;
ConstButtonGroup - > insert ( tmp_pb , 5 ) ;
ConstButtonGroup - > insert ( tmp_pb , 5 ) ;