Commit Graph

8717 Commits

Author SHA1 Message Date
David Hampton
214d9ccc18 Remove unused files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12239 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-03 01:08:20 +00:00
David Hampton
d8c9c76ff9 Use a GtkListStore for the example account categories instead of
layering a custom selection model on a custom example account model.
The code is a lot simpler and has additional sorting capability. Do
some rework on the druid layout.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12238 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-03 01:06:52 +00:00
David Hampton
4ed53449a0 Correct function name. Add a comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12237 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-03 01:05:46 +00:00
Derek Atkins
98f3494c27 need to #include gkeyfile.h if we don't have glib26.
* src/gnome-utils/gnc-tree-view-account.c:
	* src/gnome/gnc-plugin-page-budget.c:
	  need to #include gkeyfile.h if we don't have glib26.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12236 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-02 22:32:18 +00:00
David Hampton
93d345be49 Use the right function to hide a tree column. Update a couple of
debugging messages.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12235 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-02 21:14:31 +00:00
David Hampton
1af0973ffc Initialize the qof instances in commodity namespaces.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12234 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-02 21:11:26 +00:00
David Hampton
a8b4295c7c Start new ChangeLog for 2006.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12233 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-02 21:07:03 +00:00
Chris Shoemaker
00153624b2 Delete unused gncmod-budget.c.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12232 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-02 00:37:02 +00:00
Chris Shoemaker
ece1abe680 General clean-up in Transaction.[ch].
* Regularization of 'trans' as variable name.
 * Whitespace and linewraps
 * lots of control-flow simplification
 * factor one chunk out into get_any_account()
 * Comment some things that are bogus or need improvement



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12231 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-01 22:26:15 +00:00
Christian Stimming
6a38aca6f2 Updated Norwegian translation by Tor Harald Thorland
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12230 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-01 19:56:04 +00:00
Chris Shoemaker
d96b0c7d81 Constify some Split and Transaction functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12229 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 23:35:55 +00:00
Chris Shoemaker
2b7c1430e1 Constify the AccountGroup variables where possible in Group.[ch]
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12228 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 22:28:42 +00:00
Chris Shoemaker
2deaa26188 Add ChangeLog entries for past 4 days.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12227 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 21:17:32 +00:00
Christian Stimming
7f242dd182 Update German translation. 3387 out of 3397 done.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12226 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 12:04:11 +00:00
Christian Stimming
30afb0a96d Add tooltips to new dialog
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12225 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 12:02:22 +00:00
Chris Shoemaker
68ba4431af Turn on gconf for the budget plugin page's tree view account.
Doesn't seem to work quite yet.  It does save the settings in the user's 
gconf directory, but the tree view doesn't remember things like sort order,
which the account-tree page's account treeview does remember.  There must be 
something else needed...



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12224 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 06:20:35 +00:00
Chris Shoemaker
d48e61963e *really* mark strings for runtime translation, not just translatable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12223 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 06:06:51 +00:00
Chris Shoemaker
6d6f37af00 Remove GUI for old attempt at account type filtering.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12222 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 06:03:41 +00:00
Chris Shoemaker
3214346427 Remember what the Budget views looked like last time we were running
Most of the work is delegated to GncTreeViewAccount, just as for 
GncPluginPageAccountTree.  One difference is that the Budget page has to
also remember which Budget it was showing.  For that, we encode the GUID to
a string in the keyfile.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12221 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 05:41:00 +00:00
Chris Shoemaker
b3317bc6ab whitespace line-wrap cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12220 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 05:34:29 +00:00
Chris Shoemaker
58a0d3a582 Move functions from GncPluginPageAccountTree to GncTreeViewAccount
The reason GncPluginPageBudget keeps wanting to use functions in
GncPluginPageAccountTree is that they both use GncTreeViewAccount.

So, we're moving those functions (the account view filter functions
and the account view save/restore functions) into
gnc-tree-view-account.  Along the way, we're also narrowing the
argument types from GtkTreeView to GncTreeViewAccount to avoid
unnecessary down-casting.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12219 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 04:47:52 +00:00
David Hampton
ae57540e94 New script that will remove all post-gtk24 attributes from all glade
files under the 'src' directory.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12218 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 02:09:48 +00:00
David Hampton
4803be391d Fix the 'sort by number' and 'sort by statement date' choices in the
register sort dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12217 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 02:07:30 +00:00
David Hampton
25f3a2e650 Enhance the dialog so that pressing the Enter key in any field will
activate the dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12216 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 01:36:46 +00:00
David Hampton
dd6baa32e8 Remove note about per-tab close buttons.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12215 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 01:01:10 +00:00
Chris Shoemaker
4f8aa04446 Generalizing Account Filter By... (step 5)
export the account-tree's account filter function
populate the account-tree's account filter struct with the right tree-view.

And finally... reuse all this generalized functionality in 
the budget plugin page.  Nice!



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12214 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 00:22:42 +00:00
Chris Shoemaker
aeeac3fd9c Generalize Account Filter By... (step 4)
Fixup comments forgotten in step 3.
Factor out and export most of the account filter dialog creation.
Eventually this function should live somewhere else.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12213 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-31 00:00:49 +00:00
Chris Shoemaker
cba693c30c Generalize Account Filter By... (step 3)
Narrow all the account filter dialog callbacks to use only the 
AccountFilterDialog struct.  Now they're multi-purpose.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12212 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 23:44:39 +00:00
Chris Shoemaker
5f77dd4bf7 Generalize Account Filter By... (step 2)
Narrow the account filter function to use only the AccountFilterDialog.
Now it's multi-purpose.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12211 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 23:34:20 +00:00
Chris Shoemaker
b77990b623 Generalize Account Filter By... (step 1)
Export AccountFilterDialog type




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12210 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 23:28:53 +00:00
David Hampton
a48bcf2acd Remove gtk2.6 properties from the file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12209 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 16:27:23 +00:00
Chris Shoemaker
e58ec5bcf9 Mark budget strings for i18n
Remove obsolete budget glade dialogs



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12208 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 16:00:05 +00:00
Christian Stimming
9a29f2db78 Updated Norwegian translation by Tor Harald Thorland
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12207 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 10:48:13 +00:00
David Hampton
b73f513f72 Remember and use the justification specified in the code instead of
just left justifying everything.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12206 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 07:19:13 +00:00
David Hampton
42b213afe2 Migrate the account page options to a new "Filter By" dialog. Add a
new option to filter out accounts with zero total balances.  Remember
the current filter state across invocations of GnuCash.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12205 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 06:25:03 +00:00
David Hampton
fe80448c99 Move the "Sort By" and "Filter By" menu items to the main window so
they will always appear in the same place in the menus.  Hide them so
they don't actually appear until a page provides them.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12204 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 05:07:14 +00:00
David Hampton
9cab16538f Comment out unused function that won't compile with g-wrap 1.9 after
the const-ifying of the account functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12203 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 05:05:53 +00:00
Chris Shoemaker
3be52c3a36 Minor improvements to engine testing infrastructure
* add some arrays of realistic string values for various 
     Account and Transaction fields
 * use the arrays to generate slightly more human-readable 
     random books
 * pull some hardcoded constants out into static knobs
 * wrap Transaction creation in begin/commit




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12202 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 04:36:38 +00:00
Chris Shoemaker
ca3d0ccf09 Add 'const' qualifier to Account pointers in the Account api.
Including necessary related changes to functions passed accounts
from the account functions.

Interestingly, the only g-wrap function that complained about the
new const function arguments was xaccAccountOrder(), the only one
using const Account ** types.  It seems very uncommon to express
const-ness in g-wrap for any types other than gw:mchar.  Actually 
I couldn't find any other examples, anywhere, so I had to guess 
at the syntax, but it works.

Oh, and one or two minor tweaks like my last commit snuck in, too.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12201 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 03:34:22 +00:00
David Hampton
0ca1e21994 Correct a comment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12200 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-30 03:31:43 +00:00
Chris Shoemaker
24391d1955 Single-pass audit/cleanup of Account.c
* standardize on 'acc' as variable name for Account.
 * removed 'acc->inst.dirty = TRUE' when preceeded by mark_account.
 * slightly more consistent whitespace.
 * short-circuit no-op in many cases where we thought we were changing state but we really weren't.  Don't dirty Accounts in these cases.
 * fix a couple cases where we dirtied the account without dirtying the parent
 * fix one BUG where we just blew away the account's Lots for no reason.
 * comment possible bug where we don't dirty a split.
 * comment two possible buglets where we generate double CM events.
 * comment on possible bugs related to conditional sorting of the Split list.
 * heavy conversion from lower-level to higher-level KVP api.
 * plug mem leak of entire GList of splits.
 * document minor change to corner-case behavior of xaccAccountHasAncestor().
 * several control flow simplifications.
 * fixed one case where we were changing the Account without dirtying it. (Can't find this one now.  Maybe I imagined it.)

Please note where I've marked 'BUG'.  I think there are still (at
least) 2 medium and 2 minor bugs remaining in this file.  I'll have
another look some other day.




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12199 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-29 22:22:33 +00:00
Christian Stimming
b12cf9b46f Use glib's g_iconv functions instead of the system's iconv(3)
functions to improve portability.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12198 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-29 21:25:00 +00:00
Chris Shoemaker
051c9afeb1 remove random qof_commit_edit from xaccSplitSetSlots_nc
fixes unbalanced begins/commits


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12197 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-29 05:21:02 +00:00
Chris Shoemaker
a6dcdd8438 spelling fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12196 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-29 05:18:07 +00:00
David Hampton
127f4ed2cc Better fix for compiling cleanly on a glib 2.9/2.10 system without
using deprecated functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12195 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-29 03:16:57 +00:00
Christian Stimming
9165c82cf6 Update and improve German translation. 3407 out of 3417 done.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12194 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-28 22:13:22 +00:00
Christian Stimming
e6a7225f1b Improve tooltip display for almost all option types. Add tooltips for
buttons where they were missing. Pack option widgets into GtkEventBox
so that tooltips are really shown. Fix various string i18n bugs.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12193 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-28 22:05:49 +00:00
Christian Stimming
0e44c97035 Add tooltip to account type list option
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12192 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-28 22:05:11 +00:00
Chris Shoemaker
ecf0bf4857 trigger regeneration of gnucash scripts when the configuration changes
pulled from 1.8


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12191 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-28 19:27:05 +00:00
Chris Shoemaker
f5ddf6878c Pulled NEWS history from 1.8 branch into trunk.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12190 57a11ea4-9604-0410-9ed3-97b8803252fd
2005-12-28 19:18:03 +00:00