"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libgnucash/engine/gnc-optiondb.cpp" between
gnucash-5.0.tar.bz2 and gnucash-5.1.tar.bz2

About: GnuCash is personal and small-business financial-accounting software.

gnc-optiondb.cpp  (gnucash-5.0.tar.bz2):gnc-optiondb.cpp  (gnucash-5.1.tar.bz2)
skipping to change at line 118 skipping to change at line 118
{"Show Accounts until level", {nullptr, "Levels of Subaccounts"}}, {"Show Accounts until level", {nullptr, "Levels of Subaccounts"}},
{"Invoice number", {nullptr, "Invoice Number"}}, {"Invoice number", {nullptr, "Invoice Number"}},
{"Report title", {nullptr, "Report Title"}}, {"Report title", {nullptr, "Report Title"}},
{"Extra notes", {nullptr, "Extra Notes"}}, {"Extra notes", {nullptr, "Extra Notes"}},
// income-gst-statement.scm // income-gst-statement.scm
{"default format", {nullptr, "Default Format"}}, {"default format", {nullptr, "Default Format"}},
{"Report format", {nullptr, "Report Format"}}, {"Report format", {nullptr, "Report Format"}},
// ... replaced to …, Dec 2022 // ... replaced to …, Dec 2022
{"Filter By...", {nullptr, "Filter By…"}}, {"Filter By...", {nullptr, "Filter By…"}},
{"Specify date to filter by...", {nullptr, "Specify date to filter by…"}}, {"Specify date to filter by...", {nullptr, "Specify date to filter by…"}},
// trep-engine:
{"Running Balance", {nullptr, "Account Balance"}},
}; };
static bool static bool
operator==(const std::string& str, const char* cstr) operator==(const std::string& str, const char* cstr)
{ {
return strcmp(str.c_str(), cstr) == 0; return strcmp(str.c_str(), cstr) == 0;
} }
void void
GncOptionSection::foreach_option(std::function<void(GncOption&)> func) GncOptionSection::foreach_option(std::function<void(GncOption&)> func)
skipping to change at line 462 skipping to change at line 464
KvpValue* kvp{}; KvpValue* kvp{};
if (type == GncOptionUIType::BOOLEAN) if (type == GncOptionUIType::BOOLEAN)
kvp = kvp_value_from_bool_option(option); kvp = kvp_value_from_bool_option(option);
else if (is_qofinstance_ui_type(type)) else if (is_qofinstance_ui_type(type))
kvp = kvp_value_from_qof_instance_option(option); kvp = kvp_value_from_qof_instance_option(option);
else if (type == GncOptionUIType::NUMBER_RANGE) else if (type == GncOptionUIType::NUMBER_RANGE)
/* The Gtk control uses a double so that's what we /* The Gtk control uses a double so that's what we
* have to store. */ * have to store. */
kvp = new KvpValue(option.template get_value<double> ()); kvp = new KvpValue(option.template get_value<double> ());
else else
kvp = new KvpValue{g_strdup(option.template get_valu {
e<std::string>().c_str())}; auto str{option.template get_value<std::string>()};
kvp = new KvpValue{g_strdup(str.c_str())};
}
qof_book_set_option(book, kvp, &list_head); qof_book_set_option(book, kvp, &list_head);
} }
}); });
}); });
} }
static inline void static inline void
fill_option_from_string_kvp(GncOption& option, KvpValue* kvp) fill_option_from_string_kvp(GncOption& option, KvpValue* kvp)
{ {
auto str{kvp->get<const char*>()}; auto str{kvp->get<const char*>()};
 End of changes. 2 change blocks. 
2 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)