- GncEntryLedger switches to read-only
- Toolbar actions of several plugin pages switch to insensitive
(invoice, normal register)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21585 57a11ea4-9604-0410-9ed3-97b8803252fd
The compiler complains if there is no previous declaration of the non-static
function xaccSplitSetSlots_nc.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21582 57a11ea4-9604-0410-9ed3-97b8803252fd
Eventually, this should enable multi-duplication of a selection.
However, my gtk-2.20 seems to be broken w.r.t. multi-selections in
GtkCList, so I better have this available only in newer gtk and so far still deactivated.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21580 57a11ea4-9604-0410-9ed3-97b8803252fd
Also, add a "(read-only)" suffix in the window title if we are read-only.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21565 57a11ea4-9604-0410-9ed3-97b8803252fd
This was because the "date" field was indeed be set with a different
time of day (noon vs. start of day), depending on the various code
places.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21562 57a11ea4-9604-0410-9ed3-97b8803252fd
This fixes the time-of-day mismatch between entering a new entry
(that was using timespecCanonicalDayTime, "noon") vs. duplicating
an invoice (that was using gnc_timet_get_today_start, "start of day").
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21561 57a11ea4-9604-0410-9ed3-97b8803252fd
This is much more suitable to avoid any ambiguities due to differently
chosen time-of-day in various parts of the code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21560 57a11ea4-9604-0410-9ed3-97b8803252fd
In particular, glib doesn't offer a function for easily accessing
the "today" date as a GDate. What a pity. It's added now as gnc_g_date_new_today().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21559 57a11ea4-9604-0410-9ed3-97b8803252fd
No more, no less. This object isn't used in any other way in gnucash, so
we better get rid of the extra potential complexity here.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21548 57a11ea4-9604-0410-9ed3-97b8803252fd
Discovered in bug#663433 - the return value was cached in an int variable
instead of a gdouble one.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21541 57a11ea4-9604-0410-9ed3-97b8803252fd
Subsequently, the QofBook pointer in QofSession can be changed from
a GList to a QofBook*.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21526 57a11ea4-9604-0410-9ed3-97b8803252fd
No more CamelCase in engine C++ wrappers, hopefully.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21509 57a11ea4-9604-0410-9ed3-97b8803252fd
Somehow Transaction.hpp erroneously appeared here in r19802.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21507 57a11ea4-9604-0410-9ed3-97b8803252fd
Changes:
- Use QT_NO_KEYWORDS because the identifier "signal" collides with some glibmm dependency
- Use Glib::RefPtr<> of gnucash objects everywhere.
- Use Glib::ustring and Glib::Date instead of qt types
The WeakPointer.hpp file is still used for gnc::Session, which is not
(yet) a GObject.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21506 57a11ea4-9604-0410-9ed3-97b8803252fd
This would be an excellent test case for those wrappers...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21485 57a11ea4-9604-0410-9ed3-97b8803252fd
The second argument to Glib::wrap was the important one. While at it,
I added a few more wrappers to gnc::Book and implemented their unittests.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21482 57a11ea4-9604-0410-9ed3-97b8803252fd
Unfortunately, this reveals the C++ wrappers will only work if the GObject
system is used properly, that is, including ref() and unref() and such.
This is not what I'd expect throughout gnucash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21431 57a11ea4-9604-0410-9ed3-97b8803252fd
As usual, re-indentation was done using astyle-1.24 using the following options:
astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21430 57a11ea4-9604-0410-9ed3-97b8803252fd
In newer gwenhywfar versions there are more sub-directories here which are
required for the online banking setup GUI.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21378 57a11ea4-9604-0410-9ed3-97b8803252fd
Summary of the project by the GSoC student, copied
from http://wiki.gnucash.org/wiki/GSoC2011#Student_Summaries :
A new user interface for Gnucash core using Qt/C++ was started by one
of the Gnucash developers in 2010. [1] The idea is to create a
lightweight user friendly UI, reusing the backend core API of
Gnucash. During the project, I created a widget to allow a user to add
two split transaction to/from different accounts. After that I worked
on adding an overview widget showing a list of recent transactions
entered. It consists of two report views containing income and
expense. This view also called as First Person Overview provides an
easy to browse list of transactions. The idea is to integrate common
handy features with these views. The present view lists four entries
for each transaction: date of the transaction, transaction
description, split account name and split amount. Each of the entries
are inside their own QWidget, so as to allow interactive features to
be coded on each of the entries.
The already existing code had some C++ wrappers to convert the return
values of C functions to Qt data types. I made use of them whenever
possible. And at some parts of the code I used the C functions
directly where it made things easier for me. The FPO consists of one
or more viewlets. A viewlet is nothing but a list of transactions, a
slightly minified version of General Journal, to easily browse
transactions sorted by date. The viewlet generator function works such
that there is no date entry or account name entry, if it is the same
as the previous (above) one. This information is then used by
ViewletView to generate the UI part. To make the views visually
appealing and readable, QStyleSheets are used which distinguishes the
various types of entries in the viewlet.
Overall, it was a rewarding experience, I learned a lot of new things,
common pitfalls, handy tips and tricks, and a better understanding of
the Gnucash core API . The project was observed only by myself and my
mentor. During the course I also generated windows builds for two of
my friends who were interested to have a look at the features
implemented. I received positive feedback from them and couple of
feature requests from them. Working on this project within GSoC was a
rewarding experience. I thank my mentor Christian Stimming for guiding
me along and giving very helpful advices and hints during the
summer. I definitely would like to continue contributing to Gnucash
community in future.
[1] http://wiki.gnucash.org/wiki/Cutecash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21241 57a11ea4-9604-0410-9ed3-97b8803252fd
- Use system icons, fallback icon theme included
- Prototype of unified transaction entry widget
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21240 57a11ea4-9604-0410-9ed3-97b8803252fd
As usual, re-indentation was done using astyle-1.24 using the following options:
astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21205 57a11ea4-9604-0410-9ed3-97b8803252fd
Note: The qofmath128 functions are used mostly here and almost
nowhere else. Hence, we inline the C code directly into here so
that the compiler can potentially inline the code as-is and speed
up the gnc-numeric.c functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21127 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Christoph Holtermann:
1) gnc_convenience.py adds some convenient functions.
2) quotes_historic.py uses find_account() from 1)
3) Small Bug removed : GetNthSplit() already returns a Split-Object because
that is returned by GetSplitList(). In this case it returns a nested
Split-Object.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20714 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Christoph Holtermann:
str_methods.py
- added a flagging system to change the output of the __str__ methods
- added unicode and str-methods to invoice and entry
function_class.py
- added modified add_method and add_classmethods to implement the previous
gnucash_business.py
- add methods_return_instance_lists for method Invoice.GetEntries
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20695 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Jim Paris:
This lets us drop the racy gnucash_sheet_select_data_cb, which fixes
problems with lost input.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20689 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Bert:
This patch removes the wrong </btd> tags and closes the center tag in the
footer and easy stylesheets.
Just like Bug #650163 (and related to bug #616611) the easy & footer
stylesheets:
*output </btd> tags instead of <b></td>
*are missing a </center> tag
preventing html validation.
This patch removes the intended </b> and makes a clean </td> out of the
necessary tags. The styles are set through css anyhow. Furthmore it adds the
closing </center> tag.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20675 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Bert:
The attached patch makes sure that the title fonts set through the options menu
behaves consistently across all style sheets.
More specifically, it patches the following style sheets:
*stylesheet-fancy
*stylesheet-footer
*stylesheet-easy
Since I don't know how to change the default values, this will change the
visual appearance until people alter the settings (e.g. move everything to
Sans, 10, bold).
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20674 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by "Rich":
I have transactions that should be scheduled on the second Wednesday of every
month. There is presently no way to do it. I made changes and have tested
them.
This patch enhances the scheduled transaction feature to allow nth day of week
monthly entries. The weekend adjust spinner is ignored when an nth day of week
entry is scheduled.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20672 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Leigh Honeywell:
Revised patch to change the search case insensitive to a checkbox
This should work better - it now defaults to off, and is captioned "Match case"
instead of "Case Insensitive?" which I think is clearer.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20649 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Bert:
Prevent inheriting the parent tablestyle for aging table in owner-report
Bug #650139 & its patch in r20639
have some side-effects:
positive is that borders are shown for empty cell (#642222).
However, the aging table in the owner report now inherits the style from its
parent table, which means that all cells of the aging table are showing as
"centered-label-cell". This means:
*In the regular stylesheet: all text in the cells is bold
*In technicolor stylesheet: all cells have a yellow background
This patch removes the "centered-label-cell" class from the parent table cell
and shows the layout of the aging table to how it was before.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20648 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Bert:
The technicolor stylesheet outputs </btd> tags where what they actually meant
to do was </b></td>. This may render report outputs wrongly in different
browsers and prevents HTML validation.
The proposed patch removes the bold tags as well (for example for the total
rows) since the font and its weight are set in the options (and thus reflected
in the CSS style). There is no need for the report to set the bold face with
the <b> tag.
In addition, the attached patch also closed the <center> tag at the beginning
of the body (also preventing validation). Note that that this tag is deprecated
for newer version of html (but will pass HTML 4.01 Transitional).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20647 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by Nick:
This patch allows the user to enter the APR for a loan rather than the simple
interest rate and then the druid will calculate the correct interest rate for
the scheduled transaction that it produces.
It includes a small change to the shed-xact.glade file which provides a
dropdown box to select the rate that has been entered and changes to
druid-loan.c which calculate the simple interest rate as the scheduled
transaction strings are generated.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20646 57a11ea4-9604-0410-9ed3-97b8803252fd
Patch by "Bert":
This patch fixes part of the missing doctype for most reports through
html-document.scm
Exported reports lack a document type, preventing HTML validation.
When exporting this may lead browsers to incorrectly read the reports generated
by GnuCash.
The attached patch aims for HTML 4.01 transitional validation of reports in the
long term and thus adds this doctype on top of the reports. While it is far
from perfect, 4.01 Trans looks like a good first target and can be read by most
(including older) browsers.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20639 57a11ea4-9604-0410-9ed3-97b8803252fd