Commit Graph

307 Commits

Author SHA1 Message Date
John Ralls
d22b098dff Set a parent window for the options dialogs.
So they pop up centered on the GnuCash window instead of
on the wrong monitor.
2017-10-27 16:23:02 -07:00
Geert Janssens
0b85bbc1bf Add income-gst-statement.scm to POTFILES.in 2017-09-21 14:24:02 +02:00
Geert Janssens
3a1f7d7339 Also undo the changes to POTFILES.in 2017-09-16 19:15:49 +02:00
Geert Janssens
8b1ebc5168 Update python bindings to use PyGI and Gtk3
While it doesn't fully fix the python bindings, gnucash
now at least doesn't segfault on start up if built with
python bindings enabled. There are still issues to fix though.
2017-09-16 17:38:47 +02:00
Geert Janssens
a670783eb6 Merge branch 'prices-out2' of https://github.com/Bob-IT/gnucash 2017-08-29 22:24:43 +02:00
Geert Janssens
ae75bc963f Rewrite several file path routines to use boost::filesystem
This is a basis for moving .gnucash to a more modern location for
application specific user data (following the xdg spec).
2017-08-26 21:38:21 +02:00
John Ralls
2006155985 Build gwengui-gkt3 only if AQBanking is enabled. 2017-08-25 20:55:52 -07:00
Robert Fewell
6ca85450a8 Move gnc-gdate-utils functions to gnc-date and remove files.
Also update related files to reflect move of gnc-gdate-util functions
2017-08-20 14:07:30 +01:00
Geert Janssens
f943ba61ae Rename directory for code from external projects
'lib' is also being used by the cmake build, so there was a
theoretical risk for file conflicts. The new name is 'borrowed'.
2017-08-17 15:25:49 +02:00
Geert Janssens
3e3eead3c5 Eliminate plugins directory
bi-import and customer-import have been put with the other importers
example is moved to gnc-module as, well, an example
2017-08-14 18:17:13 +02:00
Geert Janssens
2a7f2f891a Eliminate the separate bin directory
Instead its content is moved to gnucash directly, making the gnucash directory
more meaningful.
2017-08-13 12:39:45 +02:00
Geert Janssens
83d14e1c1c Restructure the src directory
It is split into
- /libgnucash (for the non-gui bits)
- /gnucash (for the gui)
- /common (misc source files used by both)
- /bindings (currently only holds python bindings)

This is the first step in restructuring the code. It will need much
more fine tuning later on.
2017-08-10 18:45:00 +02:00
Geert Janssens
8687dfb1da Merge qof directory into engine
They are both about handling core gnucash objects. Qof was once split out
in an attempt to make it a separate library. This hasn't worked out so there's
no good reason any more to keep this artificial separation.

A few considerations:
- The qof tests are merged into the engine test directory but they are kept as
  a separate test entity for now. Several assumptions made in the qof tests
  are no longer valid in the context of the engine. (For example if the
  pricedb test is added in the same test executable as the qofbook test,
  the book creation test fails because it now has 2 collections (pricedb and
  book) instead of only one. There are plenty of others like this so merging
  the tests needs more careful review and is perhaps best done while converting
  to c++/Google test.
- I had to use unique names for the MockBackend classes because apparently the tests were
  using a MockClass from another file in the cmake builds, causing several
  tests to fail.
2017-08-09 15:37:39 +02:00
Geert Janssens
848bb34741 Move core-utils files with depedencies on qof to engine
I have done this in a separate commit from merging qof back
into engine to keep an overview of changes
2017-08-07 18:32:19 +02:00
Geert Janssens
342627d527 Remove the gncmod boilerplate from standard-reports and utility-reports
This adds unnecessary overhead and also serves as an initial experiment
to greatly reduce the gnc-module based modularization.

Oh, and it fixes the autotools make check failure in standard-reports
which I introduced in the previous commit. The fix was to either
fully gnc-modularize business reports or to go to de-gnc-modularize
standard-reports. I chose the latter as I don't want to add any new
gnc-modules any more at this point.
2017-08-07 18:32:18 +02:00
Geert Janssens
f71317626d Integrate gnome-business into gnome
This breaks autotools' make check, which will be fixed in a subsequent commit.
2017-08-07 18:32:18 +02:00
Geert Janssens
ea0d442235 Move auxiliary business files to gnome directory 2017-08-07 18:32:18 +02:00
Geert Janssens
f34348a40c Move business-gnome subdirectory to higher level
This is a first step in integrating it into the rest of the gnome directory
and already allows us to drop the business intermediate directory
2017-08-07 18:32:18 +02:00
Geert Janssens
dd99d7873f Merge business ledger into ledger-core
There's no need to have it as a separate directory
2017-08-07 18:32:18 +02:00
John Ralls
5195c42107 Adjust autotools build for gnc-html-webkit changes.
Fixing Travis failure (I hope).
2017-07-14 09:22:29 -07:00
Geert Janssens
453af7f081 Align master-only dist files between cmake and autotools 2017-07-10 22:00:15 +02:00
Geert Janssens
dabf458f06 A few cleanups from the previous merge commit 2017-07-08 18:18:11 +02:00
Geert Janssens
5405cf480c Merge branch 'gtk3' 2017-07-08 17:49:44 +02:00
John Ralls
c8402ad62e Merge CMake Distcheck from 'maint'.
Conflicts:
	CMakeLists.txt
	src/app-utils/CMakeLists.txt
	src/backend/sql/test/CMakeLists.txt
	src/backend/xml/test/CMakeLists.txt
	src/gnome-utils/CMakeLists.txt
	src/import-export/aqb/CMakeLists.txt
	src/import-export/csv-imp/CMakeLists.txt
	src/import-export/csv-imp/test/Makefile.am
	src/import-export/ofx/CMakeLists.txt
	src/import-export/qif-imp/CMakeLists.txt
	src/libqof/CMakeLists.txt
	src/register/ledger-core/CMakeLists.txt
	src/register/register-core/CMakeLists.txt
	src/register/register-gnome/CMakeLists.txt
	src/report/business-reports/CMakeLists.txt
	src/report/locale-specific/us/CMakeLists.txt
	src/report/report-gnome/CMakeLists.txt
	src/report/standard-reports/CMakeLists.txt
	src/report/stylesheets/CMakeLists.txt
2017-07-04 18:36:35 -07:00
Geert Janssens
03699efe14 Extract the GnucashRegister widget into a separate file
It was interleaved in the gnucash-sheet.* sources making it harder to examine
2017-03-31 14:03:49 +02:00
Geert Janssens
6c06336d3e Reduce grid object from a complete widget to only two utility functions
There was no added value in it being a full widget. It only served two functions really
- speed draw the visible and non-editable part of a register window
- locating a cell starting from a pixel

Both are used exclusively by the sheet object, so
I have made them private functions of the sheet.
They are still kept in a separate file though for length considerations.
2017-03-31 14:03:49 +02:00
John Ralls
baef4029b2 Merge branch 'maint' 2017-03-28 11:49:50 -07:00
Geert Janssens
a63a4d5e8a Bug 739571 - Small fixups for previous commits
- cleanup whitespace
- add import-pending-matches.c to POTFILES.in
- convert asserts into g_return(_val)_if_fail
- handle the case where no matches are found (which can happen at least in the csv importer and I suspect in the OFX importer as well)
2017-03-22 22:04:17 +01:00
Geert Janssens
718a755f67 Drop fixed-format csv importer
It's functionality has been completely replicated
in the generic csv importer.
2017-02-20 17:55:03 +01:00
Geert Janssens
7a69d552bd Convert CsvTransSettings into a c++ class 2017-02-20 17:54:12 +01:00
Geert Janssens
dcce2d79cd Remove final dependencies on GOFFICE
This was still pulled in via the now removed gnc-csv-model.
In order to remove this, the fixed format csv importer
has been tweaked to get the required features from
the c++ csv importer code instead.
2017-02-20 17:54:09 +01:00
Geert Janssens
3a0f0dff8e csv-imp - copy gnc-csv-model and make it build as c++
This will be the start of a GncCsvImpTrans class that will
manage transaction imports from csv files
2017-02-20 17:41:47 +01:00
Geert Janssens
48cfbc23d4 Add fixed width file parser based on boost::tokenize
Effective c++ notes:
- explicitly declare special member functions
- explicitly declare overriding functions as override
2017-02-20 17:41:42 +01:00
Geert Janssens
efcd266971 Add csv file parser based on boost::tokenize
Effective c++ notes:
- explicitly declare special member functions
- explicitly declare overriding functions as override
2017-02-20 17:41:40 +01:00
Geert Janssens
ed7b863d8f Introduce base class for parsing importable files
This base class takes care of the common things like
file opening and character set conversion.
The actual interpretation of the contents will be
delegated to specialized child classes.

Effective c++ note: explicitly declare special member functions
2017-02-20 17:41:34 +01:00
Geert Janssens
d57a7ceed2 Look for translatable strings in lib directory as well
The Character Encoding menu imported from goffice comes with many such strings.
I still need to find a nice way to copy the existing translations for them
from goffice directly to gnucash.
2017-02-20 17:41:31 +01:00
John Ralls
46ce3f3745 Rename qofbackend-p.h and qofbackend.cpp
To qof-backend.hpp and qof-backend.cpp respectively, to reflect that they
implement the QofBackend class (which won’t be a class until a future commit).
2016-11-28 12:03:48 -08:00
John Ralls
05049676cb Sync POTFILES.in with files added and removed by c++-backend. 2016-11-18 14:30:29 -08:00
Robert Fewell
a8770a4d26 Add option to find an account in list of accounts
This update adds the option to search for an account in an account list
and once selected it will jump to that account in the Account Treeview
or if it is a hidden account the account editor will open.
2016-09-27 21:16:32 +02:00
Robert Fewell
a860643922 Transaction Association List Dialog
This new dialog creates a list view of transaction associations and
allows them to be checked to see if they are still available and be able
to jump to the corresponding transaction in the register or open the
associated entry.
2016-08-20 16:07:46 -07:00
John Ralls
5485c9de37 Merge branch 'maint' after 2.6.12 release. 2016-03-27 17:06:43 -07:00
Geert Janssens
163c4dd44a Update POTFILES.in after previous commit 2016-03-25 10:39:13 +01:00
Robert Fewell
83f2a35e77 Rename files and functions based on bayes to imap 2016-01-11 12:23:22 -08:00
Bob-IT
0311f920e1 Update POTFILES.in
Add Bayesian Editor files.
2016-01-11 12:21:30 -08:00
John Ralls
039a4336e2 Convert XML Backend to compile as C++. 2015-11-29 17:23:43 -08:00
John Ralls
0178492663 Convert SQL & DBI backends to compile as C++. 2015-11-29 17:23:43 -08:00
John Ralls
c3e054a96c Update POTILES.in for new date/time files. 2015-09-24 11:52:33 -07:00
John Ralls
431a525b22 Merge branch 'maint' 2015-09-22 11:54:46 -07:00
Geert Janssens
4088a91326 Update POTFILES.in after removal of assistant-utils.c 2015-09-22 12:27:39 +02:00
John Ralls
9e142124f4 Convert kvp-scm to C++ and to using the KVP C++ API.
The binding remains C to simplify interaction of these two functions with
SWIG and Scheme.
2015-07-03 17:13:14 -07:00