@ -176,7 +176,7 @@ public:
} ;
KMyMoney2App : : KMyMoney2App ( TQWidget * /*parent*/ , const char * name ) :
K MainWindow( 0 , name ) ,
TDE MainWindow( 0 , name ) ,
DCOPObject ( " kmymoney2app " ) ,
d ( new Private ) ,
myMoneyView ( 0 ) ,
@ -299,7 +299,7 @@ void KMyMoney2App::initDynamicMenus(void)
void KMyMoney2App : : initActions ( void )
{
K Action* p ;
TDE Action* p ;
// *************
// The File menu
@ -313,177 +313,177 @@ void KMyMoney2App::initActions(void)
KStdAction : : quit ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileQuit ( ) ) , actionCollection ( ) ) ;
KStdAction : : print ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPrintView ( ) ) , actionCollection ( ) ) ;
new K Action( i18n ( " Open database... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOpenDatabase ( ) ) , actionCollection ( ) , " open_database " ) ;
new K Action( i18n ( " Save as database... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSaveAsDatabase ( ) ) , actionCollection ( ) , " saveas_database " ) ;
new K Action( i18n ( " Backup... " ) , " backup " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileBackup ( ) ) , actionCollection ( ) , " file_backup " ) ;
new K Action( i18n ( " QIF... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotQifImport ( ) ) , actionCollection ( ) , " file_import_qif " ) ;
new K Action( i18n ( " Gnucash... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotGncImport ( ) ) , actionCollection ( ) , " file_import_gnc " ) ;
new K Action( i18n ( " Statement file... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotStatementImport ( ) ) , actionCollection ( ) , " file_import_statement " ) ;
new TDE Action( i18n ( " Open database... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOpenDatabase ( ) ) , actionCollection ( ) , " open_database " ) ;
new TDE Action( i18n ( " Save as database... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSaveAsDatabase ( ) ) , actionCollection ( ) , " saveas_database " ) ;
new TDE Action( i18n ( " Backup... " ) , " backup " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileBackup ( ) ) , actionCollection ( ) , " file_backup " ) ;
new TDE Action( i18n ( " QIF... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotQifImport ( ) ) , actionCollection ( ) , " file_import_qif " ) ;
new TDE Action( i18n ( " Gnucash... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotGncImport ( ) ) , actionCollection ( ) , " file_import_gnc " ) ;
new TDE Action( i18n ( " Statement file... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotStatementImport ( ) ) , actionCollection ( ) , " file_import_statement " ) ;
new K Action( i18n ( " Account Template... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotLoadAccountTemplates ( ) ) , actionCollection ( ) , " file_import_template " ) ;
new K Action( i18n ( " Account Template... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSaveAccountTemplates ( ) ) , actionCollection ( ) , " file_export_template " ) ;
new K Action( i18n ( " QIF... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotQifExport ( ) ) , actionCollection ( ) , " file_export_qif " ) ;
new K Action( i18n ( " Personal Data... " ) , " personal_data " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileViewPersonal ( ) ) , actionCollection ( ) , " view_personal_data " ) ;
new TDE Action( i18n ( " Account Template... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotLoadAccountTemplates ( ) ) , actionCollection ( ) , " file_import_template " ) ;
new TDE Action( i18n ( " Account Template... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSaveAccountTemplates ( ) ) , actionCollection ( ) , " file_export_template " ) ;
new TDE Action( i18n ( " QIF... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotQifExport ( ) ) , actionCollection ( ) , " file_export_qif " ) ;
new TDE Action( i18n ( " Personal Data... " ) , " personal_data " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileViewPersonal ( ) ) , actionCollection ( ) , " view_personal_data " ) ;
# if KMM_DEBUG
new K Action( i18n ( " Dump Memory " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileFileInfo ( ) ) , actionCollection ( ) , " file_dump " ) ;
new TDE Action( i18n ( " Dump Memory " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileFileInfo ( ) ) , actionCollection ( ) , " file_dump " ) ;
# endif
new K Action( i18n ( " File-Information... " ) , " info " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileInfoDialog ( ) ) , actionCollection ( ) , " view_file_info " ) ;
new TDE Action( i18n ( " File-Information... " ) , " info " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileInfoDialog ( ) ) , actionCollection ( ) , " view_file_info " ) ;
// *************
// The Edit menu
// *************
new K Action( i18n ( " Find transaction... " ) , " transaction_find " , K Shortcut( " Ctrl+F " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFindTransaction ( ) ) , actionCollection ( ) , " edit_find_transaction " ) ;
new TDE Action( i18n ( " Find transaction... " ) , " transaction_find " , TDE Shortcut( " Ctrl+F " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFindTransaction ( ) ) , actionCollection ( ) , " edit_find_transaction " ) ;
// *************
// The View menu
// *************
new K ToggleAction( i18n ( " Show Transaction Detail " ) , K Shortcut( " Ctrl+T " ) , actionCollection ( ) , " view_show_transaction_detail " ) ;
new K ToggleAction( i18n ( " Hide reconciled transactions " ) , " hide_reconciled " , K Shortcut( " Ctrl+R " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotHideReconciledTransactions ( ) ) , actionCollection ( ) , " view_hide_reconciled_transactions " ) ;
new K ToggleAction( i18n ( " Hide unused categories " ) , " hide_categories " , K Shortcut( " Ctrl+U " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotHideUnusedCategories ( ) ) , actionCollection ( ) , " view_hide_unused_categories " ) ;
new K ToggleAction( i18n ( " Show all accounts " ) , " " , K Shortcut( " Ctrl+Shift+A " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowAllAccounts ( ) ) , actionCollection ( ) , " view_show_all_accounts " ) ;
new TDE ToggleAction( i18n ( " Show Transaction Detail " ) , TDE Shortcut( " Ctrl+T " ) , actionCollection ( ) , " view_show_transaction_detail " ) ;
new TDE ToggleAction( i18n ( " Hide reconciled transactions " ) , " hide_reconciled " , TDE Shortcut( " Ctrl+R " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotHideReconciledTransactions ( ) ) , actionCollection ( ) , " view_hide_reconciled_transactions " ) ;
new TDE ToggleAction( i18n ( " Hide unused categories " ) , " hide_categories " , TDE Shortcut( " Ctrl+U " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotHideUnusedCategories ( ) ) , actionCollection ( ) , " view_hide_unused_categories " ) ;
new TDE ToggleAction( i18n ( " Show all accounts " ) , " " , TDE Shortcut( " Ctrl+Shift+A " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowAllAccounts ( ) ) , actionCollection ( ) , " view_show_all_accounts " ) ;
// *********************
// The institutions menu
// *********************
new K Action( i18n ( " New institution... " ) , " institution_add " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInstitutionNew ( ) ) , actionCollection ( ) , " institution_new " ) ;
new K Action( i18n ( " Edit institution... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInstitutionEdit ( ) ) , actionCollection ( ) , " institution_edit " ) ;
new K Action( i18n ( " Delete institution... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInstitutionDelete ( ) ) , actionCollection ( ) , " institution_delete " ) ;
new TDE Action( i18n ( " New institution... " ) , " institution_add " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInstitutionNew ( ) ) , actionCollection ( ) , " institution_new " ) ;
new TDE Action( i18n ( " Edit institution... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInstitutionEdit ( ) ) , actionCollection ( ) , " institution_edit " ) ;
new TDE Action( i18n ( " Delete institution... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInstitutionDelete ( ) ) , actionCollection ( ) , " institution_delete " ) ;
// *****************
// The accounts menu
// *****************
new K Action( i18n ( " New account... " ) , " account_add " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountNew ( ) ) , actionCollection ( ) , " account_new " ) ;
new TDE Action( i18n ( " New account... " ) , " account_add " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountNew ( ) ) , actionCollection ( ) , " account_new " ) ;
// note : action "category_new" is included in this menu but defined below
new K Action( i18n ( " Open ledger " ) , " ledger " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountOpen ( ) ) , actionCollection ( ) , " account_open " ) ;
new K Action( i18n ( " Reconcile... " ) , " reconcile " , K Shortcut( " Ctrl+Shift+R " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountReconcileStart ( ) ) , actionCollection ( ) , " account_reconcile " ) ;
new K Action( i18n ( " Finish reconciliation " , " Finish " ) , " player_end " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountReconcileFinish ( ) ) , actionCollection ( ) , " account_reconcile_finish " ) ;
new K Action( i18n ( " Postpone reconciliation " , " Postpone " ) , " player_pause " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountReconcilePostpone ( ) ) , actionCollection ( ) , " account_reconcile_postpone " ) ;
new K Action( i18n ( " Edit account... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountEdit ( ) ) , actionCollection ( ) , " account_edit " ) ;
new K Action( i18n ( " Delete account... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountDelete ( ) ) , actionCollection ( ) , " account_delete " ) ;
new K Action( i18n ( " Close account " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountClose ( ) ) , actionCollection ( ) , " account_close " ) ;
new K Action( i18n ( " Reopen account " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountReopen ( ) ) , actionCollection ( ) , " account_reopen " ) ;
new K Action( i18n ( " Transaction report " ) , " view_info " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountTransactionReport ( ) ) , actionCollection ( ) , " account_transaction_report " ) ;
new TDE Action( i18n ( " Open ledger " ) , " ledger " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountOpen ( ) ) , actionCollection ( ) , " account_open " ) ;
new TDE Action( i18n ( " Reconcile... " ) , " reconcile " , TDE Shortcut( " Ctrl+Shift+R " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountReconcileStart ( ) ) , actionCollection ( ) , " account_reconcile " ) ;
new TDE Action( i18n ( " Finish reconciliation " , " Finish " ) , " player_end " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountReconcileFinish ( ) ) , actionCollection ( ) , " account_reconcile_finish " ) ;
new TDE Action( i18n ( " Postpone reconciliation " , " Postpone " ) , " player_pause " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountReconcilePostpone ( ) ) , actionCollection ( ) , " account_reconcile_postpone " ) ;
new TDE Action( i18n ( " Edit account... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountEdit ( ) ) , actionCollection ( ) , " account_edit " ) ;
new TDE Action( i18n ( " Delete account... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountDelete ( ) ) , actionCollection ( ) , " account_delete " ) ;
new TDE Action( i18n ( " Close account " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountClose ( ) ) , actionCollection ( ) , " account_close " ) ;
new TDE Action( i18n ( " Reopen account " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountReopen ( ) ) , actionCollection ( ) , " account_reopen " ) ;
new TDE Action( i18n ( " Transaction report " ) , " view_info " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountTransactionReport ( ) ) , actionCollection ( ) , " account_transaction_report " ) ;
# ifdef HAVE_KDCHART
new K Action( i18n ( " Show balance chart... " ) , " kchart_chrt " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountChart ( ) ) , actionCollection ( ) , " account_chart " ) ;
new TDE Action( i18n ( " Show balance chart... " ) , " kchart_chrt " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountChart ( ) ) , actionCollection ( ) , " account_chart " ) ;
# endif
new K Action( i18n ( " Map to online account " ) , " news_subscribe " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountMapOnline ( ) ) , actionCollection ( ) , " account_online_map " ) ;
new K Action( i18n ( " Unmap account " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountUnmapOnline ( ) ) , actionCollection ( ) , " account_online_unmap " ) ;
KActionMenu* menu = new K ActionMenu( i18n ( " Update " ) , TQIconSet ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " reload " , KIcon : : Small ,
new TDE Action( i18n ( " Map to online account " ) , " news_subscribe " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountMapOnline ( ) ) , actionCollection ( ) , " account_online_map " ) ;
new TDE Action( i18n ( " Unmap account " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountUnmapOnline ( ) ) , actionCollection ( ) , " account_online_unmap " ) ;
TDEActionMenu* menu = new TDE ActionMenu( i18n ( " Update " ) , TQIconSet ( TDEGlobal : : iconLoader ( ) - > loadIcon ( " reload " , KIcon : : Small ,
KIcon : : SizeSmall ) ) , actionCollection ( ) , " account_online_update_menu " ) ;
// activating the menu button is the same as selecting the current account
connect ( menu , TQT_SIGNAL ( activated ( ) ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountUpdateOnline ( ) ) ) ;
menu - > insert ( new K Action( i18n ( " Update account... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountUpdateOnline ( ) ) , actionCollection ( ) , " account_online_update " ) ) ;
menu - > insert ( new K Action( i18n ( " Update all accounts... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountUpdateOnlineAll ( ) ) , actionCollection ( ) , " account_online_update_all " ) ) ;
menu - > insert ( new TDE Action( i18n ( " Update account... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountUpdateOnline ( ) ) , actionCollection ( ) , " account_online_update " ) ) ;
menu - > insert ( new TDE Action( i18n ( " Update all accounts... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountUpdateOnlineAll ( ) ) , actionCollection ( ) , " account_online_update_all " ) ) ;
// *******************
// The categories menu
// *******************
new K Action( i18n ( " New category... " ) , " account_add " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCategoryNew ( ) ) , actionCollection ( ) , " category_new " ) ;
new K Action( i18n ( " Edit category... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountEdit ( ) ) , actionCollection ( ) , " category_edit " ) ;
new K Action( i18n ( " Delete category... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountDelete ( ) ) , actionCollection ( ) , " category_delete " ) ;
new TDE Action( i18n ( " New category... " ) , " account_add " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCategoryNew ( ) ) , actionCollection ( ) , " category_new " ) ;
new TDE Action( i18n ( " Edit category... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountEdit ( ) ) , actionCollection ( ) , " category_edit " ) ;
new TDE Action( i18n ( " Delete category... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotAccountDelete ( ) ) , actionCollection ( ) , " category_delete " ) ;
// **************
// The tools menu
// **************
new K Action( i18n ( " QIF Profile Editor... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotQifProfileEditor ( ) ) , actionCollection ( ) , " tools_qif_editor " ) ;
new K Action( i18n ( " Securities... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSecurityEditor ( ) ) , actionCollection ( ) , " tools_security_editor " ) ;
new K Action( i18n ( " Currencies... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCurrencyDialog ( ) ) , actionCollection ( ) , " tools_currency_editor " ) ;
new K Action( i18n ( " Prices... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPriceDialog ( ) ) , actionCollection ( ) , " tools_price_editor " ) ;
new K Action( i18n ( " Update Stock and Currency Prices... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotEquityPriceUpdate ( ) ) , actionCollection ( ) , " tools_update_prices " ) ;
new K Action( i18n ( " Consistency Check " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileConsitencyCheck ( ) ) , actionCollection ( ) , " tools_consistency_check " ) ;
new K Action( i18n ( " Performance-Test " ) , " fork " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPerformanceTest ( ) ) , actionCollection ( ) , " tools_performancetest " ) ;
new K Action( i18n ( " KCalc... " ) , " kcalc " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToolsStartKCalc ( ) ) , actionCollection ( ) , " tools_kcalc " ) ;
new TDE Action( i18n ( " QIF Profile Editor... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotQifProfileEditor ( ) ) , actionCollection ( ) , " tools_qif_editor " ) ;
new TDE Action( i18n ( " Securities... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSecurityEditor ( ) ) , actionCollection ( ) , " tools_security_editor " ) ;
new TDE Action( i18n ( " Currencies... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCurrencyDialog ( ) ) , actionCollection ( ) , " tools_currency_editor " ) ;
new TDE Action( i18n ( " Prices... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPriceDialog ( ) ) , actionCollection ( ) , " tools_price_editor " ) ;
new TDE Action( i18n ( " Update Stock and Currency Prices... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotEquityPriceUpdate ( ) ) , actionCollection ( ) , " tools_update_prices " ) ;
new TDE Action( i18n ( " Consistency Check " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotFileConsitencyCheck ( ) ) , actionCollection ( ) , " tools_consistency_check " ) ;
new TDE Action( i18n ( " Performance-Test " ) , " fork " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPerformanceTest ( ) ) , actionCollection ( ) , " tools_performancetest " ) ;
new TDE Action( i18n ( " KCalc... " ) , " kcalc " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToolsStartKCalc ( ) ) , actionCollection ( ) , " tools_kcalc " ) ;
// *****************
// The settings menu
// *****************
KStdAction : : preferences ( TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSettings ( ) ) , actionCollection ( ) ) ;
new K Action( i18n ( " Enable all messages " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotEnableMessages ( ) ) , actionCollection ( ) , " settings_enable_messages " ) ;
new K Action( i18n ( " TDE language settings... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotKDELanguageSettings ( ) ) , actionCollection ( ) , " settings_language " ) ;
new TDE Action( i18n ( " Enable all messages " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotEnableMessages ( ) ) , actionCollection ( ) , " settings_enable_messages " ) ;
new TDE Action( i18n ( " TDE language settings... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotKDELanguageSettings ( ) ) , actionCollection ( ) , " settings_language " ) ;
// *************
// The help menu
// *************
new K Action( i18n ( " &Show tip of the day " ) , " idea " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowTipOfTheDay ( ) ) , actionCollection ( ) , " help_show_tip " ) ;
new TDE Action( i18n ( " &Show tip of the day " ) , " idea " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowTipOfTheDay ( ) ) , actionCollection ( ) , " help_show_tip " ) ;
// ***************************
// Actions w/o main menu entry
// ***************************
new K Action( i18n ( " New transaction button " , " New " ) , " filenew " , TQKeySequence ( TQt : : CTRL | TQt : : Key_Insert ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsNew ( ) ) , actionCollection ( ) , " transaction_new " ) ;
new TDE Action( i18n ( " New transaction button " , " New " ) , " filenew " , TQKeySequence ( TQt : : CTRL | TQt : : Key_Insert ) , TQT_TQOBJECT ( this ) , TQT_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 K Action( i18n ( " Edit transaction button " , " Edit " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsEdit ( ) ) , actionCollection ( ) , " transaction_edit " ) ;
p = new TDE Action( i18n ( " Edit transaction button " , " Edit " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsEdit ( ) ) , actionCollection ( ) , " transaction_edit " ) ;
p - > setShortcutConfigurable ( false ) ;
p = new K Action( i18n ( " Enter transaction " , " Enter " ) , " button_ok " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsEnter ( ) ) , actionCollection ( ) , " transaction_enter " ) ;
p = new TDE Action( i18n ( " Enter transaction " , " Enter " ) , " button_ok " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsEnter ( ) ) , actionCollection ( ) , " transaction_enter " ) ;
p - > setShortcutConfigurable ( false ) ;
new K Action( i18n ( " Edit split button " , " Edit splits " ) , " split_transaction " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsEditSplits ( ) ) , actionCollection ( ) , " transaction_editsplits " ) ;
new K Action( i18n ( " Cancel transaction edit " , " Cancel " ) , " button_cancel " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsCancel ( ) ) , actionCollection ( ) , " transaction_cancel " ) ;
new K Action( i18n ( " Delete transaction " , " Delete " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsDelete ( ) ) , actionCollection ( ) , " transaction_delete " ) ;
new K Action( i18n ( " Duplicate transaction " , " Duplicate " ) , " editcopy " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionDuplicate ( ) ) , actionCollection ( ) , " transaction_duplicate " ) ;
new K Action( i18n ( " Button text for match transaction " , " Match " ) , " stop " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionMatch ( ) ) , actionCollection ( ) , " transaction_match " ) ;
new K Action( i18n ( " Accept 'imported' and 'matched' transaction " , " Accept " ) , " apply " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsAccept ( ) ) , actionCollection ( ) , " transaction_accept " ) ;
new K Action( i18n ( " Toggle reconciliation flag " , " Toggle " ) , 0 , K Shortcut( " Ctrl+Space " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleReconciliationFlag ( ) ) , actionCollection ( ) , " transaction_mark_toggle " ) ;
new K Action( i18n ( " Mark transaction cleared " , " Cleared " ) , 0 , K Shortcut( " Ctrl+Alt+Space " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotMarkTransactionCleared ( ) ) , actionCollection ( ) , " transaction_mark_cleared " ) ;
new K Action( i18n ( " Mark transaction reconciled " , " Reconciled " ) , " " , K Shortcut( " Ctrl+Shift+Space " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotMarkTransactionReconciled ( ) ) , actionCollection ( ) , " transaction_mark_reconciled " ) ;
new K Action( i18n ( " Mark transaction not reconciled " , " Not reconciled " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotMarkTransactionNotReconciled ( ) ) , actionCollection ( ) , " transaction_mark_notreconciled " ) ;
new K Action( i18n ( " Select all transactions " , " Select all " ) , 0 , K Shortcut( " Ctrl+A " ) , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( selectAllTransactions ( ) ) , actionCollection ( ) , " transaction_select_all " ) ;
new K Action( i18n ( " Goto account " ) , " goto " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionGotoAccount ( ) ) , actionCollection ( ) , " transaction_goto_account " ) ;
new K Action( i18n ( " Goto payee " ) , " goto " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionGotoPayee ( ) ) , actionCollection ( ) , " transaction_goto_payee " ) ;
new K Action( i18n ( " Create scheduled transaction... " ) , " bookmark_add " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionCreateSchedule ( ) ) , actionCollection ( ) , " transaction_create_schedule " ) ;
new K Action( i18n ( " Assign next number " ) , " " , K Shortcut( " Ctrl+Shift+N " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionAssignNumber ( ) ) , actionCollection ( ) , " transaction_assign_number " ) ;
new K Action( i18n ( " Combine transactions " , " Combine " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionCombine ( ) ) , actionCollection ( ) , " transaction_combine " ) ;
new K Action( i18n ( " New investment " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInvestmentNew ( ) ) , actionCollection ( ) , " investment_new " ) ;
new K Action( i18n ( " Edit investment... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInvestmentEdit ( ) ) , actionCollection ( ) , " investment_edit " ) ;
new K Action( i18n ( " Delete investment... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInvestmentDelete ( ) ) , actionCollection ( ) , " investment_delete " ) ;
new K Action( i18n ( " Online price update... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOnlinePriceUpdate ( ) ) , actionCollection ( ) , " investment_online_price_update " ) ;
new K Action( i18n ( " Manual price update... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotManualPriceUpdate ( ) ) , actionCollection ( ) , " investment_manual_price_update " ) ;
new K Action( i18n ( " New scheduled transaction... " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleNew ( ) ) , actionCollection ( ) , " schedule_new " ) ;
new K Action( i18n ( " Edit scheduled transaction... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleEdit ( ) ) , actionCollection ( ) , " schedule_edit " ) ;
new K Action( i18n ( " Delete scheduled transaction... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleDelete ( ) ) , actionCollection ( ) , " schedule_delete " ) ;
new K Action( i18n ( " Duplicate scheduled transaction " ) , " editcopy " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleDuplicate ( ) ) , actionCollection ( ) , " schedule_duplicate " ) ;
new K Action( i18n ( " Enter next transaction... " ) , " key_enter " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleEnter ( ) ) , actionCollection ( ) , " schedule_enter " ) ;
new K Action( i18n ( " Skip next transaction... " ) , " player_fwd " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleSkip ( ) ) , actionCollection ( ) , " schedule_skip " ) ;
new K Action( i18n ( " New payee " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPayeeNew ( ) ) , actionCollection ( ) , " payee_new " ) ;
new K Action( i18n ( " Rename payee " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( payeeRename ( ) ) , actionCollection ( ) , " payee_rename " ) ;
new K Action( i18n ( " Delete payee " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPayeeDelete ( ) ) , actionCollection ( ) , " payee_delete " ) ;
new K Action( i18n ( " New budget " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetNew ( ) ) , actionCollection ( ) , " budget_new " ) ;
new K Action( i18n ( " Rename budget " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( budgetRename ( ) ) , actionCollection ( ) , " budget_rename " ) ;
new K Action( i18n ( " Delete budget " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetDelete ( ) ) , actionCollection ( ) , " budget_delete " ) ;
new K Action( i18n ( " Copy budget " ) , " editcopy " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetCopy ( ) ) , actionCollection ( ) , " budget_copy " ) ;
new K Action( i18n ( " Change budget year " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetChangeYear ( ) ) , actionCollection ( ) , " budget_change_year " ) ;
new K Action( i18n ( " Budget based on forecast " , " Forecast " ) , " forcast " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetForecast ( ) ) , actionCollection ( ) , " budget_forecast " ) ;
new TDE Action( i18n ( " Edit split button " , " Edit splits " ) , " split_transaction " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsEditSplits ( ) ) , actionCollection ( ) , " transaction_editsplits " ) ;
new TDE Action( i18n ( " Cancel transaction edit " , " Cancel " ) , " button_cancel " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsCancel ( ) ) , actionCollection ( ) , " transaction_cancel " ) ;
new TDE Action( i18n ( " Delete transaction " , " Delete " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsDelete ( ) ) , actionCollection ( ) , " transaction_delete " ) ;
new TDE Action( i18n ( " Duplicate transaction " , " Duplicate " ) , " editcopy " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionDuplicate ( ) ) , actionCollection ( ) , " transaction_duplicate " ) ;
new TDE Action( i18n ( " Button text for match transaction " , " Match " ) , " stop " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionMatch ( ) ) , actionCollection ( ) , " transaction_match " ) ;
new TDE Action( i18n ( " Accept 'imported' and 'matched' transaction " , " Accept " ) , " apply " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionsAccept ( ) ) , actionCollection ( ) , " transaction_accept " ) ;
new TDE Action( i18n ( " Toggle reconciliation flag " , " Toggle " ) , 0 , TDE Shortcut( " Ctrl+Space " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleReconciliationFlag ( ) ) , actionCollection ( ) , " transaction_mark_toggle " ) ;
new TDE Action( i18n ( " Mark transaction cleared " , " Cleared " ) , 0 , TDE Shortcut( " Ctrl+Alt+Space " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotMarkTransactionCleared ( ) ) , actionCollection ( ) , " transaction_mark_cleared " ) ;
new TDE Action( i18n ( " Mark transaction reconciled " , " Reconciled " ) , " " , TDE Shortcut( " Ctrl+Shift+Space " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotMarkTransactionReconciled ( ) ) , actionCollection ( ) , " transaction_mark_reconciled " ) ;
new TDE Action( i18n ( " Mark transaction not reconciled " , " Not reconciled " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotMarkTransactionNotReconciled ( ) ) , actionCollection ( ) , " transaction_mark_notreconciled " ) ;
new TDE Action( i18n ( " Select all transactions " , " Select all " ) , 0 , TDE Shortcut( " Ctrl+A " ) , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( selectAllTransactions ( ) ) , actionCollection ( ) , " transaction_select_all " ) ;
new TDE Action( i18n ( " Goto account " ) , " goto " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionGotoAccount ( ) ) , actionCollection ( ) , " transaction_goto_account " ) ;
new TDE Action( i18n ( " Goto payee " ) , " goto " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionGotoPayee ( ) ) , actionCollection ( ) , " transaction_goto_payee " ) ;
new TDE Action( i18n ( " Create scheduled transaction... " ) , " bookmark_add " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionCreateSchedule ( ) ) , actionCollection ( ) , " transaction_create_schedule " ) ;
new TDE Action( i18n ( " Assign next number " ) , " " , TDE Shortcut( " Ctrl+Shift+N " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionAssignNumber ( ) ) , actionCollection ( ) , " transaction_assign_number " ) ;
new TDE Action( i18n ( " Combine transactions " , " Combine " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotTransactionCombine ( ) ) , actionCollection ( ) , " transaction_combine " ) ;
new TDE Action( i18n ( " New investment " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInvestmentNew ( ) ) , actionCollection ( ) , " investment_new " ) ;
new TDE Action( i18n ( " Edit investment... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInvestmentEdit ( ) ) , actionCollection ( ) , " investment_edit " ) ;
new TDE Action( i18n ( " Delete investment... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotInvestmentDelete ( ) ) , actionCollection ( ) , " investment_delete " ) ;
new TDE Action( i18n ( " Online price update... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotOnlinePriceUpdate ( ) ) , actionCollection ( ) , " investment_online_price_update " ) ;
new TDE Action( i18n ( " Manual price update... " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotManualPriceUpdate ( ) ) , actionCollection ( ) , " investment_manual_price_update " ) ;
new TDE Action( i18n ( " New scheduled transaction... " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleNew ( ) ) , actionCollection ( ) , " schedule_new " ) ;
new TDE Action( i18n ( " Edit scheduled transaction... " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleEdit ( ) ) , actionCollection ( ) , " schedule_edit " ) ;
new TDE Action( i18n ( " Delete scheduled transaction... " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleDelete ( ) ) , actionCollection ( ) , " schedule_delete " ) ;
new TDE Action( i18n ( " Duplicate scheduled transaction " ) , " editcopy " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleDuplicate ( ) ) , actionCollection ( ) , " schedule_duplicate " ) ;
new TDE Action( i18n ( " Enter next transaction... " ) , " key_enter " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleEnter ( ) ) , actionCollection ( ) , " schedule_enter " ) ;
new TDE Action( i18n ( " Skip next transaction... " ) , " player_fwd " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotScheduleSkip ( ) ) , actionCollection ( ) , " schedule_skip " ) ;
new TDE Action( i18n ( " New payee " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPayeeNew ( ) ) , actionCollection ( ) , " payee_new " ) ;
new TDE Action( i18n ( " Rename payee " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( payeeRename ( ) ) , actionCollection ( ) , " payee_rename " ) ;
new TDE Action( i18n ( " Delete payee " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotPayeeDelete ( ) ) , actionCollection ( ) , " payee_delete " ) ;
new TDE Action( i18n ( " New budget " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetNew ( ) ) , actionCollection ( ) , " budget_new " ) ;
new TDE Action( i18n ( " Rename budget " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( budgetRename ( ) ) , actionCollection ( ) , " budget_rename " ) ;
new TDE Action( i18n ( " Delete budget " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetDelete ( ) ) , actionCollection ( ) , " budget_delete " ) ;
new TDE Action( i18n ( " Copy budget " ) , " editcopy " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetCopy ( ) ) , actionCollection ( ) , " budget_copy " ) ;
new TDE Action( i18n ( " Change budget year " ) , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetChangeYear ( ) ) , actionCollection ( ) , " budget_change_year " ) ;
new TDE Action( i18n ( " Budget based on forecast " , " Forecast " ) , " forcast " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotBudgetForecast ( ) ) , actionCollection ( ) , " budget_forecast " ) ;
// ************************
// Currency actions
// ************************
new K Action( i18n ( " New currency " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCurrencyNew ( ) ) , actionCollection ( ) , " currency_new " ) ;
new K Action( i18n ( " Rename currency " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( currencyRename ( ) ) , actionCollection ( ) , " currency_rename " ) ;
new K Action( i18n ( " Delete currency " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCurrencyDelete ( ) ) , actionCollection ( ) , " currency_delete " ) ;
new K Action( i18n ( " Select as base currency " ) , " kmymoney2 " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCurrencySetBase ( ) ) , actionCollection ( ) , " currency_setbase " ) ;
new TDE Action( i18n ( " New currency " ) , " filenew " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCurrencyNew ( ) ) , actionCollection ( ) , " currency_new " ) ;
new TDE Action( i18n ( " Rename currency " ) , " edit " , 0 , TQT_TQOBJECT ( this ) , TQT_SIGNAL ( currencyRename ( ) ) , actionCollection ( ) , " currency_rename " ) ;
new TDE Action( i18n ( " Delete currency " ) , " delete " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCurrencyDelete ( ) ) , actionCollection ( ) , " currency_delete " ) ;
new TDE Action( i18n ( " Select as base currency " ) , " kmymoney2 " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotCurrencySetBase ( ) ) , actionCollection ( ) , " currency_setbase " ) ;
# ifdef KMM_DEBUG
new K Action( " Test new feature " , " " , K Shortcut( " Ctrl+G " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotNewFeature ( ) ) , actionCollection ( ) , " new_user_wizard " ) ;
new K ToggleAction( " Debug Traces " , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleTraces ( ) ) , actionCollection ( ) , " debug_traces " ) ;
new K ToggleAction( " Debug Timers " , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleTimers ( ) ) , actionCollection ( ) , " debug_timers " ) ;
new TDE Action( " Test new feature " , " " , TDE Shortcut( " Ctrl+G " ) , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotNewFeature ( ) ) , actionCollection ( ) , " new_user_wizard " ) ;
new TDE ToggleAction( " Debug Traces " , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleTraces ( ) ) , actionCollection ( ) , " debug_traces " ) ;
new TDE ToggleAction( " Debug Timers " , " " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotToggleTimers ( ) ) , actionCollection ( ) , " debug_timers " ) ;
# endif
// ************************
// Currently unused actions
// ************************
#if 0
new K ToolBarPopupAction( i18n ( " View back " ) , " back " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowPreviousView ( ) ) , actionCollection ( ) , " go_back " ) ;
new K ToolBarPopupAction( i18n ( " View forward " ) , " forward " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowNextView ( ) ) , actionCollection ( ) , " go_forward " ) ;
new TDE ToolBarPopupAction( i18n ( " View back " ) , " back " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowPreviousView ( ) ) , actionCollection ( ) , " go_back " ) ;
new TDE ToolBarPopupAction( i18n ( " View forward " ) , " forward " , 0 , TQT_TQOBJECT ( this ) , TQT_SLOT ( slotShowNextView ( ) ) , actionCollection ( ) , " go_forward " ) ;
action ( " go_back " ) - > setEnabled ( false ) ;
action ( " go_forward " ) - > setEnabled ( false ) ;
@ -502,19 +502,19 @@ void KMyMoney2App::initActions(void)
void KMyMoney2App : : dumpActions ( void ) const
{
K ActionPtrList list = actionCollection ( ) - > actions ( ) ;
K ActionPtrList: : const_iterator it ;
TDE ActionPtrList list = actionCollection ( ) - > actions ( ) ;
TDE ActionPtrList: : const_iterator it ;
for ( it = list . begin ( ) ; it ! = list . end ( ) ; + + it ) {
std : : cout < < ( * it ) - > name ( ) < < " : " < < ( * it ) - > text ( ) < < std : : endl ;
}
}
K Action* KMyMoney2App : : action ( const TQString & actionName ) const
TDE Action* KMyMoney2App : : action ( const TQString & actionName ) const
{
static K Shortcut shortcut ( " " ) ;
static K Action dummyAction ( TQString ( " Dummy " ) , TQString ( ) , shortcut , TQT_TQOBJECT_CONST ( this ) , 0 , static_cast < K ActionCollection* > ( 0 ) , " " ) ;
static TDE Shortcut shortcut ( " " ) ;
static TDE Action dummyAction ( TQString ( " Dummy " ) , TQString ( ) , shortcut , TQT_TQOBJECT_CONST ( this ) , 0 , static_cast < TDE ActionCollection* > ( 0 ) , " " ) ;
K Action* p = actionCollection ( ) - > action ( actionName . latin1 ( ) ) ;
TDE Action* p = actionCollection ( ) - > action ( actionName . latin1 ( ) ) ;
if ( p )
return p ;
@ -522,17 +522,17 @@ KAction* KMyMoney2App::action(const TQString& actionName) const
return & dummyAction ;
}
K ToggleAction* KMyMoney2App : : toggleAction ( const TQString & actionName ) const
TDE ToggleAction* KMyMoney2App : : toggleAction ( const TQString & actionName ) const
{
static K Shortcut shortcut ( " " ) ;
static K ToggleAction dummyAction ( TQString ( " Dummy " ) , TQString ( ) , shortcut , TQT_TQOBJECT_CONST ( this ) , 0 , static_cast < K ActionCollection* > ( 0 ) , " " ) ;
static TDE Shortcut shortcut ( " " ) ;
static TDE ToggleAction dummyAction ( TQString ( " Dummy " ) , TQString ( ) , shortcut , TQT_TQOBJECT_CONST ( this ) , 0 , static_cast < TDE ActionCollection* > ( 0 ) , " " ) ;
K Action* q = actionCollection ( ) - > action ( actionName . latin1 ( ) ) ;
TDE Action* q = actionCollection ( ) - > action ( actionName . latin1 ( ) ) ;
if ( q ) {
KToggleAction* p = dynamic_cast < K ToggleAction* > ( q ) ;
TDEToggleAction* p = dynamic_cast < TDE ToggleAction* > ( q ) ;
if ( ! p ) {
tqWarning ( " Action '%s' is not of type K ToggleAction" , actionName . latin1 ( ) ) ;
tqWarning ( " Action '%s' is not of type TDE ToggleAction" , actionName . latin1 ( ) ) ;
p = & dummyAction ;
}
return p ;
@ -571,7 +571,7 @@ void KMyMoney2App::saveOptions(void)
// config->writeEntry("Show Statusbar", toggleAction("options_show_statusbar")->isChecked());
// toolBar("mainToolBar")->saveSettings(config, "mainToolBar");
dynamic_cast < K RecentFilesAction* > ( action ( " file_open_recent " ) ) - > saveEntries ( config , " Recent Files " ) ;
dynamic_cast < TDE RecentFilesAction* > ( action ( " file_open_recent " ) ) - > saveEntries ( config , " Recent Files " ) ;
}
@ -583,7 +583,7 @@ void KMyMoney2App::readOptions(void)
toggleAction ( " view_hide_unused_categories " ) - > setChecked ( KMyMoneyGlobalSettings : : hideUnusedCategory ( ) ) ;
// initialize the recent file list
KRecentFilesAction * p = dynamic_cast < K RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
TDERecentFilesAction * p = dynamic_cast < TDE RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
if ( p )
p - > loadEntries ( config , " Recent Files " ) ;
@ -603,7 +603,7 @@ void KMyMoney2App::readOptions(void)
void KMyMoney2App : : resizeEvent ( TQResizeEvent * ev )
{
K MainWindow: : resizeEvent ( ev ) ;
TDE MainWindow: : resizeEvent ( ev ) ;
updateCaption ( true ) ;
}
@ -827,7 +827,7 @@ void KMyMoney2App::slotFileNew(void)
slotFileSave ( ) ;
// now keep the filename in the recent files used list
KRecentFilesAction * p = dynamic_cast < K RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
TDERecentFilesAction * p = dynamic_cast < TDE RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
if ( p )
p - > addURL ( m_fileName ) ;
writeLastUsedFile ( m_fileName . url ( ) ) ;
@ -887,7 +887,7 @@ void KMyMoney2App::slotFileOpen(void)
void KMyMoney2App : : slotOpenDatabase ( void )
{
KMSTATUS ( i18n ( " Open a file. " ) ) ;
K SelectDatabaseDlg dialog ;
TDE SelectDatabaseDlg dialog ;
dialog . setMode ( IO_ReadWrite ) ;
if ( dialog . exec ( ) = = TQDialog : : Accepted ) {
@ -958,7 +958,7 @@ void KMyMoney2App::slotFileOpenRecent(const KURL& url)
KURL dburl = url ;
// check if a password is needed. it may be if the URL came from the last/recent file list
if ( ( dburl . queryItem ( " secure " ) = = " yes " ) & & dburl . pass ( ) . isEmpty ( ) ) {
K SelectDatabaseDlg dialog ( dburl ) ;
TDE SelectDatabaseDlg dialog ( dburl ) ;
dialog . setMode ( IO_ReadWrite ) ;
if ( dialog . exec ( ) = = TQDialog : : Accepted ) dburl = dialog . selectedURL ( ) ;
@ -968,7 +968,7 @@ void KMyMoney2App::slotFileOpenRecent(const KURL& url)
if ( myMoneyView - > readFile ( dburl ) ) {
if ( ( myMoneyView - > isNativeFile ( ) ) ) {
m_fileName = dburl ;
KRecentFilesAction * p = dynamic_cast < K RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
TDERecentFilesAction * p = dynamic_cast < TDE RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
if ( p )
p - > addURL ( dburl . prettyURL ( 0 , KURL : : StripFileProtocol ) ) ;
writeLastUsedFile ( dburl . prettyURL ( 0 , KURL : : StripFileProtocol ) ) ;
@ -1148,7 +1148,7 @@ bool KMyMoney2App::slotFileSaveAs(void)
}
if ( okToWriteFile ( newName ) ) {
KRecentFilesAction * p = dynamic_cast < K RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
TDERecentFilesAction * p = dynamic_cast < TDE RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
if ( p )
p - > addURL ( newName ) ;
@ -1198,7 +1198,7 @@ bool KMyMoney2App::slotSaveAsDatabase(void)
if ( myMoneyView - > isDatabase ( ) )
dynamic_cast < IMyMoneySerialize * > ( MyMoneyFile : : instance ( ) - > storage ( ) ) - > fillStorage ( ) ;
KMSTATUS ( i18n ( " Saving file to database... " ) ) ;
K SelectDatabaseDlg dialog ;
TDE SelectDatabaseDlg dialog ;
dialog . setMode ( IO_WriteOnly ) ;
KURL oldUrl = m_fileName . isEmpty ( ) ? lastOpenedURL ( ) : m_fileName ;
KURL url = oldUrl ;
@ -1217,7 +1217,7 @@ bool KMyMoney2App::slotSaveAsDatabase(void)
}
}
if ( rc ) {
KRecentFilesAction * p = dynamic_cast < K RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
TDERecentFilesAction * p = dynamic_cast < TDE RecentFilesAction* > ( action ( " file_open_recent " ) ) ;
if ( p )
p - > addURL ( url . prettyURL ( 0 , KURL : : StripFileProtocol ) ) ;
writeLastUsedFile ( url . prettyURL ( 0 , KURL : : StripFileProtocol ) ) ;
@ -1288,7 +1288,7 @@ void KMyMoney2App::slotFileQuit(void)
// don't modify the status message here as this will prevent quit from working!!
// See the beginning of queryClose() and isReady() why. Thomas Baumgart 2005-10-17
K MainWindow* w = 0 ;
TDE MainWindow* w = 0 ;
if ( memberList ) {
@ -6094,7 +6094,7 @@ void KMyMoney2App::slotAccountMapOnline(void)
for ( it_p = m_onlinePlugins . begin ( ) ; it_p ! = m_onlinePlugins . end ( ) ; + + it_p ) {
TQStringList protocolList ;
( * it_p ) - > protocols ( protocolList ) ;
new K ListViewItem( dlg . m_listView , it_p . key ( ) , " Loaded " , protocolList . join ( " , " ) ) ;
new TDE ListViewItem( dlg . m_listView , it_p . key ( ) , " Loaded " , protocolList . join ( " , " ) ) ;
}
if ( dlg . exec ( ) = = TQDialog : : Accepted ) {
if ( dlg . m_listView - > selectedItem ( ) ) {