@ -209,7 +209,7 @@ KMyMoney2App::KMyMoney2App(TQWidget * /*parent*/ , const char* name) :
: : timetrace ( " create view " ) ;
myMoneyView = new KMyMoneyView ( frame , " KMyMoneyView " ) ;
layout - > addWidget ( myMoneyView , 10 ) ;
connect ( myMoneyView , TQ T _SIGNAL( aboutToShowPage ( TQWidget * ) ) , this , TQ T _SLOT( slotResetSelections ( ) ) ) ;
connect ( myMoneyView , TQ _SIGNAL( aboutToShowPage ( TQWidget * ) ) , this , TQ _SLOT( slotResetSelections ( ) ) ) ;
///////////////////////////////////////////////////////////////////
// call inits to invoke all other construction parts
@ -218,7 +218,7 @@ KMyMoney2App::KMyMoney2App(TQWidget * /*parent*/ , const char* name) :
#if 0
m_pluginSignalMapper = new TQSignalMapper ( this ) ;
connect ( m_pluginSignalMapper , TQ T _SIGNAL( mapped ( const TQString & ) ) , this , TQ T _SLOT( slotPluginImport ( const TQString & ) ) ) ;
connect ( m_pluginSignalMapper , TQ _SIGNAL( mapped ( const TQString & ) ) , this , TQ _SLOT( slotPluginImport ( const TQString & ) ) ) ;
# endif
// now initialize the plugin structure
@ -230,10 +230,10 @@ KMyMoney2App::KMyMoney2App(TQWidget * /*parent*/ , const char* name) :
: : timetrace ( " done " ) ;
connect ( & proc , TQ T _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ T _SLOT( slotProcessExited ( ) ) ) ;
connect ( & proc , TQ _SIGNAL( processExited ( TDEProcess * ) ) , this , TQ _SLOT( slotProcessExited ( ) ) ) ;
// force to show the home page if the file is closed
connect ( action ( " view_show_transaction_detail " ) , TQ T _SIGNAL( toggled ( bool ) ) , myMoneyView , TQ T _SLOT( slotShowTransactionDetail ( bool ) ) ) ;
connect ( action ( " view_show_transaction_detail " ) , TQ _SIGNAL( toggled ( bool ) ) , myMoneyView , TQ _SLOT( slotShowTransactionDetail ( bool ) ) ) ;
m_backupState = BACKUP_IDLE ;
@ -244,10 +244,10 @@ KMyMoney2App::KMyMoney2App(TQWidget * /*parent*/ , const char* name) :
m_autoSavePeriod = KMyMoneyGlobalSettings : : autoSavePeriod ( ) ;
m_autoSaveTimer = new TQTimer ( this ) ;
connect ( m_autoSaveTimer , TQ T _SIGNAL( timeout ( ) ) , this , TQ T _SLOT( slotAutoSave ( ) ) ) ;
connect ( m_autoSaveTimer , TQ _SIGNAL( timeout ( ) ) , this , TQ _SLOT( slotAutoSave ( ) ) ) ;
// make sure, we get a note when the engine changes state
connect ( MyMoneyFile : : instance ( ) , TQ T _SIGNAL( dataChanged ( ) ) , this , TQ T _SLOT( slotDataChanged ( ) ) ) ;
connect ( MyMoneyFile : : instance ( ) , TQ _SIGNAL( dataChanged ( ) ) , this , TQ _SLOT( slotDataChanged ( ) ) ) ;
// make sure we have a balance warning object
d - > m_balanceWarning = new KBalanceWarning ( this ) ;
@ -288,10 +288,10 @@ void KMyMoney2App::initDynamicMenus(void)
if ( menu ) {
d - > m_moveToAccountSelector = new kMyMoneyAccountSelector ( menu , 0 , 0 , false ) ;
menu - > insertItem ( d - > m_moveToAccountSelector ) ;
connect ( d - > m_moveToAccountSelector , TQ T _SIGNAL( itemSelected ( const TQString & ) ) , this , TQ T _SLOT( slotMoveToAccount ( const TQString & ) ) ) ;
connect ( this , TQ T _SIGNAL( accountSelected ( const MyMoneyAccount & ) ) , this , TQ T _SLOT( slotUpdateMoveToAccountMenu ( ) ) ) ;
connect ( this , TQ T _SIGNAL( transactionsSelected ( const KMyMoneyRegister : : SelectedTransactions & ) ) , this , TQ T _SLOT( slotUpdateMoveToAccountMenu ( ) ) ) ;
connect ( MyMoneyFile : : instance ( ) , TQ T _SIGNAL( dataChanged ( ) ) , this , TQ T _SLOT( slotUpdateMoveToAccountMenu ( ) ) ) ;
connect ( d - > m_moveToAccountSelector , TQ _SIGNAL( itemSelected ( const TQString & ) ) , this , TQ _SLOT( slotMoveToAccount ( const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( accountSelected ( const MyMoneyAccount & ) ) , this , TQ _SLOT( slotUpdateMoveToAccountMenu ( ) ) ) ;
connect ( this , TQ _SIGNAL( transactionsSelected ( const KMyMoneyRegister : : SelectedTransactions & ) ) , this , TQ _SLOT( slotUpdateMoveToAccountMenu ( ) ) ) ;
connect ( MyMoneyFile : : instance ( ) , TQ _SIGNAL( dataChanged ( ) ) , this , TQ _SLOT( slotUpdateMoveToAccountMenu ( ) ) ) ;
}
}
@ -302,186 +302,186 @@ void KMyMoney2App::initActions(void)
// *************
// The File menu
// *************
KStdAction : : openNew ( this , TQ T _SLOT( slotFileNew ( ) ) , actionCollection ( ) ) ;
KStdAction : : open ( this , TQ T _SLOT( slotFileOpen ( ) ) , actionCollection ( ) ) ;
KStdAction : : openRecent ( this , TQ T _SLOT( slotFileOpenRecent ( const KURL & ) ) , actionCollection ( ) ) ;
KStdAction : : save ( this , TQ T _SLOT( slotFileSave ( ) ) , actionCollection ( ) ) ;
KStdAction : : saveAs ( this , TQ T _SLOT( slotFileSaveAs ( ) ) , actionCollection ( ) ) ;
KStdAction : : close ( this , TQ T _SLOT( slotFileClose ( ) ) , actionCollection ( ) ) ;
KStdAction : : quit ( this , TQ T _SLOT( slotFileQuit ( ) ) , actionCollection ( ) ) ;
KStdAction : : print ( this , TQ T _SLOT( slotPrintView ( ) ) , actionCollection ( ) ) ;
new TDEAction ( i18n ( " Open database... " ) , " " , 0 , this , TQ T _SLOT( slotOpenDatabase ( ) ) , actionCollection ( ) , " open_database " ) ;
new TDEAction ( i18n ( " Save as database... " ) , " " , 0 , this , TQ T _SLOT( slotSaveAsDatabase ( ) ) , actionCollection ( ) , " saveas_database " ) ;
new TDEAction ( i18n ( " Backup... " ) , " backup " , 0 , this , TQ T _SLOT( slotFileBackup ( ) ) , actionCollection ( ) , " file_backup " ) ;
new TDEAction ( i18n ( " QIF... " ) , " " , 0 , this , TQ T _SLOT( slotQifImport ( ) ) , actionCollection ( ) , " file_import_qif " ) ;
new TDEAction ( i18n ( " Gnucash... " ) , " " , 0 , this , TQ T _SLOT( slotGncImport ( ) ) , actionCollection ( ) , " file_import_gnc " ) ;
new TDEAction ( i18n ( " Statement file... " ) , " " , 0 , this , TQ T _SLOT( slotStatementImport ( ) ) , actionCollection ( ) , " file_import_statement " ) ;
new TDEAction ( i18n ( " Account Template... " ) , " " , 0 , this , TQ T _SLOT( slotLoadAccountTemplates ( ) ) , actionCollection ( ) , " file_import_template " ) ;
new TDEAction ( i18n ( " Account Template... " ) , " " , 0 , this , TQ T _SLOT( slotSaveAccountTemplates ( ) ) , actionCollection ( ) , " file_export_template " ) ;
new TDEAction ( i18n ( " QIF... " ) , " " , 0 , this , TQ T _SLOT( slotQifExport ( ) ) , actionCollection ( ) , " file_export_qif " ) ;
new TDEAction ( i18n ( " Personal Data... " ) , " personal_data " , 0 , this , TQ T _SLOT( slotFileViewPersonal ( ) ) , actionCollection ( ) , " view_personal_data " ) ;
KStdAction : : openNew ( this , TQ _SLOT( slotFileNew ( ) ) , actionCollection ( ) ) ;
KStdAction : : open ( this , TQ _SLOT( slotFileOpen ( ) ) , actionCollection ( ) ) ;
KStdAction : : openRecent ( this , TQ _SLOT( slotFileOpenRecent ( const KURL & ) ) , actionCollection ( ) ) ;
KStdAction : : save ( this , TQ _SLOT( slotFileSave ( ) ) , actionCollection ( ) ) ;
KStdAction : : saveAs ( this , TQ _SLOT( slotFileSaveAs ( ) ) , actionCollection ( ) ) ;
KStdAction : : close ( this , TQ _SLOT( slotFileClose ( ) ) , actionCollection ( ) ) ;
KStdAction : : quit ( this , TQ _SLOT( slotFileQuit ( ) ) , actionCollection ( ) ) ;
KStdAction : : print ( this , TQ _SLOT( slotPrintView ( ) ) , actionCollection ( ) ) ;
new TDEAction ( i18n ( " Open database... " ) , " " , 0 , this , TQ _SLOT( slotOpenDatabase ( ) ) , actionCollection ( ) , " open_database " ) ;
new TDEAction ( i18n ( " Save as database... " ) , " " , 0 , this , TQ _SLOT( slotSaveAsDatabase ( ) ) , actionCollection ( ) , " saveas_database " ) ;
new TDEAction ( i18n ( " Backup... " ) , " backup " , 0 , this , TQ _SLOT( slotFileBackup ( ) ) , actionCollection ( ) , " file_backup " ) ;
new TDEAction ( i18n ( " QIF... " ) , " " , 0 , this , TQ _SLOT( slotQifImport ( ) ) , actionCollection ( ) , " file_import_qif " ) ;
new TDEAction ( i18n ( " Gnucash... " ) , " " , 0 , this , TQ _SLOT( slotGncImport ( ) ) , actionCollection ( ) , " file_import_gnc " ) ;
new TDEAction ( i18n ( " Statement file... " ) , " " , 0 , this , TQ _SLOT( slotStatementImport ( ) ) , actionCollection ( ) , " file_import_statement " ) ;
new TDEAction ( i18n ( " Account Template... " ) , " " , 0 , this , TQ _SLOT( slotLoadAccountTemplates ( ) ) , actionCollection ( ) , " file_import_template " ) ;
new TDEAction ( i18n ( " Account Template... " ) , " " , 0 , this , TQ _SLOT( slotSaveAccountTemplates ( ) ) , actionCollection ( ) , " file_export_template " ) ;
new TDEAction ( i18n ( " QIF... " ) , " " , 0 , this , TQ _SLOT( slotQifExport ( ) ) , actionCollection ( ) , " file_export_qif " ) ;
new TDEAction ( i18n ( " Personal Data... " ) , " personal_data " , 0 , this , TQ _SLOT( slotFileViewPersonal ( ) ) , actionCollection ( ) , " view_personal_data " ) ;
# if KMM_DEBUG
new TDEAction ( i18n ( " Dump Memory " ) , " " , 0 , this , TQ T _SLOT( slotFileFileInfo ( ) ) , actionCollection ( ) , " file_dump " ) ;
new TDEAction ( i18n ( " Dump Memory " ) , " " , 0 , this , TQ _SLOT( slotFileFileInfo ( ) ) , actionCollection ( ) , " file_dump " ) ;
# endif
new TDEAction ( i18n ( " File-Information... " ) , " application-vnd.tde.info " , 0 , this , TQ T _SLOT( slotFileInfoDialog ( ) ) , actionCollection ( ) , " view_file_info " ) ;
new TDEAction ( i18n ( " File-Information... " ) , " application-vnd.tde.info " , 0 , this , TQ _SLOT( slotFileInfoDialog ( ) ) , actionCollection ( ) , " view_file_info " ) ;
// *************
// The Edit menu
// *************
new TDEAction ( i18n ( " Find transaction... " ) , " transaction_find " , TDEShortcut ( " Ctrl+F " ) , this , TQ T _SLOT( slotFindTransaction ( ) ) , actionCollection ( ) , " edit_find_transaction " ) ;
new TDEAction ( i18n ( " Find transaction... " ) , " transaction_find " , TDEShortcut ( " Ctrl+F " ) , this , TQ _SLOT( slotFindTransaction ( ) ) , actionCollection ( ) , " edit_find_transaction " ) ;
// *************
// The View menu
// *************
new TDEToggleAction ( i18n ( " Show Transaction Detail " ) , TDEShortcut ( " Ctrl+T " ) , actionCollection ( ) , " view_show_transaction_detail " ) ;
new TDEToggleAction ( i18n ( " Hide reconciled transactions " ) , " hide_reconciled " , TDEShortcut ( " Ctrl+R " ) , this , TQ T _SLOT( slotHideReconciledTransactions ( ) ) , actionCollection ( ) , " view_hide_reconciled_transactions " ) ;
new TDEToggleAction ( i18n ( " Hide unused categories " ) , " hide_categories " , TDEShortcut ( " Ctrl+U " ) , this , TQ T _SLOT( slotHideUnusedCategories ( ) ) , actionCollection ( ) , " view_hide_unused_categories " ) ;
new TDEToggleAction ( i18n ( " Show all accounts " ) , " " , TDEShortcut ( " Ctrl+Shift+A " ) , this , TQ T _SLOT( slotShowAllAccounts ( ) ) , actionCollection ( ) , " view_show_all_accounts " ) ;
new TDEToggleAction ( i18n ( " Hide reconciled transactions " ) , " hide_reconciled " , TDEShortcut ( " Ctrl+R " ) , this , TQ _SLOT( slotHideReconciledTransactions ( ) ) , actionCollection ( ) , " view_hide_reconciled_transactions " ) ;
new TDEToggleAction ( i18n ( " Hide unused categories " ) , " hide_categories " , TDEShortcut ( " Ctrl+U " ) , this , TQ _SLOT( slotHideUnusedCategories ( ) ) , actionCollection ( ) , " view_hide_unused_categories " ) ;
new TDEToggleAction ( i18n ( " Show all accounts " ) , " " , TDEShortcut ( " Ctrl+Shift+A " ) , this , TQ _SLOT( slotShowAllAccounts ( ) ) , actionCollection ( ) , " view_show_all_accounts " ) ;
// *********************
// The institutions menu
// *********************
new TDEAction ( i18n ( " New institution... " ) , " institution_add " , 0 , this , TQ T _SLOT( slotInstitutionNew ( ) ) , actionCollection ( ) , " institution_new " ) ;
new TDEAction ( i18n ( " Edit institution... " ) , " edit " , 0 , this , TQ T _SLOT( slotInstitutionEdit ( ) ) , actionCollection ( ) , " institution_edit " ) ;
new TDEAction ( i18n ( " Delete institution... " ) , " delete " , 0 , this , TQ T _SLOT( slotInstitutionDelete ( ) ) , actionCollection ( ) , " institution_delete " ) ;
new TDEAction ( i18n ( " New institution... " ) , " institution_add " , 0 , this , TQ _SLOT( slotInstitutionNew ( ) ) , actionCollection ( ) , " institution_new " ) ;
new TDEAction ( i18n ( " Edit institution... " ) , " edit " , 0 , this , TQ _SLOT( slotInstitutionEdit ( ) ) , actionCollection ( ) , " institution_edit " ) ;
new TDEAction ( i18n ( " Delete institution... " ) , " delete " , 0 , this , TQ _SLOT( slotInstitutionDelete ( ) ) , actionCollection ( ) , " institution_delete " ) ;
// *****************
// The accounts menu
// *****************
new TDEAction ( i18n ( " New account... " ) , " account_add " , 0 , this , TQ T _SLOT( slotAccountNew ( ) ) , actionCollection ( ) , " account_new " ) ;
new TDEAction ( i18n ( " New account... " ) , " account_add " , 0 , this , TQ _SLOT( slotAccountNew ( ) ) , actionCollection ( ) , " account_new " ) ;
// note : action "category_new" is included in this menu but defined below
new TDEAction ( i18n ( " Open ledger " ) , " ledger " , 0 , this , TQ T _SLOT( slotAccountOpen ( ) ) , actionCollection ( ) , " account_open " ) ;
new TDEAction ( i18n ( " Reconcile... " ) , " reconcile " , TDEShortcut ( " Ctrl+Shift+R " ) , this , TQ T _SLOT( slotAccountReconcileStart ( ) ) , actionCollection ( ) , " account_reconcile " ) ;
new TDEAction ( i18n ( " Finish reconciliation " , " Finish " ) , " media-skip-forward " , 0 , this , TQ T _SLOT( slotAccountReconcileFinish ( ) ) , actionCollection ( ) , " account_reconcile_finish " ) ;
new TDEAction ( i18n ( " Postpone reconciliation " , " Postpone " ) , " media-playback-pause " , 0 , this , TQ T _SLOT( slotAccountReconcilePostpone ( ) ) , actionCollection ( ) , " account_reconcile_postpone " ) ;
new TDEAction ( i18n ( " Edit account... " ) , " edit " , 0 , this , TQ T _SLOT( slotAccountEdit ( ) ) , actionCollection ( ) , " account_edit " ) ;
new TDEAction ( i18n ( " Delete account... " ) , " delete " , 0 , this , TQ T _SLOT( slotAccountDelete ( ) ) , actionCollection ( ) , " account_delete " ) ;
new TDEAction ( i18n ( " Close account " ) , " " , 0 , this , TQ T _SLOT( slotAccountClose ( ) ) , actionCollection ( ) , " account_close " ) ;
new TDEAction ( i18n ( " Reopen account " ) , " " , 0 , this , TQ T _SLOT( slotAccountReopen ( ) ) , actionCollection ( ) , " account_reopen " ) ;
new TDEAction ( i18n ( " Transaction report " ) , " view_info " , 0 , this , TQ T _SLOT( slotAccountTransactionReport ( ) ) , actionCollection ( ) , " account_transaction_report " ) ;
new TDEAction ( i18n ( " Open ledger " ) , " ledger " , 0 , this , TQ _SLOT( slotAccountOpen ( ) ) , actionCollection ( ) , " account_open " ) ;
new TDEAction ( i18n ( " Reconcile... " ) , " reconcile " , TDEShortcut ( " Ctrl+Shift+R " ) , this , TQ _SLOT( slotAccountReconcileStart ( ) ) , actionCollection ( ) , " account_reconcile " ) ;
new TDEAction ( i18n ( " Finish reconciliation " , " Finish " ) , " media-skip-forward " , 0 , this , TQ _SLOT( slotAccountReconcileFinish ( ) ) , actionCollection ( ) , " account_reconcile_finish " ) ;
new TDEAction ( i18n ( " Postpone reconciliation " , " Postpone " ) , " media-playback-pause " , 0 , this , TQ _SLOT( slotAccountReconcilePostpone ( ) ) , actionCollection ( ) , " account_reconcile_postpone " ) ;
new TDEAction ( i18n ( " Edit account... " ) , " edit " , 0 , this , TQ _SLOT( slotAccountEdit ( ) ) , actionCollection ( ) , " account_edit " ) ;
new TDEAction ( i18n ( " Delete account... " ) , " delete " , 0 , this , TQ _SLOT( slotAccountDelete ( ) ) , actionCollection ( ) , " account_delete " ) ;
new TDEAction ( i18n ( " Close account " ) , " " , 0 , this , TQ _SLOT( slotAccountClose ( ) ) , actionCollection ( ) , " account_close " ) ;
new TDEAction ( i18n ( " Reopen account " ) , " " , 0 , this , TQ _SLOT( slotAccountReopen ( ) ) , actionCollection ( ) , " account_reopen " ) ;
new TDEAction ( i18n ( " Transaction report " ) , " view_info " , 0 , this , TQ _SLOT( slotAccountTransactionReport ( ) ) , actionCollection ( ) , " account_transaction_report " ) ;
# ifdef HAVE_KDCHART
new TDEAction ( i18n ( " Show balance chart... " ) , " application-x-kchart " , 0 , this , TQ T _SLOT( slotAccountChart ( ) ) , actionCollection ( ) , " account_chart " ) ;
new TDEAction ( i18n ( " Show balance chart... " ) , " application-x-kchart " , 0 , this , TQ _SLOT( slotAccountChart ( ) ) , actionCollection ( ) , " account_chart " ) ;
# endif
new TDEAction ( i18n ( " Map to online account " ) , " news_subscribe " , 0 , this , TQ T _SLOT( slotAccountMapOnline ( ) ) , actionCollection ( ) , " account_online_map " ) ;
new TDEAction ( i18n ( " Unmap account " ) , " " , 0 , this , TQ T _SLOT( slotAccountUnmapOnline ( ) ) , actionCollection ( ) , " account_online_unmap " ) ;
new TDEAction ( i18n ( " Map to online account " ) , " news_subscribe " , 0 , this , TQ _SLOT( slotAccountMapOnline ( ) ) , actionCollection ( ) , " account_online_map " ) ;
new TDEAction ( i18n ( " Unmap account " ) , " " , 0 , this , TQ _SLOT( slotAccountUnmapOnline ( ) ) , actionCollection ( ) , " account_online_unmap " ) ;
TDEActionMenu * menu = new TDEActionMenu ( i18n ( " Update " ) , TQIconSet ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " reload " , TDEIcon : : Small ,
TDEIcon : : SizeSmall ) ) , actionCollection ( ) , " account_online_update_menu " ) ;
// activating the menu button is the same as selecting the current account
connect ( menu , TQ T _SIGNAL( activated ( ) ) , this , TQ T _SLOT( slotAccountUpdateOnline ( ) ) ) ;
menu - > insert ( new TDEAction ( i18n ( " Update account... " ) , " " , 0 , this , TQ T _SLOT( slotAccountUpdateOnline ( ) ) , actionCollection ( ) , " account_online_update " ) ) ;
menu - > insert ( new TDEAction ( i18n ( " Update all accounts... " ) , " " , 0 , this , TQ T _SLOT( slotAccountUpdateOnlineAll ( ) ) , actionCollection ( ) , " account_online_update_all " ) ) ;
connect ( menu , TQ _SIGNAL( activated ( ) ) , this , TQ _SLOT( slotAccountUpdateOnline ( ) ) ) ;
menu - > insert ( new TDEAction ( i18n ( " Update account... " ) , " " , 0 , this , TQ _SLOT( slotAccountUpdateOnline ( ) ) , actionCollection ( ) , " account_online_update " ) ) ;
menu - > insert ( new TDEAction ( i18n ( " Update all accounts... " ) , " " , 0 , this , TQ _SLOT( slotAccountUpdateOnlineAll ( ) ) , actionCollection ( ) , " account_online_update_all " ) ) ;
// *******************
// The categories menu
// *******************
new TDEAction ( i18n ( " New category... " ) , " account_add " , 0 , this , TQ T _SLOT( slotCategoryNew ( ) ) , actionCollection ( ) , " category_new " ) ;
new TDEAction ( i18n ( " Edit category... " ) , " edit " , 0 , this , TQ T _SLOT( slotAccountEdit ( ) ) , actionCollection ( ) , " category_edit " ) ;
new TDEAction ( i18n ( " Delete category... " ) , " delete " , 0 , this , TQ T _SLOT( slotAccountDelete ( ) ) , actionCollection ( ) , " category_delete " ) ;
new TDEAction ( i18n ( " New category... " ) , " account_add " , 0 , this , TQ _SLOT( slotCategoryNew ( ) ) , actionCollection ( ) , " category_new " ) ;
new TDEAction ( i18n ( " Edit category... " ) , " edit " , 0 , this , TQ _SLOT( slotAccountEdit ( ) ) , actionCollection ( ) , " category_edit " ) ;
new TDEAction ( i18n ( " Delete category... " ) , " delete " , 0 , this , TQ _SLOT( slotAccountDelete ( ) ) , actionCollection ( ) , " category_delete " ) ;
// **************
// The tools menu
// **************
new TDEAction ( i18n ( " QIF Profile Editor... " ) , " edit " , 0 , this , TQ T _SLOT( slotQifProfileEditor ( ) ) , actionCollection ( ) , " tools_qif_editor " ) ;
new TDEAction ( i18n ( " Securities... " ) , " " , 0 , this , TQ T _SLOT( slotSecurityEditor ( ) ) , actionCollection ( ) , " tools_security_editor " ) ;
new TDEAction ( i18n ( " Currencies... " ) , " " , 0 , this , TQ T _SLOT( slotCurrencyDialog ( ) ) , actionCollection ( ) , " tools_currency_editor " ) ;
new TDEAction ( i18n ( " Prices... " ) , " " , 0 , this , TQ T _SLOT( slotPriceDialog ( ) ) , actionCollection ( ) , " tools_price_editor " ) ;
new TDEAction ( i18n ( " Update Stock and Currency Prices... " ) , " " , 0 , this , TQ T _SLOT( slotEquityPriceUpdate ( ) ) , actionCollection ( ) , " tools_update_prices " ) ;
new TDEAction ( i18n ( " Consistency Check " ) , " " , 0 , this , TQ T _SLOT( slotFileConsitencyCheck ( ) ) , actionCollection ( ) , " tools_consistency_check " ) ;
new TDEAction ( i18n ( " Performance-Test " ) , " fork " , 0 , this , TQ T _SLOT( slotPerformanceTest ( ) ) , actionCollection ( ) , " tools_performancetest " ) ;
new TDEAction ( i18n ( " KCalc... " ) , " kcalc " , 0 , this , TQ T _SLOT( slotToolsStartKCalc ( ) ) , actionCollection ( ) , " tools_kcalc " ) ;
new TDEAction ( i18n ( " QIF Profile Editor... " ) , " edit " , 0 , this , TQ _SLOT( slotQifProfileEditor ( ) ) , actionCollection ( ) , " tools_qif_editor " ) ;
new TDEAction ( i18n ( " Securities... " ) , " " , 0 , this , TQ _SLOT( slotSecurityEditor ( ) ) , actionCollection ( ) , " tools_security_editor " ) ;
new TDEAction ( i18n ( " Currencies... " ) , " " , 0 , this , TQ _SLOT( slotCurrencyDialog ( ) ) , actionCollection ( ) , " tools_currency_editor " ) ;
new TDEAction ( i18n ( " Prices... " ) , " " , 0 , this , TQ _SLOT( slotPriceDialog ( ) ) , actionCollection ( ) , " tools_price_editor " ) ;
new TDEAction ( i18n ( " Update Stock and Currency Prices... " ) , " " , 0 , this , TQ _SLOT( slotEquityPriceUpdate ( ) ) , actionCollection ( ) , " tools_update_prices " ) ;
new TDEAction ( i18n ( " Consistency Check " ) , " " , 0 , this , TQ _SLOT( slotFileConsitencyCheck ( ) ) , actionCollection ( ) , " tools_consistency_check " ) ;
new TDEAction ( i18n ( " Performance-Test " ) , " fork " , 0 , this , TQ _SLOT( slotPerformanceTest ( ) ) , actionCollection ( ) , " tools_performancetest " ) ;
new TDEAction ( i18n ( " KCalc... " ) , " kcalc " , 0 , this , TQ _SLOT( slotToolsStartKCalc ( ) ) , actionCollection ( ) , " tools_kcalc " ) ;
// *****************
// The settings menu
// *****************
KStdAction : : preferences ( this , TQ T _SLOT( slotSettings ( ) ) , actionCollection ( ) ) ;
new TDEAction ( i18n ( " Enable all messages " ) , " " , 0 , this , TQ T _SLOT( slotEnableMessages ( ) ) , actionCollection ( ) , " settings_enable_messages " ) ;
new TDEAction ( i18n ( " TDE language settings... " ) , " " , 0 , this , TQ T _SLOT( slotKDELanguageSettings ( ) ) , actionCollection ( ) , " settings_language " ) ;
KStdAction : : preferences ( this , TQ _SLOT( slotSettings ( ) ) , actionCollection ( ) ) ;
new TDEAction ( i18n ( " Enable all messages " ) , " " , 0 , this , TQ _SLOT( slotEnableMessages ( ) ) , actionCollection ( ) , " settings_enable_messages " ) ;
new TDEAction ( i18n ( " TDE language settings... " ) , " " , 0 , this , TQ _SLOT( slotKDELanguageSettings ( ) ) , actionCollection ( ) , " settings_language " ) ;
// *************
// The help menu
// *************
new TDEAction ( i18n ( " &Show tip of the day " ) , " idea " , 0 , this , TQ T _SLOT( slotShowTipOfTheDay ( ) ) , actionCollection ( ) , " help_show_tip " ) ;
new TDEAction ( i18n ( " &Show tip of the day " ) , " idea " , 0 , this , TQ _SLOT( slotShowTipOfTheDay ( ) ) , actionCollection ( ) , " help_show_tip " ) ;
// ***************************
// Actions w/o main menu entry
// ***************************
new TDEAction ( i18n ( " New transaction button " , " New " ) , " document-new " , TQKeySequence ( TQt : : CTRL | TQt : : Key_Insert ) , this , TQ T _SLOT( slotTransactionsNew ( ) ) , actionCollection ( ) , " transaction_new " ) ;
new TDEAction ( i18n ( " New transaction button " , " New " ) , " document-new " , TQKeySequence ( TQt : : CTRL | TQt : : Key_Insert ) , this , TQ _SLOT( slotTransactionsNew ( ) ) , actionCollection ( ) , " transaction_new " ) ;
// we use Return as the same shortcut for Edit and Enter. Therefore, we don't allow
// to change them (The standard KDE dialog complains anyway if you want to assign
// the same shortcut to two actions)
p = new TDEAction ( i18n ( " Edit transaction button " , " Edit " ) , " edit " , 0 , this , TQ T _SLOT( slotTransactionsEdit ( ) ) , actionCollection ( ) , " transaction_edit " ) ;
p = new TDEAction ( i18n ( " Edit transaction button " , " Edit " ) , " edit " , 0 , this , TQ _SLOT( slotTransactionsEdit ( ) ) , actionCollection ( ) , " transaction_edit " ) ;
p - > setShortcutConfigurable ( false ) ;
p = new TDEAction ( i18n ( " Enter transaction " , " Enter " ) , " button_ok " , 0 , this , TQ T _SLOT( slotTransactionsEnter ( ) ) , actionCollection ( ) , " transaction_enter " ) ;
p = new TDEAction ( i18n ( " Enter transaction " , " Enter " ) , " button_ok " , 0 , this , TQ _SLOT( slotTransactionsEnter ( ) ) , actionCollection ( ) , " transaction_enter " ) ;
p - > setShortcutConfigurable ( false ) ;
new TDEAction ( i18n ( " Edit split button " , " Edit splits " ) , " split_transaction " , 0 , this , TQ T _SLOT( slotTransactionsEditSplits ( ) ) , actionCollection ( ) , " transaction_editsplits " ) ;
new TDEAction ( i18n ( " Cancel transaction edit " , " Cancel " ) , " button_cancel " , 0 , this , TQ T _SLOT( slotTransactionsCancel ( ) ) , actionCollection ( ) , " transaction_cancel " ) ;
new TDEAction ( i18n ( " Delete transaction " , " Delete " ) , " delete " , 0 , this , TQ T _SLOT( slotTransactionsDelete ( ) ) , actionCollection ( ) , " transaction_delete " ) ;
new TDEAction ( i18n ( " Duplicate transaction " , " Duplicate " ) , " edit-copy " , 0 , this , TQ T _SLOT( slotTransactionDuplicate ( ) ) , actionCollection ( ) , " transaction_duplicate " ) ;
new TDEAction ( i18n ( " Button text for match transaction " , " Match " ) , " process-stop " , 0 , this , TQ T _SLOT( slotTransactionMatch ( ) ) , actionCollection ( ) , " transaction_match " ) ;
new TDEAction ( i18n ( " Accept 'imported' and 'matched' transaction " , " Accept " ) , " apply " , 0 , this , TQ T _SLOT( slotTransactionsAccept ( ) ) , actionCollection ( ) , " transaction_accept " ) ;
new TDEAction ( i18n ( " Toggle reconciliation flag " , " Toggle " ) , 0 , TDEShortcut ( " Ctrl+Space " ) , this , TQ T _SLOT( slotToggleReconciliationFlag ( ) ) , actionCollection ( ) , " transaction_mark_toggle " ) ;
new TDEAction ( i18n ( " Mark transaction cleared " , " Cleared " ) , 0 , TDEShortcut ( " Ctrl+Alt+Space " ) , this , TQ T _SLOT( slotMarkTransactionCleared ( ) ) , actionCollection ( ) , " transaction_mark_cleared " ) ;
new TDEAction ( i18n ( " Mark transaction reconciled " , " Reconciled " ) , " " , TDEShortcut ( " Ctrl+Shift+Space " ) , this , TQ T _SLOT( slotMarkTransactionReconciled ( ) ) , actionCollection ( ) , " transaction_mark_reconciled " ) ;
new TDEAction ( i18n ( " Mark transaction not reconciled " , " Not reconciled " ) , " " , 0 , this , TQ T _SLOT( slotMarkTransactionNotReconciled ( ) ) , actionCollection ( ) , " transaction_mark_notreconciled " ) ;
new TDEAction ( i18n ( " Select all transactions " , " Select all " ) , 0 , TDEShortcut ( " Ctrl+A " ) , this , TQ T _SIGNAL( selectAllTransactions ( ) ) , actionCollection ( ) , " transaction_select_all " ) ;
new TDEAction ( i18n ( " Goto account " ) , " goto " , 0 , this , TQ T _SLOT( slotTransactionGotoAccount ( ) ) , actionCollection ( ) , " transaction_goto_account " ) ;
new TDEAction ( i18n ( " Goto payee " ) , " goto " , 0 , this , TQ T _SLOT( slotTransactionGotoPayee ( ) ) , actionCollection ( ) , " transaction_goto_payee " ) ;
new TDEAction ( i18n ( " Create scheduled transaction... " ) , " bookmark_add " , 0 , this , TQ T _SLOT( slotTransactionCreateSchedule ( ) ) , actionCollection ( ) , " transaction_create_schedule " ) ;
new TDEAction ( i18n ( " Assign next number " ) , " " , TDEShortcut ( " Ctrl+Shift+N " ) , this , TQ T _SLOT( slotTransactionAssignNumber ( ) ) , actionCollection ( ) , " transaction_assign_number " ) ;
new TDEAction ( i18n ( " Combine transactions " , " Combine " ) , " " , 0 , this , TQ T _SLOT( slotTransactionCombine ( ) ) , actionCollection ( ) , " transaction_combine " ) ;
new TDEAction ( i18n ( " New investment " ) , " document-new " , 0 , this , TQ T _SLOT( slotInvestmentNew ( ) ) , actionCollection ( ) , " investment_new " ) ;
new TDEAction ( i18n ( " Edit investment... " ) , " edit " , 0 , this , TQ T _SLOT( slotInvestmentEdit ( ) ) , actionCollection ( ) , " investment_edit " ) ;
new TDEAction ( i18n ( " Delete investment... " ) , " delete " , 0 , this , TQ T _SLOT( slotInvestmentDelete ( ) ) , actionCollection ( ) , " investment_delete " ) ;
new TDEAction ( i18n ( " Online price update... " ) , " " , 0 , this , TQ T _SLOT( slotOnlinePriceUpdate ( ) ) , actionCollection ( ) , " investment_online_price_update " ) ;
new TDEAction ( i18n ( " Manual price update... " ) , " " , 0 , this , TQ T _SLOT( slotManualPriceUpdate ( ) ) , actionCollection ( ) , " investment_manual_price_update " ) ;
new TDEAction ( i18n ( " New scheduled transaction... " ) , " document-new " , 0 , this , TQ T _SLOT( slotScheduleNew ( ) ) , actionCollection ( ) , " schedule_new " ) ;
new TDEAction ( i18n ( " Edit scheduled transaction... " ) , " edit " , 0 , this , TQ T _SLOT( slotScheduleEdit ( ) ) , actionCollection ( ) , " schedule_edit " ) ;
new TDEAction ( i18n ( " Delete scheduled transaction... " ) , " delete " , 0 , this , TQ T _SLOT( slotScheduleDelete ( ) ) , actionCollection ( ) , " schedule_delete " ) ;
new TDEAction ( i18n ( " Duplicate scheduled transaction " ) , " edit-copy " , 0 , this , TQ T _SLOT( slotScheduleDuplicate ( ) ) , actionCollection ( ) , " schedule_duplicate " ) ;
new TDEAction ( i18n ( " Enter next transaction... " ) , " key_enter " , 0 , this , TQ T _SLOT( slotScheduleEnter ( ) ) , actionCollection ( ) , " schedule_enter " ) ;
new TDEAction ( i18n ( " Skip next transaction... " ) , " media-seek-forward " , 0 , this , TQ T _SLOT( slotScheduleSkip ( ) ) , actionCollection ( ) , " schedule_skip " ) ;
new TDEAction ( i18n ( " New payee " ) , " document-new " , 0 , this , TQ T _SLOT( slotPayeeNew ( ) ) , actionCollection ( ) , " payee_new " ) ;
new TDEAction ( i18n ( " Rename payee " ) , " edit " , 0 , this , TQ T _SIGNAL( payeeRename ( ) ) , actionCollection ( ) , " payee_rename " ) ;
new TDEAction ( i18n ( " Delete payee " ) , " delete " , 0 , this , TQ T _SLOT( slotPayeeDelete ( ) ) , actionCollection ( ) , " payee_delete " ) ;
new TDEAction ( i18n ( " New budget " ) , " document-new " , 0 , this , TQ T _SLOT( slotBudgetNew ( ) ) , actionCollection ( ) , " budget_new " ) ;
new TDEAction ( i18n ( " Rename budget " ) , " edit " , 0 , this , TQ T _SIGNAL( budgetRename ( ) ) , actionCollection ( ) , " budget_rename " ) ;
new TDEAction ( i18n ( " Delete budget " ) , " delete " , 0 , this , TQ T _SLOT( slotBudgetDelete ( ) ) , actionCollection ( ) , " budget_delete " ) ;
new TDEAction ( i18n ( " Copy budget " ) , " edit-copy " , 0 , this , TQ T _SLOT( slotBudgetCopy ( ) ) , actionCollection ( ) , " budget_copy " ) ;
new TDEAction ( i18n ( " Change budget year " ) , " " , 0 , this , TQ T _SLOT( slotBudgetChangeYear ( ) ) , actionCollection ( ) , " budget_change_year " ) ;
new TDEAction ( i18n ( " Budget based on forecast " , " Forecast " ) , " forcast " , 0 , this , TQ T _SLOT( slotBudgetForecast ( ) ) , actionCollection ( ) , " budget_forecast " ) ;
new TDEAction ( i18n ( " Edit split button " , " Edit splits " ) , " split_transaction " , 0 , this , TQ _SLOT( slotTransactionsEditSplits ( ) ) , actionCollection ( ) , " transaction_editsplits " ) ;
new TDEAction ( i18n ( " Cancel transaction edit " , " Cancel " ) , " button_cancel " , 0 , this , TQ _SLOT( slotTransactionsCancel ( ) ) , actionCollection ( ) , " transaction_cancel " ) ;
new TDEAction ( i18n ( " Delete transaction " , " Delete " ) , " delete " , 0 , this , TQ _SLOT( slotTransactionsDelete ( ) ) , actionCollection ( ) , " transaction_delete " ) ;
new TDEAction ( i18n ( " Duplicate transaction " , " Duplicate " ) , " edit-copy " , 0 , this , TQ _SLOT( slotTransactionDuplicate ( ) ) , actionCollection ( ) , " transaction_duplicate " ) ;
new TDEAction ( i18n ( " Button text for match transaction " , " Match " ) , " process-stop " , 0 , this , TQ _SLOT( slotTransactionMatch ( ) ) , actionCollection ( ) , " transaction_match " ) ;
new TDEAction ( i18n ( " Accept 'imported' and 'matched' transaction " , " Accept " ) , " apply " , 0 , this , TQ _SLOT( slotTransactionsAccept ( ) ) , actionCollection ( ) , " transaction_accept " ) ;
new TDEAction ( i18n ( " Toggle reconciliation flag " , " Toggle " ) , 0 , TDEShortcut ( " Ctrl+Space " ) , this , TQ _SLOT( slotToggleReconciliationFlag ( ) ) , actionCollection ( ) , " transaction_mark_toggle " ) ;
new TDEAction ( i18n ( " Mark transaction cleared " , " Cleared " ) , 0 , TDEShortcut ( " Ctrl+Alt+Space " ) , this , TQ _SLOT( slotMarkTransactionCleared ( ) ) , actionCollection ( ) , " transaction_mark_cleared " ) ;
new TDEAction ( i18n ( " Mark transaction reconciled " , " Reconciled " ) , " " , TDEShortcut ( " Ctrl+Shift+Space " ) , this , TQ _SLOT( slotMarkTransactionReconciled ( ) ) , actionCollection ( ) , " transaction_mark_reconciled " ) ;
new TDEAction ( i18n ( " Mark transaction not reconciled " , " Not reconciled " ) , " " , 0 , this , TQ _SLOT( slotMarkTransactionNotReconciled ( ) ) , actionCollection ( ) , " transaction_mark_notreconciled " ) ;
new TDEAction ( i18n ( " Select all transactions " , " Select all " ) , 0 , TDEShortcut ( " Ctrl+A " ) , this , TQ _SIGNAL( selectAllTransactions ( ) ) , actionCollection ( ) , " transaction_select_all " ) ;
new TDEAction ( i18n ( " Goto account " ) , " goto " , 0 , this , TQ _SLOT( slotTransactionGotoAccount ( ) ) , actionCollection ( ) , " transaction_goto_account " ) ;
new TDEAction ( i18n ( " Goto payee " ) , " goto " , 0 , this , TQ _SLOT( slotTransactionGotoPayee ( ) ) , actionCollection ( ) , " transaction_goto_payee " ) ;
new TDEAction ( i18n ( " Create scheduled transaction... " ) , " bookmark_add " , 0 , this , TQ _SLOT( slotTransactionCreateSchedule ( ) ) , actionCollection ( ) , " transaction_create_schedule " ) ;
new TDEAction ( i18n ( " Assign next number " ) , " " , TDEShortcut ( " Ctrl+Shift+N " ) , this , TQ _SLOT( slotTransactionAssignNumber ( ) ) , actionCollection ( ) , " transaction_assign_number " ) ;
new TDEAction ( i18n ( " Combine transactions " , " Combine " ) , " " , 0 , this , TQ _SLOT( slotTransactionCombine ( ) ) , actionCollection ( ) , " transaction_combine " ) ;
new TDEAction ( i18n ( " New investment " ) , " document-new " , 0 , this , TQ _SLOT( slotInvestmentNew ( ) ) , actionCollection ( ) , " investment_new " ) ;
new TDEAction ( i18n ( " Edit investment... " ) , " edit " , 0 , this , TQ _SLOT( slotInvestmentEdit ( ) ) , actionCollection ( ) , " investment_edit " ) ;
new TDEAction ( i18n ( " Delete investment... " ) , " delete " , 0 , this , TQ _SLOT( slotInvestmentDelete ( ) ) , actionCollection ( ) , " investment_delete " ) ;
new TDEAction ( i18n ( " Online price update... " ) , " " , 0 , this , TQ _SLOT( slotOnlinePriceUpdate ( ) ) , actionCollection ( ) , " investment_online_price_update " ) ;
new TDEAction ( i18n ( " Manual price update... " ) , " " , 0 , this , TQ _SLOT( slotManualPriceUpdate ( ) ) , actionCollection ( ) , " investment_manual_price_update " ) ;
new TDEAction ( i18n ( " New scheduled transaction... " ) , " document-new " , 0 , this , TQ _SLOT( slotScheduleNew ( ) ) , actionCollection ( ) , " schedule_new " ) ;
new TDEAction ( i18n ( " Edit scheduled transaction... " ) , " edit " , 0 , this , TQ _SLOT( slotScheduleEdit ( ) ) , actionCollection ( ) , " schedule_edit " ) ;
new TDEAction ( i18n ( " Delete scheduled transaction... " ) , " delete " , 0 , this , TQ _SLOT( slotScheduleDelete ( ) ) , actionCollection ( ) , " schedule_delete " ) ;
new TDEAction ( i18n ( " Duplicate scheduled transaction " ) , " edit-copy " , 0 , this , TQ _SLOT( slotScheduleDuplicate ( ) ) , actionCollection ( ) , " schedule_duplicate " ) ;
new TDEAction ( i18n ( " Enter next transaction... " ) , " key_enter " , 0 , this , TQ _SLOT( slotScheduleEnter ( ) ) , actionCollection ( ) , " schedule_enter " ) ;
new TDEAction ( i18n ( " Skip next transaction... " ) , " media-seek-forward " , 0 , this , TQ _SLOT( slotScheduleSkip ( ) ) , actionCollection ( ) , " schedule_skip " ) ;
new TDEAction ( i18n ( " New payee " ) , " document-new " , 0 , this , TQ _SLOT( slotPayeeNew ( ) ) , actionCollection ( ) , " payee_new " ) ;
new TDEAction ( i18n ( " Rename payee " ) , " edit " , 0 , this , TQ _SIGNAL( payeeRename ( ) ) , actionCollection ( ) , " payee_rename " ) ;
new TDEAction ( i18n ( " Delete payee " ) , " delete " , 0 , this , TQ _SLOT( slotPayeeDelete ( ) ) , actionCollection ( ) , " payee_delete " ) ;
new TDEAction ( i18n ( " New budget " ) , " document-new " , 0 , this , TQ _SLOT( slotBudgetNew ( ) ) , actionCollection ( ) , " budget_new " ) ;
new TDEAction ( i18n ( " Rename budget " ) , " edit " , 0 , this , TQ _SIGNAL( budgetRename ( ) ) , actionCollection ( ) , " budget_rename " ) ;
new TDEAction ( i18n ( " Delete budget " ) , " delete " , 0 , this , TQ _SLOT( slotBudgetDelete ( ) ) , actionCollection ( ) , " budget_delete " ) ;
new TDEAction ( i18n ( " Copy budget " ) , " edit-copy " , 0 , this , TQ _SLOT( slotBudgetCopy ( ) ) , actionCollection ( ) , " budget_copy " ) ;
new TDEAction ( i18n ( " Change budget year " ) , " " , 0 , this , TQ _SLOT( slotBudgetChangeYear ( ) ) , actionCollection ( ) , " budget_change_year " ) ;
new TDEAction ( i18n ( " Budget based on forecast " , " Forecast " ) , " forcast " , 0 , this , TQ _SLOT( slotBudgetForecast ( ) ) , actionCollection ( ) , " budget_forecast " ) ;
// ************************
// Currency actions
// ************************
new TDEAction ( i18n ( " New currency " ) , " document-new " , 0 , this , TQ T _SLOT( slotCurrencyNew ( ) ) , actionCollection ( ) , " currency_new " ) ;
new TDEAction ( i18n ( " Rename currency " ) , " edit " , 0 , this , TQ T _SIGNAL( currencyRename ( ) ) , actionCollection ( ) , " currency_rename " ) ;
new TDEAction ( i18n ( " Delete currency " ) , " delete " , 0 , this , TQ T _SLOT( slotCurrencyDelete ( ) ) , actionCollection ( ) , " currency_delete " ) ;
new TDEAction ( i18n ( " Select as base currency " ) , " kmymoney2 " , 0 , this , TQ T _SLOT( slotCurrencySetBase ( ) ) , actionCollection ( ) , " currency_setbase " ) ;
new TDEAction ( i18n ( " New currency " ) , " document-new " , 0 , this , TQ _SLOT( slotCurrencyNew ( ) ) , actionCollection ( ) , " currency_new " ) ;
new TDEAction ( i18n ( " Rename currency " ) , " edit " , 0 , this , TQ _SIGNAL( currencyRename ( ) ) , actionCollection ( ) , " currency_rename " ) ;
new TDEAction ( i18n ( " Delete currency " ) , " delete " , 0 , this , TQ _SLOT( slotCurrencyDelete ( ) ) , actionCollection ( ) , " currency_delete " ) ;
new TDEAction ( i18n ( " Select as base currency " ) , " kmymoney2 " , 0 , this , TQ _SLOT( slotCurrencySetBase ( ) ) , actionCollection ( ) , " currency_setbase " ) ;
# ifdef KMM_DEBUG
new TDEAction ( " Test new feature " , " " , TDEShortcut ( " Ctrl+G " ) , this , TQ T _SLOT( slotNewFeature ( ) ) , actionCollection ( ) , " new_user_wizard " ) ;
new TDEToggleAction ( " Debug Traces " , " " , 0 , this , TQ T _SLOT( slotToggleTraces ( ) ) , actionCollection ( ) , " debug_traces " ) ;
new TDEToggleAction ( " Debug Timers " , " " , 0 , this , TQ T _SLOT( slotToggleTimers ( ) ) , actionCollection ( ) , " debug_timers " ) ;
new TDEAction ( " Test new feature " , " " , TDEShortcut ( " Ctrl+G " ) , this , TQ _SLOT( slotNewFeature ( ) ) , actionCollection ( ) , " new_user_wizard " ) ;
new TDEToggleAction ( " Debug Traces " , " " , 0 , this , TQ _SLOT( slotToggleTraces ( ) ) , actionCollection ( ) , " debug_traces " ) ;
new TDEToggleAction ( " Debug Timers " , " " , 0 , this , TQ _SLOT( slotToggleTimers ( ) ) , actionCollection ( ) , " debug_timers " ) ;
# endif
// ************************
// Currently unused actions
// ************************
#if 0
new TDEToolBarPopupAction ( i18n ( " View back " ) , " back " , 0 , this , TQ T _SLOT( slotShowPreviousView ( ) ) , actionCollection ( ) , " go_back " ) ;
new TDEToolBarPopupAction ( i18n ( " View forward " ) , " forward " , 0 , this , TQ T _SLOT( slotShowNextView ( ) ) , actionCollection ( ) , " go_forward " ) ;
new TDEToolBarPopupAction ( i18n ( " View back " ) , " back " , 0 , this , TQ _SLOT( slotShowPreviousView ( ) ) , actionCollection ( ) , " go_back " ) ;
new TDEToolBarPopupAction ( i18n ( " View forward " ) , " forward " , 0 , this , TQ _SLOT( slotShowNextView ( ) ) , actionCollection ( ) , " go_forward " ) ;
action ( " go_back " ) - > setEnabled ( false ) ;
action ( " go_forward " ) - > setEnabled ( false ) ;
@ -630,7 +630,7 @@ bool KMyMoney2App::queryExit(void)
}
/////////////////////////////////////////////////////////////////////
// TQT_ SLOT IMPLEMENTATION
// SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
void KMyMoney2App : : slotFileInfoDialog ( void )
{
@ -1075,8 +1075,8 @@ bool KMyMoney2App::slotFileSaveAs(void)
TQHBox * labelBox = new TQHBox ( vbox ) ;
m_additionalKeyLabel = new TQLabel ( i18n ( " Additional encryption key(s) to be used: %1 " ) . arg ( m_additionalGpgKeys . count ( ) ) , labelBox ) ;
m_additionalKeyButton = new KPushButton ( i18n ( " Manage additional keys " ) , labelBox ) ;
connect ( m_additionalKeyButton , TQ T _SIGNAL( clicked ( ) ) , this , TQ T _SLOT( slotManageGpgKeys ( ) ) ) ;
connect ( m_saveEncrypted , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT( slotKeySelected ( int ) ) ) ;
connect ( m_additionalKeyButton , TQ _SIGNAL( clicked ( ) ) , this , TQ _SLOT( slotManageGpgKeys ( ) ) ) ;
connect ( m_saveEncrypted , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT( slotKeySelected ( int ) ) ) ;
// fill the secret key list and combo box
TQStringList keyList ;
@ -1109,7 +1109,7 @@ bool KMyMoney2App::slotFileSaveAs(void)
TQString ( " %1|%2 \n " ) . arg ( " *.anon.xml " ) . arg ( i18n ( " Anonymous (Filefilter) " , " Anonymous files " ) ) +
TQString ( " %1|%2 \n " ) . arg ( " * " ) . arg ( i18n ( " All files " ) ) ,
this , " filedialog " , true , vbox ) ;
connect ( & dlg , TQ T _SIGNAL( filterChanged ( const TQString & ) ) , this , TQ T _SLOT( slotFileSaveAsFilterChanged ( const TQString & ) ) ) ;
connect ( & dlg , TQ _SIGNAL( filterChanged ( const TQString & ) ) , this , TQ _SLOT( slotFileSaveAsFilterChanged ( const TQString & ) ) ) ;
if ( ! specialDir )
dlg . setSelection ( prevDir ) ; // may also be a filename
@ -1525,7 +1525,7 @@ void KMyMoney2App::slotQifImport(void)
// remove all kmm-statement-#.txt files
d - > unlinkStatementXML ( ) ;
connect ( m_qifReader , TQ T _SIGNAL( importFinished ( ) ) , this , TQ T _SLOT( slotQifImportFinished ( ) ) ) ;
connect ( m_qifReader , TQ _SIGNAL( importFinished ( ) ) , this , TQ _SLOT( slotQifImportFinished ( ) ) ) ;
m_qifReader - > setURL ( dlg - > filename ( ) ) ;
@ -1774,7 +1774,7 @@ void KMyMoney2App::slotQifExport(void)
if ( dlg - > exec ( ) ) {
if ( okToWriteFile ( dlg - > filename ( ) ) ) {
MyMoneyQifWriter writer ;
connect ( & writer , TQ T _SIGNAL( signalProgress ( int , int ) ) , this , TQ T _SLOT( slotStatusProgressBar ( int , int ) ) ) ;
connect ( & writer , TQ _SIGNAL( signalProgress ( int , int ) ) , this , TQ _SLOT( slotStatusProgressBar ( int , int ) ) ) ;
writer . write ( dlg - > filename ( ) , dlg - > profile ( ) , dlg - > accountId ( ) ,
dlg - > accountSelected ( ) , dlg - > categorySelected ( ) ,
@ -1830,9 +1830,9 @@ void KMyMoney2App::slotSettings(void)
dlg - > addPage ( forecastPage , i18n ( " Forecast " ) , " forcast " ) ;
dlg - > addPage ( pluginsPage , i18n ( " Plugins " ) , " connect_no " ) ;
connect ( dlg , TQ T _SIGNAL( settingsChanged ( ) ) , this , TQ T _SLOT( slotUpdateConfiguration ( ) ) ) ;
connect ( dlg , TQ T _SIGNAL( okClicked ( ) ) , pluginsPage , TQ T _SLOT( slotSavePlugins ( ) ) ) ;
connect ( dlg , TQ T _SIGNAL( defaultClicked ( ) ) , pluginsPage , TQ T _SLOT( slotDefaultsPlugins ( ) ) ) ;
connect ( dlg , TQ _SIGNAL( settingsChanged ( ) ) , this , TQ _SLOT( slotUpdateConfiguration ( ) ) ) ;
connect ( dlg , TQ _SIGNAL( okClicked ( ) ) , pluginsPage , TQ _SLOT( slotSavePlugins ( ) ) ) ;
connect ( dlg , TQ _SIGNAL( defaultClicked ( ) ) , pluginsPage , TQ _SLOT( slotDefaultsPlugins ( ) ) ) ;
dlg - > show ( ) ;
}
@ -2124,9 +2124,9 @@ void KMyMoney2App::slotFindTransaction(void)
{
if ( m_searchDlg = = 0 ) {
m_searchDlg = new KFindTransactionDlg ( ) ;
connect ( m_searchDlg , TQ T _SIGNAL( destroyed ( ) ) , this , TQ T _SLOT( slotCloseSearchDialog ( ) ) ) ;
connect ( m_searchDlg , TQ T _SIGNAL( transactionSelected ( const TQString & , const TQString & ) ) ,
myMoneyView , TQ T _SLOT( slotLedgerSelected ( const TQString & , const TQString & ) ) ) ;
connect ( m_searchDlg , TQ _SIGNAL( destroyed ( ) ) , this , TQ _SLOT( slotCloseSearchDialog ( ) ) ) ;
connect ( m_searchDlg , TQ _SIGNAL( transactionSelected ( const TQString & , const TQString & ) ) ,
myMoneyView , TQ _SLOT( slotLedgerSelected ( const TQString & , const TQString & ) ) ) ;
}
m_searchDlg - > show ( ) ;
m_searchDlg - > raise ( ) ;
@ -2467,10 +2467,10 @@ void KMyMoney2App::slotAccountNew(void)
void KMyMoney2App : : slotAccountNew ( MyMoneyAccount & account )
{
NewAccountWizard : : Wizard * wizard = new NewAccountWizard : : Wizard ( ) ;
connect ( wizard , TQ T _SIGNAL( createInstitution ( MyMoneyInstitution & ) ) , this , TQ T _SLOT( slotInstitutionNew ( MyMoneyInstitution & ) ) ) ;
connect ( wizard , TQ T _SIGNAL( createAccount ( MyMoneyAccount & ) ) , this , TQ T _SLOT( slotAccountNew ( MyMoneyAccount & ) ) ) ;
connect ( wizard , TQ T _SIGNAL( createPayee ( const TQString & , TQString & ) ) , this , TQ T _SLOT( slotPayeeNew ( const TQString & , TQString & ) ) ) ;
connect ( wizard , TQ T _SIGNAL( createCategory ( MyMoneyAccount & , const MyMoneyAccount & ) ) , this , TQ T _SLOT( slotCategoryNew ( MyMoneyAccount & , const MyMoneyAccount & ) ) ) ;
connect ( wizard , TQ _SIGNAL( createInstitution ( MyMoneyInstitution & ) ) , this , TQ _SLOT( slotInstitutionNew ( MyMoneyInstitution & ) ) ) ;
connect ( wizard , TQ _SIGNAL( createAccount ( MyMoneyAccount & ) ) , this , TQ _SLOT( slotAccountNew ( MyMoneyAccount & ) ) ) ;
connect ( wizard , TQ _SIGNAL( createPayee ( const TQString & , TQString & ) ) , this , TQ _SLOT( slotPayeeNew ( const TQString & , TQString & ) ) ) ;
connect ( wizard , TQ _SIGNAL( createCategory ( MyMoneyAccount & , const MyMoneyAccount & ) ) , this , TQ _SLOT( slotCategoryNew ( MyMoneyAccount & , const MyMoneyAccount & ) ) ) ;
wizard - > setAccount ( account ) ;
@ -3038,8 +3038,8 @@ void KMyMoney2App::slotAccountEdit(void)
}
} else {
KEditLoanWizard * wizard = new KEditLoanWizard ( m_selectedAccount ) ;
connect ( wizard , TQ T _SIGNAL( newCategory ( MyMoneyAccount & ) ) , this , TQ T _SLOT( slotCategoryNew ( MyMoneyAccount & ) ) ) ;
connect ( wizard , TQ T _SIGNAL( createPayee ( const TQString & , TQString & ) ) , this , TQ T _SLOT( slotPayeeNew ( const TQString & , TQString & ) ) ) ;
connect ( wizard , TQ _SIGNAL( newCategory ( MyMoneyAccount & ) ) , this , TQ _SLOT( slotCategoryNew ( MyMoneyAccount & ) ) ) ;
connect ( wizard , TQ _SIGNAL( createPayee ( const TQString & , TQString & ) ) , this , TQ _SLOT( slotPayeeNew ( const TQString & , TQString & ) ) ) ;
if ( wizard - > exec ( ) = = TQDialog : : Accepted ) {
MyMoneySchedule sch = file - > schedule ( m_selectedAccount . value ( " schedule " ) . latin1 ( ) ) ;
if ( ! ( m_selectedAccount = = wizard - > account ( ) )
@ -3122,8 +3122,8 @@ void KMyMoney2App::slotAccountReconcileStart(void)
delete m_endingBalanceDlg ;
m_endingBalanceDlg = new KEndingBalanceDlg ( account , this ) ;
if ( account . isAssetLiability ( ) ) {
connect ( m_endingBalanceDlg , TQ T _SIGNAL( createPayee ( const TQString & , TQString & ) ) , this , TQ T _SLOT( slotPayeeNew ( const TQString & , TQString & ) ) ) ;
connect ( m_endingBalanceDlg , TQ T _SIGNAL( createCategory ( MyMoneyAccount & , const MyMoneyAccount & ) ) , this , TQ T _SLOT( slotCategoryNew ( MyMoneyAccount & , const MyMoneyAccount & ) ) ) ;
connect ( m_endingBalanceDlg , TQ _SIGNAL( createPayee ( const TQString & , TQString & ) ) , this , TQ _SLOT( slotPayeeNew ( const TQString & , TQString & ) ) ) ;
connect ( m_endingBalanceDlg , TQ _SIGNAL( createCategory ( MyMoneyAccount & , const MyMoneyAccount & ) ) , this , TQ _SLOT( slotCategoryNew ( MyMoneyAccount & , const MyMoneyAccount & ) ) ) ;
if ( m_endingBalanceDlg - > exec ( ) = = TQDialog : : Accepted ) {
if ( myMoneyView - > startReconciliation ( account , m_endingBalanceDlg - > statementDate ( ) , m_endingBalanceDlg - > endingBalance ( ) ) ) {
@ -3534,8 +3534,8 @@ void KMyMoney2App::slotScheduleEdit(void)
case MyMoneySchedule : : TYPE_LOANPAYMENT :
loan_wiz = new KEditLoanWizard ( schedule . account ( 2 ) ) ;
connect ( loan_wiz , TQ T _SIGNAL( newCategory ( MyMoneyAccount & ) ) , this , TQ T _SLOT( slotCategoryNew ( MyMoneyAccount & ) ) ) ;
connect ( loan_wiz , TQ T _SIGNAL( createPayee ( const TQString & , TQString & ) ) , this , TQ T _SLOT( slotPayeeNew ( const TQString & , TQString & ) ) ) ;
connect ( loan_wiz , TQ _SIGNAL( newCategory ( MyMoneyAccount & ) ) , this , TQ _SLOT( slotCategoryNew ( MyMoneyAccount & ) ) ) ;
connect ( loan_wiz , TQ _SIGNAL( createPayee ( const TQString & , TQString & ) ) , this , TQ _SLOT( slotPayeeNew ( const TQString & , TQString & ) ) ) ;
if ( loan_wiz - > exec ( ) = = TQDialog : : Accepted ) {
MyMoneyFileTransaction ft ;
try {
@ -3733,7 +3733,7 @@ KMyMoneyUtils::EnterScheduleResultCodeE KMyMoney2App::enterSchedule(MyMoneySched
}
TQString newId ;
connect ( m_transactionEditor , TQ T _SIGNAL( balanceWarning ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) , d - > m_balanceWarning , TQ T _SLOT( slotShowMessage ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) ) ;
connect ( m_transactionEditor , TQ _SIGNAL( balanceWarning ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) , d - > m_balanceWarning , TQ _SLOT( slotShowMessage ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) ) ;
if ( m_transactionEditor - > enterTransactions ( newId , false ) ) {
if ( ! newId . isEmpty ( ) ) {
MyMoneyTransaction t = MyMoneyFile : : instance ( ) - > transaction ( newId ) ;
@ -4442,10 +4442,10 @@ void KMyMoney2App::slotTransactionsNew(void)
payeeEdit - > completion ( ) - > hide ( ) ;
}
if ( m_transactionEditor ) {
connect ( m_transactionEditor , TQ T _SIGNAL( statusProgress ( int , int ) ) , this , TQ T _SLOT( slotStatusProgressBar ( int , int ) ) ) ;
connect ( m_transactionEditor , TQ T _SIGNAL( statusMsg ( const TQString & ) ) , this , TQ T _SLOT( slotStatusMsg ( const TQString & ) ) ) ;
connect ( m_transactionEditor , TQ T _SIGNAL( scheduleTransaction ( const MyMoneyTransaction & , MyMoneySchedule : : occurenceE ) ) , this , TQ T _SLOT( slotScheduleNew ( const MyMoneyTransaction & , MyMoneySchedule : : occurenceE ) ) ) ;
connect ( m_transactionEditor , TQ T _SIGNAL( transactionDataSufficient ( bool ) ) , this , TQ T _SLOT( slotUpdateActions ( ) ) ) ;
connect ( m_transactionEditor , TQ _SIGNAL( statusProgress ( int , int ) ) , this , TQ _SLOT( slotStatusProgressBar ( int , int ) ) ) ;
connect ( m_transactionEditor , TQ _SIGNAL( statusMsg ( const TQString & ) ) , this , TQ _SLOT( slotStatusMsg ( const TQString & ) ) ) ;
connect ( m_transactionEditor , TQ _SIGNAL( scheduleTransaction ( const MyMoneyTransaction & , MyMoneySchedule : : occurenceE ) ) , this , TQ _SLOT( slotScheduleNew ( const MyMoneyTransaction & , MyMoneySchedule : : occurenceE ) ) ) ;
connect ( m_transactionEditor , TQ _SIGNAL( transactionDataSufficient ( bool ) ) , this , TQ _SLOT( slotUpdateActions ( ) ) ) ;
}
slotUpdateActions ( ) ;
}
@ -4461,7 +4461,7 @@ void KMyMoney2App::slotTransactionsEdit(void)
// as soon as we edit a transaction, we don't remember the last payee entered
d - > m_lastPayeeEntered = TQString ( ) ;
m_transactionEditor = myMoneyView - > startEdit ( m_selectedTransactions ) ;
connect ( m_transactionEditor , TQ T _SIGNAL( transactionDataSufficient ( bool ) ) , this , TQ T _SLOT( slotUpdateActions ( ) ) ) ;
connect ( m_transactionEditor , TQ _SIGNAL( transactionDataSufficient ( bool ) ) , this , TQ _SLOT( slotUpdateActions ( ) ) ) ;
slotUpdateActions ( ) ;
}
}
@ -4490,7 +4490,7 @@ void KMyMoney2App::slotTransactionsEditSplits(void)
MyMoneyFileTransaction ft ;
try {
TQString id ;
connect ( m_transactionEditor , TQ T _SIGNAL( balanceWarning ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) , d - > m_balanceWarning , TQ T _SLOT( slotShowMessage ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) ) ;
connect ( m_transactionEditor , TQ _SIGNAL( balanceWarning ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) , d - > m_balanceWarning , TQ _SLOT( slotShowMessage ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) ) ;
m_transactionEditor - > enterTransactions ( id ) ;
ft . commit ( ) ;
} catch ( MyMoneyException * e ) {
@ -4526,7 +4526,7 @@ void KMyMoney2App::slotTransactionsEnter(void)
if ( m_transactionEditor ) {
TQString accountId = m_selectedAccount . id ( ) ;
TQString newId ;
connect ( m_transactionEditor , TQ T _SIGNAL( balanceWarning ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) , d - > m_balanceWarning , TQ T _SLOT( slotShowMessage ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) ) ;
connect ( m_transactionEditor , TQ _SIGNAL( balanceWarning ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) , d - > m_balanceWarning , TQ _SLOT( slotShowMessage ( TQWidget * , const MyMoneyAccount & , const TQString & ) ) ) ;
if ( m_transactionEditor - > enterTransactions ( newId ) ) {
KMyMoneyPayeeCombo * payeeEdit = dynamic_cast < KMyMoneyPayeeCombo * > ( m_transactionEditor - > haveWidget ( " payee " ) ) ;
if ( payeeEdit & & ! newId . isEmpty ( ) ) {
@ -5676,12 +5676,12 @@ void KMyMoney2App::slotDataChanged(void)
void KMyMoney2App : : slotCurrencyDialog ( void )
{
KCurrencyEditDlg dlg ( this , " Currency Editor " ) ;
connect ( & dlg , TQ T _SIGNAL( selectObject ( const MyMoneySecurity & ) ) , this , TQ T _SLOT( slotSelectCurrency ( const MyMoneySecurity & ) ) ) ;
connect ( & dlg , TQ T _SIGNAL( openContextMenu ( const MyMoneySecurity & ) ) , this , TQ T _SLOT( slotShowCurrencyContextMenu ( ) ) ) ;
connect ( this , TQ T _SIGNAL( currencyRename ( ) ) , & dlg , TQ T _SLOT( slotStartRename ( ) ) ) ;
connect ( & dlg , TQ T _SIGNAL( renameCurrency ( TQListViewItem * , int , const TQString & ) ) , this , TQ T _SLOT( slotCurrencyRename ( TQListViewItem * , int , const TQString & ) ) ) ;
connect ( this , TQ T _SIGNAL( currencyCreated ( const TQString & ) ) , & dlg , TQ T _SLOT( slotSelectCurrency ( const TQString & ) ) ) ;
connect ( & dlg , TQ T _SIGNAL( selectBaseCurrency ( const MyMoneySecurity & ) ) , this , TQ T _SLOT( slotCurrencySetBase ( ) ) ) ;
connect ( & dlg , TQ _SIGNAL( selectObject ( const MyMoneySecurity & ) ) , this , TQ _SLOT( slotSelectCurrency ( const MyMoneySecurity & ) ) ) ;
connect ( & dlg , TQ _SIGNAL( openContextMenu ( const MyMoneySecurity & ) ) , this , TQ _SLOT( slotShowCurrencyContextMenu ( ) ) ) ;
connect ( this , TQ _SIGNAL( currencyRename ( ) ) , & dlg , TQ _SLOT( slotStartRename ( ) ) ) ;
connect ( & dlg , TQ _SIGNAL( renameCurrency ( TQListViewItem * , int , const TQString & ) ) , this , TQ _SLOT( slotCurrencyRename ( TQListViewItem * , int , const TQString & ) ) ) ;
connect ( this , TQ _SIGNAL( currencyCreated ( const TQString & ) ) , & dlg , TQ _SLOT( slotSelectCurrency ( const TQString & ) ) ) ;
connect ( & dlg , TQ _SIGNAL( selectBaseCurrency ( const MyMoneySecurity & ) ) , this , TQ _SLOT( slotCurrencySetBase ( ) ) ) ;
dlg . exec ( ) ;
@ -5917,8 +5917,8 @@ void KMyMoney2App::loadPlugins(void)
{
d - > m_pluginLoader = new KMyMoneyPlugin : : PluginLoader ( this ) ;
connect ( d - > m_pluginLoader , TQ T _SIGNAL( plug ( KPluginInfo * ) ) , this , TQ T _SLOT( slotPluginPlug ( KPluginInfo * ) ) ) ;
connect ( d - > m_pluginLoader , TQ T _SIGNAL( unplug ( KPluginInfo * ) ) , this , TQ T _SLOT( slotPluginUnplug ( KPluginInfo * ) ) ) ;
connect ( d - > m_pluginLoader , TQ _SIGNAL( plug ( KPluginInfo * ) ) , this , TQ _SLOT( slotPluginPlug ( KPluginInfo * ) ) ) ;
connect ( d - > m_pluginLoader , TQ _SIGNAL( unplug ( KPluginInfo * ) ) , this , TQ _SLOT( slotPluginUnplug ( KPluginInfo * ) ) ) ;
d - > m_pluginLoader - > loadPlugins ( ) ;
}
@ -5988,7 +5988,7 @@ void KMyMoney2App::slotDateChanged(void)
TQDateTime dt = TQDateTime : : currentDateTime ( ) ;
TQDateTime nextDay ( TQDate ( dt . date ( ) . addDays ( 1 ) ) , TQTime ( 0 , 0 , 0 ) ) ;
TQTimer : : singleShot ( dt . secsTo ( nextDay ) * 1000 , this , TQ T _SLOT( slotDateChanged ( ) ) ) ;
TQTimer : : singleShot ( dt . secsTo ( nextDay ) * 1000 , this , TQ _SLOT( slotDateChanged ( ) ) ) ;
myMoneyView - > slotRefreshViews ( ) ;
}