@ -264,8 +264,8 @@ KQalculate::KQalculate(KUniqueApplication *parent, const char* name, WFlags fl)
history_height = 0 ;
history_height = 0 ;
trayicon = NULL ;
trayicon = NULL ;
ActionHideSystemTrayIcon = new TDEAction ( i18n ( " Remove from System Tray " ) , " hidesystemtrayicon " , 0 , this , SLOT( hideSystemTrayIcon ( ) ) , actionCollection ( ) , " hide_system_tray_icon " ) ;
ActionHideSystemTrayIcon = new TDEAction ( i18n ( " Remove from System Tray " ) , " hidesystemtrayicon " , 0 , this , TQ_ SLOT( hideSystemTrayIcon ( ) ) , actionCollection ( ) , " hide_system_tray_icon " ) ;
ActionHide = new TDEAction ( i18n ( " Hide " ) , " hide " , 0 , this , SLOT( hide ( ) ) , actionCollection ( ) , " hide " ) ;
ActionHide = new TDEAction ( i18n ( " Hide " ) , " hide " , 0 , this , TQ_ SLOT( hide ( ) ) , actionCollection ( ) , " hide " ) ;
showSystemTrayIcon ( close_to_systray ) ;
showSystemTrayIcon ( close_to_systray ) ;
setCentralWidget ( new TQWidget ( this ) ) ;
setCentralWidget ( new TQWidget ( this ) ) ;
@ -608,62 +608,62 @@ KQalculate::KQalculate(KUniqueApplication *parent, const char* name, WFlags fl)
bottomLayout - > addItem ( new TQSpacerItem ( 1 , 1 , TQSizePolicy : : Expanding , TQSizePolicy : : Minimum ) ) ;
bottomLayout - > addItem ( new TQSpacerItem ( 1 , 1 , TQSizePolicy : : Expanding , TQSizePolicy : : Minimum ) ) ;
mainLayout - > addLayout ( bottomLayout ) ;
mainLayout - > addLayout ( bottomLayout ) ;
connect ( stackList , SIGNAL( selectionChanged ( ) ) , this , SLOT( registerSelected ( ) ) ) ;
connect ( stackList , TQ_ SIGNAL( selectionChanged ( ) ) , this , TQ_ SLOT( registerSelected ( ) ) ) ;
connect ( stackList , SIGNAL( itemRenamed ( TQListViewItem * ) ) , this , SLOT( stackRegisterSet ( TQListViewItem * ) ) ) ;
connect ( stackList , TQ_ SIGNAL( itemRenamed ( TQListViewItem * ) ) , this , TQ_ SLOT( stackRegisterSet ( TQListViewItem * ) ) ) ;
connect ( stackList , SIGNAL( moved ( ) ) , this , SLOT( stackRegisterMoved ( ) ) ) ;
connect ( stackList , TQ_ SIGNAL( moved ( ) ) , this , TQ_ SLOT( stackRegisterMoved ( ) ) ) ;
connect ( stackList , SIGNAL( contextMenu ( TDEListView * , TQListViewItem * , const TQPoint & ) ) , this , SLOT( popupStackMenu ( TDEListView * , TQListViewItem * , const TQPoint & ) ) ) ;
connect ( stackList , TQ_ SIGNAL( contextMenu ( TDEListView * , TQListViewItem * , const TQPoint & ) ) , this , TQ_ SLOT( popupStackMenu ( TDEListView * , TQListViewItem * , const TQPoint & ) ) ) ;
connect ( registerUpButton , SIGNAL( clicked ( ) ) , this , SLOT( registerUp ( ) ) ) ;
connect ( registerUpButton , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( registerUp ( ) ) ) ;
connect ( registerDownButton , SIGNAL( clicked ( ) ) , this , SLOT( registerDown ( ) ) ) ;
connect ( registerDownButton , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( registerDown ( ) ) ) ;
connect ( editRegisterButton , SIGNAL( clicked ( ) ) , this , SLOT( editRegister ( ) ) ) ;
connect ( editRegisterButton , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( editRegister ( ) ) ) ;
connect ( deleteRegisterButton , SIGNAL( clicked ( ) ) , this , SLOT( deleteRegister ( ) ) ) ;
connect ( deleteRegisterButton , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( deleteRegister ( ) ) ) ;
connect ( clearStackButton , SIGNAL( clicked ( ) ) , this , SLOT( clearStack ( ) ) ) ;
connect ( clearStackButton , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( clearStack ( ) ) ) ;
connect ( stackButton , SIGNAL( toggled ( bool ) ) , this , SLOT( toggleStack ( bool ) ) ) ;
connect ( stackButton , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( toggleStack ( bool ) ) ) ;
connect ( historyButton , SIGNAL( toggled ( bool ) ) , this , SLOT( toggleHistory ( bool ) ) ) ;
connect ( historyButton , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( toggleHistory ( bool ) ) ) ;
connect ( keypadButton , SIGNAL( toggled ( bool ) ) , this , SLOT( toggleKeypad ( bool ) ) ) ;
connect ( keypadButton , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( toggleKeypad ( bool ) ) ) ;
connect ( kp0 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP0 ( ) ) ) ;
connect ( kp0 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP0 ( ) ) ) ;
connect ( kp1 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP1 ( ) ) ) ;
connect ( kp1 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP1 ( ) ) ) ;
connect ( kp2 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP2 ( ) ) ) ;
connect ( kp2 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP2 ( ) ) ) ;
connect ( kp3 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP3 ( ) ) ) ;
connect ( kp3 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP3 ( ) ) ) ;
connect ( kp4 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP4 ( ) ) ) ;
connect ( kp4 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP4 ( ) ) ) ;
connect ( kp5 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP5 ( ) ) ) ;
connect ( kp5 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP5 ( ) ) ) ;
connect ( kp6 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP6 ( ) ) ) ;
connect ( kp6 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP6 ( ) ) ) ;
connect ( kp7 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP7 ( ) ) ) ;
connect ( kp7 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP7 ( ) ) ) ;
connect ( kp8 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP8 ( ) ) ) ;
connect ( kp8 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP8 ( ) ) ) ;
connect ( kp9 , SIGNAL( clicked ( ) ) , this , SLOT( insertKP9 ( ) ) ) ;
connect ( kp9 , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertKP9 ( ) ) ) ;
connect ( kpDot , SIGNAL( clicked ( ) ) , this , SLOT( insertDot ( ) ) ) ;
connect ( kpDot , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertDot ( ) ) ) ;
connect ( kpExp , SIGNAL( clicked ( ) ) , this , SLOT( insertExp ( ) ) ) ;
connect ( kpExp , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertExp ( ) ) ) ;
connect ( kpAns , SIGNAL( clicked ( ) ) , this , SLOT( insertAns ( ) ) ) ;
connect ( kpAns , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertAns ( ) ) ) ;
connect ( kpEquals , SIGNAL( clicked ( ) ) , this , SLOT( execute ( ) ) ) ;
connect ( kpEquals , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( execute ( ) ) ) ;
connect ( kpPlus , SIGNAL( clicked ( ) ) , this , SLOT( insertPlus ( ) ) ) ;
connect ( kpPlus , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertPlus ( ) ) ) ;
connect ( kpMinus , SIGNAL( clicked ( ) ) , this , SLOT( insertMinus ( ) ) ) ;
connect ( kpMinus , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertMinus ( ) ) ) ;
connect ( kpTimes , SIGNAL( clicked ( ) ) , this , SLOT( insertTimes ( ) ) ) ;
connect ( kpTimes , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertTimes ( ) ) ) ;
connect ( kpDivision , SIGNAL( clicked ( ) ) , this , SLOT( insertDivision ( ) ) ) ;
connect ( kpDivision , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertDivision ( ) ) ) ;
connect ( kpDel , SIGNAL( clicked ( ) ) , this , SLOT( expressionDel ( ) ) ) ;
connect ( kpDel , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( expressionDel ( ) ) ) ;
connect ( kpClear , SIGNAL( clicked ( ) ) , this , SLOT( clearExpression ( ) ) ) ;
connect ( kpClear , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( clearExpression ( ) ) ) ;
connect ( kpSin , SIGNAL( clicked ( ) ) , this , SLOT( insertSin ( ) ) ) ;
connect ( kpSin , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertSin ( ) ) ) ;
connect ( kpCos , SIGNAL( clicked ( ) ) , this , SLOT( insertCos ( ) ) ) ;
connect ( kpCos , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertCos ( ) ) ) ;
connect ( kpTan , SIGNAL( clicked ( ) ) , this , SLOT( insertTan ( ) ) ) ;
connect ( kpTan , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertTan ( ) ) ) ;
connect ( kpSqrt , SIGNAL( clicked ( ) ) , this , SLOT( insertSqrt ( ) ) ) ;
connect ( kpSqrt , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertSqrt ( ) ) ) ;
connect ( kpLog , SIGNAL( clicked ( ) ) , this , SLOT( insertLog ( ) ) ) ;
connect ( kpLog , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertLog ( ) ) ) ;
connect ( kpLn , SIGNAL( clicked ( ) ) , this , SLOT( insertLn ( ) ) ) ;
connect ( kpLn , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertLn ( ) ) ) ;
connect ( kpRaise , SIGNAL( clicked ( ) ) , this , SLOT( insertRaise ( ) ) ) ;
connect ( kpRaise , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertRaise ( ) ) ) ;
connect ( kpSquare , SIGNAL( clicked ( ) ) , this , SLOT( insertSquare ( ) ) ) ;
connect ( kpSquare , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertSquare ( ) ) ) ;
connect ( kpFraction , SIGNAL( toggled ( bool ) ) , this , SLOT( setFractionMode ( bool ) ) ) ;
connect ( kpFraction , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( setFractionMode ( bool ) ) ) ;
connect ( kpExact , SIGNAL( toggled ( bool ) ) , this , SLOT( setExactMode ( bool ) ) ) ;
connect ( kpExact , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( setExactMode ( bool ) ) ) ;
connect ( kpAngleGroup , SIGNAL( clicked ( int ) ) , this , SLOT( kpSetAngleUnit ( int ) ) ) ;
connect ( kpAngleGroup , TQ_ SIGNAL( clicked ( int ) ) , this , TQ_ SLOT( kpSetAngleUnit ( int ) ) ) ;
connect ( kpBaseCombo - > listBox ( ) , SIGNAL( selected ( int ) ) , this , SLOT( kpSetBaseSelected ( int ) ) ) ;
connect ( kpBaseCombo - > listBox ( ) , TQ_ SIGNAL( selected ( int ) ) , this , TQ_ SLOT( kpSetBaseSelected ( int ) ) ) ;
connect ( kpBaseCombo , SIGNAL( activated ( int ) ) , this , SLOT( kpSetBase ( int ) ) ) ;
connect ( kpBaseCombo , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( kpSetBase ( int ) ) ) ;
connect ( kpNumericCombo , SIGNAL( activated ( int ) ) , this , SLOT( kpSetNumericalMode ( int ) ) ) ;
connect ( kpNumericCombo , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( kpSetNumericalMode ( int ) ) ) ;
//connect(kpMod, SIGNAL(clicked()), this, SLOT(insertMod()));
//connect(kpMod, TQ_ SIGNAL(clicked()), this, TQ_ SLOT(insertMod()));
connect ( kpFactorial , SIGNAL( clicked ( ) ) , this , SLOT( insertFactorial ( ) ) ) ;
connect ( kpFactorial , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( insertFactorial ( ) ) ) ;
//connect(expressionEdit, SIGNAL(returnPressed()), this, SLOT(execute()));
//connect(expressionEdit, TQ_ SIGNAL(returnPressed()), this, TQ_ SLOT(execute()));
connect ( expressionEdit , SIGNAL( textChanged ( const TQString & ) ) , this , SLOT( onExpressionChanged ( ) ) ) ;
connect ( expressionEdit , TQ_ SIGNAL( textChanged ( const TQString & ) ) , this , TQ_ SLOT( onExpressionChanged ( ) ) ) ;
connect ( storeButton , SIGNAL( clicked ( ) ) , this , SLOT( storeResult ( ) ) ) ;
connect ( storeButton , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( storeResult ( ) ) ) ;
connect ( executeButton , SIGNAL( clicked ( ) ) , this , SLOT( execute ( ) ) ) ;
connect ( executeButton , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( execute ( ) ) ) ;
connect ( convertButton , SIGNAL( clicked ( ) ) , this , SLOT( convertToUnitExpression ( ) ) ) ;
connect ( convertButton , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( convertToUnitExpression ( ) ) ) ;
connect ( functionsButton , SIGNAL( clicked ( ) ) , this , SLOT( manageFunctions ( ) ) ) ;
connect ( functionsButton , TQ_ SIGNAL( clicked ( ) ) , this , TQ_ SLOT( manageFunctions ( ) ) ) ;
connect ( expressionEdit , SIGNAL( cursorMoved ( ) ) , this , SLOT( displayParseStatus ( ) ) ) ;
connect ( expressionEdit , TQ_ SIGNAL( cursorMoved ( ) ) , this , TQ_ SLOT( displayParseStatus ( ) ) ) ;
connect ( expressionEdit - > qalculateCompletionBox , SIGNAL( hidden ( ) ) , statusLabel_l , SLOT( update ( ) ) ) ;
connect ( expressionEdit - > qalculateCompletionBox , TQ_ SIGNAL( hidden ( ) ) , statusLabel_l , TQ_ SLOT( update ( ) ) ) ;
//tab order
//tab order
setTabOrder ( expressionEdit , resultLabel ) ;
setTabOrder ( expressionEdit , resultLabel ) ;
@ -887,22 +887,22 @@ KQalculate::KQalculate(KUniqueApplication *parent, const char* name, WFlags fl)
menu_set_prefix = ( TQPopupMenu * ) factory ( ) - > container ( " set_prefix " , this ) ;
menu_set_prefix = ( TQPopupMenu * ) factory ( ) - > container ( " set_prefix " , this ) ;
menu_modes = ( TQPopupMenu * ) factory ( ) - > container ( " modes " , this ) ;
menu_modes = ( TQPopupMenu * ) factory ( ) - > container ( " modes " , this ) ;
TQObject : : connect ( menu_modes , SIGNAL( activated ( int ) ) , this , SLOT( onModesMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_modes , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onModesMenuItemActivated ( int ) ) ) ;
for ( size_t i = 0 ; i < modes . size ( ) ; i + + ) {
for ( size_t i = 0 ; i < modes . size ( ) ; i + + ) {
menu_modes - > insertItem ( modes [ i ] . name , - 1 , i ) ;
menu_modes - > insertItem ( modes [ i ] . name , - 1 , i ) ;
if ( i > 1 ) {
if ( i > 1 ) {
ModeObject * mo = new ModeObject ( i ) ;
ModeObject * mo = new ModeObject ( i ) ;
mo - > i_mode = i ;
mo - > i_mode = i ;
mode_objects . push_back ( mo ) ;
mode_objects . push_back ( mo ) ;
accel ( ) - > insert ( TQString ( " Load mode: " ) + modes [ i ] . name , i18n ( " Load meta mode: %1 " ) . arg ( modes [ i ] . name ) , TQString : : null , modes [ i ] . shortcut , mo , SLOT( loadMode ( ) ) ) ;
accel ( ) - > insert ( TQString ( " Load mode: " ) + modes [ i ] . name , i18n ( " Load meta mode: %1 " ) . arg ( modes [ i ] . name ) , TQString : : null , modes [ i ] . shortcut , mo , TQ_ SLOT( loadMode ( ) ) ) ;
}
}
}
}
TQObject : : connect ( menu_functions , SIGNAL( activated ( int ) ) , this , SLOT( onFunctionMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_functions , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onFunctionMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_variables , SIGNAL( activated ( int ) ) , this , SLOT( onVariableMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_variables , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onVariableMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_units , SIGNAL( activated ( int ) ) , this , SLOT( onUnitMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_units , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onUnitMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_to_unit , SIGNAL( activated ( int ) ) , this , SLOT( onConvertToUnitMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_to_unit , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onConvertToUnitMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_set_prefix , SIGNAL( activated ( int ) ) , this , SLOT( onSetPrefixMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_set_prefix , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onSetPrefixMenuItemActivated ( int ) ) ) ;
}
}
@ -956,7 +956,7 @@ void KQalculate::fontChange(const TQFont &old_font) {
void KQalculate : : showSystemTrayIcon ( bool do_show ) {
void KQalculate : : showSystemTrayIcon ( bool do_show ) {
if ( do_show & & ! trayicon ) {
if ( do_show & & ! trayicon ) {
trayicon = new KSystemTray ( this ) ;
trayicon = new KSystemTray ( this ) ;
TQObject : : connect ( trayicon , SIGNAL( quitSelected ( ) ) , tqApp , SLOT( quit ( ) ) ) ;
TQObject : : connect ( trayicon , TQ_ SIGNAL( quitSelected ( ) ) , tqApp , TQ_ SLOT( quit ( ) ) ) ;
# if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 2
# if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 2
trayicon - > setPixmap ( loadSystrayIcon ( PACKAGE ) ) ;
trayicon - > setPixmap ( loadSystrayIcon ( PACKAGE ) ) ;
# else
# else
@ -985,194 +985,194 @@ void KQalculate::hideSystemTrayIcon() {
void KQalculate : : setupActions ( ) {
void KQalculate : : setupActions ( ) {
ActionNewVariable = new TDEAction ( i18n ( " Variable " ) , " filenew " , 0 , this , SLOT( newVariable ( ) ) , actionCollection ( ) , " new_variable " ) ;
ActionNewVariable = new TDEAction ( i18n ( " Variable " ) , " filenew " , 0 , this , TQ_ SLOT( newVariable ( ) ) , actionCollection ( ) , " new_variable " ) ;
ActionNewMatrix = new TDEAction ( i18n ( " Matrix " ) , " filenew " , 0 , this , SLOT( newMatrix ( ) ) , actionCollection ( ) , " new_matrix " ) ;
ActionNewMatrix = new TDEAction ( i18n ( " Matrix " ) , " filenew " , 0 , this , TQ_ SLOT( newMatrix ( ) ) , actionCollection ( ) , " new_matrix " ) ;
ActionNewVector = new TDEAction ( i18n ( " Vector " ) , " filenew " , 0 , this , SLOT( newVector ( ) ) , actionCollection ( ) , " new_vector " ) ;
ActionNewVector = new TDEAction ( i18n ( " Vector " ) , " filenew " , 0 , this , TQ_ SLOT( newVector ( ) ) , actionCollection ( ) , " new_vector " ) ;
ActionNewUnknownVariable = new TDEAction ( i18n ( " Unknown Variable " ) , " filenew " , 0 , this , SLOT( newUnknownVariable ( ) ) , actionCollection ( ) , " new_unknown_variable " ) ;
ActionNewUnknownVariable = new TDEAction ( i18n ( " Unknown Variable " ) , " filenew " , 0 , this , TQ_ SLOT( newUnknownVariable ( ) ) , actionCollection ( ) , " new_unknown_variable " ) ;
ActionNewFunction = new TDEAction ( i18n ( " Function " ) , " filenew " , 0 , this , SLOT( newFunction ( ) ) , actionCollection ( ) , " new_function " ) ;
ActionNewFunction = new TDEAction ( i18n ( " Function " ) , " filenew " , 0 , this , TQ_ SLOT( newFunction ( ) ) , actionCollection ( ) , " new_function " ) ;
ActionNewDataSet = new TDEAction ( i18n ( " Data Set " ) , " filenew " , 0 , this , SLOT( newDataSet ( ) ) , actionCollection ( ) , " new_data_set " ) ;
ActionNewDataSet = new TDEAction ( i18n ( " Data Set " ) , " filenew " , 0 , this , TQ_ SLOT( newDataSet ( ) ) , actionCollection ( ) , " new_data_set " ) ;
ActionNewUnit = new TDEAction ( i18n ( " Unit " ) , " filenew " , 0 , this , SLOT( newUnit ( ) ) , actionCollection ( ) , " new_unit " ) ;
ActionNewUnit = new TDEAction ( i18n ( " Unit " ) , " filenew " , 0 , this , TQ_ SLOT( newUnit ( ) ) , actionCollection ( ) , " new_unit " ) ;
ActionImportCSVFile = new TDEAction ( i18n ( " Import CSV File... " ) , " fileimport " , 0 , this , SLOT( importCSVFile ( ) ) , actionCollection ( ) , " import_csv_file " ) ;
ActionImportCSVFile = new TDEAction ( i18n ( " Import CSV File... " ) , " fileimport " , 0 , this , TQ_ SLOT( importCSVFile ( ) ) , actionCollection ( ) , " import_csv_file " ) ;
ActionExportCSVFile = new TDEAction ( i18n ( " Export CSV File... " ) , " filexport " , 0 , this , SLOT( exportCSVFile ( ) ) , actionCollection ( ) , " export_csv_file " ) ;
ActionExportCSVFile = new TDEAction ( i18n ( " Export CSV File... " ) , " filexport " , 0 , this , TQ_ SLOT( exportCSVFile ( ) ) , actionCollection ( ) , " export_csv_file " ) ;
ActionStoreResult = new TDEAction ( i18n ( " Store Result... " ) , " filesave " , CTRL + Key_S , this , SLOT( storeResult ( ) ) , actionCollection ( ) , " store_result " ) ;
ActionStoreResult = new TDEAction ( i18n ( " Store Result... " ) , " filesave " , CTRL + Key_S , this , TQ_ SLOT( storeResult ( ) ) , actionCollection ( ) , " store_result " ) ;
ActionSaveAsImage = new TDEAction ( i18n ( " Save Result Image... " ) , " filesave " , 0 , this , SLOT( saveAsImage ( ) ) , actionCollection ( ) , " save_as_image " ) ;
ActionSaveAsImage = new TDEAction ( i18n ( " Save Result Image... " ) , " filesave " , 0 , this , TQ_ SLOT( saveAsImage ( ) ) , actionCollection ( ) , " save_as_image " ) ;
ActionSaveDefinitions = new TDEAction ( i18n ( " Save Definitions " ) , " filesave " , 0 , this , SLOT( saveDefinitions ( ) ) , actionCollection ( ) , " save_definitions " ) ;
ActionSaveDefinitions = new TDEAction ( i18n ( " Save Definitions " ) , " filesave " , 0 , this , TQ_ SLOT( saveDefinitions ( ) ) , actionCollection ( ) , " save_definitions " ) ;
ActionUpdateExchangeRates = new TDEAction ( i18n ( " Update Exchange Rates " ) , " reload " , 0 , this , SLOT( updateExchangeRates ( ) ) , actionCollection ( ) , " update_exchange_rates " ) ;
ActionUpdateExchangeRates = new TDEAction ( i18n ( " Update Exchange Rates " ) , " reload " , 0 , this , TQ_ SLOT( updateExchangeRates ( ) ) , actionCollection ( ) , " update_exchange_rates " ) ;
ActionPlotFunctionsData = new TDEAction ( i18n ( " Plot Functions/Data " ) , 0 , this , SLOT( plotFunctionsData ( ) ) , actionCollection ( ) , " plot_functions_data " ) ;
ActionPlotFunctionsData = new TDEAction ( i18n ( " Plot Functions/Data " ) , 0 , this , TQ_ SLOT( plotFunctionsData ( ) ) , actionCollection ( ) , " plot_functions_data " ) ;
ActionPlotFunctionsData - > setEnabled ( canplot ) ;
ActionPlotFunctionsData - > setEnabled ( canplot ) ;
ActionConvertNumberBases = new TDEAction ( i18n ( " Convert Number Bases " ) , 0 , this , SLOT( convertNumberBases ( ) ) , actionCollection ( ) , " convert_number_bases " ) ;
ActionConvertNumberBases = new TDEAction ( i18n ( " Convert Number Bases " ) , 0 , this , TQ_ SLOT( convertNumberBases ( ) ) , actionCollection ( ) , " convert_number_bases " ) ;
ActionPeriodicTable = new TDEAction ( i18n ( " Periodic Table " ) , 0 , this , SLOT( periodicTable ( ) ) , actionCollection ( ) , " periodic_table " ) ;
ActionPeriodicTable = new TDEAction ( i18n ( " Periodic Table " ) , 0 , this , TQ_ SLOT( periodicTable ( ) ) , actionCollection ( ) , " periodic_table " ) ;
if ( close_to_systray ) {
if ( close_to_systray ) {
ActionClose = KStdAction : : close ( this , SLOT( close ( ) ) , actionCollection ( ) ) ;
ActionClose = KStdAction : : close ( this , TQ_ SLOT( close ( ) ) , actionCollection ( ) ) ;
} else {
} else {
ActionClose = NULL ;
ActionClose = NULL ;
}
}
globalAccel = new TDEGlobalAccel ( this ) ;
globalAccel = new TDEGlobalAccel ( this ) ;
globalAccel - > insert ( " Show/hide Qalculate! " , i18n ( " Show/hide main Qalculate! window " ) , TQString : : null , TDEShortcut ( ) , TDEShortcut ( ) , this , SLOT( showHide ( ) ) ) ;
globalAccel - > insert ( " Show/hide Qalculate! " , i18n ( " Show/hide main Qalculate! window " ) , TQString : : null , TDEShortcut ( ) , TDEShortcut ( ) , this , TQ_ SLOT( showHide ( ) ) ) ;
globalAccel - > readSettings ( ) ;
globalAccel - > readSettings ( ) ;
globalAccel - > updateConnections ( ) ;
globalAccel - > updateConnections ( ) ;
ActionConfigureGlobalShortcuts = new TDEAction ( i18n ( " Configure &Global Shortcuts... " ) , " configure_shortcuts " , 0 , this , SLOT( configureGlobalShortcuts ( ) ) , actionCollection ( ) , " configure_global_shortcuts " ) ;
ActionConfigureGlobalShortcuts = new TDEAction ( i18n ( " Configure &Global Shortcuts... " ) , " configure_shortcuts " , 0 , this , TQ_ SLOT( configureGlobalShortcuts ( ) ) , actionCollection ( ) , " configure_global_shortcuts " ) ;
ActionQuit = KStdAction : : quit ( tqApp , SLOT( quit ( ) ) , actionCollection ( ) ) ;
ActionQuit = KStdAction : : quit ( tqApp , TQ_ SLOT( quit ( ) ) , actionCollection ( ) ) ;
ActionManageVariables = new TDEAction ( i18n ( " Manage Variables " ) , Key_F2 , this , SLOT( manageVariables ( ) ) , actionCollection ( ) , " manage_variables " ) ;
ActionManageVariables = new TDEAction ( i18n ( " Manage Variables " ) , Key_F2 , this , TQ_ SLOT( manageVariables ( ) ) , actionCollection ( ) , " manage_variables " ) ;
ActionManageFunctions = new TDEAction ( i18n ( " Manage Functions " ) , Key_F3 , this , SLOT( manageFunctions ( ) ) , actionCollection ( ) , " manage_functions " ) ;
ActionManageFunctions = new TDEAction ( i18n ( " Manage Functions " ) , Key_F3 , this , TQ_ SLOT( manageFunctions ( ) ) , actionCollection ( ) , " manage_functions " ) ;
ActionManageUnits = new TDEAction ( i18n ( " Manage Units " ) , Key_F4 , this , SLOT( manageUnits ( ) ) , actionCollection ( ) , " manage_units " ) ;
ActionManageUnits = new TDEAction ( i18n ( " Manage Units " ) , Key_F4 , this , TQ_ SLOT( manageUnits ( ) ) , actionCollection ( ) , " manage_units " ) ;
ActionManageDataSets = new TDEAction ( i18n ( " Manage Data Sets " ) , 0 , this , SLOT( manageDataSets ( ) ) , actionCollection ( ) , " manage_data_sets " ) ;
ActionManageDataSets = new TDEAction ( i18n ( " Manage Data Sets " ) , 0 , this , TQ_ SLOT( manageDataSets ( ) ) , actionCollection ( ) , " manage_data_sets " ) ;
ActionFactorize = new TDEAction ( i18n ( " Factorize " ) , 0 , this , SLOT( factorize ( ) ) , actionCollection ( ) , " factorize " ) ;
ActionFactorize = new TDEAction ( i18n ( " Factorize " ) , 0 , this , TQ_ SLOT( factorize ( ) ) , actionCollection ( ) , " factorize " ) ;
ActionSimplify = new TDEAction ( i18n ( " Simplify " ) , 0 , this , SLOT( simplify ( ) ) , actionCollection ( ) , " simplify " ) ;
ActionSimplify = new TDEAction ( i18n ( " Simplify " ) , 0 , this , TQ_ SLOT( simplify ( ) ) , actionCollection ( ) , " simplify " ) ;
ActionSetUnknowns = new TDEAction ( i18n ( " Set Unknowns... " ) , 0 , this , SLOT( setUnknowns ( ) ) , actionCollection ( ) , " set_unknowns " ) ;
ActionSetUnknowns = new TDEAction ( i18n ( " Set Unknowns... " ) , 0 , this , TQ_ SLOT( setUnknowns ( ) ) , actionCollection ( ) , " set_unknowns " ) ;
ActionConvertToUnitExpression = new TDEAction ( i18n ( " Convert to Unit Expression... " ) , CTRL + Key_T , this , SLOT( convertToUnitExpression ( ) ) , actionCollection ( ) , " convert_to_unit_expression " ) ;
ActionConvertToUnitExpression = new TDEAction ( i18n ( " Convert to Unit Expression... " ) , CTRL + Key_T , this , TQ_ SLOT( convertToUnitExpression ( ) ) , actionCollection ( ) , " convert_to_unit_expression " ) ;
ActionConvertToBaseUnits = new TDEAction ( i18n ( " Convert to Base Units " ) , 0 , this , SLOT( convertToBaseUnits ( ) ) , actionCollection ( ) , " convert_to_base_units " ) ;
ActionConvertToBaseUnits = new TDEAction ( i18n ( " Convert to Base Units " ) , 0 , this , TQ_ SLOT( convertToBaseUnits ( ) ) , actionCollection ( ) , " convert_to_base_units " ) ;
ActionConvertToBestUnit = new TDEAction ( i18n ( " Convert to Best Unit " ) , 0 , this , SLOT( convertToBestUnit ( ) ) , actionCollection ( ) , " convert_to_best_unit " ) ;
ActionConvertToBestUnit = new TDEAction ( i18n ( " Convert to Best Unit " ) , 0 , this , TQ_ SLOT( convertToBestUnit ( ) ) , actionCollection ( ) , " convert_to_best_unit " ) ;
ActionInsertMatrix = new TDEAction ( i18n ( " Insert Matrix... " ) , 0 , this , SLOT( insertMatrix ( ) ) , actionCollection ( ) , " insert_matrix " ) ;
ActionInsertMatrix = new TDEAction ( i18n ( " Insert Matrix... " ) , 0 , this , TQ_ SLOT( insertMatrix ( ) ) , actionCollection ( ) , " insert_matrix " ) ;
ActionInsertVector = new TDEAction ( i18n ( " Insert Vector... " ) , 0 , this , SLOT( insertVector ( ) ) , actionCollection ( ) , " insert_vector " ) ;
ActionInsertVector = new TDEAction ( i18n ( " Insert Vector... " ) , 0 , this , TQ_ SLOT( insertVector ( ) ) , actionCollection ( ) , " insert_vector " ) ;
ActionCopyResult = new TDEAction ( i18n ( " Copy Result " ) , " editcopy " , Key_F5 , this , SLOT( copyResult ( ) ) , actionCollection ( ) , " copy_result " ) ;
ActionCopyResult = new TDEAction ( i18n ( " Copy Result " ) , " editcopy " , Key_F5 , this , TQ_ SLOT( copyResult ( ) ) , actionCollection ( ) , " copy_result " ) ;
ActionClearHistory = new TDEAction ( i18n ( " Clear History " ) , " editclear " , 0 , this , SLOT( clearHistory ( ) ) , actionCollection ( ) , " clear_history " ) ;
ActionClearHistory = new TDEAction ( i18n ( " Clear History " ) , " editclear " , 0 , this , TQ_ SLOT( clearHistory ( ) ) , actionCollection ( ) , " clear_history " ) ;
ActionPreferences = new TDEAction ( i18n ( " Configure Qalculate! " ) , " configure " , 0 , this , SLOT( preferences ( ) ) , actionCollection ( ) , " preferences " ) ;
ActionPreferences = new TDEAction ( i18n ( " Configure Qalculate! " ) , " configure " , 0 , this , TQ_ SLOT( preferences ( ) ) , actionCollection ( ) , " preferences " ) ;
KStdAction : : keyBindings ( guiFactory ( ) , SLOT( configureShortcuts ( ) ) , actionCollection ( ) , " keybindings " ) ;
KStdAction : : keyBindings ( guiFactory ( ) , TQ_ SLOT( configureShortcuts ( ) ) , actionCollection ( ) , " keybindings " ) ;
ActionNumberBaseBinary = new TDERadioAction ( i18n ( " Binary " ) , 0 , this , SLOT( numberBaseBinary ( ) ) , actionCollection ( ) , " number_base_binary " ) ;
ActionNumberBaseBinary = new TDERadioAction ( i18n ( " Binary " ) , 0 , this , TQ_ SLOT( numberBaseBinary ( ) ) , actionCollection ( ) , " number_base_binary " ) ;
ActionNumberBaseBinary - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseBinary - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseOctal = new TDERadioAction ( i18n ( " Octal " ) , 0 , this , SLOT( numberBaseOctal ( ) ) , actionCollection ( ) , " number_base_octal " ) ;
ActionNumberBaseOctal = new TDERadioAction ( i18n ( " Octal " ) , 0 , this , TQ_ SLOT( numberBaseOctal ( ) ) , actionCollection ( ) , " number_base_octal " ) ;
ActionNumberBaseOctal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseOctal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseDecimal = new TDERadioAction ( i18n ( " Decimal " ) , 0 , this , SLOT( numberBaseDecimal ( ) ) , actionCollection ( ) , " number_base_decimal " ) ;
ActionNumberBaseDecimal = new TDERadioAction ( i18n ( " Decimal " ) , 0 , this , TQ_ SLOT( numberBaseDecimal ( ) ) , actionCollection ( ) , " number_base_decimal " ) ;
ActionNumberBaseDecimal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseDecimal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseHexadecimal = new TDERadioAction ( i18n ( " Hexadecimal " ) , 0 , this , SLOT( numberBaseHexadecimal ( ) ) , actionCollection ( ) , " number_base_hexadecimal " ) ;
ActionNumberBaseHexadecimal = new TDERadioAction ( i18n ( " Hexadecimal " ) , 0 , this , TQ_ SLOT( numberBaseHexadecimal ( ) ) , actionCollection ( ) , " number_base_hexadecimal " ) ;
ActionNumberBaseHexadecimal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseHexadecimal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseOther = new TDERadioAction ( i18n ( " Other... " ) , 0 , this , SLOT( numberBaseOther ( ) ) , actionCollection ( ) , " number_base_other " ) ;
ActionNumberBaseOther = new TDERadioAction ( i18n ( " Other... " ) , 0 , this , TQ_ SLOT( numberBaseOther ( ) ) , actionCollection ( ) , " number_base_other " ) ;
ActionNumberBaseOther - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseOther - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseSexagesimal = new TDERadioAction ( i18n ( " Sexagesimal " ) , 0 , this , SLOT( numberBaseSexagesimal ( ) ) , actionCollection ( ) , " number_base_sexagesimal " ) ;
ActionNumberBaseSexagesimal = new TDERadioAction ( i18n ( " Sexagesimal " ) , 0 , this , TQ_ SLOT( numberBaseSexagesimal ( ) ) , actionCollection ( ) , " number_base_sexagesimal " ) ;
ActionNumberBaseSexagesimal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseSexagesimal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseTimeFormat = new TDERadioAction ( i18n ( " Time Format " ) , 0 , this , SLOT( numberBaseTimeFormat ( ) ) , actionCollection ( ) , " number_base_time_format " ) ;
ActionNumberBaseTimeFormat = new TDERadioAction ( i18n ( " Time Format " ) , 0 , this , TQ_ SLOT( numberBaseTimeFormat ( ) ) , actionCollection ( ) , " number_base_time_format " ) ;
ActionNumberBaseTimeFormat - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseTimeFormat - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseRomanNumerals = new TDERadioAction ( i18n ( " Roman Numerals " ) , 0 , this , SLOT( numberBaseRomanNumerals ( ) ) , actionCollection ( ) , " number_base_roman_numerals " ) ;
ActionNumberBaseRomanNumerals = new TDERadioAction ( i18n ( " Roman Numerals " ) , 0 , this , TQ_ SLOT( numberBaseRomanNumerals ( ) ) , actionCollection ( ) , " number_base_roman_numerals " ) ;
ActionNumberBaseRomanNumerals - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseRomanNumerals - > setExclusiveGroup ( " group_number_base " ) ;
ActionSetBase = new TDEAction ( i18n ( " Select Result and Expression Base... " ) , CTRL + Key_B , this , SLOT( setBase ( ) ) , actionCollection ( ) , " set_base " ) ;
ActionSetBase = new TDEAction ( i18n ( " Select Result and Expression Base... " ) , CTRL + Key_B , this , TQ_ SLOT( setBase ( ) ) , actionCollection ( ) , " set_base " ) ;
ActionNumericalDisplayNormal = new TDERadioAction ( i18n ( " Normal " ) , 0 , this , SLOT( numericalDisplayNormal ( ) ) , actionCollection ( ) , " numerical_display_normal " ) ;
ActionNumericalDisplayNormal = new TDERadioAction ( i18n ( " Normal " ) , 0 , this , TQ_ SLOT( numericalDisplayNormal ( ) ) , actionCollection ( ) , " numerical_display_normal " ) ;
ActionNumericalDisplayNormal - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayNormal - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayEngineering = new TDERadioAction ( i18n ( " Engineering " ) , 0 , this , SLOT( numericalDisplayEngineering ( ) ) , actionCollection ( ) , " numerical_display_engineering " ) ;
ActionNumericalDisplayEngineering = new TDERadioAction ( i18n ( " Engineering " ) , 0 , this , TQ_ SLOT( numericalDisplayEngineering ( ) ) , actionCollection ( ) , " numerical_display_engineering " ) ;
ActionNumericalDisplayEngineering - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayEngineering - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayScientific = new TDERadioAction ( i18n ( " Scientific " ) , 0 , this , SLOT( numericalDisplayScientific ( ) ) , actionCollection ( ) , " numerical_display_scientific " ) ;
ActionNumericalDisplayScientific = new TDERadioAction ( i18n ( " Scientific " ) , 0 , this , TQ_ SLOT( numericalDisplayScientific ( ) ) , actionCollection ( ) , " numerical_display_scientific " ) ;
ActionNumericalDisplayScientific - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayScientific - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayPurelyScientific = new TDERadioAction ( i18n ( " Purely Scientific " ) , 0 , this , SLOT( numericalDisplayPurelyScientific ( ) ) , actionCollection ( ) , " numerical_display_purely_scientific " ) ;
ActionNumericalDisplayPurelyScientific = new TDERadioAction ( i18n ( " Purely Scientific " ) , 0 , this , TQ_ SLOT( numericalDisplayPurelyScientific ( ) ) , actionCollection ( ) , " numerical_display_purely_scientific " ) ;
ActionNumericalDisplayPurelyScientific - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayPurelyScientific - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplaySimple = new TDERadioAction ( i18n ( " Simple " ) , 0 , this , SLOT( numericalDisplaySimple ( ) ) , actionCollection ( ) , " numerical_display_simple " ) ;
ActionNumericalDisplaySimple = new TDERadioAction ( i18n ( " Simple " ) , 0 , this , TQ_ SLOT( numericalDisplaySimple ( ) ) , actionCollection ( ) , " numerical_display_simple " ) ;
ActionNumericalDisplaySimple - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplaySimple - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionIndicateInfiniteSeries = new TDEToggleAction ( i18n ( " Indicate Infinite Series " ) , 0 , actionCollection ( ) , " indicate_infinite_series " ) ;
ActionIndicateInfiniteSeries = new TDEToggleAction ( i18n ( " Indicate Infinite Series " ) , 0 , actionCollection ( ) , " indicate_infinite_series " ) ;
TQObject : : connect ( ActionIndicateInfiniteSeries , SIGNAL( toggled ( bool ) ) , this , SLOT( indicateInfiniteSeries ( bool ) ) ) ;
TQObject : : connect ( ActionIndicateInfiniteSeries , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( indicateInfiniteSeries ( bool ) ) ) ;
ActionSortMinusLast = new TDEToggleAction ( i18n ( " Sort Minus Last " ) , 0 , actionCollection ( ) , " sort_minus_last " ) ;
ActionSortMinusLast = new TDEToggleAction ( i18n ( " Sort Minus Last " ) , 0 , actionCollection ( ) , " sort_minus_last " ) ;
TQObject : : connect ( ActionSortMinusLast , SIGNAL( toggled ( bool ) ) , this , SLOT( sortMinusLast ( bool ) ) ) ;
TQObject : : connect ( ActionSortMinusLast , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( sortMinusLast ( bool ) ) ) ;
ActionNegativeExponents = new TDEToggleAction ( i18n ( " Negative Exponents " ) , 0 , actionCollection ( ) , " negative_exponents " ) ;
ActionNegativeExponents = new TDEToggleAction ( i18n ( " Negative Exponents " ) , 0 , actionCollection ( ) , " negative_exponents " ) ;
TQObject : : connect ( ActionNegativeExponents , SIGNAL( toggled ( bool ) ) , this , SLOT( negativeExponents ( bool ) ) ) ;
TQObject : : connect ( ActionNegativeExponents , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( negativeExponents ( bool ) ) ) ;
ActionShowEndingZeroes = new TDEToggleAction ( i18n ( " Show Ending Zeroes " ) , 0 , actionCollection ( ) , " show_ending_zeroes " ) ;
ActionShowEndingZeroes = new TDEToggleAction ( i18n ( " Show Ending Zeroes " ) , 0 , actionCollection ( ) , " show_ending_zeroes " ) ;
TQObject : : connect ( ActionShowEndingZeroes , SIGNAL( toggled ( bool ) ) , this , SLOT( showEndingZeroes ( bool ) ) ) ;
TQObject : : connect ( ActionShowEndingZeroes , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( showEndingZeroes ( bool ) ) ) ;
ActionRoundHalfwayNumbersToEven = new TDEToggleAction ( i18n ( " Round Halfway Numbers to Even " ) , 0 , actionCollection ( ) , " round_halfway_numbers_to_even " ) ;
ActionRoundHalfwayNumbersToEven = new TDEToggleAction ( i18n ( " Round Halfway Numbers to Even " ) , 0 , actionCollection ( ) , " round_halfway_numbers_to_even " ) ;
TQObject : : connect ( ActionRoundHalfwayNumbersToEven , SIGNAL( toggled ( bool ) ) , this , SLOT( roundHalfwayNumbersToEven ( bool ) ) ) ;
TQObject : : connect ( ActionRoundHalfwayNumbersToEven , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( roundHalfwayNumbersToEven ( bool ) ) ) ;
ActionFractionalDisplayDecimal = new TDERadioAction ( i18n ( " Decimal " ) , 0 , this , SLOT( fractionalDisplayDecimal ( ) ) , actionCollection ( ) , " fractional_display_decimal " ) ;
ActionFractionalDisplayDecimal = new TDERadioAction ( i18n ( " Decimal " ) , 0 , this , TQ_ SLOT( fractionalDisplayDecimal ( ) ) , actionCollection ( ) , " fractional_display_decimal " ) ;
ActionFractionalDisplayDecimal - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayDecimal - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayDecimalTryExact = new TDERadioAction ( i18n ( " Decimal (Try Exact) " ) , 0 , this , SLOT( fractionalDisplayDecimalTryExact ( ) ) , actionCollection ( ) , " fractional_display_decimal_try_exact " ) ;
ActionFractionalDisplayDecimalTryExact = new TDERadioAction ( i18n ( " Decimal (Try Exact) " ) , 0 , this , TQ_ SLOT( fractionalDisplayDecimalTryExact ( ) ) , actionCollection ( ) , " fractional_display_decimal_try_exact " ) ;
ActionFractionalDisplayDecimalTryExact - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayDecimalTryExact - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayFraction = new TDERadioAction ( i18n ( " Fraction " ) , 0 , this , SLOT( fractionalDisplayFraction ( ) ) , actionCollection ( ) , " fractional_display_fraction " ) ;
ActionFractionalDisplayFraction = new TDERadioAction ( i18n ( " Fraction " ) , 0 , this , TQ_ SLOT( fractionalDisplayFraction ( ) ) , actionCollection ( ) , " fractional_display_fraction " ) ;
ActionFractionalDisplayFraction - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayFraction - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayCombined = new TDERadioAction ( i18n ( " Combined " ) , 0 , this , SLOT( fractionalDisplayCombined ( ) ) , actionCollection ( ) , " fractional_display_combined " ) ;
ActionFractionalDisplayCombined = new TDERadioAction ( i18n ( " Combined " ) , 0 , this , TQ_ SLOT( fractionalDisplayCombined ( ) ) , actionCollection ( ) , " fractional_display_combined " ) ;
ActionFractionalDisplayCombined - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayCombined - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionEnablePrefixes = new TDEToggleAction ( i18n ( " Enable Prefixes " ) , 0 , actionCollection ( ) , " enable_prefixes " ) ;
ActionEnablePrefixes = new TDEToggleAction ( i18n ( " Enable Prefixes " ) , 0 , actionCollection ( ) , " enable_prefixes " ) ;
TQObject : : connect ( ActionEnablePrefixes , SIGNAL( toggled ( bool ) ) , this , SLOT( enablePrefixes ( bool ) ) ) ;
TQObject : : connect ( ActionEnablePrefixes , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( enablePrefixes ( bool ) ) ) ;
ActionEnableUseOfAllPrefixes = new TDEToggleAction ( i18n ( " Enable Use of All SI Prefixes " ) , 0 , actionCollection ( ) , " enable_use_of_all_prefixes " ) ;
ActionEnableUseOfAllPrefixes = new TDEToggleAction ( i18n ( " Enable Use of All SI Prefixes " ) , 0 , actionCollection ( ) , " enable_use_of_all_prefixes " ) ;
TQObject : : connect ( ActionEnableUseOfAllPrefixes , SIGNAL( toggled ( bool ) ) , this , SLOT( enableUseOfAllPrefixes ( bool ) ) ) ;
TQObject : : connect ( ActionEnableUseOfAllPrefixes , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( enableUseOfAllPrefixes ( bool ) ) ) ;
ActionEnableDenominatorPrefixes = new TDEToggleAction ( i18n ( " Enable Denominator Prefixes " ) , 0 , actionCollection ( ) , " enable_denominator_prefixes " ) ;
ActionEnableDenominatorPrefixes = new TDEToggleAction ( i18n ( " Enable Denominator Prefixes " ) , 0 , actionCollection ( ) , " enable_denominator_prefixes " ) ;
TQObject : : connect ( ActionEnableDenominatorPrefixes , SIGNAL( toggled ( bool ) ) , this , SLOT( enableDenominatorPrefixes ( bool ) ) ) ;
TQObject : : connect ( ActionEnableDenominatorPrefixes , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( enableDenominatorPrefixes ( bool ) ) ) ;
ActionPlaceUnitsSeparately = new TDEToggleAction ( i18n ( " Place Units Separately " ) , 0 , actionCollection ( ) , " place_units_separately " ) ;
ActionPlaceUnitsSeparately = new TDEToggleAction ( i18n ( " Place Units Separately " ) , 0 , actionCollection ( ) , " place_units_separately " ) ;
TQObject : : connect ( ActionPlaceUnitsSeparately , SIGNAL( toggled ( bool ) ) , this , SLOT( placeUnitsSeparately ( bool ) ) ) ;
TQObject : : connect ( ActionPlaceUnitsSeparately , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( placeUnitsSeparately ( bool ) ) ) ;
ActionAutoNoConversion = new TDERadioAction ( i18n ( " No Automatic Conversion " ) , 0 , this , SLOT( autoNoConversion ( ) ) , actionCollection ( ) , " auto_no_conversion " ) ;
ActionAutoNoConversion = new TDERadioAction ( i18n ( " No Automatic Conversion " ) , 0 , this , TQ_ SLOT( autoNoConversion ( ) ) , actionCollection ( ) , " auto_no_conversion " ) ;
ActionAutoNoConversion - > setExclusiveGroup ( " group_auto_conversion " ) ;
ActionAutoNoConversion - > setExclusiveGroup ( " group_auto_conversion " ) ;
ActionAutoConvertToBaseUnits = new TDERadioAction ( i18n ( " Convert to Base Units " ) , 0 , this , SLOT( autoConvertToBaseUnits ( ) ) , actionCollection ( ) , " auto_convert_to_base_units " ) ;
ActionAutoConvertToBaseUnits = new TDERadioAction ( i18n ( " Convert to Base Units " ) , 0 , this , TQ_ SLOT( autoConvertToBaseUnits ( ) ) , actionCollection ( ) , " auto_convert_to_base_units " ) ;
ActionAutoConvertToBaseUnits - > setExclusiveGroup ( " group_auto_conversion " ) ;
ActionAutoConvertToBaseUnits - > setExclusiveGroup ( " group_auto_conversion " ) ;
ActionAutoConvertToBestUnit = new TDERadioAction ( i18n ( " Convert to Best Unit " ) , 0 , this , SLOT( autoConvertToBestUnit ( ) ) , actionCollection ( ) , " auto_convert_to_best_unit " ) ;
ActionAutoConvertToBestUnit = new TDERadioAction ( i18n ( " Convert to Best Unit " ) , 0 , this , TQ_ SLOT( autoConvertToBestUnit ( ) ) , actionCollection ( ) , " auto_convert_to_best_unit " ) ;
ActionAutoConvertToBestUnit - > setExclusiveGroup ( " group_auto_conversion " ) ;
ActionAutoConvertToBestUnit - > setExclusiveGroup ( " group_auto_conversion " ) ;
ActionAngleUnitDegrees = new TDERadioAction ( i18n ( " Degrees " ) , 0 , this , SLOT( angleUnitDegrees ( ) ) , actionCollection ( ) , " angle_unit_degrees " ) ;
ActionAngleUnitDegrees = new TDERadioAction ( i18n ( " Degrees " ) , 0 , this , TQ_ SLOT( angleUnitDegrees ( ) ) , actionCollection ( ) , " angle_unit_degrees " ) ;
ActionAngleUnitDegrees - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitDegrees - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitRadians = new TDERadioAction ( i18n ( " Radians " ) , 0 , this , SLOT( angleUnitRadians ( ) ) , actionCollection ( ) , " angle_unit_radians " ) ;
ActionAngleUnitRadians = new TDERadioAction ( i18n ( " Radians " ) , 0 , this , TQ_ SLOT( angleUnitRadians ( ) ) , actionCollection ( ) , " angle_unit_radians " ) ;
ActionAngleUnitRadians - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitRadians - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitGradians = new TDERadioAction ( i18n ( " Gradians " ) , 0 , this , SLOT( angleUnitGradians ( ) ) , actionCollection ( ) , " angle_unit_gradians " ) ;
ActionAngleUnitGradians = new TDERadioAction ( i18n ( " Gradians " ) , 0 , this , TQ_ SLOT( angleUnitGradians ( ) ) , actionCollection ( ) , " angle_unit_gradians " ) ;
ActionAngleUnitGradians - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitGradians - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitNone = new TDERadioAction ( i18n ( " None " ) , 0 , this , SLOT( angleUnitNone ( ) ) , actionCollection ( ) , " angle_unit_none " ) ;
ActionAngleUnitNone = new TDERadioAction ( i18n ( " None " ) , 0 , this , TQ_ SLOT( angleUnitNone ( ) ) , actionCollection ( ) , " angle_unit_none " ) ;
ActionAngleUnitNone - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitNone - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAbbreviateNames = new TDEToggleAction ( i18n ( " Abbreviate Names " ) , 0 , actionCollection ( ) , " abbreviate_names " ) ;
ActionAbbreviateNames = new TDEToggleAction ( i18n ( " Abbreviate Names " ) , 0 , actionCollection ( ) , " abbreviate_names " ) ;
TQObject : : connect ( ActionAbbreviateNames , SIGNAL( toggled ( bool ) ) , this , SLOT( abbreviateNames ( bool ) ) ) ;
TQObject : : connect ( ActionAbbreviateNames , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( abbreviateNames ( bool ) ) ) ;
ActionEnableVariables = new TDEToggleAction ( i18n ( " Enable Variables " ) , 0 , actionCollection ( ) , " enable_variables " ) ;
ActionEnableVariables = new TDEToggleAction ( i18n ( " Enable Variables " ) , 0 , actionCollection ( ) , " enable_variables " ) ;
TQObject : : connect ( ActionEnableVariables , SIGNAL( toggled ( bool ) ) , this , SLOT( enableVariables ( bool ) ) ) ;
TQObject : : connect ( ActionEnableVariables , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( enableVariables ( bool ) ) ) ;
ActionEnableFunctions = new TDEToggleAction ( i18n ( " Enable Functions " ) , 0 , actionCollection ( ) , " enable_functions " ) ;
ActionEnableFunctions = new TDEToggleAction ( i18n ( " Enable Functions " ) , 0 , actionCollection ( ) , " enable_functions " ) ;
TQObject : : connect ( ActionEnableFunctions , SIGNAL( toggled ( bool ) ) , this , SLOT( enableFunctions ( bool ) ) ) ;
TQObject : : connect ( ActionEnableFunctions , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( enableFunctions ( bool ) ) ) ;
ActionEnableUnits = new TDEToggleAction ( i18n ( " Enable Units " ) , 0 , actionCollection ( ) , " enable_units " ) ;
ActionEnableUnits = new TDEToggleAction ( i18n ( " Enable Units " ) , 0 , actionCollection ( ) , " enable_units " ) ;
TQObject : : connect ( ActionEnableUnits , SIGNAL( toggled ( bool ) ) , this , SLOT( enableUnits ( bool ) ) ) ;
TQObject : : connect ( ActionEnableUnits , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( enableUnits ( bool ) ) ) ;
ActionEnableUnknowns = new TDEToggleAction ( i18n ( " Enable Unknowns " ) , 0 , actionCollection ( ) , " enable_unknowns " ) ;
ActionEnableUnknowns = new TDEToggleAction ( i18n ( " Enable Unknowns " ) , 0 , actionCollection ( ) , " enable_unknowns " ) ;
TQObject : : connect ( ActionEnableUnknowns , SIGNAL( toggled ( bool ) ) , this , SLOT( enableUnknowns ( bool ) ) ) ;
TQObject : : connect ( ActionEnableUnknowns , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( enableUnknowns ( bool ) ) ) ;
ActionCalculateVariables = new TDEToggleAction ( i18n ( " Calculate Variables " ) , 0 , actionCollection ( ) , " calculate_variables " ) ;
ActionCalculateVariables = new TDEToggleAction ( i18n ( " Calculate Variables " ) , 0 , actionCollection ( ) , " calculate_variables " ) ;
TQObject : : connect ( ActionCalculateVariables , SIGNAL( toggled ( bool ) ) , this , SLOT( calculateVariables ( bool ) ) ) ;
TQObject : : connect ( ActionCalculateVariables , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( calculateVariables ( bool ) ) ) ;
ActionAllowComplexResult = new TDEToggleAction ( i18n ( " Allow Complex Result " ) , 0 , actionCollection ( ) , " allow_complex_result " ) ;
ActionAllowComplexResult = new TDEToggleAction ( i18n ( " Allow Complex Result " ) , 0 , actionCollection ( ) , " allow_complex_result " ) ;
TQObject : : connect ( ActionAllowComplexResult , SIGNAL( toggled ( bool ) ) , this , SLOT( allowComplexResult ( bool ) ) ) ;
TQObject : : connect ( ActionAllowComplexResult , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( allowComplexResult ( bool ) ) ) ;
ActionAllowInfiniteResult = new TDEToggleAction ( i18n ( " Allow Infinite Result " ) , 0 , actionCollection ( ) , " allow_infinite_result " ) ;
ActionAllowInfiniteResult = new TDEToggleAction ( i18n ( " Allow Infinite Result " ) , 0 , actionCollection ( ) , " allow_infinite_result " ) ;
TQObject : : connect ( ActionAllowInfiniteResult , SIGNAL( toggled ( bool ) ) , this , SLOT( allowInfiniteResult ( bool ) ) ) ;
TQObject : : connect ( ActionAllowInfiniteResult , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( allowInfiniteResult ( bool ) ) ) ;
ActionApproximationTryExact = new TDERadioAction ( i18n ( " Try Exact " ) , 0 , this , SLOT( approximationTryExact ( ) ) , actionCollection ( ) , " approximation_try_exact " ) ;
ActionApproximationTryExact = new TDERadioAction ( i18n ( " Try Exact " ) , 0 , this , TQ_ SLOT( approximationTryExact ( ) ) , actionCollection ( ) , " approximation_try_exact " ) ;
ActionApproximationTryExact - > setExclusiveGroup ( " group_approximation " ) ;
ActionApproximationTryExact - > setExclusiveGroup ( " group_approximation " ) ;
ActionApproximationAlwaysExact = new TDERadioAction ( i18n ( " Always Exact " ) , 0 , this , SLOT( approximationAlwaysExact ( ) ) , actionCollection ( ) , " approximation_always_exact " ) ;
ActionApproximationAlwaysExact = new TDERadioAction ( i18n ( " Always Exact " ) , 0 , this , TQ_ SLOT( approximationAlwaysExact ( ) ) , actionCollection ( ) , " approximation_always_exact " ) ;
ActionApproximationAlwaysExact - > setExclusiveGroup ( " group_approximation " ) ;
ActionApproximationAlwaysExact - > setExclusiveGroup ( " group_approximation " ) ;
ActionApproximationApproximate = new TDERadioAction ( i18n ( " Approximate " ) , 0 , this , SLOT( approximationApproximate ( ) ) , actionCollection ( ) , " approximation_approximate " ) ;
ActionApproximationApproximate = new TDERadioAction ( i18n ( " Approximate " ) , 0 , this , TQ_ SLOT( approximationApproximate ( ) ) , actionCollection ( ) , " approximation_approximate " ) ;
ActionApproximationApproximate - > setExclusiveGroup ( " group_approximation " ) ;
ActionApproximationApproximate - > setExclusiveGroup ( " group_approximation " ) ;
ActionAssumptionTypeUnknown = new TDERadioAction ( i18n ( " Unknown " ) , 0 , this , SLOT( assumptionTypeUnknown ( ) ) , actionCollection ( ) , " assumption_type_unknown " ) ;
ActionAssumptionTypeUnknown = new TDERadioAction ( i18n ( " Unknown " ) , 0 , this , TQ_ SLOT( assumptionTypeUnknown ( ) ) , actionCollection ( ) , " assumption_type_unknown " ) ;
ActionAssumptionTypeUnknown - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeUnknown - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeNonMatrix = new TDERadioAction ( i18n ( " Not Matrix " ) , 0 , this , SLOT( assumptionTypeNonMatrix ( ) ) , actionCollection ( ) , " assumption_type_nonmatrix " ) ;
ActionAssumptionTypeNonMatrix = new TDERadioAction ( i18n ( " Not Matrix " ) , 0 , this , TQ_ SLOT( assumptionTypeNonMatrix ( ) ) , actionCollection ( ) , " assumption_type_nonmatrix " ) ;
ActionAssumptionTypeNonMatrix - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeNonMatrix - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeNumber = new TDERadioAction ( i18n ( " Number " ) , 0 , this , SLOT( assumptionTypeNumber ( ) ) , actionCollection ( ) , " assumption_type_number " ) ;
ActionAssumptionTypeNumber = new TDERadioAction ( i18n ( " Number " ) , 0 , this , TQ_ SLOT( assumptionTypeNumber ( ) ) , actionCollection ( ) , " assumption_type_number " ) ;
ActionAssumptionTypeNumber - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeNumber - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeComplex = new TDERadioAction ( i18n ( " Complex " ) , 0 , this , SLOT( assumptionTypeComplex ( ) ) , actionCollection ( ) , " assumption_type_complex " ) ;
ActionAssumptionTypeComplex = new TDERadioAction ( i18n ( " Complex " ) , 0 , this , TQ_ SLOT( assumptionTypeComplex ( ) ) , actionCollection ( ) , " assumption_type_complex " ) ;
ActionAssumptionTypeComplex - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeComplex - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeReal = new TDERadioAction ( i18n ( " Real " ) , 0 , this , SLOT( assumptionTypeReal ( ) ) , actionCollection ( ) , " assumption_type_real " ) ;
ActionAssumptionTypeReal = new TDERadioAction ( i18n ( " Real " ) , 0 , this , TQ_ SLOT( assumptionTypeReal ( ) ) , actionCollection ( ) , " assumption_type_real " ) ;
ActionAssumptionTypeReal - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeReal - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeRational = new TDERadioAction ( i18n ( " Rational " ) , 0 , this , SLOT( assumptionTypeRational ( ) ) , actionCollection ( ) , " assumption_type_rational " ) ;
ActionAssumptionTypeRational = new TDERadioAction ( i18n ( " Rational " ) , 0 , this , TQ_ SLOT( assumptionTypeRational ( ) ) , actionCollection ( ) , " assumption_type_rational " ) ;
ActionAssumptionTypeRational - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeRational - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeInteger = new TDERadioAction ( i18n ( " Integer " ) , 0 , this , SLOT( assumptionTypeInteger ( ) ) , actionCollection ( ) , " assumption_type_integer " ) ;
ActionAssumptionTypeInteger = new TDERadioAction ( i18n ( " Integer " ) , 0 , this , TQ_ SLOT( assumptionTypeInteger ( ) ) , actionCollection ( ) , " assumption_type_integer " ) ;
ActionAssumptionTypeInteger - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeInteger - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionSignUnknown = new TDERadioAction ( i18n ( " Unknown " ) , 0 , this , SLOT( assumptionSignUnknown ( ) ) , actionCollection ( ) , " assumption_sign_unknown " ) ;
ActionAssumptionSignUnknown = new TDERadioAction ( i18n ( " Unknown " ) , 0 , this , TQ_ SLOT( assumptionSignUnknown ( ) ) , actionCollection ( ) , " assumption_sign_unknown " ) ;
ActionAssumptionSignUnknown - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignUnknown - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNonZero = new TDERadioAction ( i18n ( " Non-Zero " ) , 0 , this , SLOT( assumptionSignNonZero ( ) ) , actionCollection ( ) , " assumption_sign_non_zero " ) ;
ActionAssumptionSignNonZero = new TDERadioAction ( i18n ( " Non-Zero " ) , 0 , this , TQ_ SLOT( assumptionSignNonZero ( ) ) , actionCollection ( ) , " assumption_sign_non_zero " ) ;
ActionAssumptionSignNonZero - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNonZero - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignPositive = new TDERadioAction ( i18n ( " Positive " ) , 0 , this , SLOT( assumptionSignPositive ( ) ) , actionCollection ( ) , " assumption_sign_positive " ) ;
ActionAssumptionSignPositive = new TDERadioAction ( i18n ( " Positive " ) , 0 , this , TQ_ SLOT( assumptionSignPositive ( ) ) , actionCollection ( ) , " assumption_sign_positive " ) ;
ActionAssumptionSignPositive - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignPositive - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNonNegative = new TDERadioAction ( i18n ( " Non-Negative " ) , 0 , this , SLOT( assumptionSignNonNegative ( ) ) , actionCollection ( ) , " assumption_sign_non_negative " ) ;
ActionAssumptionSignNonNegative = new TDERadioAction ( i18n ( " Non-Negative " ) , 0 , this , TQ_ SLOT( assumptionSignNonNegative ( ) ) , actionCollection ( ) , " assumption_sign_non_negative " ) ;
ActionAssumptionSignNonNegative - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNonNegative - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNegative = new TDERadioAction ( i18n ( " Negative " ) , 0 , this , SLOT( assumptionSignNegative ( ) ) , actionCollection ( ) , " assumption_sign_negative " ) ;
ActionAssumptionSignNegative = new TDERadioAction ( i18n ( " Negative " ) , 0 , this , TQ_ SLOT( assumptionSignNegative ( ) ) , actionCollection ( ) , " assumption_sign_negative " ) ;
ActionAssumptionSignNegative - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNegative - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNonPositive = new TDERadioAction ( i18n ( " Non-Positive " ) , 0 , this , SLOT( assumptionSignNonPositive ( ) ) , actionCollection ( ) , " assumption_sign_non_positive " ) ;
ActionAssumptionSignNonPositive = new TDERadioAction ( i18n ( " Non-Positive " ) , 0 , this , TQ_ SLOT( assumptionSignNonPositive ( ) ) , actionCollection ( ) , " assumption_sign_non_positive " ) ;
ActionAssumptionSignNonPositive - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNonPositive - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionNonZeroDenominators = new TDEToggleAction ( i18n ( " Non-Zero Denominators " ) , 0 , actionCollection ( ) , " non_zero_denominators " ) ;
ActionNonZeroDenominators = new TDEToggleAction ( i18n ( " Non-Zero Denominators " ) , 0 , actionCollection ( ) , " non_zero_denominators " ) ;
TQObject : : connect ( ActionNonZeroDenominators , SIGNAL( toggled ( bool ) ) , this , SLOT( nonZeroDenominators ( bool ) ) ) ;
TQObject : : connect ( ActionNonZeroDenominators , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( nonZeroDenominators ( bool ) ) ) ;
ActionWarnAboutDenominatorsAssumedNonZero = new TDEToggleAction ( i18n ( " Warn About Denominators Assumed Non-Zero " ) , 0 , actionCollection ( ) , " warn_about_denominators_assumed_nonzero " ) ;
ActionWarnAboutDenominatorsAssumedNonZero = new TDEToggleAction ( i18n ( " Warn About Denominators Assumed Non-Zero " ) , 0 , actionCollection ( ) , " warn_about_denominators_assumed_nonzero " ) ;
TQObject : : connect ( ActionWarnAboutDenominatorsAssumedNonZero , SIGNAL( toggled ( bool ) ) , this , SLOT( warnAboutDenominatorsAssumedNonZero ( bool ) ) ) ;
TQObject : : connect ( ActionWarnAboutDenominatorsAssumedNonZero , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( warnAboutDenominatorsAssumedNonZero ( bool ) ) ) ;
ActionAlgebraicModeSimplify = new TDERadioAction ( i18n ( " Simplify " ) , 0 , this , SLOT( algebraicModeSimplify ( ) ) , actionCollection ( ) , " algebraic_mode_simplify " ) ;
ActionAlgebraicModeSimplify = new TDERadioAction ( i18n ( " Simplify " ) , 0 , this , TQ_ SLOT( algebraicModeSimplify ( ) ) , actionCollection ( ) , " algebraic_mode_simplify " ) ;
ActionAlgebraicModeSimplify - > setExclusiveGroup ( " group_alebraic_mode " ) ;
ActionAlgebraicModeSimplify - > setExclusiveGroup ( " group_alebraic_mode " ) ;
ActionAlgebraicModeFactorize = new TDERadioAction ( i18n ( " Factorize " ) , 0 , this , SLOT( algebraicModeFactorize ( ) ) , actionCollection ( ) , " algebraic_mode_factorize " ) ;
ActionAlgebraicModeFactorize = new TDERadioAction ( i18n ( " Factorize " ) , 0 , this , TQ_ SLOT( algebraicModeFactorize ( ) ) , actionCollection ( ) , " algebraic_mode_factorize " ) ;
ActionAlgebraicModeFactorize - > setExclusiveGroup ( " group_alebraic_mode " ) ;
ActionAlgebraicModeFactorize - > setExclusiveGroup ( " group_alebraic_mode " ) ;
ActionAlgebraicModeNone = new TDERadioAction ( i18n ( " None " ) , 0 , this , SLOT( algebraicModeNone ( ) ) , actionCollection ( ) , " algebraic_mode_none " ) ;
ActionAlgebraicModeNone = new TDERadioAction ( i18n ( " None " ) , 0 , this , TQ_ SLOT( algebraicModeNone ( ) ) , actionCollection ( ) , " algebraic_mode_none " ) ;
ActionAlgebraicModeNone - > setExclusiveGroup ( " group_alebraic_mode " ) ;
ActionAlgebraicModeNone - > setExclusiveGroup ( " group_alebraic_mode " ) ;
ActionReadPrecision = new TDEToggleAction ( i18n ( " Read Precision " ) , 0 , actionCollection ( ) , " read_precision " ) ;
ActionReadPrecision = new TDEToggleAction ( i18n ( " Read Precision " ) , 0 , actionCollection ( ) , " read_precision " ) ;
TQObject : : connect ( ActionReadPrecision , SIGNAL( toggled ( bool ) ) , this , SLOT( readPrecision ( bool ) ) ) ;
TQObject : : connect ( ActionReadPrecision , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( readPrecision ( bool ) ) ) ;
ActionLimitImplicitMultiplication = new TDEToggleAction ( i18n ( " Limit Implicit Multiplication " ) , 0 , actionCollection ( ) , " limit_implicit_multiplication " ) ;
ActionLimitImplicitMultiplication = new TDEToggleAction ( i18n ( " Limit Implicit Multiplication " ) , 0 , actionCollection ( ) , " limit_implicit_multiplication " ) ;
TQObject : : connect ( ActionLimitImplicitMultiplication , SIGNAL( toggled ( bool ) ) , this , SLOT( limitImplicitMultiplication ( bool ) ) ) ;
TQObject : : connect ( ActionLimitImplicitMultiplication , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( limitImplicitMultiplication ( bool ) ) ) ;
ActionRPNMode = new TDEToggleAction ( i18n ( " RPN Mode " ) , CTRL + Key_R , actionCollection ( ) , " rpn_mode " ) ;
ActionRPNMode = new TDEToggleAction ( i18n ( " RPN Mode " ) , CTRL + Key_R , actionCollection ( ) , " rpn_mode " ) ;
TQObject : : connect ( ActionRPNMode , SIGNAL( toggled ( bool ) ) , this , SLOT( rpnMode ( bool ) ) ) ;
TQObject : : connect ( ActionRPNMode , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( rpnMode ( bool ) ) ) ;
ActionRPNSyntax = new TDEToggleAction ( i18n ( " RPN Syntax " ) , 0 , actionCollection ( ) , " rpn_syntax " ) ;
ActionRPNSyntax = new TDEToggleAction ( i18n ( " RPN Syntax " ) , 0 , actionCollection ( ) , " rpn_syntax " ) ;
TQObject : : connect ( ActionRPNSyntax , SIGNAL( toggled ( bool ) ) , this , SLOT( rpnSyntax ( bool ) ) ) ;
TQObject : : connect ( ActionRPNSyntax , TQ_ SIGNAL( toggled ( bool ) ) , this , TQ_ SLOT( rpnSyntax ( bool ) ) ) ;
ActionPrecision = new TDEAction ( i18n ( " Precision " ) , 0 , this , SLOT( precision ( ) ) , actionCollection ( ) , " precision " ) ;
ActionPrecision = new TDEAction ( i18n ( " Precision " ) , 0 , this , TQ_ SLOT( precision ( ) ) , actionCollection ( ) , " precision " ) ;
ActionDecimals = new TDEAction ( i18n ( " Decimals " ) , 0 , this , SLOT( decimals ( ) ) , actionCollection ( ) , " decimals " ) ;
ActionDecimals = new TDEAction ( i18n ( " Decimals " ) , 0 , this , TQ_ SLOT( decimals ( ) ) , actionCollection ( ) , " decimals " ) ;
ActionSaveModeAs = new TDEAction ( i18n ( " Save Mode... " ) , " filesave " , 0 , this , SLOT( saveModeAs ( ) ) , actionCollection ( ) , " save_mode_as " ) ;
ActionSaveModeAs = new TDEAction ( i18n ( " Save Mode... " ) , " filesave " , 0 , this , TQ_ SLOT( saveModeAs ( ) ) , actionCollection ( ) , " save_mode_as " ) ;
ActionDeleteMode = new TDEAction ( i18n ( " Delete Mode... " ) , " editdelete " , 0 , this , SLOT( deleteMode ( ) ) , actionCollection ( ) , " delete_mode " ) ;
ActionDeleteMode = new TDEAction ( i18n ( " Delete Mode... " ) , " editdelete " , 0 , this , TQ_ SLOT( deleteMode ( ) ) , actionCollection ( ) , " delete_mode " ) ;
ActionDeleteMode - > setEnabled ( modes . size ( ) > 2 ) ;
ActionDeleteMode - > setEnabled ( modes . size ( ) > 2 ) ;
ActionSaveMode = new TDEAction ( i18n ( " Save Default Mode " ) , " filesave " , 0 , this , SLOT( saveMode ( ) ) , actionCollection ( ) , " save_mode " ) ;
ActionSaveMode = new TDEAction ( i18n ( " Save Default Mode " ) , " filesave " , 0 , this , TQ_ SLOT( saveMode ( ) ) , actionCollection ( ) , " save_mode " ) ;
ActionClearStack = new TDEAction ( i18n ( " Clear Stack " ) , " view_remove " , 0 , this , SLOT( clearStack ( ) ) , actionCollection ( ) , " clear_stack " ) ;
ActionClearStack = new TDEAction ( i18n ( " Clear Stack " ) , " view_remove " , 0 , this , TQ_ SLOT( clearStack ( ) ) , actionCollection ( ) , " clear_stack " ) ;
ActionDeleteRegister = new TDEAction ( i18n ( " Delete " ) , " editdelete " , 0 , this , SLOT( deleteRegister ( ) ) , actionCollection ( ) , " delete_register " ) ;
ActionDeleteRegister = new TDEAction ( i18n ( " Delete " ) , " editdelete " , 0 , this , TQ_ SLOT( deleteRegister ( ) ) , actionCollection ( ) , " delete_register " ) ;
ActionEditRegister = new TDEAction ( i18n ( " Edit " ) , " edit " , 0 , this , SLOT( editRegister ( ) ) , actionCollection ( ) , " edit_register " ) ;
ActionEditRegister = new TDEAction ( i18n ( " Edit " ) , " edit " , 0 , this , TQ_ SLOT( editRegister ( ) ) , actionCollection ( ) , " edit_register " ) ;
new TDEAction ( i18n ( " Exp RPN Operation " ) , CTRL + SHIFT + Key_E , this , SLOT( insertExp ( ) ) , actionCollection ( ) , " rpn_exp10 " ) ;
new TDEAction ( i18n ( " Exp RPN Operation " ) , CTRL + SHIFT + Key_E , this , TQ_ SLOT( insertExp ( ) ) , actionCollection ( ) , " rpn_exp10 " ) ;
setModeActions ( ) ;
setModeActions ( ) ;
@ -2496,7 +2496,7 @@ void KQalculate::setResult(Prefix *prefix, bool update_history, bool update_pars
set_result_transformation = transformation ;
set_result_transformation = transformation ;
set_result_stack_index = stack_index ;
set_result_stack_index = stack_index ;
set_result_register_moved = register_moved ;
set_result_register_moved = register_moved ;
TQTimer : : singleShot ( 0 , this , SLOT( setResult2 ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQ_ SLOT( setResult2 ( ) ) ) ;
}
}
void KQalculate : : setResult2 ( ) {
void KQalculate : : setResult2 ( ) {
if ( block_result_update ) return ;
if ( block_result_update ) return ;
@ -2836,7 +2836,7 @@ void KQalculate::executeCommand(int command_type) {
if ( expression_has_changed & & ! rpn_mode ) {
if ( expression_has_changed & & ! rpn_mode ) {
execute_expression ( ) ;
execute_expression ( ) ;
}
}
TQTimer : : singleShot ( 0 , this , SLOT( executeCommand2 ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQ_ SLOT( executeCommand2 ( ) ) ) ;
}
}
void KQalculate : : executeCommand2 ( ) {
void KQalculate : : executeCommand2 ( ) {
int command_type = execute_command_command_type ;
int command_type = execute_command_command_type ;
@ -2993,7 +2993,7 @@ void KQalculate::execute_expression(bool force) {
execute_expression_force = force ;
execute_expression_force = force ;
execute_expression_do_stack = false ;
execute_expression_do_stack = false ;
execute_expression_do_mathoperation = false ;
execute_expression_do_mathoperation = false ;
TQTimer : : singleShot ( 0 , this , SLOT( execute_expression2 ( ) ) ) ;
TQTimer : : singleShot ( 0 , this , TQ_ SLOT( execute_expression2 ( ) ) ) ;
}
}
void KQalculate : : execute_expression2 ( ) {
void KQalculate : : execute_expression2 ( ) {
@ -3299,7 +3299,7 @@ void KQalculate::create_vmenu() {
sub3 = sub ;
sub3 = sub ;
while ( titem ) {
while ( titem ) {
sub = new TQPopupMenu ( ) ;
sub = new TQPopupMenu ( ) ;
TQObject : : connect ( sub , SIGNAL( activated ( int ) ) , this , SLOT( onVariableMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( sub , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onVariableMenuItemActivated ( int ) ) ) ;
if ( titem - > item . find ( ' & ' ) ! = std : : string : : npos ) {
if ( titem - > item . find ( ' & ' ) ! = std : : string : : npos ) {
TQString str2 = titem - > item . c_str ( ) ;
TQString str2 = titem - > item . c_str ( ) ;
str2 . replace ( " & " , " && " ) ;
str2 . replace ( " & " , " && " ) ;
@ -3394,7 +3394,7 @@ void KQalculate::create_fmenu() {
sub3 = sub ;
sub3 = sub ;
while ( titem ) {
while ( titem ) {
sub = new TQPopupMenu ( ) ;
sub = new TQPopupMenu ( ) ;
TQObject : : connect ( sub , SIGNAL( activated ( int ) ) , this , SLOT( onFunctionMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( sub , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onFunctionMenuItemActivated ( int ) ) ) ;
if ( titem - > item . find ( ' & ' ) ! = std : : string : : npos ) {
if ( titem - > item . find ( ' & ' ) ! = std : : string : : npos ) {
TQString str2 = titem - > item . c_str ( ) ;
TQString str2 = titem - > item . c_str ( ) ;
str2 . replace ( " & " , " && " ) ;
str2 . replace ( " & " , " && " ) ;
@ -3492,7 +3492,7 @@ void KQalculate::create_umenu() {
sub3 = sub ;
sub3 = sub ;
while ( titem ) {
while ( titem ) {
sub = new TQPopupMenu ( ) ;
sub = new TQPopupMenu ( ) ;
TQObject : : connect ( sub , SIGNAL( activated ( int ) ) , this , SLOT( onUnitMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( sub , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onUnitMenuItemActivated ( int ) ) ) ;
if ( titem - > item . find ( ' & ' ) ! = std : : string : : npos ) {
if ( titem - > item . find ( ' & ' ) ! = std : : string : : npos ) {
TQString str2 = titem - > item . c_str ( ) ;
TQString str2 = titem - > item . c_str ( ) ;
str2 . replace ( " & " , " && " ) ;
str2 . replace ( " & " , " && " ) ;
@ -3536,7 +3536,7 @@ void KQalculate::create_umenu() {
}
}
sub = new TQPopupMenu ( ) ;
sub = new TQPopupMenu ( ) ;
TQObject : : connect ( sub , SIGNAL( activated ( int ) ) , this , SLOT( onUnitsPrefixMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( sub , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onUnitsPrefixMenuItemActivated ( int ) ) ) ;
menu_units - > insertSeparator ( ) ;
menu_units - > insertSeparator ( ) ;
menu_units - > insertItem ( i18n ( " Prefixes " ) , sub ) ;
menu_units - > insertItem ( i18n ( " Prefixes " ) , sub ) ;
int index = 0 ;
int index = 0 ;
@ -3616,7 +3616,7 @@ void KQalculate::create_toumenu() {
sub3 = sub ;
sub3 = sub ;
while ( titem ) {
while ( titem ) {
sub = new TQPopupMenu ( ) ;
sub = new TQPopupMenu ( ) ;
TQObject : : connect ( sub , SIGNAL( activated ( int ) ) , this , SLOT( onConvertToUnitMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( sub , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onConvertToUnitMenuItemActivated ( int ) ) ) ;
if ( titem - > item . find ( ' & ' ) ! = std : : string : : npos ) {
if ( titem - > item . find ( ' & ' ) ! = std : : string : : npos ) {
TQString str2 = titem - > item . c_str ( ) ;
TQString str2 = titem - > item . c_str ( ) ;
str2 . replace ( " & " , " && " ) ;
str2 . replace ( " & " , " && " ) ;
@ -3663,7 +3663,7 @@ void KQalculate::create_toumenu() {
void KQalculate : : create_setpmenu ( ) {
void KQalculate : : create_setpmenu ( ) {
menu_set_prefix - > clear ( ) ;
menu_set_prefix - > clear ( ) ;
TQObject : : connect ( menu_set_prefix , SIGNAL( activated ( int ) ) , this , SLOT( onSetPrefixMenuItemActivated ( int ) ) ) ;
TQObject : : connect ( menu_set_prefix , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( onSetPrefixMenuItemActivated ( int ) ) ) ;
int index = 0 ;
int index = 0 ;
menu_set_prefix_ids [ menu_set_prefix - > insertItem ( i18n ( " No Prefix " ) ) ] = CALCULATOR - > decimal_null_prefix ;
menu_set_prefix_ids [ menu_set_prefix - > insertItem ( i18n ( " No Prefix " ) ) ] = CALCULATOR - > decimal_null_prefix ;
Prefix * p = CALCULATOR - > getPrefix ( index ) ;
Prefix * p = CALCULATOR - > getPrefix ( index ) ;
@ -4399,10 +4399,10 @@ void KQalculate::setBaseInResultFromDialogGroup(int id) {
void KQalculate : : setBase ( ) {
void KQalculate : : setBase ( ) {
if ( ! set_base_dialog ) {
if ( ! set_base_dialog ) {
set_base_dialog = new QalculateSetBaseDialog ( this ) ;
set_base_dialog = new QalculateSetBaseDialog ( this ) ;
TQObject : : connect ( set_base_dialog - > radiogroup_input , SIGNAL( clicked ( int ) ) , this , SLOT( setBaseInExpressionFromDialogGroup ( int ) ) ) ;
TQObject : : connect ( set_base_dialog - > radiogroup_input , TQ_ SIGNAL( clicked ( int ) ) , this , TQ_ SLOT( setBaseInExpressionFromDialogGroup ( int ) ) ) ;
TQObject : : connect ( set_base_dialog - > inputBaseBox , SIGNAL( valueChanged ( int ) ) , this , SLOT( setBaseInExpressionFromDialogBox ( int ) ) ) ;
TQObject : : connect ( set_base_dialog - > inputBaseBox , TQ_ SIGNAL( valueChanged ( int ) ) , this , TQ_ SLOT( setBaseInExpressionFromDialogBox ( int ) ) ) ;
TQObject : : connect ( set_base_dialog - > radiogroup_output , SIGNAL( clicked ( int ) ) , this , SLOT( setBaseInResultFromDialogGroup ( int ) ) ) ;
TQObject : : connect ( set_base_dialog - > radiogroup_output , TQ_ SIGNAL( clicked ( int ) ) , this , TQ_ SLOT( setBaseInResultFromDialogGroup ( int ) ) ) ;
TQObject : : connect ( set_base_dialog - > outputBaseBox , SIGNAL( valueChanged ( int ) ) , this , SLOT( setBaseInResultFromDialogBox ( int ) ) ) ;
TQObject : : connect ( set_base_dialog - > outputBaseBox , TQ_ SIGNAL( valueChanged ( int ) ) , this , TQ_ SLOT( setBaseInResultFromDialogBox ( int ) ) ) ;
}
}
set_base_dialog - > inputBaseBox - > blockSignals ( true ) ;
set_base_dialog - > inputBaseBox - > blockSignals ( true ) ;
set_base_dialog - > radiogroup_input - > blockSignals ( true ) ;
set_base_dialog - > radiogroup_input - > blockSignals ( true ) ;
@ -4519,8 +4519,8 @@ void KQalculate::setMaxDecimals(int i) {
void KQalculate : : decimals ( ) {
void KQalculate : : decimals ( ) {
if ( ! decimalsDialog ) {
if ( ! decimalsDialog ) {
decimalsDialog = new QalculateDecimalsDialog ( this ) ;
decimalsDialog = new QalculateDecimalsDialog ( this ) ;
TQObject : : connect ( decimalsDialog - > minDecimalsBox , SIGNAL( valueChanged ( int ) ) , this , SLOT( setMinDecimals ( int ) ) ) ;
TQObject : : connect ( decimalsDialog - > minDecimalsBox , TQ_ SIGNAL( valueChanged ( int ) ) , this , TQ_ SLOT( setMinDecimals ( int ) ) ) ;
TQObject : : connect ( decimalsDialog - > maxDecimalsBox , SIGNAL( valueChanged ( int ) ) , this , SLOT( setMaxDecimals ( int ) ) ) ;
TQObject : : connect ( decimalsDialog - > maxDecimalsBox , TQ_ SIGNAL( valueChanged ( int ) ) , this , TQ_ SLOT( setMaxDecimals ( int ) ) ) ;
}
}
decimalsDialog - > minDecimalsBox - > blockSignals ( true ) ;
decimalsDialog - > minDecimalsBox - > blockSignals ( true ) ;
decimalsDialog - > maxDecimalsBox - > blockSignals ( true ) ;
decimalsDialog - > maxDecimalsBox - > blockSignals ( true ) ;
@ -4539,8 +4539,8 @@ void KQalculate::setPrecision(int i) {
void KQalculate : : precision ( ) {
void KQalculate : : precision ( ) {
if ( ! precisionDialog ) {
if ( ! precisionDialog ) {
precisionDialog = new QalculatePrecisionDialog ( this ) ;
precisionDialog = new QalculatePrecisionDialog ( this ) ;
TQObject : : connect ( precisionDialog , SIGNAL( applyClicked ( ) ) , this , SLOT( precisionRecalculate ( ) ) ) ;
TQObject : : connect ( precisionDialog , TQ_ SIGNAL( applyClicked ( ) ) , this , TQ_ SLOT( precisionRecalculate ( ) ) ) ;
TQObject : : connect ( precisionDialog - > precisionBox , SIGNAL( valueChanged ( int ) ) , this , SLOT( setPrecision ( int ) ) ) ;
TQObject : : connect ( precisionDialog - > precisionBox , TQ_ SIGNAL( valueChanged ( int ) ) , this , TQ_ SLOT( setPrecision ( int ) ) ) ;
}
}
precisionDialog - > precisionBox - > setValue ( CALCULATOR - > getPrecision ( ) ) ;
precisionDialog - > precisionBox - > setValue ( CALCULATOR - > getPrecision ( ) ) ;
precisionDialog - > show ( ) ;
precisionDialog - > show ( ) ;
@ -4769,8 +4769,8 @@ QalculateModeDialog::QalculateModeDialog(TQWidget *parent) : KDialogBase(parent,
keyButton = new KKeyButton ( mainWidget ( ) ) ;
keyButton = new KKeyButton ( mainWidget ( ) ) ;
grid - > addWidget ( keyButton , 1 , 1 ) ;
grid - > addWidget ( keyButton , 1 , 1 ) ;
connect ( keyButton , SIGNAL( capturedShortcut ( const TDEShortcut & ) ) , this , SLOT( updateShortcut ( const TDEShortcut & ) ) ) ;
connect ( keyButton , TQ_ SIGNAL( capturedShortcut ( const TDEShortcut & ) ) , this , TQ_ SLOT( updateShortcut ( const TDEShortcut & ) ) ) ;
connect ( modeCombo , SIGNAL( activated ( int ) ) , this , SLOT( modeSelected ( int ) ) ) ;
connect ( modeCombo , TQ_ SIGNAL( activated ( int ) ) , this , TQ_ SLOT( modeSelected ( int ) ) ) ;
}
}
QalculateModeDialog : : ~ QalculateModeDialog ( ) { }
QalculateModeDialog : : ~ QalculateModeDialog ( ) { }
@ -4813,7 +4813,7 @@ void KQalculate::saveModeAs() {
ModeObject * mo = new ModeObject ( index ) ;
ModeObject * mo = new ModeObject ( index ) ;
mo - > i_mode = index ;
mo - > i_mode = index ;
mode_objects . push_back ( mo ) ;
mode_objects . push_back ( mo ) ;
accel ( ) - > insert ( TQString ( " Load mode: " ) + modes [ index ] . name , i18n ( " Load meta mode: %1 " ) . arg ( modes [ index ] . name ) , TQString : : null , modes [ index ] . shortcut , mo , SLOT( loadMode ( ) ) ) ;
accel ( ) - > insert ( TQString ( " Load mode: " ) + modes [ index ] . name , i18n ( " Load meta mode: %1 " ) . arg ( modes [ index ] . name ) , TQString : : null , modes [ index ] . shortcut , mo , TQ_ SLOT( loadMode ( ) ) ) ;
} else {
} else {
accel ( ) - > setShortcut ( TQString ( " Load mode: " ) + modes [ index ] . name , modes [ index ] . shortcut ) ;
accel ( ) - > setShortcut ( TQString ( " Load mode: " ) + modes [ index ] . name , modes [ index ] . shortcut ) ;
}
}
@ -5556,8 +5556,8 @@ void KQalculate::manageVariables() {
if ( ! variables_dialog ) {
if ( ! variables_dialog ) {
variables_dialog = new QalculateVariablesDialog ( ) ;
variables_dialog = new QalculateVariablesDialog ( ) ;
variables_dialog - > updateVariableTree ( ) ;
variables_dialog - > updateVariableTree ( ) ;
TQObject : : connect ( variables_dialog , SIGNAL( variablesChanged ( ) ) , this , SLOT( update_vmenu ( ) ) ) ;
TQObject : : connect ( variables_dialog , TQ_ SIGNAL( variablesChanged ( ) ) , this , TQ_ SLOT( update_vmenu ( ) ) ) ;
TQObject : : connect ( variables_dialog , SIGNAL( insertRequest ( Variable * ) ) , this , SLOT( insertVariable ( Variable * ) ) ) ;
TQObject : : connect ( variables_dialog , TQ_ SIGNAL( insertRequest ( Variable * ) ) , this , TQ_ SLOT( insertVariable ( Variable * ) ) ) ;
}
}
variables_dialog - > show ( ) ;
variables_dialog - > show ( ) ;
}
}
@ -5626,9 +5626,9 @@ void KQalculate::convertToUnitExpression() {
if ( ! convert_to_unit_expression_dialog ) {
if ( ! convert_to_unit_expression_dialog ) {
convert_to_unit_expression_dialog = new QalculateConvertUnitsDialog ( this ) ;
convert_to_unit_expression_dialog = new QalculateConvertUnitsDialog ( this ) ;
convert_to_unit_expression_dialog - > updateUnitTree ( ) ;
convert_to_unit_expression_dialog - > updateUnitTree ( ) ;
TQObject : : connect ( convert_to_unit_expression_dialog , SIGNAL( applyClicked ( ) ) , this , SLOT( convertToUnitConvertToDialogExpression ( ) ) ) ;
TQObject : : connect ( convert_to_unit_expression_dialog , TQ_ SIGNAL( applyClicked ( ) ) , this , TQ_ SLOT( convertToUnitConvertToDialogExpression ( ) ) ) ;
TQObject : : connect ( convert_to_unit_expression_dialog , SIGNAL( okClicked ( ) ) , this , SLOT( convertToUnitConvertToDialogExpression ( ) ) ) ;
TQObject : : connect ( convert_to_unit_expression_dialog , TQ_ SIGNAL( okClicked ( ) ) , this , TQ_ SLOT( convertToUnitConvertToDialogExpression ( ) ) ) ;
TQObject : : connect ( convert_to_unit_expression_dialog , SIGNAL( unitsChanged ( ) ) , this , SLOT( update_umenus ( ) ) ) ;
TQObject : : connect ( convert_to_unit_expression_dialog , TQ_ SIGNAL( unitsChanged ( ) ) , this , TQ_ SLOT( update_umenus ( ) ) ) ;
}
}
convert_to_unit_expression_dialog - > show ( ) ;
convert_to_unit_expression_dialog - > show ( ) ;
}
}
@ -5650,9 +5650,9 @@ void KQalculate::manageFunctions() {
if ( ! functions_dialog ) {
if ( ! functions_dialog ) {
functions_dialog = new QalculateFunctionsDialog ( ) ;
functions_dialog = new QalculateFunctionsDialog ( ) ;
functions_dialog - > updateFunctionTree ( ) ;
functions_dialog - > updateFunctionTree ( ) ;
TQObject : : connect ( functions_dialog , SIGNAL( functionsChanged ( ) ) , this , SLOT( update_fmenu ( ) ) ) ;
TQObject : : connect ( functions_dialog , TQ_ SIGNAL( functionsChanged ( ) ) , this , TQ_ SLOT( update_fmenu ( ) ) ) ;
TQObject : : connect ( functions_dialog , SIGNAL( insertRequest ( MathFunction * ) ) , this , SLOT( insertManagedFunction ( MathFunction * ) ) ) ;
TQObject : : connect ( functions_dialog , TQ_ SIGNAL( insertRequest ( MathFunction * ) ) , this , TQ_ SLOT( insertManagedFunction ( MathFunction * ) ) ) ;
TQObject : : connect ( functions_dialog , SIGNAL( applyRequest ( MathFunction * ) ) , this , SLOT( applyManagedFunction ( MathFunction * ) ) ) ;
TQObject : : connect ( functions_dialog , TQ_ SIGNAL( applyRequest ( MathFunction * ) ) , this , TQ_ SLOT( applyManagedFunction ( MathFunction * ) ) ) ;
}
}
functions_dialog - > show ( ) ;
functions_dialog - > show ( ) ;
}
}
@ -6031,7 +6031,7 @@ void KQalculate::setUnknowns() {
return ;
return ;
}
}
KDialogBase * dialog = new KDialogBase ( this , 0 , true , i18n ( " Set Unknowns " ) ) ;
KDialogBase * dialog = new KDialogBase ( this , 0 , true , i18n ( " Set Unknowns " ) ) ;
TQObject : : connect ( dialog , SIGNAL( applyClicked ( ) ) , this , SLOT( setUnknownsApplyClicked ( ) ) ) ;
TQObject : : connect ( dialog , TQ_ SIGNAL( applyClicked ( ) ) , this , TQ_ SLOT( setUnknownsApplyClicked ( ) ) ) ;
TQGrid * grid = dialog - > makeGridMainWidget ( 2 , TQt : : Horizontal ) ;
TQGrid * grid = dialog - > makeGridMainWidget ( 2 , TQt : : Horizontal ) ;
unknowns_entries . clear ( ) ;
unknowns_entries . clear ( ) ;
for ( size_t i = 1 ; i < = unknowns_mstruct - > size ( ) ; i + + ) {
for ( size_t i = 1 ; i < = unknowns_mstruct - > size ( ) ; i + + ) {
@ -6076,7 +6076,7 @@ void KQalculate::manageDataSets() {
if ( ! datasets_dialog ) {
if ( ! datasets_dialog ) {
datasets_dialog = new QalculateDataSetsDialog ( ) ;
datasets_dialog = new QalculateDataSetsDialog ( ) ;
datasets_dialog - > updateDataSetTree ( ) ;
datasets_dialog - > updateDataSetTree ( ) ;
TQObject : : connect ( datasets_dialog , SIGNAL( dataSetsChanged ( ) ) , this , SLOT( update_fmenu ( ) ) ) ;
TQObject : : connect ( datasets_dialog , TQ_ SIGNAL( dataSetsChanged ( ) ) , this , TQ_ SLOT( update_fmenu ( ) ) ) ;
}
}
datasets_dialog - > show ( ) ;
datasets_dialog - > show ( ) ;
}
}
@ -6092,9 +6092,9 @@ void KQalculate::manageUnits() {
if ( ! units_dialog ) {
if ( ! units_dialog ) {
units_dialog = new QalculateUnitsDialog ( ) ;
units_dialog = new QalculateUnitsDialog ( ) ;
units_dialog - > updateUnitTree ( ) ;
units_dialog - > updateUnitTree ( ) ;
TQObject : : connect ( units_dialog , SIGNAL( unitsChanged ( ) ) , this , SLOT( update_umenus ( ) ) ) ;
TQObject : : connect ( units_dialog , TQ_ SIGNAL( unitsChanged ( ) ) , this , TQ_ SLOT( update_umenus ( ) ) ) ;
TQObject : : connect ( units_dialog , SIGNAL( insertRequest ( Unit * ) ) , this , SLOT( insertUnit ( Unit * ) ) ) ;
TQObject : : connect ( units_dialog , TQ_ SIGNAL( insertRequest ( Unit * ) ) , this , TQ_ SLOT( insertUnit ( Unit * ) ) ) ;
TQObject : : connect ( units_dialog , SIGNAL( convertRequest ( Unit * ) ) , this , SLOT( convertResult ( Unit * ) ) ) ;
TQObject : : connect ( units_dialog , TQ_ SIGNAL( convertRequest ( Unit * ) ) , this , TQ_ SLOT( convertResult ( Unit * ) ) ) ;
}
}
units_dialog - > show ( ) ;
units_dialog - > show ( ) ;
}
}
@ -6442,19 +6442,19 @@ TQPopupMenu *QalculateHistoryBrowser::createPopupMenu(const TQPoint &pos) {
switch ( inhistory_type [ i ] ) {
switch ( inhistory_type [ i ] ) {
case QALCULATE_HISTORY_PARSE : { }
case QALCULATE_HISTORY_PARSE : { }
case QALCULATE_HISTORY_PARSE_APPROXIMATE : {
case QALCULATE_HISTORY_PARSE_APPROXIMATE : {
menu - > insertItem ( i18n ( " Edit Expression " ) , mainWin , SLOT( editHistoryParse ( ) ) ) ;
menu - > insertItem ( i18n ( " Edit Expression " ) , mainWin , TQ_ SLOT( editHistoryParse ( ) ) ) ;
break ;
break ;
}
}
case QALCULATE_HISTORY_EXPRESSION : {
case QALCULATE_HISTORY_EXPRESSION : {
menu - > insertItem ( i18n ( " Edit Expression " ) , mainWin , SLOT( editHistoryExpression ( ) ) ) ;
menu - > insertItem ( i18n ( " Edit Expression " ) , mainWin , TQ_ SLOT( editHistoryExpression ( ) ) ) ;
break ;
break ;
}
}
case QALCULATE_HISTORY_RESULT_APPROXIMATE : { }
case QALCULATE_HISTORY_RESULT_APPROXIMATE : { }
case QALCULATE_HISTORY_RESULT : {
case QALCULATE_HISTORY_RESULT : {
menu - > insertItem ( i18n ( " Edit Result " ) , mainWin , SLOT( editHistoryResult ( ) ) ) ;
menu - > insertItem ( i18n ( " Edit Result " ) , mainWin , TQ_ SLOT( editHistoryResult ( ) ) ) ;
for ( size_t i = 0 ; i < 5 ; i + + ) {
for ( size_t i = 0 ; i < 5 ; i + + ) {
if ( vans_id_start [ i ] ! = - 1 & & id > = vans_id_start [ i ] & & ( vans_id_end [ i ] = = - 1 | | id < = vans_id_end [ i ] ) ) {
if ( vans_id_start [ i ] ! = - 1 & & id > = vans_id_start [ i ] & & ( vans_id_end [ i ] = = - 1 | | id < = vans_id_end [ i ] ) ) {
menu - > insertItem ( i18n ( " Insert Result Variable " ) , mainWin , SLOT( insertHistoryResultVariable ( ) ) ) ;
menu - > insertItem ( i18n ( " Insert Result Variable " ) , mainWin , TQ_ SLOT( insertHistoryResultVariable ( ) ) ) ;
break ;
break ;
}
}
}
}