* src/Makefile.am, src/gnome-utils/Makefile.am: Moved
${GUPPI_LIBS} to appear before GNOME_LIBDIR in *_LIBADD so that
--with-libguppi-prefix can have any effect at all.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5866 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome-utils/gnc-frequency.c: saving state and updating the
calendar markings no longer force so much of a
component-manager/UI refresh.
* src/guile/gw-gnc-spec.scm: Changed sx-since-last return type to
gboolean [bool]; added better sx-since-last-run-wrapper param name
[s/foo/bookfile/].
* src/gnome/dialog-scheduledxaction.c (new_button_clicked): Better
initial-FreqSpec setup to prevent error from GNCFrequency.
* src/engine/SchedXaction.c (xaccSchedXactionSetTemplateTrans):
Added support for setting template-transaction currency from the
TTinfo structure.
* src/gnome/dialog-sxsincelast.c: Correct support for "nothing
to do": if this is the case, don't load/create the UI. Required
much re-working due to my bad design. :(
Added component-manager freeze/thaw [equivalents] around engine
interaction to minimize program-wide GUI refresh during
Transaction creation.
(finish_finish): Added support for 'finish' button.
(cancel_check): Initial support for cancel button, checking with
user regarding.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5769 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/dialog-sxsincelast.c: Unused pages are skipped,
initial version.
* src/gnome/dialog-sx-from-trans.c: Added start date handling; as
well, correctly update the start date when the frequency option
changes. Added using FreqSpecs for start date calculation. Added
correctly
* src/gnome-utils/gnc-account-tree.c (gnc_account_tree_init): Make
account-tree description column auto-resize.
* src/engine/SchedXaction.c (xaccSchedXactionSetEndDate): Removed
end date validity check; an invalid end date is how we signal "no
end date".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5739 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/dialog-scheduledxaction.c (sxed_delete_event): Added.
(gnc_ui_scheduled_xaction_editor_dialog_create): Added support for
delete-event [WM window close].
(sxed_check_close): Added close-check, including register check.
(editor_cancel_button_clicked): Renamed from
editor_close_button_clicked; correctly handles a cancel WRT ledger
changes.
* src/gnome/glade/sched-xact.glade: Added as-yet-unused Start
Date widgets to make-from-transaction dialog.
* src/gnome/dialog-sx-from-trans.c (sxftd_add_template_trans): Use
the user-friendly amount formating instead of a stringified
gnc_numeric. Copies the account data over into the template
transaction.
(sxftd_init): Added; supports using the Description of the
transaction as the initial name of the SX.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5715 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/Makefile.am: Removed obsolete dialog-nextrun.{c,h}
* src/gnome/window-main.c (gnc_main_window_create_menus): Added
both Scheduled Transaction-related items to "Scheduled
Transactions" sub-menu of "Tools".
(gnc_main_window_about_cb): Added self to GUI About dlg.
* src/gnome/dialog-scheduledxaction.c: Renamed '_'-led functions.
* src/gnome/dialog-sxsincelast.c: Changed from a loose
confederation of multiple dialogs to the strong central authority
of a GnomeDruid-based since-last-run UI. Renamed '_'-led
functions.
* src/gnome/glade/sched-xact.glade: Fixed a non-unique-name
problem between the GnomeNumberEntry "end_nentry" and it's
GtkEntry "end_nentry". Added Druid-based Since-Last-Run dialog.
* src/gnome/dialog-scheduledxaction.c (schedXact_editor_populate),
(editor_ok_button_clicked): Added support for now-uniquely-named
"end_gnome_nentry".
* src/engine/SchedXaction.c
(xaccSchedXactionCreateSequenceState): Added.
(xaccSchedXactionIncrSequenceState): Added.
(xaccSchedXactionDestroySequenceState): Added.
Added support for opaque state data when generating a sequence of
SX instances to support number-of-occurance-terminated SXes.
* src/backend/file/gnc-freqspec-xml-v2.c (dom_tree_to_freqSpec):
Added missing instance of GNCSession propogation.
* src/backend/file/io-gncxml-v2.c
(write_template_transaction_data): Added correct determination for
writing out the template-transaction section [before: only if
transactions existed in accounts; now: if any accounts exist] to
prevent read errors from SXes with valid-and-referenced Accounts,
but no Transactions in them.
* src/gnome-utils/gnc-frequency.c (gnc_frequency_setup): Better
error text when UIFreqType isn't recognized or appropriate.
* src/gnome/dialog-scheduledxaction.c (editor_ok_button_clicked):
Correctly sets SXes to have no occurance data if that's the case.
Better option variable naming, usage.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5710 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/test-core/test-engine-stuff.c: work on test
infrastructure for making changes to existing data
* src/engine/gnc-book.c: keep backends up to date
* src/engine/gnc-session.c: keep backends up to date
* src/backend/postgres/test/db-control.sh: bring down postmaster
on database create and destroy
* src/backend/postgres/test/test-db.c: work on single-update
test
* src/backend/postgres/txn.c: fix bug -- when deleting splits
from the database that aren't in the engine, can't use
xaccSplitLookup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5661 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/dialog-scheduledxaction.c (delete_button_clicked):
Fixed multiple bugs in deletion selection-handling.
(schedXact_editor_populate), (schedXact_editor_create_ledger):
Added code for respecting the user's Preferences.
* src/gnome/dialog-scheduledxaction.c
(gnc_ui_scheduled_xaction_dialog_create): Added support for only a
single SX list to be up at any one time; if one already exists,
show and raise that window instead of creating a new one.
* src/gnome/dialog-scheduledxaction.c
(gnc_ui_scheduled_xaction_editor_dialog_create): Only one editor
for any Scheduled Transaction open at a time; if one already
exists, show and raise it's window.
* src/gnome/dialog-scheduledxaction.c
(schedXact_editor_create_ledger): Add [read: steal from
window-register.c] register toolbar, suitably modified for SXes.
* src/app-utils/prefs.scm: Updates to wording, defaults for
Scheduled Transaction preferences.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5659 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/guile/Makefile.am (libgncguile_la_LIBADD): remove gncgnome.la
dependency
* src/engine/test-core/test-engine-stuff.c (get_random_timespec):
add flag to always set nsec to 0.
(get_random_transaction_with_currency): new func
(add_random_transactions_to_session): new func
* src/backend/postgres/test/db-control.sh: add 'connect' argument
to start psql connection
* src/backend/postgres/test/test-db.c: add random transactions
to the mix
* src/backend/postgres/account.c (pgendStoreAccountNoLock): expound
on commodity table comment
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5596 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/test-core/test-stuff.c (get_random_string_without): new func
* src/engine/test-core/test-engine-stuff.c
(get_random_kvp_frame_depth): fix bug
(get_random_session): new func
* src/engine/Account.c (xaccAccountEqual): more warnings, use
gnc_commodity_equal
* src/engine/Group.c (xaccGroupEqual): more warnings
* src/engine/Transaction.c: use gnc_commodity_equal
* src/engine/gnc-book.c (gnc_book_equal): compare commodity tables
* src/engine/gnc-commodity.c (gnc_commodity_equal): new func
(gnc_commodity_table_equal): new func
* src/engine/gnc-session.c (gnc_session_begin): destroy old backend
* src/backend/postgres/test/.cvsignore: ignore test files
* src/backend/postgres/test/Makefile.am: add file backend .la
to get symbols for gdb
* src/backend/postgres/test/run-tests.sh: remove test files
before starting test
* src/backend/postgres/test/test-db.c: when books differ, write
out xml files
* src/backend/file/test/test-xml-account.c (test_add_account):
fix for strong commodity equal test
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5581 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/dialog-sxsincelast.c: Displays
auto-created-and-notification-requested scheduled transactions in
a GL rather than a clist.
* src/register/ledger-core/split-register-model.c
(gnc_template_register_model_new): Added date-cell entry/io-flags
handler for template register, making date cell inactive, and
stating "Scheduled" instead of a date.
* src/gnome/dialog-sxsincelast.c (_create_transactions_on): Now
does appropriate cleanup in the case it needs to create a
temporary toCreateTuple for transaction-creation.
(_create_each_transaction_helper): Cleanup failed
transaction-creation appropriately. Support for returning a list
of the GUIDs of created transactions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5445 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/register/register-gnome: add new headers
* src/register/register-gnome/gncmod-register-gnome.c: initialize
gnome-specific cells and table
* src/register/register-gnome/pricecell-gnome.c
(gnc_price_cell_gnome_new): new func.
* src/register/register-gnome/quickfillcell-gnome.c
(gnc_quickfill_cell_gnome_new): new func
* src/register/register-gnome/table-gnome.c: new code to
initialize table with gnome-specific callbacks
* src/register/register-core/Makefile.am: add test subdir
* src/register/register-core/pricecell.c: remove gui-specific stuff
* src/register/register-core/quickfillcell.c: remove gui-specific stuff
* src/register/register-core/table-allgui.c: implement gui cursor
refresh as a callback.
* src/gnome/window-register.c: fix menu names and help strings
* src/backend/file/gnc-schedxaction-xml-v2.c
(gnc_schedXaction_end_handler): open account for editing
before destroying it.
* src/backend/file/gnc-schedxaction-xml-v2.c (tt_act_handler):
open account for editing and leave it open.
* src/backend/file/io-gncxml-v2.c
(add_template_transaction_local): commit the template account
group after all transactions have been added.
* configure.in: configure new test Makefile
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5373 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/guile/gw-gnc-spec.scm: remove some unused wrappings
* src/gnome-utils/Makefile.am: enable test dir
* src/gnome-utils/dialog-commodity.c: refactor help handler
* src/gnome-utils/gnc-account-tree.c: refactor account group handler
* src/gnome-utils/gnc-html.c: refactor help url handler
* src/gnome/glade/commodity.glade: name help button
* src/gnome/top-level.c: add in new handlers
* src/gnome/window-main.c: remove toplevel api
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5371 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/Makefile.am: identify new scripts as built sources
* configure.in: configure a gnucash-specific header directory
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5296 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnucash-run-script.in: new helper script for running gnucash
guile scripts with the right directories set up.
* src/Makefile.am: add new files
* src/gnucash-make-guids.in: replace old gnucash-make-guid
with a guile script
* src/engine/gw-engine-spec.scm: wrap new function
* src/engine/GNCId.c (xaccGUIDNewReturn): new function suitable
for g-wrapping.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5292 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/engine/messages.[hc]: Added support for i18n messages with
qualifying prefix; adapted from code by Zbigniew Chyla
<cyba@piast.t19.ds.pwr.wroc.pl>.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5291 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/report/standard-reports/average-balance.scm: Ben Stanley
<bds02@uow.edu.au>'s report fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5260 57a11ea4-9604-0410-9ed3-97b8803252fd