2001-08-16 19:44:01 -05:00
|
|
|
|
|
|
|
(define-module (gnucash app-utils))
|
|
|
|
(use-modules (g-wrapped gw-app-utils))
|
|
|
|
(use-modules (srfi srfi-1))
|
2001-12-04 16:44:41 -06:00
|
|
|
(use-modules (gnucash main) (g-wrapped gw-gnc)) ;; FIXME: delete after we finish modularizing.
|
2001-10-10 18:21:58 -05:00
|
|
|
(use-modules (gnucash gnc-module))
|
2001-08-16 19:44:01 -05:00
|
|
|
|
2001-10-10 18:21:58 -05:00
|
|
|
(gnc:module-load "gnucash/engine" 0)
|
2001-08-16 19:44:01 -05:00
|
|
|
|
|
|
|
;; c-interface.scm
|
|
|
|
(export gnc:error->string)
|
|
|
|
(export gnc:gettext)
|
|
|
|
(export gnc:_)
|
|
|
|
(export _)
|
|
|
|
(export-syntax N_)
|
|
|
|
(export gnc:make-string-database)
|
|
|
|
|
2005-11-01 21:32:36 -06:00
|
|
|
;; options.scm
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:make-option)
|
|
|
|
(export gnc:option-section)
|
|
|
|
(export gnc:option-name)
|
|
|
|
(export gnc:option-sort-tag)
|
|
|
|
(export gnc:option-type)
|
|
|
|
(export gnc:option-documentation)
|
|
|
|
(export gnc:option-getter)
|
|
|
|
(export gnc:option-setter)
|
|
|
|
(export gnc:option-default-getter)
|
|
|
|
(export gnc:option-generate-restore-form)
|
2002-07-07 15:52:40 -05:00
|
|
|
(export gnc:option-scm->kvp)
|
|
|
|
(export gnc:option-kvp->scm)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:option-value-validator)
|
|
|
|
(export gnc:option-data)
|
|
|
|
(export gnc:option-data-fns)
|
|
|
|
(export gnc:option-set-changed-callback)
|
|
|
|
(export gnc:option-strings-getter)
|
|
|
|
(export gnc:option-widget-changed-proc)
|
|
|
|
(export gnc:option-value)
|
|
|
|
(export gnc:option-set-value)
|
|
|
|
(export gnc:option-index-get-name)
|
|
|
|
(export gnc:option-index-get-description)
|
|
|
|
(export gnc:option-index-get-value)
|
|
|
|
(export gnc:option-value-get-index)
|
|
|
|
(export gnc:option-number-of-indices)
|
|
|
|
(export gnc:option-default-value)
|
|
|
|
(export gnc:restore-form-generator)
|
|
|
|
(export gnc:value->string)
|
|
|
|
(export gnc:make-string-option)
|
|
|
|
(export gnc:make-text-option)
|
|
|
|
(export gnc:make-font-option)
|
|
|
|
(export gnc:make-currency-option)
|
|
|
|
(export gnc:make-commodity-option)
|
|
|
|
(export gnc:make-simple-boolean-option)
|
|
|
|
(export gnc:make-complex-boolean-option)
|
|
|
|
(export gnc:make-pixmap-option)
|
|
|
|
(export gnc:make-date-option)
|
2005-11-01 21:32:36 -06:00
|
|
|
(export gnc:make-budget-option)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:get-rd-option-data-subtype)
|
|
|
|
(export gnc:get-rd-option-data-show-time)
|
|
|
|
(export gnc:get-rd-option-data-rd-list)
|
|
|
|
(export gnc:date-option-get-subtype)
|
|
|
|
(export gnc:date-option-show-time?)
|
|
|
|
(export gnc:date-option-value-type)
|
|
|
|
(export gnc:date-option-absolute-time)
|
|
|
|
(export gnc:date-option-relative-time)
|
|
|
|
(export gnc:make-account-list-option)
|
2002-07-02 19:47:02 -05:00
|
|
|
(export gnc:make-account-list-limited-option)
|
2002-10-19 18:14:09 -05:00
|
|
|
(export gnc:make-account-sel-option)
|
|
|
|
(export gnc:make-account-sel-limited-option)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:multichoice-list-lookup)
|
|
|
|
(export gnc:make-multichoice-option)
|
|
|
|
(export gnc:make-multichoice-callback-option)
|
2002-05-27 00:24:41 -05:00
|
|
|
(export gnc:make-radiobutton-option)
|
|
|
|
(export gnc:make-radiobutton-callback-option)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:make-list-option)
|
2004-01-15 17:41:53 -06:00
|
|
|
(export gnc:options-make-end-date!)
|
|
|
|
(export gnc:options-make-date-interval!)
|
2001-08-16 19:44:01 -05:00
|
|
|
|
|
|
|
(export gnc:make-number-range-option)
|
|
|
|
(export gnc:make-internal-option)
|
|
|
|
(export gnc:make-query-option)
|
|
|
|
(export gnc:make-color-option)
|
2003-06-08 22:42:52 -05:00
|
|
|
(export gnc:make-dateformat-option)
|
|
|
|
(export gnc:dateformat-get-format)
|
2001-08-16 19:44:01 -05:00
|
|
|
|
|
|
|
(export gnc:color->html)
|
|
|
|
(export gnc:color-option->html)
|
|
|
|
(export gnc:color-option->hex-string)
|
|
|
|
(export gnc:new-options)
|
|
|
|
|
|
|
|
(export gnc:register-option)
|
|
|
|
(export gnc:options-register-callback)
|
|
|
|
(export gnc:options-register-c-callback)
|
|
|
|
(export gnc:options-unregister-callback-id)
|
|
|
|
(export gnc:options-for-each)
|
|
|
|
(export gnc:options-for-each-general)
|
|
|
|
(export gnc:lookup-option)
|
|
|
|
(export gnc:generate-restore-forms)
|
2002-07-07 15:52:40 -05:00
|
|
|
(export gnc:options-scm->kvp)
|
|
|
|
(export gnc:options-kvp->scm)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:options-clear-changes)
|
|
|
|
(export gnc:options-touch)
|
|
|
|
(export gnc:options-run-callbacks)
|
|
|
|
(export gnc:options-set-default-section)
|
|
|
|
(export gnc:options-get-default-section)
|
|
|
|
(export gnc:options-copy-values)
|
|
|
|
(export gnc:send-options)
|
|
|
|
(export gnc:save-options)
|
|
|
|
|
2001-09-20 04:18:50 -05:00
|
|
|
;; config-var.scm
|
|
|
|
(export gnc:make-config-var)
|
|
|
|
(export gnc:config-var-description-get)
|
|
|
|
(export gnc:config-var-action-func-get)
|
|
|
|
(export gnc:config-var-equality-func-get)
|
|
|
|
(export gnc:config-var-modified?)
|
|
|
|
(export gnc:config-var-modified?-set!)
|
|
|
|
(export gnc:config-var-default-value-get)
|
|
|
|
(export gnc:config-var-default-value-set!)
|
|
|
|
(export gnc:config-var-value-get)
|
|
|
|
(export gnc:config-var-value-set!)
|
|
|
|
(export gnc:config-var-value-is-default?)
|
|
|
|
|
|
|
|
;; prefs.scm
|
|
|
|
(export gnc:get-debit-string)
|
|
|
|
(export gnc:get-credit-string)
|
2005-11-01 21:32:36 -06:00
|
|
|
|
|
|
|
;; gw-engine-spec.scm
|
|
|
|
(re-export gnc:*save-options-hook*)
|
2001-09-20 04:18:50 -05:00
|
|
|
|
2001-08-16 19:44:01 -05:00
|
|
|
;; date-utilities.scm
|
|
|
|
|
|
|
|
(export gnc:reldate-list)
|
|
|
|
(export gnc:timepair->secs)
|
|
|
|
(export gnc:secs->timepair)
|
|
|
|
(export gnc:timepair->date)
|
|
|
|
(export gnc:date->timepair)
|
|
|
|
(export gnc:date-get-year)
|
2005-11-01 21:32:36 -06:00
|
|
|
(export gnc:date-get-quarter)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:date-get-month-day)
|
|
|
|
(export gnc:date-get-month)
|
|
|
|
(export gnc:date-get-week-day)
|
|
|
|
(export gnc:date-get-year-day)
|
|
|
|
(export gnc:timepair-get-year)
|
2005-11-01 21:32:36 -06:00
|
|
|
(export gnc:timepair-get-quarter)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:timepair-get-month-day)
|
|
|
|
(export gnc:timepair-get-month)
|
|
|
|
(export gnc:timepair-get-week-day)
|
|
|
|
(export gnc:timepair-get-year-day)
|
2005-11-01 21:32:36 -06:00
|
|
|
(export gnc:date-get-year-string)
|
|
|
|
(export gnc:date-get-quarter-string)
|
|
|
|
(export gnc:date-get-quarter-year-string)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:date-get-month-string)
|
2005-11-01 21:32:36 -06:00
|
|
|
(export gnc:date-get-month-year-string)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:leap-year?)
|
|
|
|
(export gnc:days-in-year)
|
|
|
|
(export gnc:days-in-month)
|
|
|
|
(export gnc:date-to-year-fraction)
|
|
|
|
(export gnc:date-year-delta)
|
|
|
|
(export gnc:date-to-month-fraction)
|
|
|
|
(export gnc:date-to-week-fraction)
|
|
|
|
(export gnc:date-to-day-fraction)
|
|
|
|
(export moddatek)
|
|
|
|
(export decdate)
|
|
|
|
(export incdate)
|
|
|
|
(export gnc:timepair-later)
|
|
|
|
(export gnc:timepair-lt)
|
|
|
|
(export gnc:timepair-earlier)
|
|
|
|
(export gnc:timepair-gt)
|
|
|
|
(export gnc:timepair-le)
|
|
|
|
(export gnc:timepair-ge)
|
|
|
|
(export gnc:timepair-eq)
|
|
|
|
(export gnc:timepair-earlier-date)
|
|
|
|
(export gnc:timepair-later-date)
|
|
|
|
(export gnc:timepair-le-date)
|
|
|
|
(export gnc:timepair-ge-date)
|
|
|
|
(export gnc:timepair-eq-date)
|
|
|
|
(export gnc:make-date-interval-list)
|
|
|
|
(export gnc:make-date-list)
|
|
|
|
(export make-zdate)
|
|
|
|
(export SecDelta )
|
|
|
|
(export DayDelta)
|
|
|
|
(export WeekDelta )
|
|
|
|
(export TwoWeekDelta)
|
|
|
|
(export MonthDelta)
|
|
|
|
(export QuarterDelta)
|
|
|
|
(export HalfYearDelta)
|
|
|
|
(export YearDelta )
|
|
|
|
(export ThirtyDayDelta)
|
|
|
|
(export NinetyDayDelta)
|
2001-09-27 21:52:22 -05:00
|
|
|
(export gnc:deltasym-to-delta)
|
2001-08-16 19:44:01 -05:00
|
|
|
(export gnc:timepair-delta)
|
|
|
|
(export gnc:time-elapsed)
|
|
|
|
(export gnc:timepair-start-day-time)
|
|
|
|
(export gnc:timepair-end-day-time)
|
|
|
|
(export gnc:timepair-previous-day)
|
|
|
|
(export gnc:reldate-get-symbol)
|
|
|
|
(export gnc:reldate-get-string)
|
|
|
|
(export gnc:reldate-get-desc)
|
|
|
|
(export gnc:reldate-get-fn)
|
|
|
|
(export gnc:make-reldate-hash)
|
|
|
|
(export gnc:reldate-string-db)
|
|
|
|
(export gnc:relative-date-values)
|
|
|
|
(export gnc:relative-date-hash)
|
|
|
|
(export gnc:get-absolute-from-relative-date)
|
|
|
|
(export gnc:get-relative-date-strings)
|
|
|
|
(export gnc:get-relative-date-string)
|
|
|
|
(export gnc:get-relative-date-desc)
|
|
|
|
(export gnc:get-start-cal-year)
|
|
|
|
(export gnc:get-end-cal-year)
|
|
|
|
(export gnc:get-start-prev-year)
|
|
|
|
(export gnc:get-end-prev-year)
|
|
|
|
(export gnc:get-start-cur-fin-year)
|
|
|
|
(export gnc:get-start-prev-fin-year)
|
|
|
|
(export gnc:get-end-prev-fin-year)
|
|
|
|
(export gnc:get-end-cur-fin-year)
|
|
|
|
(export gnc:get-start-this-month)
|
|
|
|
(export gnc:get-end-this-month)
|
|
|
|
(export gnc:get-start-prev-month)
|
|
|
|
(export gnc:get-end-prev-month)
|
|
|
|
(export gnc:get-start-current-quarter)
|
|
|
|
(export gnc:get-end-current-quarter)
|
|
|
|
(export gnc:get-start-prev-quarter)
|
|
|
|
(export gnc:get-end-prev-quarter)
|
|
|
|
(export gnc:get-today)
|
|
|
|
(export gnc:get-one-month-ago)
|
|
|
|
(export gnc:get-three-months-ago)
|
|
|
|
(export gnc:get-six-months-ago)
|
|
|
|
(export gnc:get-one-year-ago)
|
|
|
|
(export gnc:reldate-initialize)
|
|
|
|
|
|
|
|
;; hooks
|
2005-11-01 21:32:36 -06:00
|
|
|
(re-export gnc:hook-define)
|
|
|
|
(export gnc:hook-run-danglers) ;; from hooks.scm
|
|
|
|
(re-export gnc:hook-add-dangler)
|
|
|
|
(re-export gnc:hook-remove-dangler)
|
|
|
|
(re-export gnc:*startup-hook*)
|
|
|
|
(re-export gnc:*shutdown-hook*)
|
|
|
|
(re-export gnc:*ui-startup-hook*)
|
|
|
|
(re-export gnc:*ui-post-startup-hook*)
|
|
|
|
(re-export gnc:*ui-shutdown-hook*)
|
|
|
|
(re-export gnc:*book-opened-hook*)
|
|
|
|
(re-export gnc:*new-book-hook*)
|
|
|
|
(re-export gnc:*book-closed-hook*)
|
|
|
|
(re-export gnc:*report-hook*)
|
2001-08-16 19:44:01 -05:00
|
|
|
|
2001-10-25 03:10:51 -05:00
|
|
|
;; simple-obj
|
|
|
|
(export make-simple-class)
|
|
|
|
(export simple-obj-getter)
|
|
|
|
(export simple-obj-setter)
|
|
|
|
(export simple-obj-print)
|
|
|
|
(export simple-obj-to-list)
|
|
|
|
(export simple-obj-from-list)
|
|
|
|
(export make-simple-obj)
|
|
|
|
|
2002-07-08 09:52:55 -05:00
|
|
|
;; kvp-option-registry
|
|
|
|
(export gnc:register-kvp-option-generator)
|
|
|
|
(export gnc:unregister-kvp-option-generator)
|
|
|
|
(export gnc:make-kvp-options)
|
2003-01-18 17:36:53 -06:00
|
|
|
(export gnc:*kvp-option-path*)
|
2002-07-08 09:52:55 -05:00
|
|
|
|
2001-08-16 19:44:01 -05:00
|
|
|
(load-from-path "c-interface.scm")
|
2001-09-20 04:18:50 -05:00
|
|
|
(load-from-path "config-var.scm")
|
2001-08-16 19:44:01 -05:00
|
|
|
(load-from-path "options.scm")
|
2002-07-08 09:52:55 -05:00
|
|
|
(load-from-path "kvp-option-registry.scm")
|
2001-08-16 19:44:01 -05:00
|
|
|
(load-from-path "hooks.scm")
|
2001-09-20 04:31:47 -05:00
|
|
|
(load-from-path "prefs.scm")
|
2001-08-16 19:44:01 -05:00
|
|
|
(load-from-path "date-utilities.scm")
|
2001-10-25 03:10:51 -05:00
|
|
|
(load-from-path "simple-obj.scm")
|
2001-09-20 04:18:50 -05:00
|
|
|
|