dialog-account.h

Go to the documentation of this file.
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  * 59 Temple Place - Suite 330        Fax:    +1-617-542-2652       *
00021  * Boston, MA  02111-1307,  USA       gnu@gnu.org                   *
00022 \********************************************************************/
00023 
00024 #ifndef DIALOG_ACCOUNT_H
00025 #define DIALOG_ACCOUNT_H
00026 
00027 #include "config.h"
00028 
00029 #include "Account.h"
00030 #include "Group.h"
00031 
00053 void gnc_ui_edit_account_window (Account *account);
00054 
00055 
00060 void gnc_ui_new_account_window (AccountGroup *group);
00061 
00062 
00072 void gnc_ui_new_account_window_with_default (AccountGroup *group,
00073                                              Account * parent);
00074 
00075 
00085 void gnc_ui_new_account_with_types (AccountGroup *unused,
00086                                     GList *valid_types);
00098 Account * gnc_ui_new_accounts_from_name_window (const char *name);
00099 
00113 /* Note that the caller owns the valid_types list */
00114 Account * gnc_ui_new_accounts_from_name_window_with_types (const char *name,
00115                                                            GList *valid_types);
00116 
00117 
00136 Account * gnc_ui_new_accounts_from_name_with_defaults (const char *name,
00137                                                        GList *valid_types,
00138                                                        gnc_commodity * default_commodity,
00139                                                        Account * parent);
00140 
00141 /*
00142  * register a callback that get's called when the account has changed
00143  * so significantly that you need to destroy yourself.  In particular
00144  * this is used by the ledger display to destroy ledgers when the
00145  * account type has changed.
00146  */
00147 void gnc_ui_register_account_destroy_callback (void (*cb)(Account *));
00152 #endif

Generated on Sun Sep 4 18:07:34 2005 for GnuCash by  doxygen 1.4.3-20050530