GnuCash 2.4.99
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  * 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 
00080 void gnc_ui_new_account_with_types (QofBook *book,
00081                                     GList *valid_types);
00094 Account * gnc_ui_new_accounts_from_name_window (const char *name);
00095 
00109 /* Note that the caller owns the valid_types list */
00110 Account * gnc_ui_new_accounts_from_name_window_with_types (const char *name,
00111         GList *valid_types);
00112 
00113 
00132 Account * gnc_ui_new_accounts_from_name_with_defaults (const char *name,
00133         GList *valid_types,
00134         const gnc_commodity * default_commodity,
00135         Account * parent);
00136 
00137 /*
00138  * register a callback that get's called when the account has changed
00139  * so significantly that you need to destroy yourself.  In particular
00140  * this is used by the ledger display to destroy ledgers when the
00141  * account type has changed.
00142  */
00143 void gnc_ui_register_account_destroy_callback (void (*cb)(Account *));
00146 void gnc_account_renumber_create_dialog (GtkWidget *window, Account *account);
00147 
00151 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines