Commit Graph

5517 Commits

Author SHA1 Message Date
Linas Vepstas
ce95a89635 more book-support fixes, additions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6447 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-31 18:27:13 +00:00
Linas Vepstas
44d54c3637 add state management flags
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6446 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-31 18:17:26 +00:00
Linas Vepstas
fcabb48530 remove un-needed include
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6445 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-31 18:16:41 +00:00
Linas Vepstas
43aaa1d7ac start scratching in support for multiple books
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6444 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-31 17:21:25 +00:00
Linas Vepstas
50d07c4a17 turn on book support in the file backend
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6441 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-31 01:40:47 +00:00
Linas Vepstas
6b2a678e53 update debug statements
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6440 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-31 01:16:04 +00:00
Linas Vepstas
f2aeb91f76 make it easier to grep for usage of child parsers
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6439 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 23:13:41 +00:00
Linas Vepstas
546694b975 add debug messages
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6438 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 22:36:47 +00:00
Linas Vepstas
58bbb21a93 add diagnostic warning messages
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6436 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 22:09:50 +00:00
Linas Vepstas
77829f9487 gratuitous rearrangement of parenthesis.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6429 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 21:17:47 +00:00
Linas Vepstas
2bba2f9126 a few bug fixes; add a utility routine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6428 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 19:39:42 +00:00
Linas Vepstas
de87c4c937 cosmetic fixes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6427 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 19:01:30 +00:00
Linas Vepstas
71b50e0dc1 buglet fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6426 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 18:19:03 +00:00
Linas Vepstas
a83bda50a9 first pass at integrating book into file backend
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6425 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 17:38:01 +00:00
Linas Vepstas
77764be767 change printf -> PWARN or PERR
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6424 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 17:25:30 +00:00
Linas Vepstas
21593a3f51 bug fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6423 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 17:11:00 +00:00
Linas Vepstas
c073376abb g_warning -> PWARN
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6422 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 17:09:52 +00:00
Linas Vepstas
f8d85c21f1 g_warning -> PWARN
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6421 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 17:02:56 +00:00
Linas Vepstas
4f4c394a76 gratuitous cleanup; add gnc_book_set_guid()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6420 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 16:24:47 +00:00
Linas Vepstas
51b10b6384 take a shot at implementing books ...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6419 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 15:48:09 +00:00
Linas Vepstas
562bf958ea clean up the documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6418 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-30 15:29:41 +00:00
Linas Vepstas
0bfd17442e initial checkin -- error reporting architecture
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6417 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-29 17:53:51 +00:00
Dave Peticolas
da601a847d work on tests and sql backend
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6416 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-29 12:14:20 +00:00
Dave Peticolas
e0f2c1d3e4 work on tests
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6415 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-28 10:49:59 +00:00
Dave Peticolas
cdf8dd0fa1 * src/backend/postgres/test/test-db.c: expand testing
* src/engine/Transaction.c: fix bugs. keep positive editlevel
while committing and rolling back transaction.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6414 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-27 09:03:32 +00:00
Dave Peticolas
a02f6e3f4d * src/backend/postgres/test/test-db.c: test rollback
* src/engine/Transaction.c: fix bug in transaction rollback

* src/engine/test-core/test-engine-stuff.h: add test routine

* src/engine/test-core/test-engine-stuff.c: add test routine


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6413 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-26 07:14:44 +00:00
Dave Peticolas
24256e6257 Add app-util to g-wrap path.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6412 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-21 11:49:43 +00:00
Dave Peticolas
afa35f1124 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6411 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-21 07:46:13 +00:00
Dave Peticolas
5b18b8ed54 * src/scm/main.scm: update for api changes
* src/scm/main.scm: remove some report menu setup functionality


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6410 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-21 07:45:32 +00:00
Dave Peticolas
dd5b116a07 * src/report/report-gnome/window-report.h: add new init api
* src/report/report-gnome/window-report.c: move some report
initialization here from top-level.c

* src/report/report-gnome/gncmod-report-gnome.c: call new report
initialization function

* src/report/report-gnome/Makefile.am: add app-utils dependency


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6409 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-21 07:45:18 +00:00
Dave Peticolas
ea689586de * src/gnome/top-level.h: update for api changes
* src/gnome/top-level.c: remove some gnome initialization &
shutdown. change ui init api.

* src/gnome/gw-gnc-spec.scm: update for api changes

* src/gnome/argv-list-converters.h: remove

* src/gnome/argv-list-converters.c: remove

* src/gnome/Makefile.am: remove argv-list-converters.[ch]

* src/gnome/top-level.c: take out component manager initialization
and shutdown


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6408 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-21 07:43:12 +00:00
Dave Peticolas
318a1dd55f * src/gnome-utils/gw-gnome-utils-spec.scm: g-wrap new funcs
* src/gnome-utils/gncmod-gnome-utils.c: remove #include cruft

* src/gnome-utils/gnc-html.c: remove #include cruft

* src/gnome-utils/gnc-gnome-utils.h: new file

* src/gnome-utils/gnc-gnome-utils.c: new file -- init and shutdown
functions

* src/gnome-utils/argv-list-converters.h: add

* src/gnome-utils/argv-list-converters.c: add

* src/gnome-utils/Makefile.am: add new files


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6407 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-21 07:41:54 +00:00
Dave Peticolas
9bebd787bd * src/gnc-ui.h: remove cruft
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6406 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-21 07:40:14 +00:00
Dave Peticolas
6286c3a56e *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6405 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:05:25 +00:00
Dave Peticolas
2225ff5d72 * src/scm/main.scm: remove some report menu setup functionality
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6404 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:04:44 +00:00
Dave Peticolas
2b2e9ab4b7 * src/report/report-gnome/report-gnome.scm: move some report
menu setup functionality here


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6403 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:04:20 +00:00
Dave Peticolas
cdb59aa5db * src/gnome/top-level.c: take out component manager initialization
and shutdown


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6402 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:03:55 +00:00
Dave Peticolas
5b717264ea * src/engine/Transaction.c: fix spelling
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6401 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:03:40 +00:00
Dave Peticolas
c5af00805e * src/backend/postgres/test/test-db.c: work on tests
* src/backend/postgres/test/.cvsignore: ignore database dirs


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6400 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:02:40 +00:00
Dave Peticolas
2e76108b23 * src/backend/postgres/txn.c: fix spelling
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6399 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:01:52 +00:00
Dave Peticolas
aa5229d387 * src/app-utils/gncmod-app-utils.c: perform component manager
initialization and shutdown here


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6398 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:00:58 +00:00
Dave Peticolas
3ddf61ef35 * src/app-file/gnc-file.c: suspend engine events when
creating new session


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6397 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:00:37 +00:00
Dave Peticolas
558133fb79 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6396 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 10:57:24 +00:00
Dave Peticolas
94d024ff09 add app-utils to g-wrap path
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6395 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 23:41:54 +00:00
Dave Peticolas
a209d16f69 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6394 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:41:06 +00:00
Dave Peticolas
bf0bc57a5a * src/engine/gw-engine-spec.scm: g-wrap event types enum
* src/engine/gnc-session.c: set book backend to NULL before
destroying old book in gnc_session_load

* src/engine/Transaction.c: do checks & events when setting
slots for transactions and splits.

* src/engine/GNCId.h: add a const typedef for GNCIdType


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6393 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:40:37 +00:00
Dave Peticolas
e9bc21cf28 * src/backend/postgres/test/test-db.c: add a test for backend
transaction rollback due to stale data in the engine


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6392 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:40:10 +00:00
Dave Peticolas
ee1d594ca4 * src/backend/postgres/txn.c: fix bugs restoring one transaction
from database.

* src/backend/postgres/putil.h: add EXEC_QUERY

* src/backend/postgres/price.h: add pgendGetCommodity

* src/backend/postgres/price.c: add pgendGetCommodity


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6391 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:39:57 +00:00
Dave Peticolas
5b18193b14 * src/app-utils/test/test-component-manager: test g-wrapped
component manager

* src/app-utils/test/Makefile.am: add test-component-manager

* src/app-utils/gw-app-utils-spec.scm: g-wrap component manager

* src/app-utils/gnc-component-manager.h: add some SCM api

* src/app-utils/gnc-component-manager.c : add some SCM api


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6390 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:39:31 +00:00
Linas Vepstas
1a01c0c43c add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6389 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-18 14:51:50 +00:00