.scm files must be copied on windows because linking won't work.
Note: existing build directories will be fixed only after make clean.
Patch by C. Ernst.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17817 57a11ea4-9604-0410-9ed3-97b8803252fd
-Add many new features to the progress dialog API, including support for n levels of suboperations. Fully compatible with existing code.
-Add doxygen documentation for the progress dialog API (none previously existed).
-Add a progress bar page to the QIF importer with pause and cancel functions for the loading and parsing phases.
-Log loading and parsing error messages on the page instead of using popups, which resolves bug #309359.
-Add a pair of new procedures to the library of Scheme string routines.
-Finally, some miscellaneous QIF importer clean up.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17245 57a11ea4-9604-0410-9ed3-97b8803252fd
In doing so, a number of reusable Scheme string manipulation procedures were written and placed in string.scm. These are now available to all Scheme code by automatic inclusion in main.scm.
The new Scheme procedures are:
gnc:string-rcontains (a variation on string-contains)
gnc:substring-count (a variation on string-count)
gnc:substring-split (a variation on string-split)
gnc:substring-replace (search/replace a substring)
gnc:string-replace-char (search/replace a character)
gnc:string-delete-chars (delete a variety of characters)
Finally, the custom version of string-split was removed because Guile 1.4 is no longer supported and later versions come with this procedure.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17191 57a11ea4-9604-0410-9ed3-97b8803252fd
g-find-program-in-path returns a string---it may be empty but not #f or '().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16096 57a11ea4-9604-0410-9ed3-97b8803252fd
Use gnc_spawn_process_async, gnc_process_get_fd, gnc_detach_process and
gnc_parse_time_to_timet in price-quotes.scm, but leave the work-flow
basically as before.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16017 57a11ea4-9604-0410-9ed3-97b8803252fd
rename gnc_price_{get,set}_type() to _typestr() so it doesn't
conflict with the GType gnc_price_get_type() API.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15812 57a11ea4-9604-0410-9ed3-97b8803252fd
using the GtkPrint API when compiled against gtk+ 2.10 or later. Add
support for reading check description files instead of hard coding
check descriptions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15709 57a11ea4-9604-0410-9ed3-97b8803252fd
point directly to their parent and have a simple GList of children.
(The old method was alternating data structures in the form Account,
AccountGroup, Account, AccountGroup, etc.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15647 57a11ea4-9604-0410-9ed3-97b8803252fd
In most of these cases, I know the value is always returned from C, so we
can use "null?". In cases where I wasn't sure, I make it check for either
#f or null?. Hopefully, I got 'em all. But, really, what are the chances?
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15060 57a11ea4-9604-0410-9ed3-97b8803252fd
Fix a type (missing '*') in the GncCommodityList typemap.
Re-add an incorrectly dropped (use-modules ...) statement for the wrapped
part of gnome-utils.
Remove some duplicated (use-modules ...).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15057 57a11ea4-9604-0410-9ed3-97b8803252fd
g-wrap is gone. I, for one, welcome our new swig overlords.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15024 57a11ea4-9604-0410-9ed3-97b8803252fd
Scheme files are now symlinked or copied into subdirectories gnucash/ and g-wrapped/.
Also, parallel builds should work fine now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14747 57a11ea4-9604-0410-9ed3-97b8803252fd
Guile 1.8 automatically shares strings as copy-on-write and no longer
provides the "make-shared-substring" procedure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14159 57a11ea4-9604-0410-9ed3-97b8803252fd
that all datum portions of case-statement clauses be unique. The syntax:
'foo expands to a list of two symbols: (quote foo)
If both 'foo and 'bar are used, then the "quote" symbol won't be unique.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14034 57a11ea4-9604-0410-9ed3-97b8803252fd
and some other small currency quote bugfixes. Closes 333572.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13723 57a11ea4-9604-0410-9ed3-97b8803252fd
the translation template any more. Avoids useless translation work.
* src/scm/doc.scm, src/scm/main.scm: Comment out
gnc:load-help-topics function because it isn't used anymore, and
with the last change it also won't be translated anymore.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13665 57a11ea4-9604-0410-9ed3-97b8803252fd
display functions. This will parent the error dialog properly. Fixes
334929.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13662 57a11ea4-9604-0410-9ed3-97b8803252fd
the obsolete gnc-prices script. Move the to the bin directory the
scripts that weren't already there.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13303 57a11ea4-9604-0410-9ed3-97b8803252fd
directory. Also symlink .scm files into the build directory
so it's possible to run from it.
Also fix "fin.scm installed twice", bug #168629.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13281 57a11ea4-9604-0410-9ed3-97b8803252fd
code so that only the custom widgets that have an effect for the
current setting are sensitive.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12996 57a11ea4-9604-0410-9ed3-97b8803252fd
Move the book-open/close hooks from guile to C.
There are several places where we do report-management from C already.
Those places no longer use libguile to access the hash-table of reports -
they can just call C functions.
For now, there's still some report-management happening in guile so guile
can access the global state through g-wrapped functions. Eventually,
all report-management should be in C and guile can just provide single
reports one-at-a-time.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12984 57a11ea4-9604-0410-9ed3-97b8803252fd
Also, the (gnucash main) module no longer depends on (gnucash price-quotes).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12980 57a11ea4-9604-0410-9ed3-97b8803252fd
The report menu setup is pretty fragile - it has to be done in a pretty
specific order, so I pulled it out of (gnc:main) and call it independently.
Also, move more bits of gnc:main into the modules where the bits are used.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12977 57a11ea4-9604-0410-9ed3-97b8803252fd
Remove obsolete guile command line options.
Remove guile setting of add-extension hooks that were apparently
obsoleted by C code a while ago.
Remove guile's access to application lifecycle function hooks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12976 57a11ea4-9604-0410-9ed3-97b8803252fd
leaving only the highest level of gui initialization in /gnome/top-level.c
Process --loglevel command-line option from C.
Move the running of the startup hook from guile to C.
Distrubute bits of scheme from main.scm to the modules they're used in.
Remove more obsoleted scheme.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12975 57a11ea4-9604-0410-9ed3-97b8803252fd
Details:
Remove the last bits of libguile from top-level.[ch].
Change the gui initialization funtions so they can be called from C.
Drop some gwrappers for gui initialization functions.
Process the --nofile and filename command-line options from C.
Drastic simpilification of main.scm.
Initialize the gui and enter the gtk event-loop from C.
Even though there's some more clean-up to do, this patch does mark
a certain milestone: A developer seeking to understand and/or modify
GnuCash's startup process can now essentially ignore the guile portion.
Most parts of our startup now look pretty typical for a gnome-2 app.
The parts that remain firmly in guile are initialization of the report
menus and the installation of price-quote sources.
Caveat: We have multiple mechanisms for handling the filename
argument string -- some in guile and some in C. The C-side mechanisms
(in engine/gnc-filepath-utils.c) seem a little nicer than the guile
ones (in main.scm). They have slightly different behavior (e.g. which
paths they'll search for data files.) They both handle URIs and
making absolute paths out of relative ones. This patch switches from
using the guile functions to the C function. I've tested that the common
cases are handled the same way, but it wouldn't surprise me if some
corner-cases are not.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12956 57a11ea4-9604-0410-9ed3-97b8803252fd
dialog remember its state across invocations (including all the custom
values). Fix a crash when canceling printing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12949 57a11ea4-9604-0410-9ed3-97b8803252fd
Also remove now unused guile portion of --add-price-quote option.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12947 57a11ea4-9604-0410-9ed3-97b8803252fd
This is done by booting guile with a custom inner_main.
Much of the work is still handled by price-quotes.scm, which
is now a true stand-alone guile module without the circular dependency
on the (gnucash main) module.
One caveat: Since the initialization of guile-side debugging variables
is in main.scm, and since main.scm is no longer executed when running
--add-price-quotes, the guile code that runs during --add-price-quote
isn't affected by the --debug option. A work-around is to use the
GNC_DEBUG environment variable:
$ GNC_DEBUG=yes gnucash --add-price-quote myfile
In the longer term, we'll either move the debugging aids to a common place
where it can be used by both main.scm and price-quotes.scm, or we'll get
the debugging state from the C-side via gwrap.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12946 57a11ea4-9604-0410-9ed3-97b8803252fd
This is now handled by Gnome's gnome_program_locate_file() function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12943 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/bin/gnucash-bin.c: Load config.auto AND config.user files.
Load the .user file first, and then load the .auto.
* src/scm/Makefile.am: paths.scm was removed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12913 57a11ea4-9604-0410-9ed3-97b8803252fd
Also one bit of uncommitted code from gwrap change.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12912 57a11ea4-9604-0410-9ed3-97b8803252fd