KDevelop erroneously interprets [[ as the beginning of a C++17 attribute which
messes up all subsequent formatting. Changing this to '[ [' (with a space in between)
resolves the issue.
- Remove unneeded includes, required a few fixes in other header files
- Silence unused parameter warnings using c++17 attribute [[maybe_unused]]
- Remove some duplicate, unused functions from gnucash and gnucash-cli
They were a left over from a previous commit
This is just a first start, more refactoring will follow in later commits.
The idea is to have an application class that provides the basic framework
gnucash and gnucash-cli will become specializations of this class adding their
specific functionality. I'm splitting this over several commits to be able to
keep track of all the many changes.
This tool is intended to expose certain gnucash functions to a command line interface.
The first one is --add-price-quotes. This option currently also exists in gnucash.
It will be marked deprecated there. Future extensions to this can be things like
report generation, non-interactive imports,...
For release notes:
* new reports are now using different options and renderer
* options and layout are different
* Old reports still accessible via --extras
make gnc_path_get_localedir() and GETTEXT_PACKAGE available for python
to access locales. Import gettext module to provide _ as translator
method. Provide null _-method returning english text in case of missing gettext.
Make a lot of messages translatable by adding _-method. Include python
files to create .pot-files.
Displays the Transaction Association link in the Transaction Report and
when selected will open the association outside of Gnucash as it
currently does when opened from the register.
Use the existing associations functions to do the updating, opening and
removing of the association for invoices and all objects that use the
invoice interface. The actual association when present is added as a
link button which is shown below the notes.
Display glyphs in the register for transaction associations if a font
has them. A test is made when the register is loaded to see if there is
a font that has the two glyphs available otherwise the usual characters
are used. The two glyphs used are...
GLYPH_PAPERCLIP // Codepoint U+1F4CE
GLYPH_LINK // Codepoint U+1F517
Change the way the user picks a file association from using a
GtkFileChooserWidget to a GtkFileChooserButton so that you will get a
native file dialogue if you have at least Gtk+ version 3.20