|
GnuCash 038f90a+
|
The PriceCell object implements a cell handler that stores a single double-precision value, and has the smarts to display it as a price/amount as well as accepting monetary or general numeric input. More...
#include <pricecell.h>
Data Fields | |
| BasicCell | cell |
| gnc_numeric | amount |
| int | fraction |
| the amount associated with this cell | |
| gboolean | blank_zero |
| fraction used for rounding, if 0 no rounding | |
| GNCPrintAmountInfo | print_info |
| controls printing of zero values | |
| gboolean | need_to_parse |
| amount printing context | |
The PriceCell object implements a cell handler that stores a single double-precision value, and has the smarts to display it as a price/amount as well as accepting monetary or general numeric input.
By default, the PriceCell is an input/output cell.
On output, it will display negative values in red text. hack alert – the actual color (red) should be user configurable.
Definition at line 54 of file pricecell.h.
| gnc_numeric PriceCell::amount |
Definition at line 57 of file pricecell.h.
| gboolean PriceCell::blank_zero |
fraction used for rounding, if 0 no rounding
Definition at line 59 of file pricecell.h.
| BasicCell PriceCell::cell |
Definition at line 56 of file pricecell.h.
| int PriceCell::fraction |
the amount associated with this cell
Definition at line 58 of file pricecell.h.
| gboolean PriceCell::need_to_parse |
amount printing context
Definition at line 61 of file pricecell.h.
| GNCPrintAmountInfo PriceCell::print_info |
controls printing of zero values
Definition at line 60 of file pricecell.h.