Commit Graph

6992 Commits

Author SHA1 Message Date
David Hampton
bf47d8448c Sync the g2 branch with the gnome2-merge-6 tag. (2004-01-16)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9791 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-17 02:18:41 +00:00
David Hampton
9a2d62f345 Sync the g2 branch with the gnome2-merge-6 tag. (2004-01-16)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9789 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-17 01:50:23 +00:00
Derek Atkins
a0c0de688f * src/gnome-utils/gnc-druid-gnome.[ch]: move the next/prev signals to
the pages.  Add a cancel callback to the pages (the druid's main
	  cancel callback is never called).  Now we get our signals
	  correct.  Save a reference to the window so we can destroy it..
	  Use gtk_widget_destroy() instead of g_object_unref().
	* src/import-export/qif-import/gnc-druid-test.[ch]: add some code
	  to test the new druid framework.  Build's a test druid.
	* src/import-export/qif-import/Makefile.am: build new test code
	* src/import-export/qif-import/gnc-plugin-qif-import*: hook in
	  the new druid test code; add a new menu item to test the druid.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9787 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-16 22:44:59 +00:00
Derek Atkins
56e29474ea * src/gnome-utils/gncmod-gnome-utils.c: register the gnome-druid and
edge provider.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9779 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-15 03:33:03 +00:00
Derek Atkins
d805b04d68 * gnc-druid.[ch]: add gnc_druid_{next,prev}_page() APIs to choose the
default next/previous page in the druid.  This will automatically
	  walk through the providers to find the next real page.
	* gnc-druid-gnome.c: hook in handlers for "next" and "back" signals
	  for default page moves.  This should allow us to constantly keep
	  track of the current provider.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9778 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-15 02:15:13 +00:00
Derek Atkins
f0d2911f60 * src/app-utils/gnc-druid-provider-desc-edge.[ch]: add api to
build the provider-desc in one function.
	* src/app-utils/gnc-druid-provider.[ch]: remove get_pages API;
	  the sub-class should just insert the list of pages and let
	  us deal with it.  Also added a last_page() method.
	* src/app-utils/gnc-druid.c: make sure to delete the providers
	  when we shut down.
	* src/gnome-utils/gnc-druid-gnome*.h: move the definition of the
	  gnome UI to a header that actually get's installed as opposed to
	  an internal header.
	* src/gnome-utils/gnc-druid-provider-edge-gnome.[ch]: Implement
	  a gnome-druid edge-page (first/last page in the druid).  Probably
	  still need to hook into the next/prev buttons.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9777 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-15 00:39:27 +00:00
Derek Atkins
90e56c64a8 * src/app-utils/gnc-druid-provider.[ch]: add get_pages() class method.
(I decided I don't need a special gnc-druid-provider-gnome just to
	   add a get_pages method, as everything would need it anyways).
	* src/gnome-utils/gnc-druid-gnome.c: use the get_pages() method
	  to actually build the druid.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9774 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-14 04:39:01 +00:00
Derek Atkins
848d8c9641 * src/gnome-utils/Makefile.am: add preliminary gnome gnc-druid impl.
* src/gnome-utils/gnc-druid-gnome.[ch]:  gnome implementation of gnc-druid
	* src/app-utils/gnc-druid*:
	  - move the provider-building into the generic class and add an
	    "append_provider" method to the druid class.  Use that when
	    building the druid.
	  - add a ui_type to the druid class and use that when building providers.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9773 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-14 04:12:25 +00:00
Derek Atkins
3feb3f84a2 Don't forget to set the provider name
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9772 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-14 02:24:49 +00:00
Derek Atkins
2df2079fb8 * src/app-utils/Makefile.am: add the edge provider description.
* src/app-utils/gnc-druid-provider-desc-edge.*: provider descriptor
	  for edge pages (the first and last page of the druid).
	* src/app-utils/gnc-druid*:
	  - add class macros
	  - add a title to the basic provider desc and clean it up.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9771 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-14 02:16:00 +00:00
Derek Atkins
28f2139036 Don't need to store first and last page; just use 'begin' and 'end' providers
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9770 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-14 01:37:27 +00:00
Derek Atkins
baf09490c8 * configure.in: pull in gobject with glib
* src/app-utils/Makefile.am: add the gnc-druid files
	* src/app-utils/gnc-druid*: an abstract druid creation framework.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9769 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-14 01:27:48 +00:00
Derek Atkins
e55ef4e9e1 * src/engine/qofinstance.c: revert fix from 01-01, because it's wrong.
Fix the actual problem, all the ...ReturnGUID() #define's which
	  don't check that it's passed a NULL value.
	* src/engine/Transaction.h:
	* src/engine/Account.h:
	  Fix ...ReturnGUID() to check whether it was passed a NULL object
	  and, if so, return the null GUID instead of crashing.
	* src/business/business-core/gncCustomer.h:
	* src/business/business-core/gncEmployee.h:
	* src/business/business-core/gncInvoice.h:
	* src/business/business-core/gncJob.h:
	* src/business/business-core/gncTaxTable.h:
	* src/business/business-core/gncVendor.h:
	  Fix ...RetGUID() to check whether it was passed a NULL object
	  and, if so, return the null GUID instead of crashing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9759 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-07 02:00:38 +00:00
Derek Atkins
ab8dcbbfcc Pull up from HEAD:
* src/engine/qofinstance.c: return a "valid" GUID even if passed a NULL
	  object, because lots of code assumes you can get a guid all the time.
	  So, just return guid_null() instead of NULL.  Fixes a SEGV.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9744 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-01 18:24:31 +00:00
unknown user
b2107d0e63 This commit was manufactured by cvs2svn to create branch
'gnucash-gnome2-dev'.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9743 57a11ea4-9604-0410-9ed3-97b8803252fd
2004-01-01 18:24:31 +00:00
David Hampton
25a4aa1bc8 Sync the g2 branch with the gnome2-merge-5 tag. (2003-12-14)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9727 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-12-14 09:03:31 +00:00
David Hampton
db1acc22d2 Sync the g2 branch with the gnome2-merge-5 tag. (2003-12-14)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9726 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-12-14 08:50:16 +00:00
David Hampton
2e0e26a8db Update sorting functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9725 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-12-14 07:06:40 +00:00
David Hampton
7ade205718 Update for the last month's work of work.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9715 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-12-01 00:07:13 +00:00
David Hampton
880e4dfc68 Install stylesheet menus using the new plugin system.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9714 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-12-01 00:05:19 +00:00
David Hampton
03cb008325 Rework the stylesheets dialog to make it easier to implement in gtk2.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9713 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-12-01 00:04:06 +00:00
David Hampton
4e9eeb59fd Fix automake complaint.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9712 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-12-01 00:02:33 +00:00
David Hampton
18a46610a6 Convert the commodities and prices dialog over to the gtk2 based MVC
system.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9711 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-30 23:38:32 +00:00
David Hampton
3fcc2d692f Add a couple of functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9710 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-30 23:36:36 +00:00
David Hampton
7bab3b0bd8 Extract basic view manipulation functions into a separate file. Clean
up code and regularize naming scheme.  Add a new column to the account
tree.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9709 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-30 22:24:51 +00:00
David Hampton
d9ab06cd11 Add some utility functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9708 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-30 22:23:33 +00:00
David Hampton
ef3c195723 Expose a preciously internal function for getting account balances.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9707 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-30 21:54:47 +00:00
David Hampton
617c1c0e22 Add support for callback hooks when a session is closed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9706 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-30 21:38:09 +00:00
David Hampton
eeb680571f Fixes from upstream
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9705 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-30 21:31:21 +00:00
David Hampton
413b02d77a Promote the commodity namespace to a externally visible opaque object.
Make commodities and namespaces Qof Instances.  Add more events
related to commodities and namespaces.  Require the book when creating
a new commodity.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9704 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-29 03:00:35 +00:00
David Hampton
94dd83e690 Update to provide the book when creating a new commodity.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9703 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-29 02:58:45 +00:00
David Hampton
6beced73b1 Clarify variable names in data strutures.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9702 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-29 00:08:20 +00:00
David Hampton
424c3e12d0 Convert some destroy functions to finalize functions. Destroy can be
called multiple times in gtk2.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9666 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-08 20:38:42 +00:00
David Hampton
ea74240ca7 Clean up after the main preferences dialog is closed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9665 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-08 20:36:54 +00:00
David Hampton
083d7cc6e0 Don't access the account tree model directly. Use the view functions
no new functionality can easily be added to the view.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9664 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-08 20:36:27 +00:00
David Hampton
7596164454 Protect the generate_event function from a handler unregistering
itself during a callback.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9663 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-08 20:36:01 +00:00
David Hampton
d2febdbcea Remove a debugging printf.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9662 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-08 20:34:03 +00:00
David Hampton
c23017ef47 Give immediate feedback when the user clicks on the quit button.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9661 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-08 20:29:11 +00:00
David Hampton
db0775050b Remove unnecessary includes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9660 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-01 22:41:39 +00:00
David Hampton
d671ee581d Collapse knowledge of the account tree model layering into one place.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9659 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-01 22:40:37 +00:00
David Hampton
44857b6897 Forgot to NULL terminate argument list.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9658 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-11-01 07:54:43 +00:00
David Hampton
a503753a20 Current output from make-gnucash-potfiles.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9657 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-27 07:26:54 +00:00
David Hampton
04de1826b9 Fix another crash caused by qof changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9655 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-27 00:23:29 +00:00
David Hampton
26203fabcd Add the "Close Books" menu item.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9653 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-26 21:50:21 +00:00
David Hampton
8b9483c355 Get "Tax Options" working in the g2 port.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9652 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-26 21:49:49 +00:00
David Hampton
ca671b6cbd Start the "double line" menu item in the correct state.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9651 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-26 21:49:32 +00:00
David Hampton
54dfe1a4ef Simplify the way filters are applied to an account tree view.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9650 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-26 21:49:20 +00:00
David Hampton
da5a070d06 Fix a couple crashes. Remove debugging.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9649 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-26 04:13:26 +00:00
David Hampton
d21bc31d4e Flush the tree when a visibility filter is applied. Prevents unwanted
nodes from appearing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9648 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-26 04:11:19 +00:00
David Hampton
afe0869516 Get all the import functions working in the G2 port.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9646 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-10-26 00:06:47 +00:00