Commit Graph

1796 Commits (1890c6ccfb1fbfa6063bf34c8a2e406b6e41c9d5)

Author SHA1 Message Date
John Ralls 6f93a68bad c++options: Serialize and deserialize to strings instead of streams.
4 years ago
Christopher Lam 88ecf8dd17 Merge branch 'maint'
4 years ago
John Ralls dd7feb9988 options.scm: Remove second license comment.
4 years ago
John Ralls d1fe359e47 gnc_numeric_to_decimal: Change can't round warning to a debug.
4 years ago
John Ralls 74fd716afb Clarify gnc_relative_date_to_time64 helper functions.
4 years ago
John Ralls f6c9e63e3d Fix PR comments so far.
5 years ago
John Ralls cf5da9fffd Resolve merge conflicts.
5 years ago
John Ralls 96b09ded9f Doxygen documentation for new options classes.
5 years ago
John Ralls 00a982d97d Use Scheme to generate and parse saved option files.
5 years ago
John Ralls ff04ad3785 Bug 798346 - crashes when running check & repair
5 years ago
Christopher Lam 984d816a58 Merge branch 'maint'
5 years ago
Christopher Lam 79d8ef0299 Revert b5f5129f7 using gnc_list_length_cmp
5 years ago
Christopher Lam 3dfdf60608 [gnc-glib-utils] Define and export gnc_list_length_cmp
5 years ago
Christopher Lam b5f5129f7d Shortcut g_list_length comparison against small numbers
5 years ago
Christopher Lam f813f7cd14 [gnc-autoclear] Move autoclear algorithm into gnome-utils
5 years ago
goodvibes2 8ad29feaba Bug797678 OFX import should append not replace, existing Notes & Desc
5 years ago
Geert Janssens bdb06479e8 GSettings - fix GObject warning when old prefs-version is unset
5 years ago
John Ralls 5a8cbf4193 Bug 798325 - New Currency for Venezuela (VED)
5 years ago
Christopher Lam f40dbb8c28 Avoid unnecessary g_list_length in equality functions
5 years ago
Christopher Lam f0970c8eb4 [gnc-features] don't repeatedly g_strconcat gchars*
5 years ago
Christopher Lam 31a0300abe [Recurrence.c] avoid repeated calls to g_list_length
5 years ago
Christopher Lam b480600dc8 [gnc-pricedb] gnc_price_list_equal: avoid 4 g_list_length calls
5 years ago
Christopher Lam 23e528f51a [utest-gnc-pricedb] add tests for gnc_price_list_equal
5 years ago
Geert Janssens 09b3ce2382 Revert "Add structure to map migrated preferences to old ones"
5 years ago
Geert Janssens 806d0b3157 Revert "GSettings - make most of the api private"
5 years ago
Geert Janssens 1d4673ed2a Revert "GSettings - rework internal helper functions to use more C++"
5 years ago
Geert Janssens 24fa289952 GSettings - rework internal helper functions to use more C++
5 years ago
Geert Janssens 26b2d7ca78 GSettings - make most of the api private
5 years ago
Geert Janssens c6103a5c17 Add structure to map migrated preferences to old ones
5 years ago
John Ralls 2f4438ab28 Bug 798335 - No longer possible to change trading account
5 years ago
Christopher Lam 9eaa3eb23a Merge branch 'maint'
5 years ago
John Ralls 7c9c2eba3c Bug 798320 - Error message indicating a crash of GNUcash when closing...
5 years ago
Geert Janssens e64bcfe620 Merge branch 'maint'
5 years ago
Geert Janssens 9a465fc359 GSettings - add 'deprecate' and 'obsolete' conversions for user preferences
5 years ago
Geert Janssens 64576f7d27 GSettings - widen scope from 'migration' to 'transformation'
5 years ago
John Ralls 29e7b07ed3 Remove superflous schema_source left over from pasting.
5 years ago
John Ralls 8bfa5a63f2 [gsettings] Avoid crash from settings schema not being registered.
5 years ago
Christopher Lam 10c1223df2 Merge branch 'maint-progress' into maint #1150
5 years ago
Geert Janssens 2a7566cc40 Win32 - drop conditional code never reached
5 years ago
John Ralls 67191203ae Merge branch 'maint'
5 years ago
Christopher Lam d82bb7b8a2 [Transaction.c] use is_unset static to denote uncached readonly_reason
5 years ago
Christopher Lam 128c8d6f88 [utest-Transaction] add tests for xaccTransGetReadOnly
5 years ago
Geert Janssens 8ea52ae212 GSettings - run data model transations while setting up
5 years ago
Christopher Lam c0736a1a04 Merge branch 'maint-leaks' into maint #1135
5 years ago
Geert Janssens f1802b6fdf GSettings Upgrade - add code to migrate settings
5 years ago
Geert Janssens f21c7b6e90 GSettings - define old prefix and check settings for the presence of both prefixes while normalizing
5 years ago
Geert Janssens a203c5b2d5 GSettings - drop logic to relocate our settings
5 years ago
Geert Janssens d1113a4534 GSettings - build as cpp
5 years ago
Geert Janssens 02fbf217f6 GSettings Upgrade - change schema prefix from org.gnucash to org.gnucash.GnuCash
5 years ago
Geert Janssens 6674b1bb6b Cleanup - minimal glib=2.56.1 - drop all conditionals on older versions
5 years ago
Christopher Lam 87b61bf6fb [account.cpp] GValue must be unset in old functions
5 years ago
Christopher Lam 86cf327f09 [account.cpp] GValue containing string must be unset
5 years ago
Christopher Lam c8a53c54f2 [account.cpp] refactor gnc_account_get_map_entry
5 years ago
Christopher Lam 4309469730 [utest-Account] test old dxaccAccount* functions
5 years ago
Christopher Lam a5d101d1be [utest-Account] test gnc_account_get_map_entry
5 years ago
Christopher Lam 73ad5b1265 [gnc-glib-utils] use g_stpcpy instead of gnc_strcat
5 years ago
Christopher Lam aa0668f9e6 Revert "[account.cpp] deprecate old dxacc* functions"
5 years ago
Christopher Lam d290c3c45d [account.cpp] deprecate old dxacc* functions
5 years ago
Christopher Lam 374443747d [account.cpp] new static: get/set_kvp_string_path
5 years ago
John Ralls 1d8983191d Fix runaway sed error.
5 years ago
John Ralls 824b515430 Fix qoflog's comments to reflect a preference for the macros over GLib functions.
5 years ago
John Ralls 74d0630867 Bug 798237 - Logging during XML file loading degrades performance...
5 years ago
John Ralls 574f567b62 Refactor GncXmlBackend::get_file_lock.
5 years ago
John Ralls d7eae0664f [gz_open] Use compress and write consistent with calling functions.
5 years ago
Christopher Lam 15852031d4 [utest-account.cpp] increase test coverage
5 years ago
John Ralls c3f8daaf7d Bug 798250 - Gnucash permanent hang on save while loading report
5 years ago
Christopher Lam 017ab06939 Merge branch 'maint'
5 years ago
John Ralls edad194389 Bug 798180 - Update to macOS Big Sur 11.3 breaks Finance Quote
5 years ago
John Ralls cd0d50aac1 Deprecate date options with a time of day setting.
5 years ago
John Ralls 8ab8642e76 Fix leak of trading_splits list in xaccTransClearTradingSplits
5 years ago
John Ralls 1387d5f960 Fix unchecked ptr dereference.
5 years ago
John Ralls ab24c34660 Merge Simon Arlott's 'free-template-root' into maint.
5 years ago
Simon Arlott 4a8acf3fb2 Free template root accounts on book end
5 years ago
John Ralls 901fea158f Merge Simon Arlott's 'xml-locking-fixes' into maint.
5 years ago
John Ralls 38cd06e54a Remove the lock-file-link-count test from the XML backend.
5 years ago
John Ralls 079a900300 Bug 798298 - Re-imported transactions no longer ignored
5 years ago
Mike Alexander 068a5d2fa8 Fix xaccSplitGetOtherSplit which was broken by 028bf9826, don't
5 years ago
jean 4e9fe0a4d1 Add missing function to mock account
5 years ago
John Ralls 00c2e99d2e Convert the Scheme RelativeDatePeriod lookup table to a std::vector.
5 years ago
Christopher Lam 8d502fcdd8 Merge branch 'maint'
5 years ago
Christopher Lam 1eb6709331 [test-lots.cpp] add kvp getter/setter changes
5 years ago
Christopher Lam 323182c9f7 [utest-Account.cpp] add kvp getter/setter changes
5 years ago
Christopher Lam 8a37c4c019 [utest-Invoice.c] add kvp getter/setter tests
5 years ago
Christopher Lam 9ec670f828 [test-commodities.cpp] add kvp setter/getter test
5 years ago
Christopher Lam d4c8b36f9f [utest-Transaction.cpp] add kvp setter/getter tests
5 years ago
Christopher Lam c3b50f0b58 [gnc-lot.c] fix - cache value properly
5 years ago
Christopher Lam 595e126a34 [account.cpp] modify set_kvp_string_tag to accept strstrip or nullptr
5 years ago
Christopher Lam c5a6383b43 [account.cpp] fix - incomplete #1117
5 years ago
John Ralls bed44f404f Remove the always questionable Scheme generation and parsing code.
5 years ago
Christopher Lam 001b34616f [Transaction.c] GValue string must be unset
5 years ago
Christopher Lam a47bee97d6 [Split.c] GValue string must be unset
5 years ago
Christopher Lam 0ecbcb4ef1 [gnc-lot.c] GValue string must be unset
5 years ago
Christopher Lam ac2afc7e13 [gncInvoice.c] GValue string must be unset
5 years ago
Christopher Lam 3bf49ed8d7 [Account.cpp] GValue string must be unset
5 years ago
Christopher Lam e3af2f22f9 [gnc-commodity.c] cache user_symbol into commodity struct
5 years ago
John Ralls a487ca3f98 Improve template conditional readability with custom traits values.
5 years ago
John Ralls 57f73d70c7 Merge Yordan Miladinov's denom_lcd into maint.
5 years ago
Christopher Lam c6d8333811 Merge branch 'maint'
5 years ago
Christopher Lam c55ab50349 [gnc-budget.c] gnc_budget_get_account_period_note to be freed by the caller
5 years ago
Christopher Lam 9ddb9e8215 [gnc-module.c] free a GList* properly
5 years ago
Simon Arlott 0665208299
xml-backend: Lock file is deleted even if the lock is not acquired
5 years ago
Simon Arlott e4619fdae6
xml-backend: Don't try to close m_lockfd if it's not open
5 years ago
Yordan Miladinov 6cb509ea7d
fix an uncaught exception: denom_lcd may throw an overflow exception if casting lcm to int64_t fails
5 years ago
Christopher Lam 7e41efc232 Merge branch 'maint-speedup-and-leaks' into maint #1109
5 years ago
Christopher Lam ff2ceb111d [gnc-commodity] GValue must be unset
5 years ago
John Ralls 62ab148a3e Output a pair when writing relative date values to scheme file.
5 years ago
John Ralls b3f96701a0 GncOptionAccountListValue: Make setter param cv match template.
5 years ago
John Ralls b361582cf2 Ensure option UI is sorted: Tabs by names, items by keys.
5 years ago
John Ralls 10381d42e0 Fix color option handling.
5 years ago
John Ralls 97a317b50c Ensure that alpha values in colors aren't passed to html.
5 years ago
John Ralls 3d1812aacd Explicitly cast a value to the decltype of get_value().
5 years ago
Christopher Lam 028bf9826b [Split] xaccSplitGetOtherSplit don't test book trading-accts
5 years ago
John Ralls 474bc360f4 Improve converting vectors to SCM lists.
5 years ago
Christopher Lam 6bf5a618de qof_instance_get gchar* must be freed
5 years ago
John Ralls 1cd2cf211c Specialize QofInstance* options set_value, catch validation exceptions.
5 years ago
John Ralls 852b2ffc2e Handle bare currency mnemonics, catch invalid GUID string exceptions.
5 years ago
John Ralls e43ff93279 Fix some overly-long lines.
5 years ago
John Ralls 1af97ebb9a Implement registering/unregistering/calling change callbacks.
5 years ago
Christopher Lam e4d808e674 [qofbook] qof_book_use_split_action_for_num_field: free a char*
5 years ago
John Ralls 86da12d844 Use RGB instead of RGBA for color set for color
5 years ago
Christopher Lam eafc290034 Merge branch 'maint'
5 years ago
Christopher Lam 40d886fa9d gnc_account_list_name_violations elements must be freed
5 years ago
Christopher Lam 4c37f6d4ef [account.cpp] gnc_g_list_stringjoin instead of repeated allocations
5 years ago
Christopher Lam e84549926b [gnc-glib-utils] gnc_g_list_stringjoin to join a GList of strings
5 years ago
John Ralls 86d7637160 Handle GncOptionMultichoiceValue::set_value parameters
5 years ago
Christopher Lam bedc85afa3 Merge branch 'maint-leaks' into maint #1101
5 years ago
Christopher Lam 0420ae6a66 [account.cpp] refactor gnc_account_list_name_violations
5 years ago
Christopher Lam 67bd513514 [account.cpp] rewrite gnc_account_foreach_descendant_until in C++
5 years ago
Christopher Lam 17953441cb [account.cpp] refactor gnc_account_foreach_descendant
5 years ago
Christopher Lam 5698b67bf5 [account.cpp] refactor gnc_account_lookup_by_code
5 years ago
Christopher Lam 09e2e7613c [account.cpp] refactor gnc_account_lookup_by_name
5 years ago
Christopher Lam bebc366e88 [account.cpp] refactor gnc_account_n_descendants
5 years ago
John Ralls b6622a386b Pick up option aliases recently added in maint.
5 years ago
John Ralls a97b3e0c6d Don't let C code destroy the ODB, it's owned by Guile.
5 years ago
John Ralls a2e1a3e1b8 Extract the GncOptionDB* from the Scheme dispatch function closure.
5 years ago
John Ralls f0926d66c1 Merge Simon Arlott's 'qof-instance-dispose' into maint.
5 years ago
Christopher Lam e6c33a39bc [account.cpp] refactor gnc_account_get_descendants{_sorted}
5 years ago
Christopher Lam d2db43019c [account.cpp] internal function account_foreach_descendant
5 years ago
Christopher Lam de1ad9367a g_free gnc_ctime which returns a new gchar*
5 years ago
Simon Arlott 7a0ea190ca
qof_instance_dispose should always complete dispose processes
5 years ago
Christopher Lam c9db551693 g_free qof_print_date which returns a new char*
5 years ago
John Ralls d099d39afd Merge Simon Arlott's 'commit-root-on-load' into maint.
5 years ago
John Ralls fd56512cf7 Merge Simon Arlott's 'load-test-xml' into maint.
5 years ago
John Ralls 9062be3d47 Merge Simon Arlott's 'string-cache-fixes' into maint.
5 years ago
John Ralls f6766d42ec Merge Simon Arlott's 'string-cache-no-refcount-empty' into maint.
5 years ago
John Ralls 99eaa81a28 Fix parse of commodity namespace from scheme istream.
5 years ago
Christopher Lam a5edacf0fc [options.scm] Rename option name to "Levels of Subaccounts"
5 years ago
Christopher Lam 23bd716451 g_free gnc-path's gchar* intermediate strings
5 years ago
John Ralls 0bd9033bb3 Move includes of glib and gtk out or extern C in new cpp files.
5 years ago
John Ralls 0f02236ebe Fix gcc warnings.
5 years ago
John Ralls 18997db720 Separate GncOptionAccountValue into GncOptionAccountListValue and GncOptionAccountSelValue.
5 years ago
John Ralls dd8e8b4efa Evaluate the getter for making invoice options.
5 years ago
John Ralls 05ac056449 Make separate option type for GncOwner.
5 years ago
John Ralls 9d150b1ae7 Always set budget option to default budget.
5 years ago
John Ralls f5d8d508ee Create the GncOptionVariant's GncOptionValue in place.
5 years ago
John Ralls c034a26ae7 Protect stored scheme option values from the garbage collector.
5 years ago
John Ralls 67dab6b320 Remove business-options.scm and business-prefs.scm.
5 years ago
John Ralls a1af86ed40 Implement gnc:generate-restore-forms, gnc-optiondb-save-to-scheme.
5 years ago
John Ralls c34986dad4 Change gnc:new-options to return a fake dispatch function.
5 years ago
John Ralls 3f89d063eb Evaluate default function in gnc:make-account-sel-limited-option.
5 years ago
John Ralls 6eb5dfed51 make-internal fail if there is a ui_item, not if there isn't.
5 years ago
John Ralls 29a2365fdf Avoid infinite recursion when the alias changes only the section name.
5 years ago
John Ralls 7885353fe3 Bring option aliases up to date.
5 years ago
John Ralls bbe74aa086 Remove tooltips from multichoice option values.
5 years ago
John Ralls 7c6ecafd61 Rewrite options.scm to wrap options.hpp functions where needed.
5 years ago
John Ralls 52ef53a405 Implement multichoice selection options.
5 years ago
John Ralls 7239eb809a Test more natural way of designating relative dates.
5 years ago
John Ralls 23461f1d6c The value of a list-option is a list. Duh.
5 years ago
John Ralls 12f8df1eab Fix test failure: Clear the stream before reusing it.
5 years ago
John Ralls be322a0d7c Group GncOptionMultChoiceValue::set_multiple with set_default_multiple.
5 years ago
John Ralls 27670a6e98 Make the 'pixel and 'percent SCM symbols C++ constants.
5 years ago
John Ralls a94f69d6e0 Pretty up some SFINAE formatting for easier reading.
5 years ago
John Ralls 0f8446a1bb Remove some no longer needed diagnostics.
5 years ago
John Ralls f66a918be4 Implement GncOptionValue<const QofQuery*>
5 years ago
John Ralls 0a8f66ee90 Fold GncOptionGncOwnerValue into GncOptionValue<const QofQuery*>.
5 years ago
John Ralls 418eb06620 Remove GncOptionDateValue::set_default_value(size_t)
5 years ago
John Ralls 7d0cdf7c94 Handle #f input to option typemap(in)s.
5 years ago
John Ralls 86a2f1551f Implement gnc-make-date-option.
5 years ago
John Ralls 693e966bf9 Extract Scheme date handling functions and apply them.
5 years ago
John Ralls 63502900f3 Permit GncOptionAccountValue to have a nil default value.
5 years ago
John Ralls 42185c0ec8 typemap for std::size_t
5 years ago
John Ralls 5c74337810 Add function GncOption::set_default_value.
5 years ago
John Ralls c04f4a00e0 Replace gnc_make_option<SCM> with gnc_make_scm_option
5 years ago
John Ralls e7309f077b Replace gnc_make_option<gnc_commodity*> with gnc_make_commodity_option.
5 years ago
John Ralls 3aa86ca992 QofInstance* needs a typemap to match the from/to SCM logic.
5 years ago
John Ralls 4a305998e4 GncOptionDateValue set_value_from_scm: 'else' required.
5 years ago
John Ralls d9984f75ab Update test-gnc-optiondb.scm for not renaming the RelativeDatePeriod enums.
5 years ago
John Ralls 43cd81ba78 Fix a couple of RangeValue retrieval issues.
5 years ago
John Ralls 9bd3baff63 Change the reldate_values alist from a static to a singleton.
5 years ago
John Ralls 534a7c2893 GncOptionMultichoiceValue allow setting a default selection.
5 years ago
John Ralls c62b526ba0 Implement scm_to_value<bool>.
5 years ago
John Ralls efc7346490 Implement scm_to_value<GncOptionAccountList>.
5 years ago
John Ralls f20c358ce1 Return a pair in scheme for GncOptionRangeValue<int>.
5 years ago
John Ralls b5c0477143 Use the SWIGGED pointer for the SCM value of QofInstance* Values.
5 years ago
John Ralls f7f2d22909 Implement gnc-optiondb-foreach.
5 years ago
John Ralls 81d261897e scm_to_value<QofInstance*>() handle Swigged ptrs as well as GUIDs.
5 years ago
John Ralls 16a36d9104 Correctly set value of a GncOptionMultichoiceValue.
5 years ago
John Ralls 7c1b4b794a Convert from Scheme date-period symbols to C++ RelativeDatePeriod enum.
5 years ago
John Ralls d41292fddd Make set_selectable a GncOptionsGtkUIItem member function.
5 years ago
John Ralls a21f329b1e Use 100% instead of 20000 px for default Pixmap size.
5 years ago
John Ralls 8c2a8edbed Implement gnc_option_db_set_string_value and gnc_optiondb_lookup_string_value.
5 years ago
John Ralls 86102e1be7 Return SCM_BOOL_F instead of nullptr to Scheme optiondb-lookup.
5 years ago
John Ralls 53ad0ba440 Prevent SWIG from trying to call delete on a std::unique_ptr.
5 years ago
John Ralls 08d1eebba2 Use GUID strings instead of QofInstance* for scheme value of QofInstance.
5 years ago
John Ralls fba0248548 Support different GncOptionMultichoiceValue key types.
5 years ago
John Ralls 55a2ed1df8 gnc-optiondb.i uses functions declared in gnc-optiondb.h.
5 years ago
John Ralls 18b83874fd Another bit of Remove test-option-utils
5 years ago
John Ralls 0b7ccfbd5b Create gnc-make-foo-option functions.
5 years ago
John Ralls a602f64b17 SFINAE-constrain the GncOption constructor templates.
5 years ago
John Ralls 43f4bcb610 Make GncOptionUIType an enum class.
5 years ago
John Ralls 7fa6778b4b Add a register_option overload to GncOptionDB
5 years ago
John Ralls cb7270cafe Fix myriad gcc10 complaints.
5 years ago
John Ralls 76b0001cbe Remove option-util.
5 years ago
John Ralls e2c87f23c3 Convert optiondb users in gnome and gnome-utils to C++.
5 years ago
John Ralls ea835b31b7 Provide GncOptionPtr& overloads for register-option functions.
5 years ago
John Ralls 472814d315 Change the normal internal option ValueType to SCM.
5 years ago
John Ralls e48416010d Remove redundant GncOptionDB decl.
5 years ago
John Ralls 7022f5222d Revert gnc_option_db_lookup|set_glist_value to ...scm_value.
5 years ago
John Ralls 8c77ce967b Implement and test obsolete option name aliasing.
5 years ago
John Ralls 90b8fce59f Fix build after merge.
5 years ago
John Ralls 4f3fd665cf Fix counter and counter_format storage in KVP.
5 years ago
John Ralls b19f3d383c Protect some exceptions from being passed to Swig.
5 years ago
John Ralls 52600bbd1f Instantiate gnc_register_number_range_option templates in SWIG.
5 years ago
John Ralls 31a0153fec Another GncOptionDBPtr fix.
5 years ago
John Ralls 85db341afe Remove test-option-utils
5 years ago
John Ralls 21398dfda1 Testing fixups for using GncOptionDB* in register_option functions.
5 years ago
John Ralls 7dab089d49 Fix miscalculation of prev_quarter_end for the first quarter.
5 years ago
John Ralls d1cfd62f31 Fix loading text fields from KVP into options.
5 years ago
John Ralls 276d33975a Remove dialog-options.c, replaced by dialog-options.cpp.
5 years ago
John Ralls 5f9c66aa61 Save all options to KVP if clear_options is true.
5 years ago
John Ralls 6491c98563 Clean up some omitted type-forcing in set_option_from_ui_type() instances.
5 years ago
John Ralls 245a8fccc7 Correctly select UI types for GUID output.
5 years ago
John Ralls c751e56184 Fix fail to load or save number-range values in KVP.
5 years ago
John Ralls 010ab1a965 Fix free of unallocated ptr crash.
5 years ago
John Ralls 4a4e5d36f8 Enable gnc_register_owner_option to handle the three types that GncOwner aliases.
5 years ago
John Ralls d8f83d6ee6 Boolean simple won't work if its UI type is INTERNAL.
5 years ago
John Ralls 3514725a97 Make gnc_register_number_range_option a template on ValueType.
5 years ago
John Ralls e78c012699 Fill in the book options.
5 years ago
John Ralls ae79fd016d More skeletons
5 years ago
John Ralls 28438e3126 Rewire gnome and gnome-utils to use GncOptionDB.
5 years ago
John Ralls 41e59df71f Remove unused and un-needed function.
5 years ago
John Ralls 1eef796f09 Add some skeleton functions to make the option-using code in gnucash/gnome-utils and gnucash/gnome happy.
5 years ago
John Ralls 99103ffd10 Change gnc-register-option functions to take GncOptionDB*.
5 years ago
John Ralls 9111f118e0 Business option create_option_widget specializations.
5 years ago
John Ralls 01c0fe2364 Include what we use.
5 years ago
John Ralls 25b717d47a Add a rudimentary C API for GncOptionDB.
5 years ago
John Ralls 4451f58bd6 Rename RelativeDatePeriods missed earlier.
5 years ago
John Ralls 6feb92d4e8 Provide scheme function new-gnc-optiondb.
5 years ago
John Ralls f9e136dbac Get the spelling of GncMultichoiceOptionEntry consistent.
5 years ago
John Ralls eb6e31f803 dialog-options: Change signature of gnc_option_get_gtk_widget()
5 years ago
John Ralls 67508ea039 Reimplement dialog-options for C++.
5 years ago
John Ralls 3b4785e744 Convert GncOptionSection from a std::pair to a class.
5 years ago
John Ralls c63db36a60 Rename string_equal_charptr to operator==(const std::string&, const char*)
5 years ago
John Ralls 0106176436 Provide GncOption::is_alternate() for GncOptionRangeValue<>.
5 years ago
John Ralls 5fd53c94de Provide GncOption::GetLimits for setting a NUMBER_RANGE spin button.
5 years ago
John Ralls a995343a8b Provide for multiple selections in GncOptionMultichoiceValue
5 years ago
John Ralls 16da3208fc Make GncOptionDateValue::get_period_index return value size_t.
5 years ago
John Ralls ac0e7063c7 Move the GncOptionUIType and dirty members to GncOptionUIUtem.
5 years ago
John Ralls 3200bd4966 Add a multiselect boolean member to GncOptionAccountValue.
5 years ago
John Ralls fce33799af Change GncOptionUIItem to be a pure virtual class instead of a templated one.
5 years ago
John Ralls 00aa0f603d Add a PLOTSIZE option UI type.
5 years ago
John Ralls 6c8e0e23f7 Redesign GncOptionDateValue.
5 years ago
John Ralls 08bf3ec5b0 Merge branch 'maint'
5 years ago
Christopher Lam f1e35daab3 Rename option name from "Extra notes" to "Extra Notes"
5 years ago
Christopher Lam 251db8c37b Rename option name from "Report title" to "Report Title"
5 years ago
Christopher Lam 2606ddf905 Rename option name from "Invoice number" to "Invoice Number"
5 years ago
Simon Arlott 4a5b5f3bf2
Don't cache the empty string
5 years ago
Simon Arlott 320df7e409
Use const return values for string cache
5 years ago
Simon Arlott 4132939612
Avoid leaking string cache entries for "" in Transaction and Split
5 years ago
Simon Arlott bf8fe1123c
Commit root accounts after loading from XML
5 years ago
Simon Arlott f15402a9a6
Load test data from XML properly
5 years ago
John Ralls 3b78b6e894 Change the GncOptionMultichoiceValue permissible value return types to const char*.
5 years ago
John Ralls d5f6a2539b Replace GncOption::_get_option() with a friend function swig_get_option.
5 years ago
John Ralls 93a3716c00 Enable retrieval of a GncOptionDateValue's relative period.
5 years ago
John Ralls dc876d4041 Provide an accessor to GncOptionAccountValue::m_allowed
5 years ago
John Ralls 102f36c3be Provide more than one Date UI type to match options available in dialog-option.c
5 years ago
John Ralls 99c2c5e439 GncOptionUIItem from the GncOptionVariant classes to GncOption.
5 years ago
John Ralls 1bea809cec Remove the UI interface from GncOptionDB.
5 years ago
John Ralls cbf7d70ecd Integrate gnc-option into app-utils.
5 years ago
John Ralls 81c5ac6689 Remove the incomplete book-currency code.
5 years ago
John Ralls aa246d3096 Make implementation classes and template code visible only in app-utils.
5 years ago
John Ralls 20b3ef8a89 Handle some minor differences between libc++ (clang) and libstdc++ (gcc).
5 years ago
John Ralls cd6ccbe331 Fix account-tree double-free in scheme test when built with gcc.
5 years ago
John Ralls 691cb0992e Follow change in loading method for engine's guile bindings.
5 years ago
John Ralls cbd0607e80 Implement load and store options from/to book options.
5 years ago
John Ralls 5a82aac639 Hide constexpr constants from SWIG.
5 years ago
John Ralls ffc6866406 Changes to accommodate moving guile engine bindings to bindings/guile.
5 years ago
John Ralls d2535fe21b KvpValue: Use boost::typeindex::type_id instead of buildtin typeid.
5 years ago
John Ralls 009219c63d Much less ugly and fragile.
5 years ago
John Ralls 276641ef15 Change parse of option input to generate a parse tree.
5 years ago
John Ralls 51a1430c24 Remove stray diagnostic.
5 years ago
John Ralls 76172af239 Implement saving and loading OptionDB items to/from scheme and
5 years ago
John Ralls 6ab5618b76 Set a 50-character limit on the saved size of option section and name.
5 years ago
John Ralls d7a2a0ffff Make a constant for std::numeric_limits<std::size_t>max().
5 years ago
John Ralls 826d75af16 Use istream::getline instead of std::getline for date option type parsing.
5 years ago
John Ralls c5294ed6b3 Fix missing-declaration errors in swig-gnc-optiondb-guile.cpp.
5 years ago
John Ralls 7ccba53739 Add stream functions to_scheme and from_scheme to GncOption.
5 years ago
John Ralls 1ea3822665 More operator <</>> Fixups.
5 years ago
John Ralls 98ca190700 Fix commodity in/out to use namespace & mnemonic instead of GUID.
5 years ago
John Ralls 4b997cd025 Fixups for GncOptionDateValue better design.
5 years ago