Commit Graph
28 Commits
Author SHA1 Message Date
Joshua Sled 7de7b944f8 2002-04-16 Joshua Sled <jsled@asynchronous.org>
* src/register/ledger-core/gnc-ledger-display.c: Some template-GL
	cleanup [debugging printf's removed].  Removed never-used
	LD_TEMPLATE type.

	* src/gnome/glade/sched-xact.glade: Removed unused start page.

	* src/gnome/dialog-sxsincelast.c: Added support for using the
	gnc-regWidget to display created transactions for review. Added
	'Cancel' support. Didn't remove enough dead code, but started to.

	* src/gnome/dialog-scheduledxaction.c: Added support for using the
	gncRegWidget in the SX editor.  Formatting changes.

	* src/register/ledger-core/gnc-regWidget.{h,c}: Added; a
	macro-widget roughly duplicating the src/gnome/window-register.c
	look-and-feel-and-behavior.

	* src/engine/SchedXaction.c: Added support for saving a "temporal
	snapshot" of a scheduled transaction. Rewrote "sequence state"
	manipulations in terms of temporal snapshots.

	* src/engine/Query.c: Add support for Querying the template
	AccountGroup.

	* src/doc/TODO-schedxactions: Updates.

	* src/engine/Makefile.am: Prepend-to instead of unconditionally
	setting GUILE_LOAD_PATH when creating iso-4217-currencies.c, for
	those of us that need to set it for whatever reason we need to do
	so.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6795 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-04-16 07:09:16 +00:00
Joshua Sled 01875af932 Fixed 'cell = cell' problems in cell-saving functions.
Fixed gnc_template_register_model_add_save_handlers to leave the
split-register's NUM_CELL and DESC_CELL save handlers [as they are Correct
and Relevant].


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6192 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-04 08:47:42 +00:00
Joshua Sled c85157c599 Added guile_libs, glib_libs support for test-link program.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5986 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-23 22:33:33 +00:00
Joshua Sled 40b1469e83 Added ${GLIB_LIBS} for test-link linking.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5985 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-23 22:27:21 +00:00
Joshua Sled 762ae7a717 2001-11-06 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-sxsincelast.c (create_each_transaction_helper):
	Fixed credit/debit confusion.

	* src/gnome/dialog-sx-from-trans.c (sxftd_add_template_trans):
	Fixed credit/debit confusion.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5773 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-06 08:28:58 +00:00
Joshua Sled 213639c861 2001-11-04 Joshua Sled <jsled@asynchronous.org>
* 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
2001-11-05 07:39:10 +00:00
Joshua Sled 8e904bc588 Matt Martin <matt.martin@ieee.org>'s patch to fix b0rken SX-list-processing
in since-last-run dialog  [before: 'break' out of processing further SXes
if a given SX in the list has no instances; now: 'continue' to other SXes
which may have instances yet].


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5748 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-30 08:05:27 +00:00
Joshua Sled d4940d8dca Turned off option to generate translatable string files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5747 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-30 04:57:59 +00:00
Joshua Sled 48918c9fa8 2001-10-29 Joshua Sled <jsled@asynchronous.org>
* 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
2001-10-29 10:08:11 +00:00
Joshua Sled 437935a838 2001-10-24 Joshua Sled <jsled@asynchronous.org>
* 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
2001-10-24 08:33:38 +00:00
Joshua Sled 6820436bdb 2001-10-22 Joshua Sled <jsled@asynchronous.org>
* src/engine/SchedXaction.c (xaccSchedXactionInit): Fixed
	number-of-occurances init problem.

	* src/gnome/dialog-scheduledxaction.c (schedXact_editor_populate):
	Fixed bug in populating the editor.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5712 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-23 07:12:32 +00:00
Joshua Sled 98a6062c43 2001-10-22 Joshua Sled <jsled@asynchronous.org>
* src/gnome/window-main.c (gnc_ui_mainWindow_nextrun_cb):
	Removed obsolete dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5711 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-22 16:46:20 +00:00
Joshua Sled ced5ea0167 2001-10-22 Joshua Sled <jsled@asynchronous.org>
* 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
2001-10-22 09:17:34 +00:00
Joshua Sled 47fd364d72 2001-10-14 Joshua Sled <jsled@asynchronous.org>
* 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
2001-10-16 06:44:30 +00:00
Joshua Sled 6b5efd34b9 Removed accidental/unnecessary change from last commit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5446 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-01 03:26:30 +00:00
Joshua Sled bdce11e016 2001-09-30 Josh Sled <jsled@asynchronous.org>
* 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
2001-10-01 03:25:26 +00:00
Joshua Sled 07ffbd6387 Moved the XML_I18N_TOOLS line a bit higher to get around being-split-midline-by-configure issue.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5444 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-10-01 03:24:33 +00:00
Joshua Sled 4017f68403 2001-07-30 Joshua Sled <jsled@asynchronous.org>
* src/gnome/glade/sched-xact.glade: Added seperate reminders
	dialog from since-last-run dialog.  Removed reminders
	frame/section from since-last-run dialog.  Added alternative SX
	Editor UI [not presently used].

	* src/gnome/dialog-sxsincelast.c: Changes for
	reminders-as-seperate-dialog; selected reminders then update
	since-last-run dialog [whether it's open or not]; the dialogs
	[mostly] deal with their closing conditions correctly.  Support
	for ad-hoc variables in template-transaction-split formulas.

	* src/engine/gnc-schedxaction-xml-v2.c
	(gnc_schedXaction_end_handler): Added support for restoring
	in-development pre-template-account-stored-in-SX change.
	(tt_act_handler): Added support for restoring in-devel pre-CIT
	.gml2/XMLv2 files.

	* src/gnc-exp-parser.c (gnc_exp_parser_parse_seperate_vars): Added
	for Scheduled-Transaction-related since-last-run/split-formula
	parsing.

	* src/gnome/dialog-sxsincelast.c: Added support for variable entry
	before creation/formulas in template transactions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5058 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-30 08:32:02 +00:00
Joshua Sled 999211fb3c Fixed Glib-CRITICAL g_date problem for weekly transactions w/o any weekdays selected.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4908 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-06 08:50:22 +00:00
Joshua Sled 1e36965ded Don't write <gnc:template-transactions> section unless there is data to write [1.6/1.7 interop-issue brought up on #gnucash].
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4907 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-06 08:29:36 +00:00
Joshua Sled d82bd05dfc 2001-07-06 Joshua Sled <jsled@asynchronous.org>
* src/gnome/gnc-schedxaction-xml-v2.c: Support for new
	SchedXaction options [create/remind-days-in-advance; auto-create,
	notify-on-creation].

	* src/gnome/dialog-scheduledxaction.c (putSchedXactionInClist):
	Fix for next-occurance processing.

	* src/engine/SchedXaction.c (xaccSchedXactionGetNextInstance):
	Better handling of start date/last-occur date/current dates when
	generating the next occurance date.  Gotta remember to clear those
	g_dates, lest the come up 'valid' due to stack trash... :(

	* src/gnome/gnc-sxlastrun.{h,c}: Added; newer/better
	since-last-occur dialog.

	* src/gnome/window-main.c: Added Scheduled Transaction stuff to
	"Tools" menu.

	* src/scm/prefs.scm: Added initial cut at Scheduled Transaction
	preferences.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4905 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-06 07:31:31 +00:00
Joshua Sled a989b8749c Removed extraneous debugging stuff.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4842 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-01 04:04:30 +00:00
Joshua Sled b2f5d19660 2001-06-30 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-scheduledxaction.c (putSchedXactionInClist):
	Fix for next-occurance processing.

	* src/engine/SchedXaction.c (xaccSchedXactionGetNextInstance):
	Better handling of start date/last-occur date/current dates when
	generating the next occurance date.  Gotta remember to clear those
	g_dates, lest the come up 'valid' due to stack trash... :(


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4841 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-07-01 00:50:24 +00:00
Joshua Sled ee1b205286 Fixed AUTHORS tyop.
Natch changelog entry.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4840 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-30 06:04:36 +00:00
Joshua Sled a3070fdb16 Removed old debugging printf.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4839 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-30 06:03:41 +00:00
Joshua Sled 20f7a8f30b Added support for saving/restoring state for most/all frequency-specificaiton options.
Added start-date/frequency-specific-widget agreement.
Bug fixing in since-last-run dialog and scheduled-transaction editor.
Added new scheduled-transaction-related dialog [first cut, glade-only].


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4838 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-30 06:02:03 +00:00
Joshua Sled 9115885ccc Added scheduled-transactions module for logging/output purposes, set to 'debug' level.
Added state-getters for FreqSpec types.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4837 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-30 06:00:04 +00:00
Joshua Sled 65b43535d6 Updated state based on changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4836 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-06-30 05:59:01 +00:00