From 560ce9f66749011ec2190ac10681ffba9d546a80 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Mon, 5 Oct 1998 06:06:49 +0000 Subject: [PATCH] allow unconstrained date browsing in register git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1268 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/MultiLedger.c | 6 ------ src/MultiLedger.h | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/MultiLedger.c b/src/MultiLedger.c index e02f45bf64..9358167c2a 100644 --- a/src/MultiLedger.c +++ b/src/MultiLedger.c @@ -32,12 +32,6 @@ #include "Transaction.h" #include "util.h" -/* the MAX_QUERY_SPLITS define determines how many transactions should be shown - * in the register. Its set to a default of 30. But this should be converted - * into a user-configurable value. So hack-alert on the configuration aspect. - */ -#define MAX_QUERY_SPLITS 30 - /** GLOBALS *********************************************************/ /* These are globals because they describe the state of the entire session. * The is, there must be only one instance of these per GUI session. diff --git a/src/MultiLedger.h b/src/MultiLedger.h index e124d7e2aa..06462d0216 100644 --- a/src/MultiLedger.h +++ b/src/MultiLedger.h @@ -32,6 +32,21 @@ #include "SplitLedger.h" #include "Transaction.h" +/* the MAX_QUERY_SPLITS define determines how many transactions should be shown + * in the register. Its set to a default of 30. But this should be converted + * into a user-configurable value. So hack-alert on the configuration aspect. + */ +#define MAX_QUERY_SPLITS 30 + +/* the MAX_QUERY_SPLITS_UNCLAMP define determines cap on how many transactions + * should be shown in the register when uiser is browsing with dates. Its set + * to a default of 1000, which should give user plenty of elbow room to browse, + * and is still small enough to keep em out of trouble. This should be converted + * into a user-configurable value. So hack-alert on the configuration aspect. + */ +#define MAX_QUERY_SPLITS_UNCLAMP 1000 + + /** STRUCTS *********************************************************/ /* The xaccLedgerDisplay struct describes a single register/ledger instance. */