allow unconstrained date browsing in register

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1268 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-10-05 06:06:49 +00:00
parent 9106339070
commit 560ce9f667
2 changed files with 15 additions and 6 deletions

View File

@ -32,12 +32,6 @@
#include "Transaction.h" #include "Transaction.h"
#include "util.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 *********************************************************/ /** GLOBALS *********************************************************/
/* These are globals because they describe the state of the entire session. /* 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. * The is, there must be only one instance of these per GUI session.

View File

@ -32,6 +32,21 @@
#include "SplitLedger.h" #include "SplitLedger.h"
#include "Transaction.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 *********************************************************/ /** STRUCTS *********************************************************/
/* The xaccLedgerDisplay struct describes a single register/ledger instance. /* The xaccLedgerDisplay struct describes a single register/ledger instance.
*/ */