00001 /********************************************************************\ 00002 * dialog-account.h -- window for creating and editing accounts for * 00003 * GnuCash * 00004 * Copyright (C) 2000 Dave Peticolas <petcola@cs.ucdavis.edu> * 00005 * * 00006 * This program is free software; you can redistribute it and/or * 00007 * modify it under the terms of the GNU General Public License as * 00008 * published by the Free Software Foundation; either version 2 of * 00009 * the License, or (at your option) any later version. * 00010 * * 00011 * This program is distributed in the hope that it will be useful, * 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00014 * GNU General Public License for more details. * 00015 * * 00016 * You should have received a copy of the GNU General Public License* 00017 * along with this program; if not, contact: * 00018 * * 00019 * Free Software Foundation Voice: +1-617-542-5942 * 00020 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00021 * Boston, MA 02110-1301, USA gnu@gnu.org * 00022 \********************************************************************/ 00023 00024 #ifndef DIALOG_ACCOUNT_H 00025 #define DIALOG_ACCOUNT_H 00026 00027 #include "Account.h" 00028 00051 void gnc_ui_edit_account_window (Account *account); 00052 00053 00066 void gnc_ui_new_account_window (QofBook *book, Account *parent); 00067 00068 00079 void gnc_ui_new_account_with_types (QofBook *book, 00080 GList *valid_types); 00093 Account * gnc_ui_new_accounts_from_name_window (const char *name); 00094 00108 /* Note that the caller owns the valid_types list */ 00109 Account * gnc_ui_new_accounts_from_name_window_with_types (const char *name, 00110 GList *valid_types); 00111 00112 00131 Account * gnc_ui_new_accounts_from_name_with_defaults (const char *name, 00132 GList *valid_types, 00133 gnc_commodity * default_commodity, 00134 Account * parent); 00135 00136 /* 00137 * register a callback that get's called when the account has changed 00138 * so significantly that you need to destroy yourself. In particular 00139 * this is used by the ledger display to destroy ledgers when the 00140 * account type has changed. 00141 */ 00142 void gnc_ui_register_account_destroy_callback (void (*cb)(Account *)); 00145 void gnc_account_renumber_create_dialog (GtkWidget *window, Account *account); 00146 00150 #endif
1.5.2