@ -23,7 +23,7 @@
# endif
# include <kdialog.h>
# include < k locale.h>
# include < tde locale.h>
# include "kqalculate.h"
# include "qalculateinsertfunctiondialog.h"
@ -52,8 +52,8 @@
# include "qalculatesetbasedialog.h"
# include "qalculateinsertmatrixvectordialog.h"
# include < k win.h>
# include < k globalsettings.h>
# include < t win.h>
# include < tde globalsettings.h>
# include <kuniqueapplication.h>
# include <kstringhandler.h>
# include <tqtable.h>
@ -68,7 +68,7 @@
# include <kcompletion.h>
# include <klineedit.h>
# include <tqlabel.h>
# include < k messagebox.h>
# include < tde messagebox.h>
# include <tqpixmap.h>
# include <tqpicture.h>
# include <tqpainter.h>
@ -88,36 +88,36 @@
# include <tqbitmap.h>
# include <tqscrollview.h>
# include <tqobject.h>
# include < k application.h>
# include < k action.h>
# include < tde application.h>
# include < tde action.h>
# include <tqspinbox.h>
# include <kprogress.h>
# include < k popupmenu.h>
# include < k menubar.h>
# include < tde popupmenu.h>
# include < tde menubar.h>
# include <tqlayout.h>
# include <tqtimer.h>
# include < k completionbox.h>
# include < tde completionbox.h>
# include <tqstringlist.h>
# include <tqcombobox.h>
# include <ksystemtray.h>
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR > 1
# include < k actionclasses.h>
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR > 1
# include < tde actionclasses.h>
# endif
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR >= 4
# include < k accelmanager.h>
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR >= 4
# include < tde accelmanager.h>
# endif
# include <tqbuttongroup.h>
# include <tqvbuttongroup.h>
# include <tqradiobutton.h>
# include <tqgrid.h>
# include < k filedialog.h>
# include < tde filedialog.h>
# include <tqimage.h>
# include < k accel.h>
# include < k io/netaccess.h>
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR >= 2
# include < tde accel.h>
# include < tde io/netaccess.h>
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR >= 2
# include <kinputdialog.h>
# endif
# include < k deversion.h>
# include < t deversion.h>
# include <tqstyle.h>
# include <kglobalaccel.h>
# include <kkeydialog.h>
@ -187,19 +187,19 @@ const MathStructure *KQalculate::getResultPart(int i) {
return & result_parts [ ( size_t ) i - 1 ] ;
}
# if KDE_VERSION_MAJOR < 4 && K DE_VERSION_MINOR < 2
# if TDE_VERSION_MAJOR < 4 && T DE_VERSION_MINOR < 2
# include <kiconloader.h>
# include < k config.h>
# include < tde config.h>
TQPixmap loadSystrayIcon ( const TQString & icon ) {
K Config * appCfg = kapp - > config ( ) ;
K ConfigGroupSaver configSaver ( appCfg , " System Tray " ) ;
TDE Config * appCfg = kapp - > config ( ) ;
TDE ConfigGroupSaver configSaver ( appCfg , " System Tray " ) ;
int iconWidth = appCfg - > readNumEntry ( " systrayIconWidth " , 22 ) ;
return K Global: : instance ( ) - > iconLoader ( ) - > loadIcon ( icon , K Icon: : Panel , iconWidth ) ;
return TDE Global: : instance ( ) - > iconLoader ( ) - > loadIcon ( icon , TDE Icon: : Panel , iconWidth ) ;
}
# endif
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR >= 3
# define ICON_SIZE_SMALL_MEDIUM K Icon::SizeSmallMedium
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR >= 3
# define ICON_SIZE_SMALL_MEDIUM TDE Icon::SizeSmallMedium
# else
# define ICON_SIZE_SMALL_MEDIUM 22
# endif
@ -209,7 +209,7 @@ void ModeObject::loadMode() {
mainWin - > loadMode ( i_mode ) ;
}
KQalculate : : KQalculate ( KUniqueApplication * parent , const char * name , WFlags fl ) : K MainWindow( 0 , name , fl ) {
KQalculate : : KQalculate ( KUniqueApplication * parent , const char * name , WFlags fl ) : TDE MainWindow( 0 , name , fl ) {
if ( ! name ) setName ( " kqalculate " ) ;
@ -261,8 +261,8 @@ KQalculate::KQalculate(KUniqueApplication *parent, const char* name, WFlags fl)
history_height = 0 ;
trayicon = NULL ;
ActionHideSystemTrayIcon = new K Action( i18n ( " Remove from System Tray " ) , " hidesystemtrayicon " , 0 , this , SLOT ( hideSystemTrayIcon ( ) ) , actionCollection ( ) , " hide_system_tray_icon " ) ;
ActionHide = new K Action( i18n ( " Hide " ) , " hide " , 0 , this , SLOT ( hide ( ) ) , actionCollection ( ) , " hide " ) ;
ActionHideSystemTrayIcon = new TDE Action( i18n ( " Remove from System Tray " ) , " hidesystemtrayicon " , 0 , this , SLOT ( hideSystemTrayIcon ( ) ) , actionCollection ( ) , " hide_system_tray_icon " ) ;
ActionHide = new TDE Action( i18n ( " Hide " ) , " hide " , 0 , this , SLOT ( hide ( ) ) , actionCollection ( ) , " hide " ) ;
showSystemTrayIcon ( close_to_systray ) ;
setCentralWidget ( new TQWidget ( this ) ) ;
@ -275,14 +275,14 @@ KQalculate::KQalculate(KUniqueApplication *parent, const char* name, WFlags fl)
if ( use_icon_buttons > 0 ) {
use_button_pixmaps = true ;
} else if ( use_icon_buttons < 0 ) {
K Config config ( " kdeglobals " , true , false ) ;
TDE Config config ( " kdeglobals " , true , false ) ;
config . setGroup ( " KDE " ) ;
use_button_pixmaps = config . readBoolEntry ( " ShowIconsOnPushButtons " , false ) ;
}
if ( use_button_pixmaps ) leftButtonsLayout = new TQVBoxLayout ( 0 , 0 , 3 ) ;
else leftButtonsLayout = new TQVBoxLayout ( 0 , 0 , 6 ) ;
if ( use_button_pixmaps ) executeButton = new QalculateButton ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " exec" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , centralWidget ( ) ) ;
if ( use_button_pixmaps ) executeButton = new QalculateButton ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " application-x-executable" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , centralWidget ( ) ) ;
else if ( rpn_mode ) executeButton = new QalculateButton ( i18n ( " Enter " ) , centralWidget ( ) ) ;
else executeButton = new QalculateButton ( i18n ( " = " ) , centralWidget ( ) ) ;
executeButton - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Fixed , false ) ;
@ -292,12 +292,12 @@ KQalculate::KQalculate(KUniqueApplication *parent, const char* name, WFlags fl)
leftButtonsSeparator = new KSeparator ( TQt : : Horizontal , centralWidget ( ) ) ;
leftButtonsLayout - > addWidget ( leftButtonsSeparator ) ;
if ( use_button_pixmaps ) leftButtonsSeparator - > hide ( ) ;
if ( use_button_pixmaps ) storeButton = new QalculateButton ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " filesaveas" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , centralWidget ( ) ) ;
if ( use_button_pixmaps ) storeButton = new QalculateButton ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " document-save-as" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , centralWidget ( ) ) ;
else storeButton = new QalculateButton ( i18n ( " Store " ) , centralWidget ( ) ) ;
storeButton - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Fixed , false ) ;
TQToolTip : : add ( storeButton , i18n ( " Store result as variable " ) ) ;
leftButtonsLayout - > addWidget ( storeButton ) ;
if ( use_button_pixmaps ) convertButton = new QalculateButton ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " qalculate_convert " , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , centralWidget ( ) ) ;
if ( use_button_pixmaps ) convertButton = new QalculateButton ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " qalculate_convert " , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , centralWidget ( ) ) ;
else convertButton = new QalculateButton ( i18n ( " Convert " ) , centralWidget ( ) ) ;
convertButton - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Fixed , false ) ;
TQToolTip : : add ( convertButton , i18n ( " Convert units in result " ) ) ;
@ -451,11 +451,11 @@ KQalculate::KQalculate(KUniqueApplication *parent, const char* name, WFlags fl)
keypadAngleLayout - > addItem ( new TQSpacerItem ( 1 , 1 , TQSizePolicy : : Expanding , TQSizePolicy : : Minimum ) ) ;
keypadFunctionsLayout - > addMultiCellLayout ( keypadAngleLayout , 4 , 4 , 0 , 2 ) ;
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR >= 4
K AcceleratorManager: : setNoAccel ( kpDegreesButton ) ;
K AcceleratorManager: : setNoAccel ( kpRadiansButton ) ;
K AcceleratorManager: : setNoAccel ( kpGradiansButton ) ;
K AcceleratorManager: : setNoAccel ( kpNoAngleUnitButton ) ;
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR >= 4
TDE AcceleratorManager: : setNoAccel ( kpDegreesButton ) ;
TDE AcceleratorManager: : setNoAccel ( kpRadiansButton ) ;
TDE AcceleratorManager: : setNoAccel ( kpGradiansButton ) ;
TDE AcceleratorManager: : setNoAccel ( kpNoAngleUnitButton ) ;
# endif
keypadBottomLayout - > addLayout ( keypadFunctionsLayout ) ;
@ -551,27 +551,27 @@ KQalculate::KQalculate(KUniqueApplication *parent, const char* name, WFlags fl)
stackPageLayout - > addWidget ( stackList ) ;
if ( use_button_pixmaps ) stackPageButtonsLayout = new TQVBoxLayout ( stackPageLayout , 3 ) ;
else stackPageButtonsLayout = new TQVBoxLayout ( stackPageLayout , 6 ) ;
if ( use_button_pixmaps ) registerUpButton = new QalculateButton ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " up" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
if ( use_button_pixmaps ) registerUpButton = new QalculateButton ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " go-up" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
else registerUpButton = new QalculateButton ( i18n ( " Up " ) , stackPage ) ;
TQToolTip : : add ( registerUpButton , i18n ( " Move selected register up " ) ) ;
registerUpButton - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Fixed , false ) ;
stackPageButtonsLayout - > addWidget ( registerUpButton ) ;
if ( use_button_pixmaps ) registerDownButton = new QalculateButton ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " down" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
if ( use_button_pixmaps ) registerDownButton = new QalculateButton ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " go-down" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
else registerDownButton = new QalculateButton ( i18n ( " Down " ) , stackPage ) ;
TQToolTip : : add ( registerDownButton , i18n ( " Move selected register down " ) ) ;
registerDownButton - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Fixed , false ) ;
stackPageButtonsLayout - > addWidget ( registerDownButton ) ;
if ( use_button_pixmaps ) editRegisterButton = new QalculateButton ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " edit " , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
if ( use_button_pixmaps ) editRegisterButton = new QalculateButton ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " edit " , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
else editRegisterButton = new QalculateButton ( i18n ( " Edit " ) , stackPage ) ;
TQToolTip : : add ( editRegisterButton , i18n ( " Edit value of selected register " ) ) ;
editRegisterButton - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Fixed , false ) ;
stackPageButtonsLayout - > addWidget ( editRegisterButton ) ;
if ( use_button_pixmaps ) deleteRegisterButton = new QalculateButton ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " edit delete" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
if ( use_button_pixmaps ) deleteRegisterButton = new QalculateButton ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " edit -delete" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
else deleteRegisterButton = new QalculateButton ( i18n ( " Delete " ) , stackPage ) ;
TQToolTip : : add ( deleteRegisterButton , i18n ( " Delete selected register " ) ) ;
deleteRegisterButton - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Fixed , false ) ;
stackPageButtonsLayout - > addWidget ( deleteRegisterButton ) ;
if ( use_button_pixmaps ) clearStackButton = new QalculateButton ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " view_remove " , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
if ( use_button_pixmaps ) clearStackButton = new QalculateButton ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " view_remove " , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) , " " , stackPage ) ;
else clearStackButton = new QalculateButton ( i18n ( " Clear " ) , stackPage ) ;
TQToolTip : : add ( clearStackButton , i18n ( " Clear the RPN stack " ) ) ;
clearStackButton - > setSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Fixed , false ) ;
@ -608,7 +608,7 @@ KQalculate::KQalculate(KUniqueApplication *parent, const char* name, WFlags fl)
connect ( stackList , SIGNAL ( selectionChanged ( ) ) , this , SLOT ( registerSelected ( ) ) ) ;
connect ( stackList , SIGNAL ( itemRenamed ( TQListViewItem * ) ) , this , SLOT ( stackRegisterSet ( TQListViewItem * ) ) ) ;
connect ( stackList , SIGNAL ( moved ( ) ) , this , SLOT ( stackRegisterMoved ( ) ) ) ;
connect ( stackList , SIGNAL ( contextMenu ( K ListView* , TQListViewItem * , const TQPoint & ) ) , this , SLOT ( popupStackMenu ( K ListView* , TQListViewItem * , const TQPoint & ) ) ) ;
connect ( stackList , SIGNAL ( contextMenu ( TDE ListView* , TQListViewItem * , const TQPoint & ) ) , this , SLOT ( popupStackMenu ( TDE ListView* , TQListViewItem * , const TQPoint & ) ) ) ;
connect ( registerUpButton , SIGNAL ( clicked ( ) ) , this , SLOT ( registerUp ( ) ) ) ;
connect ( registerDownButton , SIGNAL ( clicked ( ) ) , this , SLOT ( registerDown ( ) ) ) ;
connect ( editRegisterButton , SIGNAL ( clicked ( ) ) , this , SLOT ( editRegister ( ) ) ) ;
@ -946,7 +946,7 @@ void KQalculate::fontChange(const TQFont &old_font) {
kpSquare - > setMarkup ( i18n ( " x<sup>2</sup> " ) ) ;
kpRaise - > setMarkup ( i18n ( " x<sup>y</sup> " ) ) ;
result_display_updated ( ) ;
K MainWindow: : fontChange ( old_font ) ;
TDE MainWindow: : fontChange ( old_font ) ;
updateButtonWidths ( ) ;
}
@ -954,13 +954,13 @@ void KQalculate::showSystemTrayIcon(bool do_show) {
if ( do_show & & ! trayicon ) {
trayicon = new KSystemTray ( this ) ;
TQObject : : connect ( trayicon , SIGNAL ( quitSelected ( ) ) , tqApp , SLOT ( quit ( ) ) ) ;
# if KDE_VERSION_MAJOR < 4 && K DE_VERSION_MINOR < 2
# if TDE_VERSION_MAJOR < 4 && T DE_VERSION_MINOR < 2
trayicon - > setPixmap ( loadSystrayIcon ( PACKAGE ) ) ;
# else
trayicon - > setPixmap ( trayicon - > loadIcon ( PACKAGE ) ) ;
# endif
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR >= 2
K PopupMenu* traypop = trayicon - > contextMenu ( ) ;
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR >= 2
TDE PopupMenu* traypop = trayicon - > contextMenu ( ) ;
ActionHideSystemTrayIcon - > plug ( traypop , 1 ) ;
# endif
TQToolTip : : add ( trayicon , i18n ( " Qalculate! - Scientific Calculator " ) ) ;
@ -982,194 +982,194 @@ void KQalculate::hideSystemTrayIcon() {
void KQalculate : : setupActions ( ) {
ActionNewVariable = new K Action( i18n ( " Variable " ) , " filenew " , 0 , this , SLOT ( newVariable ( ) ) , actionCollection ( ) , " new_variable " ) ;
ActionNewMatrix = new K Action( i18n ( " Matrix " ) , " filenew " , 0 , this , SLOT ( newMatrix ( ) ) , actionCollection ( ) , " new_matrix " ) ;
ActionNewVector = new K Action( i18n ( " Vector " ) , " filenew " , 0 , this , SLOT ( newVector ( ) ) , actionCollection ( ) , " new_vector " ) ;
ActionNewUnknownVariable = new K Action( i18n ( " Unknown Variable " ) , " filenew " , 0 , this , SLOT ( newUnknownVariable ( ) ) , actionCollection ( ) , " new_unknown_variable " ) ;
ActionNewFunction = new K Action( i18n ( " Function " ) , " filenew " , 0 , this , SLOT ( newFunction ( ) ) , actionCollection ( ) , " new_function " ) ;
ActionNewDataSet = new K Action( i18n ( " Data Set " ) , " filenew " , 0 , this , SLOT ( newDataSet ( ) ) , actionCollection ( ) , " new_data_set " ) ;
ActionNewUnit = new K Action( i18n ( " Unit " ) , " filenew " , 0 , this , SLOT ( newUnit ( ) ) , actionCollection ( ) , " new_unit " ) ;
ActionImportCSVFile = new K Action( i18n ( " Import CSV File... " ) , " fileimport " , 0 , this , SLOT ( importCSVFile ( ) ) , actionCollection ( ) , " import_csv_file " ) ;
ActionExportCSVFile = new K Action( i18n ( " Export CSV File... " ) , " filexport " , 0 , this , SLOT ( exportCSVFile ( ) ) , actionCollection ( ) , " export_csv_file " ) ;
ActionStoreResult = new K Action( i18n ( " Store Result... " ) , " filesave " , CTRL + Key_S , this , SLOT ( storeResult ( ) ) , actionCollection ( ) , " store_result " ) ;
ActionSaveAsImage = new K Action( i18n ( " Save Result Image... " ) , " filesave " , 0 , this , SLOT ( saveAsImage ( ) ) , actionCollection ( ) , " save_as_image " ) ;
ActionSaveDefinitions = new K Action( i18n ( " Save Definitions " ) , " filesave " , 0 , this , SLOT ( saveDefinitions ( ) ) , actionCollection ( ) , " save_definitions " ) ;
ActionUpdateExchangeRates = new K Action( i18n ( " Update Exchange Rates " ) , " reload " , 0 , this , SLOT ( updateExchangeRates ( ) ) , actionCollection ( ) , " update_exchange_rates " ) ;
ActionPlotFunctionsData = new K Action( i18n ( " Plot Functions/Data " ) , 0 , this , SLOT ( plotFunctionsData ( ) ) , actionCollection ( ) , " plot_functions_data " ) ;
ActionNewVariable = new TDE Action( i18n ( " Variable " ) , " filenew " , 0 , this , SLOT ( newVariable ( ) ) , actionCollection ( ) , " new_variable " ) ;
ActionNewMatrix = new TDE Action( i18n ( " Matrix " ) , " filenew " , 0 , this , SLOT ( newMatrix ( ) ) , actionCollection ( ) , " new_matrix " ) ;
ActionNewVector = new TDE Action( i18n ( " Vector " ) , " filenew " , 0 , this , SLOT ( newVector ( ) ) , actionCollection ( ) , " new_vector " ) ;
ActionNewUnknownVariable = new TDE Action( i18n ( " Unknown Variable " ) , " filenew " , 0 , this , SLOT ( newUnknownVariable ( ) ) , actionCollection ( ) , " new_unknown_variable " ) ;
ActionNewFunction = new TDE Action( i18n ( " Function " ) , " filenew " , 0 , this , SLOT ( newFunction ( ) ) , actionCollection ( ) , " new_function " ) ;
ActionNewDataSet = new TDE Action( i18n ( " Data Set " ) , " filenew " , 0 , this , SLOT ( newDataSet ( ) ) , actionCollection ( ) , " new_data_set " ) ;
ActionNewUnit = new TDE Action( i18n ( " Unit " ) , " filenew " , 0 , this , SLOT ( newUnit ( ) ) , actionCollection ( ) , " new_unit " ) ;
ActionImportCSVFile = new TDE Action( i18n ( " Import CSV File... " ) , " fileimport " , 0 , this , SLOT ( importCSVFile ( ) ) , actionCollection ( ) , " import_csv_file " ) ;
ActionExportCSVFile = new TDE Action( i18n ( " Export CSV File... " ) , " filexport " , 0 , this , SLOT ( exportCSVFile ( ) ) , actionCollection ( ) , " export_csv_file " ) ;
ActionStoreResult = new TDE Action( i18n ( " Store Result... " ) , " filesave " , CTRL + Key_S , this , SLOT ( storeResult ( ) ) , actionCollection ( ) , " store_result " ) ;
ActionSaveAsImage = new TDE Action( i18n ( " Save Result Image... " ) , " filesave " , 0 , this , SLOT ( saveAsImage ( ) ) , actionCollection ( ) , " save_as_image " ) ;
ActionSaveDefinitions = new TDE Action( i18n ( " Save Definitions " ) , " filesave " , 0 , this , SLOT ( saveDefinitions ( ) ) , actionCollection ( ) , " save_definitions " ) ;
ActionUpdateExchangeRates = new TDE Action( i18n ( " Update Exchange Rates " ) , " reload " , 0 , this , SLOT ( updateExchangeRates ( ) ) , actionCollection ( ) , " update_exchange_rates " ) ;
ActionPlotFunctionsData = new TDE Action( i18n ( " Plot Functions/Data " ) , 0 , this , SLOT ( plotFunctionsData ( ) ) , actionCollection ( ) , " plot_functions_data " ) ;
ActionPlotFunctionsData - > setEnabled ( canplot ) ;
ActionConvertNumberBases = new K Action( i18n ( " Convert Number Bases " ) , 0 , this , SLOT ( convertNumberBases ( ) ) , actionCollection ( ) , " convert_number_bases " ) ;
ActionPeriodicTable = new K Action( i18n ( " Periodic Table " ) , 0 , this , SLOT ( periodicTable ( ) ) , actionCollection ( ) , " periodic_table " ) ;
ActionConvertNumberBases = new TDE Action( i18n ( " Convert Number Bases " ) , 0 , this , SLOT ( convertNumberBases ( ) ) , actionCollection ( ) , " convert_number_bases " ) ;
ActionPeriodicTable = new TDE Action( i18n ( " Periodic Table " ) , 0 , this , SLOT ( periodicTable ( ) ) , actionCollection ( ) , " periodic_table " ) ;
if ( close_to_systray ) {
ActionClose = KStdAction : : close ( this , SLOT ( close ( ) ) , actionCollection ( ) ) ;
} else {
ActionClose = NULL ;
}
globalAccel = new K GlobalAccel( this ) ;
globalAccel - > insert ( " Show/hide Qalculate! " , i18n ( " Show/hide main Qalculate! window " ) , TQString : : null , KShortcut( ) , K Shortcut( ) , this , SLOT ( showHide ( ) ) ) ;
globalAccel = new TDE GlobalAccel( this ) ;
globalAccel - > insert ( " Show/hide Qalculate! " , i18n ( " Show/hide main Qalculate! window " ) , TQString : : null , TDEShortcut( ) , TDE Shortcut( ) , this , SLOT ( showHide ( ) ) ) ;
globalAccel - > readSettings ( ) ;
globalAccel - > updateConnections ( ) ;
ActionConfigureGlobalShortcuts = new K Action( i18n ( " Configure &Global Shortcuts... " ) , " configure_shortcuts " , 0 , this , SLOT ( configureGlobalShortcuts ( ) ) , actionCollection ( ) , " configure_global_shortcuts " ) ;
ActionConfigureGlobalShortcuts = new TDE Action( i18n ( " Configure &Global Shortcuts... " ) , " configure_shortcuts " , 0 , this , SLOT ( configureGlobalShortcuts ( ) ) , actionCollection ( ) , " configure_global_shortcuts " ) ;
ActionQuit = KStdAction : : quit ( tqApp , SLOT ( quit ( ) ) , actionCollection ( ) ) ;
ActionManageVariables = new K Action( i18n ( " Manage Variables " ) , Key_F2 , this , SLOT ( manageVariables ( ) ) , actionCollection ( ) , " manage_variables " ) ;
ActionManageFunctions = new K Action( i18n ( " Manage Functions " ) , Key_F3 , this , SLOT ( manageFunctions ( ) ) , actionCollection ( ) , " manage_functions " ) ;
ActionManageUnits = new K Action( i18n ( " Manage Units " ) , Key_F4 , this , SLOT ( manageUnits ( ) ) , actionCollection ( ) , " manage_units " ) ;
ActionManageDataSets = new K Action( i18n ( " Manage Data Sets " ) , 0 , this , SLOT ( manageDataSets ( ) ) , actionCollection ( ) , " manage_data_sets " ) ;
ActionFactorize = new K Action( i18n ( " Factorize " ) , 0 , this , SLOT ( factorize ( ) ) , actionCollection ( ) , " factorize " ) ;
ActionSimplify = new K Action( i18n ( " Simplify " ) , 0 , this , SLOT ( simplify ( ) ) , actionCollection ( ) , " simplify " ) ;
ActionSetUnknowns = new K Action( i18n ( " Set Unknowns... " ) , 0 , this , SLOT ( setUnknowns ( ) ) , actionCollection ( ) , " set_unknowns " ) ;
ActionConvertToUnitExpression = new K Action( i18n ( " Convert to Unit Expression... " ) , CTRL + Key_T , this , SLOT ( convertToUnitExpression ( ) ) , actionCollection ( ) , " convert_to_unit_expression " ) ;
ActionConvertToBaseUnits = new K Action( i18n ( " Convert to Base Units " ) , 0 , this , SLOT ( convertToBaseUnits ( ) ) , actionCollection ( ) , " convert_to_base_units " ) ;
ActionConvertToBestUnit = new K Action( i18n ( " Convert to Best Unit " ) , 0 , this , SLOT ( convertToBestUnit ( ) ) , actionCollection ( ) , " convert_to_best_unit " ) ;
ActionInsertMatrix = new K Action( i18n ( " Insert Matrix... " ) , 0 , this , SLOT ( insertMatrix ( ) ) , actionCollection ( ) , " insert_matrix " ) ;
ActionInsertVector = new K Action( i18n ( " Insert Vector... " ) , 0 , this , SLOT ( insertVector ( ) ) , actionCollection ( ) , " insert_vector " ) ;
ActionCopyResult = new K Action( i18n ( " Copy Result " ) , " editcopy " , Key_F5 , this , SLOT ( copyResult ( ) ) , actionCollection ( ) , " copy_result " ) ;
ActionClearHistory = new K Action( i18n ( " Clear History " ) , " editclear " , 0 , this , SLOT ( clearHistory ( ) ) , actionCollection ( ) , " clear_history " ) ;
ActionPreferences = new K Action( i18n ( " Configure Qalculate! " ) , " configure " , 0 , this , SLOT ( preferences ( ) ) , actionCollection ( ) , " preferences " ) ;
ActionManageVariables = new TDE Action( i18n ( " Manage Variables " ) , Key_F2 , this , SLOT ( manageVariables ( ) ) , actionCollection ( ) , " manage_variables " ) ;
ActionManageFunctions = new TDE Action( i18n ( " Manage Functions " ) , Key_F3 , this , SLOT ( manageFunctions ( ) ) , actionCollection ( ) , " manage_functions " ) ;
ActionManageUnits = new TDE Action( i18n ( " Manage Units " ) , Key_F4 , this , SLOT ( manageUnits ( ) ) , actionCollection ( ) , " manage_units " ) ;
ActionManageDataSets = new TDE Action( i18n ( " Manage Data Sets " ) , 0 , this , SLOT ( manageDataSets ( ) ) , actionCollection ( ) , " manage_data_sets " ) ;
ActionFactorize = new TDE Action( i18n ( " Factorize " ) , 0 , this , SLOT ( factorize ( ) ) , actionCollection ( ) , " factorize " ) ;
ActionSimplify = new TDE Action( i18n ( " Simplify " ) , 0 , this , SLOT ( simplify ( ) ) , actionCollection ( ) , " simplify " ) ;
ActionSetUnknowns = new TDE Action( i18n ( " Set Unknowns... " ) , 0 , this , SLOT ( setUnknowns ( ) ) , actionCollection ( ) , " set_unknowns " ) ;
ActionConvertToUnitExpression = new TDE Action( i18n ( " Convert to Unit Expression... " ) , CTRL + Key_T , this , SLOT ( convertToUnitExpression ( ) ) , actionCollection ( ) , " convert_to_unit_expression " ) ;
ActionConvertToBaseUnits = new TDE Action( i18n ( " Convert to Base Units " ) , 0 , this , SLOT ( convertToBaseUnits ( ) ) , actionCollection ( ) , " convert_to_base_units " ) ;
ActionConvertToBestUnit = new TDE Action( i18n ( " Convert to Best Unit " ) , 0 , this , SLOT ( convertToBestUnit ( ) ) , actionCollection ( ) , " convert_to_best_unit " ) ;
ActionInsertMatrix = new TDE Action( i18n ( " Insert Matrix... " ) , 0 , this , SLOT ( insertMatrix ( ) ) , actionCollection ( ) , " insert_matrix " ) ;
ActionInsertVector = new TDE Action( i18n ( " Insert Vector... " ) , 0 , this , SLOT ( insertVector ( ) ) , actionCollection ( ) , " insert_vector " ) ;
ActionCopyResult = new TDE Action( i18n ( " Copy Result " ) , " editcopy " , Key_F5 , this , SLOT ( copyResult ( ) ) , actionCollection ( ) , " copy_result " ) ;
ActionClearHistory = new TDE Action( i18n ( " Clear History " ) , " editclear " , 0 , this , SLOT ( clearHistory ( ) ) , actionCollection ( ) , " clear_history " ) ;
ActionPreferences = new TDE Action( i18n ( " Configure Qalculate! " ) , " configure " , 0 , this , SLOT ( preferences ( ) ) , actionCollection ( ) , " preferences " ) ;
KStdAction : : keyBindings ( guiFactory ( ) , SLOT ( configureShortcuts ( ) ) , actionCollection ( ) , " keybindings " ) ;
ActionNumberBaseBinary = new K RadioAction( i18n ( " Binary " ) , 0 , this , SLOT ( numberBaseBinary ( ) ) , actionCollection ( ) , " number_base_binary " ) ;
ActionNumberBaseBinary = new TDE RadioAction( i18n ( " Binary " ) , 0 , this , SLOT ( numberBaseBinary ( ) ) , actionCollection ( ) , " number_base_binary " ) ;
ActionNumberBaseBinary - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseOctal = new K RadioAction( i18n ( " Octal " ) , 0 , this , SLOT ( numberBaseOctal ( ) ) , actionCollection ( ) , " number_base_octal " ) ;
ActionNumberBaseOctal = new TDE RadioAction( i18n ( " Octal " ) , 0 , this , SLOT ( numberBaseOctal ( ) ) , actionCollection ( ) , " number_base_octal " ) ;
ActionNumberBaseOctal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseDecimal = new K RadioAction( i18n ( " Decimal " ) , 0 , this , SLOT ( numberBaseDecimal ( ) ) , actionCollection ( ) , " number_base_decimal " ) ;
ActionNumberBaseDecimal = new TDE RadioAction( i18n ( " Decimal " ) , 0 , this , SLOT ( numberBaseDecimal ( ) ) , actionCollection ( ) , " number_base_decimal " ) ;
ActionNumberBaseDecimal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseHexadecimal = new K RadioAction( i18n ( " Hexadecimal " ) , 0 , this , SLOT ( numberBaseHexadecimal ( ) ) , actionCollection ( ) , " number_base_hexadecimal " ) ;
ActionNumberBaseHexadecimal = new TDE RadioAction( i18n ( " Hexadecimal " ) , 0 , this , SLOT ( numberBaseHexadecimal ( ) ) , actionCollection ( ) , " number_base_hexadecimal " ) ;
ActionNumberBaseHexadecimal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseOther = new K RadioAction( i18n ( " Other... " ) , 0 , this , SLOT ( numberBaseOther ( ) ) , actionCollection ( ) , " number_base_other " ) ;
ActionNumberBaseOther = new TDE RadioAction( i18n ( " Other... " ) , 0 , this , SLOT ( numberBaseOther ( ) ) , actionCollection ( ) , " number_base_other " ) ;
ActionNumberBaseOther - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseSexagesimal = new K RadioAction( i18n ( " Sexagesimal " ) , 0 , this , SLOT ( numberBaseSexagesimal ( ) ) , actionCollection ( ) , " number_base_sexagesimal " ) ;
ActionNumberBaseSexagesimal = new TDE RadioAction( i18n ( " Sexagesimal " ) , 0 , this , SLOT ( numberBaseSexagesimal ( ) ) , actionCollection ( ) , " number_base_sexagesimal " ) ;
ActionNumberBaseSexagesimal - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseTimeFormat = new K RadioAction( i18n ( " Time Format " ) , 0 , this , SLOT ( numberBaseTimeFormat ( ) ) , actionCollection ( ) , " number_base_time_format " ) ;
ActionNumberBaseTimeFormat = new TDE RadioAction( i18n ( " Time Format " ) , 0 , this , SLOT ( numberBaseTimeFormat ( ) ) , actionCollection ( ) , " number_base_time_format " ) ;
ActionNumberBaseTimeFormat - > setExclusiveGroup ( " group_number_base " ) ;
ActionNumberBaseRomanNumerals = new K RadioAction( i18n ( " Roman Numerals " ) , 0 , this , SLOT ( numberBaseRomanNumerals ( ) ) , actionCollection ( ) , " number_base_roman_numerals " ) ;
ActionNumberBaseRomanNumerals = new TDE RadioAction( i18n ( " Roman Numerals " ) , 0 , this , SLOT ( numberBaseRomanNumerals ( ) ) , actionCollection ( ) , " number_base_roman_numerals " ) ;
ActionNumberBaseRomanNumerals - > setExclusiveGroup ( " group_number_base " ) ;
ActionSetBase = new K Action( i18n ( " Select Result and Expression Base... " ) , CTRL + Key_B , this , SLOT ( setBase ( ) ) , actionCollection ( ) , " set_base " ) ;
ActionNumericalDisplayNormal = new K RadioAction( i18n ( " Normal " ) , 0 , this , SLOT ( numericalDisplayNormal ( ) ) , actionCollection ( ) , " numerical_display_normal " ) ;
ActionSetBase = new TDE Action( i18n ( " Select Result and Expression Base... " ) , CTRL + Key_B , this , SLOT ( setBase ( ) ) , actionCollection ( ) , " set_base " ) ;
ActionNumericalDisplayNormal = new TDE RadioAction( i18n ( " Normal " ) , 0 , this , SLOT ( numericalDisplayNormal ( ) ) , actionCollection ( ) , " numerical_display_normal " ) ;
ActionNumericalDisplayNormal - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayEngineering = new K RadioAction( i18n ( " Engineering " ) , 0 , this , SLOT ( numericalDisplayEngineering ( ) ) , actionCollection ( ) , " numerical_display_engineering " ) ;
ActionNumericalDisplayEngineering = new TDE RadioAction( i18n ( " Engineering " ) , 0 , this , SLOT ( numericalDisplayEngineering ( ) ) , actionCollection ( ) , " numerical_display_engineering " ) ;
ActionNumericalDisplayEngineering - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayScientific = new K RadioAction( i18n ( " Scientific " ) , 0 , this , SLOT ( numericalDisplayScientific ( ) ) , actionCollection ( ) , " numerical_display_scientific " ) ;
ActionNumericalDisplayScientific = new TDE RadioAction( i18n ( " Scientific " ) , 0 , this , SLOT ( numericalDisplayScientific ( ) ) , actionCollection ( ) , " numerical_display_scientific " ) ;
ActionNumericalDisplayScientific - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplayPurelyScientific = new K RadioAction( i18n ( " Purely Scientific " ) , 0 , this , SLOT ( numericalDisplayPurelyScientific ( ) ) , actionCollection ( ) , " numerical_display_purely_scientific " ) ;
ActionNumericalDisplayPurelyScientific = new TDE RadioAction( i18n ( " Purely Scientific " ) , 0 , this , SLOT ( numericalDisplayPurelyScientific ( ) ) , actionCollection ( ) , " numerical_display_purely_scientific " ) ;
ActionNumericalDisplayPurelyScientific - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionNumericalDisplaySimple = new K RadioAction( i18n ( " Simple " ) , 0 , this , SLOT ( numericalDisplaySimple ( ) ) , actionCollection ( ) , " numerical_display_simple " ) ;
ActionNumericalDisplaySimple = new TDE RadioAction( i18n ( " Simple " ) , 0 , this , SLOT ( numericalDisplaySimple ( ) ) , actionCollection ( ) , " numerical_display_simple " ) ;
ActionNumericalDisplaySimple - > setExclusiveGroup ( " group_numberical_display " ) ;
ActionIndicateInfiniteSeries = new K ToggleAction( i18n ( " Indicate Infinite Series " ) , 0 , actionCollection ( ) , " indicate_infinite_series " ) ;
ActionIndicateInfiniteSeries = new TDE ToggleAction( i18n ( " Indicate Infinite Series " ) , 0 , actionCollection ( ) , " indicate_infinite_series " ) ;
TQObject : : connect ( ActionIndicateInfiniteSeries , SIGNAL ( toggled ( bool ) ) , this , SLOT ( indicateInfiniteSeries ( bool ) ) ) ;
ActionSortMinusLast = new K ToggleAction( i18n ( " Sort Minus Last " ) , 0 , actionCollection ( ) , " sort_minus_last " ) ;
ActionSortMinusLast = new TDE ToggleAction( i18n ( " Sort Minus Last " ) , 0 , actionCollection ( ) , " sort_minus_last " ) ;
TQObject : : connect ( ActionSortMinusLast , SIGNAL ( toggled ( bool ) ) , this , SLOT ( sortMinusLast ( bool ) ) ) ;
ActionNegativeExponents = new K ToggleAction( i18n ( " Negative Exponents " ) , 0 , actionCollection ( ) , " negative_exponents " ) ;
ActionNegativeExponents = new TDE ToggleAction( i18n ( " Negative Exponents " ) , 0 , actionCollection ( ) , " negative_exponents " ) ;
TQObject : : connect ( ActionNegativeExponents , SIGNAL ( toggled ( bool ) ) , this , SLOT ( negativeExponents ( bool ) ) ) ;
ActionShowEndingZeroes = new K ToggleAction( i18n ( " Show Ending Zeroes " ) , 0 , actionCollection ( ) , " show_ending_zeroes " ) ;
ActionShowEndingZeroes = new TDE ToggleAction( i18n ( " Show Ending Zeroes " ) , 0 , actionCollection ( ) , " show_ending_zeroes " ) ;
TQObject : : connect ( ActionShowEndingZeroes , SIGNAL ( toggled ( bool ) ) , this , SLOT ( showEndingZeroes ( bool ) ) ) ;
ActionRoundHalfwayNumbersToEven = new K ToggleAction( i18n ( " Round Halfway Numbers to Even " ) , 0 , actionCollection ( ) , " round_halfway_numbers_to_even " ) ;
ActionRoundHalfwayNumbersToEven = new TDE ToggleAction( i18n ( " Round Halfway Numbers to Even " ) , 0 , actionCollection ( ) , " round_halfway_numbers_to_even " ) ;
TQObject : : connect ( ActionRoundHalfwayNumbersToEven , SIGNAL ( toggled ( bool ) ) , this , SLOT ( roundHalfwayNumbersToEven ( bool ) ) ) ;
ActionFractionalDisplayDecimal = new K RadioAction( i18n ( " Decimal " ) , 0 , this , SLOT ( fractionalDisplayDecimal ( ) ) , actionCollection ( ) , " fractional_display_decimal " ) ;
ActionFractionalDisplayDecimal = new TDE RadioAction( i18n ( " Decimal " ) , 0 , this , SLOT ( fractionalDisplayDecimal ( ) ) , actionCollection ( ) , " fractional_display_decimal " ) ;
ActionFractionalDisplayDecimal - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayDecimalTryExact = new K RadioAction( i18n ( " Decimal (Try Exact) " ) , 0 , this , SLOT ( fractionalDisplayDecimalTryExact ( ) ) , actionCollection ( ) , " fractional_display_decimal_try_exact " ) ;
ActionFractionalDisplayDecimalTryExact = new TDE RadioAction( i18n ( " Decimal (Try Exact) " ) , 0 , this , SLOT ( fractionalDisplayDecimalTryExact ( ) ) , actionCollection ( ) , " fractional_display_decimal_try_exact " ) ;
ActionFractionalDisplayDecimalTryExact - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayFraction = new K RadioAction( i18n ( " Fraction " ) , 0 , this , SLOT ( fractionalDisplayFraction ( ) ) , actionCollection ( ) , " fractional_display_fraction " ) ;
ActionFractionalDisplayFraction = new TDE RadioAction( i18n ( " Fraction " ) , 0 , this , SLOT ( fractionalDisplayFraction ( ) ) , actionCollection ( ) , " fractional_display_fraction " ) ;
ActionFractionalDisplayFraction - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionFractionalDisplayCombined = new K RadioAction( i18n ( " Combined " ) , 0 , this , SLOT ( fractionalDisplayCombined ( ) ) , actionCollection ( ) , " fractional_display_combined " ) ;
ActionFractionalDisplayCombined = new TDE RadioAction( i18n ( " Combined " ) , 0 , this , SLOT ( fractionalDisplayCombined ( ) ) , actionCollection ( ) , " fractional_display_combined " ) ;
ActionFractionalDisplayCombined - > setExclusiveGroup ( " group_fractional_display " ) ;
ActionEnablePrefixes = new K ToggleAction( i18n ( " Enable Prefixes " ) , 0 , actionCollection ( ) , " enable_prefixes " ) ;
ActionEnablePrefixes = new TDE ToggleAction( i18n ( " Enable Prefixes " ) , 0 , actionCollection ( ) , " enable_prefixes " ) ;
TQObject : : connect ( ActionEnablePrefixes , SIGNAL ( toggled ( bool ) ) , this , SLOT ( enablePrefixes ( bool ) ) ) ;
ActionEnableUseOfAllPrefixes = new K ToggleAction( i18n ( " Enable Use of All SI Prefixes " ) , 0 , actionCollection ( ) , " enable_use_of_all_prefixes " ) ;
ActionEnableUseOfAllPrefixes = new TDE ToggleAction( i18n ( " Enable Use of All SI Prefixes " ) , 0 , actionCollection ( ) , " enable_use_of_all_prefixes " ) ;
TQObject : : connect ( ActionEnableUseOfAllPrefixes , SIGNAL ( toggled ( bool ) ) , this , SLOT ( enableUseOfAllPrefixes ( bool ) ) ) ;
ActionEnableDenominatorPrefixes = new K ToggleAction( i18n ( " Enable Denominator Prefixes " ) , 0 , actionCollection ( ) , " enable_denominator_prefixes " ) ;
ActionEnableDenominatorPrefixes = new TDE ToggleAction( i18n ( " Enable Denominator Prefixes " ) , 0 , actionCollection ( ) , " enable_denominator_prefixes " ) ;
TQObject : : connect ( ActionEnableDenominatorPrefixes , SIGNAL ( toggled ( bool ) ) , this , SLOT ( enableDenominatorPrefixes ( bool ) ) ) ;
ActionPlaceUnitsSeparately = new K ToggleAction( i18n ( " Place Units Separately " ) , 0 , actionCollection ( ) , " place_units_separately " ) ;
ActionPlaceUnitsSeparately = new TDE ToggleAction( i18n ( " Place Units Separately " ) , 0 , actionCollection ( ) , " place_units_separately " ) ;
TQObject : : connect ( ActionPlaceUnitsSeparately , SIGNAL ( toggled ( bool ) ) , this , SLOT ( placeUnitsSeparately ( bool ) ) ) ;
ActionAutoNoConversion = new K RadioAction( i18n ( " No Automatic Conversion " ) , 0 , this , SLOT ( autoNoConversion ( ) ) , actionCollection ( ) , " auto_no_conversion " ) ;
ActionAutoNoConversion = new TDE RadioAction( i18n ( " No Automatic Conversion " ) , 0 , this , SLOT ( autoNoConversion ( ) ) , actionCollection ( ) , " auto_no_conversion " ) ;
ActionAutoNoConversion - > setExclusiveGroup ( " group_auto_conversion " ) ;
ActionAutoConvertToBaseUnits = new K RadioAction( i18n ( " Convert to Base Units " ) , 0 , this , SLOT ( autoConvertToBaseUnits ( ) ) , actionCollection ( ) , " auto_convert_to_base_units " ) ;
ActionAutoConvertToBaseUnits = new TDE RadioAction( i18n ( " Convert to Base Units " ) , 0 , this , SLOT ( autoConvertToBaseUnits ( ) ) , actionCollection ( ) , " auto_convert_to_base_units " ) ;
ActionAutoConvertToBaseUnits - > setExclusiveGroup ( " group_auto_conversion " ) ;
ActionAutoConvertToBestUnit = new K RadioAction( i18n ( " Convert to Best Unit " ) , 0 , this , SLOT ( autoConvertToBestUnit ( ) ) , actionCollection ( ) , " auto_convert_to_best_unit " ) ;
ActionAutoConvertToBestUnit = new TDE RadioAction( i18n ( " Convert to Best Unit " ) , 0 , this , SLOT ( autoConvertToBestUnit ( ) ) , actionCollection ( ) , " auto_convert_to_best_unit " ) ;
ActionAutoConvertToBestUnit - > setExclusiveGroup ( " group_auto_conversion " ) ;
ActionAngleUnitDegrees = new K RadioAction( i18n ( " Degrees " ) , 0 , this , SLOT ( angleUnitDegrees ( ) ) , actionCollection ( ) , " angle_unit_degrees " ) ;
ActionAngleUnitDegrees = new TDE RadioAction( i18n ( " Degrees " ) , 0 , this , SLOT ( angleUnitDegrees ( ) ) , actionCollection ( ) , " angle_unit_degrees " ) ;
ActionAngleUnitDegrees - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitRadians = new K RadioAction( i18n ( " Radians " ) , 0 , this , SLOT ( angleUnitRadians ( ) ) , actionCollection ( ) , " angle_unit_radians " ) ;
ActionAngleUnitRadians = new TDE RadioAction( i18n ( " Radians " ) , 0 , this , SLOT ( angleUnitRadians ( ) ) , actionCollection ( ) , " angle_unit_radians " ) ;
ActionAngleUnitRadians - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitGradians = new K RadioAction( i18n ( " Gradians " ) , 0 , this , SLOT ( angleUnitGradians ( ) ) , actionCollection ( ) , " angle_unit_gradians " ) ;
ActionAngleUnitGradians = new TDE RadioAction( i18n ( " Gradians " ) , 0 , this , SLOT ( angleUnitGradians ( ) ) , actionCollection ( ) , " angle_unit_gradians " ) ;
ActionAngleUnitGradians - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAngleUnitNone = new K RadioAction( i18n ( " None " ) , 0 , this , SLOT ( angleUnitNone ( ) ) , actionCollection ( ) , " angle_unit_none " ) ;
ActionAngleUnitNone = new TDE RadioAction( i18n ( " None " ) , 0 , this , SLOT ( angleUnitNone ( ) ) , actionCollection ( ) , " angle_unit_none " ) ;
ActionAngleUnitNone - > setExclusiveGroup ( " group_angle_unit " ) ;
ActionAbbreviateNames = new K ToggleAction( i18n ( " Abbreviate Names " ) , 0 , actionCollection ( ) , " abbreviate_names " ) ;
ActionAbbreviateNames = new TDE ToggleAction( i18n ( " Abbreviate Names " ) , 0 , actionCollection ( ) , " abbreviate_names " ) ;
TQObject : : connect ( ActionAbbreviateNames , SIGNAL ( toggled ( bool ) ) , this , SLOT ( abbreviateNames ( bool ) ) ) ;
ActionEnableVariables = new K ToggleAction( i18n ( " Enable Variables " ) , 0 , actionCollection ( ) , " enable_variables " ) ;
ActionEnableVariables = new TDE ToggleAction( i18n ( " Enable Variables " ) , 0 , actionCollection ( ) , " enable_variables " ) ;
TQObject : : connect ( ActionEnableVariables , SIGNAL ( toggled ( bool ) ) , this , SLOT ( enableVariables ( bool ) ) ) ;
ActionEnableFunctions = new K ToggleAction( i18n ( " Enable Functions " ) , 0 , actionCollection ( ) , " enable_functions " ) ;
ActionEnableFunctions = new TDE ToggleAction( i18n ( " Enable Functions " ) , 0 , actionCollection ( ) , " enable_functions " ) ;
TQObject : : connect ( ActionEnableFunctions , SIGNAL ( toggled ( bool ) ) , this , SLOT ( enableFunctions ( bool ) ) ) ;
ActionEnableUnits = new K ToggleAction( i18n ( " Enable Units " ) , 0 , actionCollection ( ) , " enable_units " ) ;
ActionEnableUnits = new TDE ToggleAction( i18n ( " Enable Units " ) , 0 , actionCollection ( ) , " enable_units " ) ;
TQObject : : connect ( ActionEnableUnits , SIGNAL ( toggled ( bool ) ) , this , SLOT ( enableUnits ( bool ) ) ) ;
ActionEnableUnknowns = new K ToggleAction( i18n ( " Enable Unknowns " ) , 0 , actionCollection ( ) , " enable_unknowns " ) ;
ActionEnableUnknowns = new TDE ToggleAction( i18n ( " Enable Unknowns " ) , 0 , actionCollection ( ) , " enable_unknowns " ) ;
TQObject : : connect ( ActionEnableUnknowns , SIGNAL ( toggled ( bool ) ) , this , SLOT ( enableUnknowns ( bool ) ) ) ;
ActionCalculateVariables = new K ToggleAction( i18n ( " Calculate Variables " ) , 0 , actionCollection ( ) , " calculate_variables " ) ;
ActionCalculateVariables = new TDE ToggleAction( i18n ( " Calculate Variables " ) , 0 , actionCollection ( ) , " calculate_variables " ) ;
TQObject : : connect ( ActionCalculateVariables , SIGNAL ( toggled ( bool ) ) , this , SLOT ( calculateVariables ( bool ) ) ) ;
ActionAllowComplexResult = new K ToggleAction( i18n ( " Allow Complex Result " ) , 0 , actionCollection ( ) , " allow_complex_result " ) ;
ActionAllowComplexResult = new TDE ToggleAction( i18n ( " Allow Complex Result " ) , 0 , actionCollection ( ) , " allow_complex_result " ) ;
TQObject : : connect ( ActionAllowComplexResult , SIGNAL ( toggled ( bool ) ) , this , SLOT ( allowComplexResult ( bool ) ) ) ;
ActionAllowInfiniteResult = new K ToggleAction( i18n ( " Allow Infinite Result " ) , 0 , actionCollection ( ) , " allow_infinite_result " ) ;
ActionAllowInfiniteResult = new TDE ToggleAction( i18n ( " Allow Infinite Result " ) , 0 , actionCollection ( ) , " allow_infinite_result " ) ;
TQObject : : connect ( ActionAllowInfiniteResult , SIGNAL ( toggled ( bool ) ) , this , SLOT ( allowInfiniteResult ( bool ) ) ) ;
ActionApproximationTryExact = new K RadioAction( i18n ( " Try Exact " ) , 0 , this , SLOT ( approximationTryExact ( ) ) , actionCollection ( ) , " approximation_try_exact " ) ;
ActionApproximationTryExact = new TDE RadioAction( i18n ( " Try Exact " ) , 0 , this , SLOT ( approximationTryExact ( ) ) , actionCollection ( ) , " approximation_try_exact " ) ;
ActionApproximationTryExact - > setExclusiveGroup ( " group_approximation " ) ;
ActionApproximationAlwaysExact = new K RadioAction( i18n ( " Always Exact " ) , 0 , this , SLOT ( approximationAlwaysExact ( ) ) , actionCollection ( ) , " approximation_always_exact " ) ;
ActionApproximationAlwaysExact = new TDE RadioAction( i18n ( " Always Exact " ) , 0 , this , SLOT ( approximationAlwaysExact ( ) ) , actionCollection ( ) , " approximation_always_exact " ) ;
ActionApproximationAlwaysExact - > setExclusiveGroup ( " group_approximation " ) ;
ActionApproximationApproximate = new K RadioAction( i18n ( " Approximate " ) , 0 , this , SLOT ( approximationApproximate ( ) ) , actionCollection ( ) , " approximation_approximate " ) ;
ActionApproximationApproximate = new TDE RadioAction( i18n ( " Approximate " ) , 0 , this , SLOT ( approximationApproximate ( ) ) , actionCollection ( ) , " approximation_approximate " ) ;
ActionApproximationApproximate - > setExclusiveGroup ( " group_approximation " ) ;
ActionAssumptionTypeUnknown = new K RadioAction( i18n ( " Unknown " ) , 0 , this , SLOT ( assumptionTypeUnknown ( ) ) , actionCollection ( ) , " assumption_type_unknown " ) ;
ActionAssumptionTypeUnknown = new TDE RadioAction( i18n ( " Unknown " ) , 0 , this , SLOT ( assumptionTypeUnknown ( ) ) , actionCollection ( ) , " assumption_type_unknown " ) ;
ActionAssumptionTypeUnknown - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeNonMatrix = new K RadioAction( i18n ( " Not Matrix " ) , 0 , this , SLOT ( assumptionTypeNonMatrix ( ) ) , actionCollection ( ) , " assumption_type_nonmatrix " ) ;
ActionAssumptionTypeNonMatrix = new TDE RadioAction( i18n ( " Not Matrix " ) , 0 , this , SLOT ( assumptionTypeNonMatrix ( ) ) , actionCollection ( ) , " assumption_type_nonmatrix " ) ;
ActionAssumptionTypeNonMatrix - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeNumber = new K RadioAction( i18n ( " Number " ) , 0 , this , SLOT ( assumptionTypeNumber ( ) ) , actionCollection ( ) , " assumption_type_number " ) ;
ActionAssumptionTypeNumber = new TDE RadioAction( i18n ( " Number " ) , 0 , this , SLOT ( assumptionTypeNumber ( ) ) , actionCollection ( ) , " assumption_type_number " ) ;
ActionAssumptionTypeNumber - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeComplex = new K RadioAction( i18n ( " Complex " ) , 0 , this , SLOT ( assumptionTypeComplex ( ) ) , actionCollection ( ) , " assumption_type_complex " ) ;
ActionAssumptionTypeComplex = new TDE RadioAction( i18n ( " Complex " ) , 0 , this , SLOT ( assumptionTypeComplex ( ) ) , actionCollection ( ) , " assumption_type_complex " ) ;
ActionAssumptionTypeComplex - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeReal = new K RadioAction( i18n ( " Real " ) , 0 , this , SLOT ( assumptionTypeReal ( ) ) , actionCollection ( ) , " assumption_type_real " ) ;
ActionAssumptionTypeReal = new TDE RadioAction( i18n ( " Real " ) , 0 , this , SLOT ( assumptionTypeReal ( ) ) , actionCollection ( ) , " assumption_type_real " ) ;
ActionAssumptionTypeReal - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeRational = new K RadioAction( i18n ( " Rational " ) , 0 , this , SLOT ( assumptionTypeRational ( ) ) , actionCollection ( ) , " assumption_type_rational " ) ;
ActionAssumptionTypeRational = new TDE RadioAction( i18n ( " Rational " ) , 0 , this , SLOT ( assumptionTypeRational ( ) ) , actionCollection ( ) , " assumption_type_rational " ) ;
ActionAssumptionTypeRational - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionTypeInteger = new K RadioAction( i18n ( " Integer " ) , 0 , this , SLOT ( assumptionTypeInteger ( ) ) , actionCollection ( ) , " assumption_type_integer " ) ;
ActionAssumptionTypeInteger = new TDE RadioAction( i18n ( " Integer " ) , 0 , this , SLOT ( assumptionTypeInteger ( ) ) , actionCollection ( ) , " assumption_type_integer " ) ;
ActionAssumptionTypeInteger - > setExclusiveGroup ( " group_assumption_type " ) ;
ActionAssumptionSignUnknown = new K RadioAction( i18n ( " Unknown " ) , 0 , this , SLOT ( assumptionSignUnknown ( ) ) , actionCollection ( ) , " assumption_sign_unknown " ) ;
ActionAssumptionSignUnknown = new TDE RadioAction( i18n ( " Unknown " ) , 0 , this , SLOT ( assumptionSignUnknown ( ) ) , actionCollection ( ) , " assumption_sign_unknown " ) ;
ActionAssumptionSignUnknown - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNonZero = new K RadioAction( i18n ( " Non-Zero " ) , 0 , this , SLOT ( assumptionSignNonZero ( ) ) , actionCollection ( ) , " assumption_sign_non_zero " ) ;
ActionAssumptionSignNonZero = new TDE RadioAction( i18n ( " Non-Zero " ) , 0 , this , SLOT ( assumptionSignNonZero ( ) ) , actionCollection ( ) , " assumption_sign_non_zero " ) ;
ActionAssumptionSignNonZero - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignPositive = new K RadioAction( i18n ( " Positive " ) , 0 , this , SLOT ( assumptionSignPositive ( ) ) , actionCollection ( ) , " assumption_sign_positive " ) ;
ActionAssumptionSignPositive = new TDE RadioAction( i18n ( " Positive " ) , 0 , this , SLOT ( assumptionSignPositive ( ) ) , actionCollection ( ) , " assumption_sign_positive " ) ;
ActionAssumptionSignPositive - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNonNegative = new K RadioAction( i18n ( " Non-Negative " ) , 0 , this , SLOT ( assumptionSignNonNegative ( ) ) , actionCollection ( ) , " assumption_sign_non_negative " ) ;
ActionAssumptionSignNonNegative = new TDE RadioAction( i18n ( " Non-Negative " ) , 0 , this , SLOT ( assumptionSignNonNegative ( ) ) , actionCollection ( ) , " assumption_sign_non_negative " ) ;
ActionAssumptionSignNonNegative - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNegative = new K RadioAction( i18n ( " Negative " ) , 0 , this , SLOT ( assumptionSignNegative ( ) ) , actionCollection ( ) , " assumption_sign_negative " ) ;
ActionAssumptionSignNegative = new TDE RadioAction( i18n ( " Negative " ) , 0 , this , SLOT ( assumptionSignNegative ( ) ) , actionCollection ( ) , " assumption_sign_negative " ) ;
ActionAssumptionSignNegative - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionAssumptionSignNonPositive = new K RadioAction( i18n ( " Non-Positive " ) , 0 , this , SLOT ( assumptionSignNonPositive ( ) ) , actionCollection ( ) , " assumption_sign_non_positive " ) ;
ActionAssumptionSignNonPositive = new TDE RadioAction( i18n ( " Non-Positive " ) , 0 , this , SLOT ( assumptionSignNonPositive ( ) ) , actionCollection ( ) , " assumption_sign_non_positive " ) ;
ActionAssumptionSignNonPositive - > setExclusiveGroup ( " group_assumption_sign " ) ;
ActionNonZeroDenominators = new K ToggleAction( i18n ( " Non-Zero Denominators " ) , 0 , actionCollection ( ) , " non_zero_denominators " ) ;
ActionNonZeroDenominators = new TDE ToggleAction( i18n ( " Non-Zero Denominators " ) , 0 , actionCollection ( ) , " non_zero_denominators " ) ;
TQObject : : connect ( ActionNonZeroDenominators , SIGNAL ( toggled ( bool ) ) , this , SLOT ( nonZeroDenominators ( bool ) ) ) ;
ActionWarnAboutDenominatorsAssumedNonZero = new K ToggleAction( i18n ( " Warn About Denominators Assumed Non-Zero " ) , 0 , actionCollection ( ) , " warn_about_denominators_assumed_nonzero " ) ;
ActionWarnAboutDenominatorsAssumedNonZero = new TDE ToggleAction( i18n ( " Warn About Denominators Assumed Non-Zero " ) , 0 , actionCollection ( ) , " warn_about_denominators_assumed_nonzero " ) ;
TQObject : : connect ( ActionWarnAboutDenominatorsAssumedNonZero , SIGNAL ( toggled ( bool ) ) , this , SLOT ( warnAboutDenominatorsAssumedNonZero ( bool ) ) ) ;
ActionAlgebraicModeSimplify = new K RadioAction( i18n ( " Simplify " ) , 0 , this , SLOT ( algebraicModeSimplify ( ) ) , actionCollection ( ) , " algebraic_mode_simplify " ) ;
ActionAlgebraicModeSimplify = new TDE RadioAction( i18n ( " Simplify " ) , 0 , this , SLOT ( algebraicModeSimplify ( ) ) , actionCollection ( ) , " algebraic_mode_simplify " ) ;
ActionAlgebraicModeSimplify - > setExclusiveGroup ( " group_alebraic_mode " ) ;
ActionAlgebraicModeFactorize = new K RadioAction( i18n ( " Factorize " ) , 0 , this , SLOT ( algebraicModeFactorize ( ) ) , actionCollection ( ) , " algebraic_mode_factorize " ) ;
ActionAlgebraicModeFactorize = new TDE RadioAction( i18n ( " Factorize " ) , 0 , this , SLOT ( algebraicModeFactorize ( ) ) , actionCollection ( ) , " algebraic_mode_factorize " ) ;
ActionAlgebraicModeFactorize - > setExclusiveGroup ( " group_alebraic_mode " ) ;
ActionAlgebraicModeNone = new K RadioAction( i18n ( " None " ) , 0 , this , SLOT ( algebraicModeNone ( ) ) , actionCollection ( ) , " algebraic_mode_none " ) ;
ActionAlgebraicModeNone = new TDE RadioAction( i18n ( " None " ) , 0 , this , SLOT ( algebraicModeNone ( ) ) , actionCollection ( ) , " algebraic_mode_none " ) ;
ActionAlgebraicModeNone - > setExclusiveGroup ( " group_alebraic_mode " ) ;
ActionReadPrecision = new K ToggleAction( i18n ( " Read Precision " ) , 0 , actionCollection ( ) , " read_precision " ) ;
ActionReadPrecision = new TDE ToggleAction( i18n ( " Read Precision " ) , 0 , actionCollection ( ) , " read_precision " ) ;
TQObject : : connect ( ActionReadPrecision , SIGNAL ( toggled ( bool ) ) , this , SLOT ( readPrecision ( bool ) ) ) ;
ActionLimitImplicitMultiplication = new K ToggleAction( i18n ( " Limit Implicit Multiplication " ) , 0 , actionCollection ( ) , " limit_implicit_multiplication " ) ;
ActionLimitImplicitMultiplication = new TDE ToggleAction( i18n ( " Limit Implicit Multiplication " ) , 0 , actionCollection ( ) , " limit_implicit_multiplication " ) ;
TQObject : : connect ( ActionLimitImplicitMultiplication , SIGNAL ( toggled ( bool ) ) , this , SLOT ( limitImplicitMultiplication ( bool ) ) ) ;
ActionRPNMode = new K ToggleAction( i18n ( " RPN Mode " ) , CTRL + Key_R , actionCollection ( ) , " rpn_mode " ) ;
ActionRPNMode = new TDE ToggleAction( i18n ( " RPN Mode " ) , CTRL + Key_R , actionCollection ( ) , " rpn_mode " ) ;
TQObject : : connect ( ActionRPNMode , SIGNAL ( toggled ( bool ) ) , this , SLOT ( rpnMode ( bool ) ) ) ;
ActionRPNSyntax = new K ToggleAction( i18n ( " RPN Syntax " ) , 0 , actionCollection ( ) , " rpn_syntax " ) ;
ActionRPNSyntax = new TDE ToggleAction( i18n ( " RPN Syntax " ) , 0 , actionCollection ( ) , " rpn_syntax " ) ;
TQObject : : connect ( ActionRPNSyntax , SIGNAL ( toggled ( bool ) ) , this , SLOT ( rpnSyntax ( bool ) ) ) ;
ActionPrecision = new K Action( i18n ( " Precision " ) , 0 , this , SLOT ( precision ( ) ) , actionCollection ( ) , " precision " ) ;
ActionDecimals = new K Action( i18n ( " Decimals " ) , 0 , this , SLOT ( decimals ( ) ) , actionCollection ( ) , " decimals " ) ;
ActionSaveModeAs = new K Action( i18n ( " Save Mode... " ) , " filesave " , 0 , this , SLOT ( saveModeAs ( ) ) , actionCollection ( ) , " save_mode_as " ) ;
ActionDeleteMode = new K Action( i18n ( " Delete Mode... " ) , " editdelete " , 0 , this , SLOT ( deleteMode ( ) ) , actionCollection ( ) , " delete_mode " ) ;
ActionPrecision = new TDE Action( i18n ( " Precision " ) , 0 , this , SLOT ( precision ( ) ) , actionCollection ( ) , " precision " ) ;
ActionDecimals = new TDE Action( i18n ( " Decimals " ) , 0 , this , SLOT ( decimals ( ) ) , actionCollection ( ) , " decimals " ) ;
ActionSaveModeAs = new TDE Action( i18n ( " Save Mode... " ) , " filesave " , 0 , this , SLOT ( saveModeAs ( ) ) , actionCollection ( ) , " save_mode_as " ) ;
ActionDeleteMode = new TDE Action( i18n ( " Delete Mode... " ) , " editdelete " , 0 , this , SLOT ( deleteMode ( ) ) , actionCollection ( ) , " delete_mode " ) ;
ActionDeleteMode - > setEnabled ( modes . size ( ) > 2 ) ;
ActionSaveMode = new K Action( i18n ( " Save Default Mode " ) , " filesave " , 0 , this , SLOT ( saveMode ( ) ) , actionCollection ( ) , " save_mode " ) ;
ActionClearStack = new K Action( i18n ( " Clear Stack " ) , " view_remove " , 0 , this , SLOT ( clearStack ( ) ) , actionCollection ( ) , " clear_stack " ) ;
ActionDeleteRegister = new K Action( i18n ( " Delete " ) , " editdelete " , 0 , this , SLOT ( deleteRegister ( ) ) , actionCollection ( ) , " delete_register " ) ;
ActionEditRegister = new K Action( i18n ( " Edit " ) , " edit " , 0 , this , SLOT ( editRegister ( ) ) , actionCollection ( ) , " edit_register " ) ;
ActionSaveMode = new TDE Action( i18n ( " Save Default Mode " ) , " filesave " , 0 , this , SLOT ( saveMode ( ) ) , actionCollection ( ) , " save_mode " ) ;
ActionClearStack = new TDE Action( i18n ( " Clear Stack " ) , " view_remove " , 0 , this , SLOT ( clearStack ( ) ) , actionCollection ( ) , " clear_stack " ) ;
ActionDeleteRegister = new TDE Action( i18n ( " Delete " ) , " editdelete " , 0 , this , SLOT ( deleteRegister ( ) ) , actionCollection ( ) , " delete_register " ) ;
ActionEditRegister = new TDE Action( i18n ( " Edit " ) , " edit " , 0 , this , SLOT ( editRegister ( ) ) , actionCollection ( ) , " edit_register " ) ;
new K Action( i18n ( " Exp RPN Operation " ) , CTRL + SHIFT + Key_E , this , SLOT ( insertExp ( ) ) , actionCollection ( ) , " rpn_exp10 " ) ;
new TDE Action( i18n ( " Exp RPN Operation " ) , CTRL + SHIFT + Key_E , this , SLOT ( insertExp ( ) ) , actionCollection ( ) , " rpn_exp10 " ) ;
setModeActions ( ) ;
@ -3895,16 +3895,16 @@ void KQalculate::execute() {
bool KQalculate : : fetch_exchange_rates ( int ) {
KURL url ( CALCULATOR - > getExchangeRatesUrl ( ) . c_str ( ) ) ;
TQString filename ( CALCULATOR - > getExchangeRatesFileName ( ) . c_str ( ) ) ;
# if KDE_VERSION_MAJOR < 4 && K DE_VERSION_MINOR < 2
if ( K IO: : NetAccess : : download ( url , filename ) ) {
# if TDE_VERSION_MAJOR < 4 && T DE_VERSION_MINOR < 2
if ( TDE IO: : NetAccess : : download ( url , filename ) ) {
# else
if ( K IO: : NetAccess : : download ( url , filename , this ) ) {
if ( TDE IO: : NetAccess : : download ( url , filename , this ) ) {
# endif
return true ;
} else {
TQString errorstr = i18n ( " Failed to download exchange rates from ECB. " ) ;
errorstr + = " \n " ;
errorstr + = K IO: : NetAccess : : lastErrorString ( ) ;
errorstr + = TDE IO: : NetAccess : : lastErrorString ( ) ;
KMessageBox : : error ( this , errorstr ) ;
return false ;
}
@ -4019,7 +4019,7 @@ void KQalculate::showHide() {
if ( isVisible ( ) ) {
hide ( ) ;
} else {
# if KDE_VERSION_MAJOR < 4 && K DE_VERSION_MINOR < 2
# if TDE_VERSION_MAJOR < 4 && T DE_VERSION_MINOR < 2
KWin : : Info info = KWin : : info ( winId ( ) ) ;
KWin : : setOnDesktop ( winId ( ) , KWin : : currentDesktop ( ) ) ;
move ( info . geometry . topLeft ( ) ) ;
@ -4031,7 +4031,7 @@ void KQalculate::showHide() {
setShown ( true ) ;
show ( ) ;
raise ( ) ;
# if KDE_VERSION_MAJOR < 4 && K DE_VERSION_MINOR < 2
# if TDE_VERSION_MAJOR < 4 && T DE_VERSION_MINOR < 2
KWin : : setActiveWindow ( winId ( ) ) ;
# else
KWin : : activateWindow ( winId ( ) ) ;
@ -4766,7 +4766,7 @@ QalculateModeDialog::QalculateModeDialog(TQWidget *parent) : KDialogBase(parent,
keyButton = new KKeyButton ( mainWidget ( ) ) ;
grid - > addWidget ( keyButton , 1 , 1 ) ;
connect ( keyButton , SIGNAL ( capturedShortcut ( const K Shortcut& ) ) , this , SLOT ( updateShortcut ( const K Shortcut& ) ) ) ;
connect ( keyButton , SIGNAL ( capturedShortcut ( const TDE Shortcut& ) ) , this , SLOT ( updateShortcut ( const TDE Shortcut& ) ) ) ;
connect ( modeCombo , SIGNAL ( activated ( int ) ) , this , SLOT ( modeSelected ( int ) ) ) ;
}
@ -4777,13 +4777,13 @@ void QalculateModeDialog::modeSelected(int index) {
keyButton - > setShortcut ( modes [ index ] . shortcut , false ) ;
}
}
void QalculateModeDialog : : updateShortcut ( const K Shortcut & shortcut ) {
void QalculateModeDialog : : updateShortcut ( const TDE Shortcut & shortcut ) {
keyButton - > setShortcut ( shortcut , false ) ;
}
TQString QalculateModeDialog : : modeName ( ) {
return modeCombo - > currentText ( ) ;
}
const K Shortcut & QalculateModeDialog : : modeShortcut ( ) {
const TDE Shortcut & QalculateModeDialog : : modeShortcut ( ) {
return keyButton - > shortcut ( ) ;
}
void QalculateModeDialog : : slotOk ( ) {
@ -4818,7 +4818,7 @@ void KQalculate::saveModeAs() {
delete dialog ;
}
void KQalculate : : deleteMode ( ) {
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR >= 2
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR >= 2
bool b_ok = false ;
TQStringList mode_names ;
for ( size_t i = 2 ; i < modes . size ( ) ; i + + ) {
@ -5133,9 +5133,9 @@ void KQalculate::RPNStackEnter(Variable *v) {
}
void KQalculate : : RPNRegisterAdded ( const TQString & text , size_t index ) {
if ( index = = 0 ) {
new K ListViewItem( stackList , TQString : : number ( index + 1 ) , text ) ;
new TDE ListViewItem( stackList , TQString : : number ( index + 1 ) , text ) ;
} else {
new K ListViewItem( stackList , getRPNRegister ( index - 1 ) , TQString : : number ( index + 1 ) , text ) ;
new TDE ListViewItem( stackList , getRPNRegister ( index - 1 ) , TQString : : number ( index + 1 ) , text ) ;
}
updateRPNIndexes ( ) ;
clearStackButton - > setEnabled ( true ) ;
@ -5266,7 +5266,7 @@ void KQalculate::stackRegisterSet(TQListViewItem *li) {
execute_expression_do_mathoperation = false ;
execute_expression2 ( ) ;
}
void KQalculate : : popupStackMenu ( K ListView* , TQListViewItem * li , const TQPoint & p ) {
void KQalculate : : popupStackMenu ( TDE ListView* , TQListViewItem * li , const TQPoint & p ) {
stackMenu - > setItemEnabled ( stackMenu - > idAt ( 0 ) , li ! = NULL ) ;
stackMenu - > setItemEnabled ( stackMenu - > idAt ( 1 ) , li ! = NULL ) ;
stackMenu - > setItemEnabled ( stackMenu - > idAt ( 3 ) , CALCULATOR - > RPNStackSize ( ) > 0 ) ;
@ -5884,7 +5884,7 @@ void KQalculate::applyPreferences() {
if ( use_icon_buttons > 0 ) {
use_button_pixmaps = true ;
} else if ( use_icon_buttons < 0 ) {
K Config config ( " kdeglobals " , true , false ) ;
TDE Config config ( " kdeglobals " , true , false ) ;
config . setGroup ( " KDE " ) ;
use_button_pixmaps = config . readBoolEntry ( " ShowIconsOnPushButtons " , false ) ;
}
@ -5893,23 +5893,23 @@ void KQalculate::applyPreferences() {
if ( use_button_pixmaps ) {
leftButtonsLayout - > setSpacing ( 3 ) ;
executeButton - > setText ( " " ) ;
executeButton - > setIconSet ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " exec" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
executeButton - > setIconSet ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " application-x-executable" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
storeButton - > setText ( " " ) ;
storeButton - > setIconSet ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " filesaveas" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
storeButton - > setIconSet ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " document-save-as" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
convertButton - > setText ( " " ) ;
convertButton - > setIconSet ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " qalculate_convert " , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
convertButton - > setIconSet ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " qalculate_convert " , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
leftButtonsSeparator - > hide ( ) ;
stackPageButtonsLayout - > setSpacing ( 3 ) ;
registerUpButton - > setText ( " " ) ;
registerUpButton - > setIconSet ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " up" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
registerUpButton - > setIconSet ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " go-up" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
registerDownButton - > setText ( " " ) ;
registerDownButton - > setIconSet ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " down" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
registerDownButton - > setIconSet ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " go-down" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
editRegisterButton - > setText ( " " ) ;
editRegisterButton - > setIconSet ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " edit " , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
editRegisterButton - > setIconSet ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " edit " , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
deleteRegisterButton - > setText ( " " ) ;
deleteRegisterButton - > setIconSet ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " edit delete" , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
deleteRegisterButton - > setIconSet ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " edit -delete" , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
clearStackButton - > setText ( " " ) ;
clearStackButton - > setIconSet ( K Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " view_remove " , K Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
clearStackButton - > setIconSet ( TDE Application: : kApplication ( ) - > iconLoader ( ) - > loadIconSet ( " view_remove " , TDE Icon: : Small , ICON_SIZE_SMALL_MEDIUM ) ) ;
} else {
leftButtonsLayout - > setSpacing ( 6 ) ;
if ( rpn_mode ) executeButton - > setText ( i18n ( " Enter " ) ) ;
@ -6148,7 +6148,7 @@ void KQalculate::insertVector() {
}
void KQalculate : : keyPressEvent ( TQKeyEvent * e ) {
K MainWindow: : keyPressEvent ( e ) ;
TDE MainWindow: : keyPressEvent ( e ) ;
if ( e - > isAccepted ( ) ) return ;
if ( close_to_systray & & e - > key ( ) = = Key_Escape & & e - > state ( ) = = 0 ) {
e - > accept ( ) ;
@ -6167,13 +6167,13 @@ bool KQalculate::queryClose() {
setShown ( false ) ;
return false ;
}
void KQalculate : : saveProperties ( K Config* ) {
KConfig * cfg = K Global: : config ( ) ;
void KQalculate : : saveProperties ( TDE Config* ) {
TDEConfig * cfg = TDE Global: : config ( ) ;
cfg - > setGroup ( " Session " ) ;
cfg - > writeEntry ( " docked " , isHidden ( ) ) ;
}
void KQalculate : : readProperties ( K Config* ) {
KConfig * cfg = K Global: : config ( ) ;
void KQalculate : : readProperties ( TDE Config* ) {
TDEConfig * cfg = TDE Global: : config ( ) ;
cfg - > setGroup ( " Session " ) ;
if ( close_to_systray & & cfg - > readBoolEntry ( " docked " , true ) ) {
hide ( ) ;
@ -6518,23 +6518,23 @@ void QalculateParseLabel::drawContents(TQPainter *p) {
QalculateButton : : QalculateButton ( TQWidget * parent , const char * name ) : TQPushButton ( parent , name ) {
setSizePolicy ( TQSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
umtcw = true ;
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR >= 4
K AcceleratorManager: : setNoAccel ( this ) ;
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR >= 4
TDE AcceleratorManager: : setNoAccel ( this ) ;
# endif
}
QalculateButton : : QalculateButton ( const TQString & text , TQWidget * parent , const char * name ) : TQPushButton ( text , parent , name ) {
setSizePolicy ( TQSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
umtcw = true ;
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR >= 4
K AcceleratorManager: : setNoAccel ( this ) ;
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR >= 4
TDE AcceleratorManager: : setNoAccel ( this ) ;
# endif
}
QalculateButton : : QalculateButton ( const TQIconSet & icon , const TQString & text , TQWidget * parent , const char * name ) : TQPushButton ( icon , text , parent , name ) {
setSizePolicy ( TQSizePolicy ( TQSizePolicy : : Minimum , TQSizePolicy : : Minimum ) ) ;
umtcw = true ;
# if KDE_VERSION_MAJOR > 3 || K DE_VERSION_MINOR >= 4
K AcceleratorManager: : setNoAccel ( this ) ;
# if TDE_VERSION_MAJOR > 3 || T DE_VERSION_MINOR >= 4
TDE AcceleratorManager: : setNoAccel ( this ) ;
# endif
}
QalculateButton : : ~ QalculateButton ( ) { }
@ -6652,7 +6652,7 @@ void QalculateStyleSheet::scaleFont(TQFont &font, int logicalSize) const {
}
QalculateRPNStackListView : : QalculateRPNStackListView ( TQWidget * parent , const char * name ) : K ListView( parent , name ) { }
QalculateRPNStackListView : : QalculateRPNStackListView ( TQWidget * parent , const char * name ) : TDE ListView( parent , name ) { }
QalculateRPNStackListView : : ~ QalculateRPNStackListView ( ) { }
void QalculateRPNStackListView : : keyPressEvent ( TQKeyEvent * e ) {
@ -6663,11 +6663,11 @@ void QalculateRPNStackListView::keyPressEvent(TQKeyEvent *e) {
case Key_End : { }
case Key_Up : { }
case Key_Down : {
K ListView: : keyPressEvent ( e ) ;
TDE ListView: : keyPressEvent ( e ) ;
break ;
}
default : {
if ( e - > key ( ) = = KGlobalSettings: : contextMenuKey ( ) ) K ListView: : keyPressEvent ( e ) ;
if ( e - > key ( ) = = TDEGlobalSettings: : contextMenuKey ( ) ) TDE ListView: : keyPressEvent ( e ) ;
else e - > ignore ( ) ;
}
}