25 #ifndef GNC_LEDGER_DISPLAY_H 26 #define GNC_LEDGER_DISPLAY_H 54 typedef void (*GNCLedgerDisplayDestroy) (GNCLedgerDisplay* ld);
55 typedef GtkWidget* (*GNCLedgerDisplayGetParent) (GNCLedgerDisplay* ld);
56 typedef void (*GNCLedgerDisplaySetHelp) (GNCLedgerDisplay* ld,
57 const char* help_str);
64 } GNCLedgerDisplayType;
70 GNCLedgerDisplayType gnc_ledger_display_type (GNCLedgerDisplay* ld);
75 gpointer gnc_ledger_display_get_user_data (GNCLedgerDisplay* ld);
79 GNCLedgerDisplayDestroy destroy,
80 GNCLedgerDisplayGetParent get_parent);
94 gboolean mismatched_commodities);
127 void gnc_ledger_display_refresh_by_split_register (SplitRegister* reg);
void gnc_ledger_display_close(GNCLedgerDisplay *ledger_display)
close the window
void gnc_ledger_display_set_focus(GNCLedgerDisplay *ld, gboolean focus)
Mark the ledger as being in focus (refresh immediately) or not.
void gnc_ledger_display_refresh(GNCLedgerDisplay *ledger_display)
redisplay/redraw only the indicated window.
gboolean gnc_ledger_display_default_double_line(GNCLedgerDisplay *gld)
Returns a boolean of whether this display should be single or double lined mode by default...
Account * gnc_ledger_display_leader(GNCLedgerDisplay *ld)
returns the 'lead' account of a ledger display, or NULL if none.
void gnc_ledger_display_set_query(GNCLedgerDisplay *ledger_display, Query *q)
Set the query used for a register.
Query * gnc_ledger_display_get_query(GNCLedgerDisplay *ld)
return the query associated with a ledger
GNCLedgerDisplay * gnc_ledger_display_subaccounts(Account *account, gboolean mismatched_commodities)
opens up a register window to display the parent account and all of its children. ...
Account handling public routines.
void gnc_ledger_display_set_handlers(GNCLedgerDisplay *ld, GNCLedgerDisplayDestroy destroy, GNCLedgerDisplayGetParent get_parent)
set the handlers used by the ledger display
The GNCLedgerDisplay struct describes a single register/ledger instance.
GtkWidget * gnc_ledger_display_get_parent(GNCLedgerDisplay *ld)
Returns the parent of a given ledger display.
API for checkbook register display area.
GNCLedgerDisplay * gnc_ledger_display_template_gl(char *id)
Displays a template ledger.
GNCLedgerDisplay * gnc_ledger_display_simple(Account *account)
opens up a register window to display a single account
GNCLedgerDisplay * gnc_ledger_display_find_by_query(Query *q)
If the given ledger display still exists, return it.
GNCLedgerDisplay * gnc_ledger_display_query(Query *query, SplitRegisterType type, SplitRegisterStyle style)
display a general ledger for an arbitrary query
GNCLedgerDisplay * gnc_ledger_display_gl(void)
opens up a general ledger window
SplitRegister * gnc_ledger_display_get_split_register(GNCLedgerDisplay *ld)
return the split register associated with a ledger display
SplitRegisterType
Register types.
Scheduled Transactions public handling routines.
API for Transactions and Splits (journal entries)
void gnc_ledger_display_set_user_data(GNCLedgerDisplay *ld, gpointer user_data)
get and set the user data associated with the ledger
SplitRegisterStyle
Register styles.