mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/report/report-system/report.scm: move a gnome function
to report-gnome module * src/report/report-system/report-system.scm: remove export * src/report/report-gnome/report-gnome.scm: new file. * src/report/report-gnome/gw-report-gnome-spec.scm: wrap some more report bindings. * src/report/report-gnome/gncmod-report-gnome.c: load g-wrapped and gnucash report-gnome modules. * src/report/report-gnome/Makefile.am: add report-gnome.scm module * src/gnome/gw-gnc-spec.scm: remove some report bindings git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6273 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
960c44f6e5
commit
d7317fb0d4
@ -10,8 +10,6 @@
|
|||||||
(use-modules (g-wrapped gw-engine-spec))
|
(use-modules (g-wrapped gw-engine-spec))
|
||||||
(use-modules (g-wrapped gw-glib-spec))
|
(use-modules (g-wrapped gw-glib-spec))
|
||||||
(use-modules (g-wrapped gw-gnome-utils-spec))
|
(use-modules (g-wrapped gw-gnome-utils-spec))
|
||||||
;; FIXME take out when finished creating report-gnome
|
|
||||||
(use-modules (g-wrapped gw-report-gnome-spec))
|
|
||||||
|
|
||||||
(let ((mod (gw:new-module "gw-gnc")))
|
(let ((mod (gw:new-module "gw-gnc")))
|
||||||
(define (standard-c-call-gen result func-call-code)
|
(define (standard-c-call-gen result func-call-code)
|
||||||
@ -39,8 +37,6 @@
|
|||||||
(gw:module-depends-on mod "gw-engine")
|
(gw:module-depends-on mod "gw-engine")
|
||||||
(gw:module-depends-on mod "gw-glib")
|
(gw:module-depends-on mod "gw-glib")
|
||||||
(gw:module-depends-on mod "gw-gnome-utils")
|
(gw:module-depends-on mod "gw-gnome-utils")
|
||||||
;; FIXME take out when finished creating report-gnome
|
|
||||||
(gw:module-depends-on mod "gw-report-gnome")
|
|
||||||
|
|
||||||
(gw:module-set-guile-module! mod '(g-wrapped gw-gnc))
|
(gw:module-set-guile-module! mod '(g-wrapped gw-gnc))
|
||||||
|
|
||||||
@ -147,14 +143,6 @@
|
|||||||
'()
|
'()
|
||||||
"Destroy the UI.")
|
"Destroy the UI.")
|
||||||
|
|
||||||
(gw:wrap-function
|
|
||||||
mod
|
|
||||||
'gnc:report-raise-editor
|
|
||||||
'<gw:void>
|
|
||||||
"gnc_report_raise_editor"
|
|
||||||
'((<gw:scm> report))
|
|
||||||
"Raise the report's editor window")
|
|
||||||
|
|
||||||
(gw:wrap-function
|
(gw:wrap-function
|
||||||
mod
|
mod
|
||||||
'gnc:main-window-open-report
|
'gnc:main-window-open-report
|
||||||
|
@ -37,10 +37,15 @@ libgw_report_gnome_la_LDFLAGS = -module
|
|||||||
gwmoddir = ${GNC_GWRAP_LIBDIR}
|
gwmoddir = ${GNC_GWRAP_LIBDIR}
|
||||||
gwmod_DATA = gw-report-gnome.scm gw-report-gnome-spec.scm
|
gwmod_DATA = gw-report-gnome.scm gw-report-gnome-spec.scm
|
||||||
|
|
||||||
|
gncmoddir = ${GNC_SHAREDIR}/guile-modules/gnucash/report
|
||||||
|
gncmod_DATA = report-gnome.scm
|
||||||
|
|
||||||
noinst_DATA = .scm-links
|
noinst_DATA = .scm-links
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
.cvsignore
|
.cvsignore \
|
||||||
|
${gwmod_DATA} \
|
||||||
|
${gncmod_DATA}
|
||||||
|
|
||||||
.scm-links:
|
.scm-links:
|
||||||
rm -f gnucash g-wrapped
|
rm -f gnucash g-wrapped
|
||||||
|
@ -56,6 +56,9 @@ gnc_module_init(int refcount) {
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lmod ("(g-wrapped gw-report-gnome)");
|
||||||
|
lmod ("(gnucash report report-gnome)");
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,4 +83,12 @@
|
|||||||
"gnc_print_report"
|
"gnc_print_report"
|
||||||
'((<gw:int> report-id))
|
'((<gw:int> report-id))
|
||||||
"Print a report with dialog support")
|
"Print a report with dialog support")
|
||||||
|
|
||||||
|
(gw:wrap-function
|
||||||
|
mod
|
||||||
|
'gnc:report-raise-editor
|
||||||
|
'<gw:void>
|
||||||
|
"gnc_report_raise_editor"
|
||||||
|
'((<gw:scm> report))
|
||||||
|
"Raise the report's editor window")
|
||||||
)
|
)
|
||||||
|
31
src/report/report-gnome/report-gnome.scm
Normal file
31
src/report/report-gnome/report-gnome.scm
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;; report-gnome.scm
|
||||||
|
;; module definition for the gnome report system code
|
||||||
|
;;
|
||||||
|
;; Copyright (c) 2001 Linux Developers Group, Inc.
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
(define-module (gnucash report report-gnome))
|
||||||
|
(use-modules (gnucash main) (g-wrapped gw-gnc)) ;; FIXME: delete after we finish modularizing.
|
||||||
|
(use-modules (gnucash gnc-module))
|
||||||
|
|
||||||
|
(use-modules (g-wrapped gw-report-gnome))
|
||||||
|
|
||||||
|
(gnc:module-load "gnucash/gnome-utils" 0)
|
||||||
|
(gnc:module-load "gnucash/report/report-system" 0)
|
||||||
|
|
||||||
|
(export gnc:report-edit-options)
|
||||||
|
|
||||||
|
(define (gnc:report-edit-options report)
|
||||||
|
(let* ((editor-widg (gnc:report-editor-widget report)))
|
||||||
|
(if editor-widg
|
||||||
|
(gnc:report-raise-editor report)
|
||||||
|
(begin
|
||||||
|
(if (gnc:report-options report)
|
||||||
|
(begin
|
||||||
|
(set! editor-widg
|
||||||
|
((gnc:report-options-editor report)
|
||||||
|
(gnc:report-options report)
|
||||||
|
report))
|
||||||
|
(gnc:report-set-editor-widget! report editor-widg))
|
||||||
|
(gnc:warning-dialog (_ "This report has no options.")))))))
|
@ -132,7 +132,6 @@
|
|||||||
(export gnc:report-set-editor-widget!)
|
(export gnc:report-set-editor-widget!)
|
||||||
(export gnc:report-ctext)
|
(export gnc:report-ctext)
|
||||||
(export gnc:report-set-ctext!)
|
(export gnc:report-set-ctext!)
|
||||||
(export gnc:report-edit-options)
|
|
||||||
(export gnc:make-report)
|
(export gnc:make-report)
|
||||||
(export gnc:restore-report)
|
(export gnc:restore-report)
|
||||||
(export gnc:make-report-options)
|
(export gnc:make-report-options)
|
||||||
|
@ -223,20 +223,6 @@
|
|||||||
(define gnc:report-set-ctext!
|
(define gnc:report-set-ctext!
|
||||||
(record-modifier <report> 'ctext))
|
(record-modifier <report> 'ctext))
|
||||||
|
|
||||||
(define (gnc:report-edit-options report)
|
|
||||||
(let* ((editor-widg (gnc:report-editor-widget report)))
|
|
||||||
(if editor-widg
|
|
||||||
(gnc:report-raise-editor report)
|
|
||||||
(begin
|
|
||||||
(if (gnc:report-options report)
|
|
||||||
(begin
|
|
||||||
(set! editor-widg
|
|
||||||
((gnc:report-options-editor report)
|
|
||||||
(gnc:report-options report)
|
|
||||||
report))
|
|
||||||
(gnc:report-set-editor-widget! report editor-widg))
|
|
||||||
(gnc:warning-dialog "This report has no options."))))))
|
|
||||||
|
|
||||||
(define (gnc:make-report template-name . rest)
|
(define (gnc:make-report template-name . rest)
|
||||||
(let ((r ((record-constructor <report>)
|
(let ((r ((record-constructor <report>)
|
||||||
template-name ;; type
|
template-name ;; type
|
||||||
|
Loading…
Reference in New Issue
Block a user