r21505 - gnucash/trunk/src/gnc - [Cutecash] Remove separate Qt wrappers of engine objects by glibmm wrappers.

Christian Stimming cstim at code.gnucash.org
Fri Oct 28 16:34:44 EDT 2011


Author: cstim
Date: 2011-10-28 16:34:44 -0400 (Fri, 28 Oct 2011)
New Revision: 21505
Trac: http://svn.gnucash.org/trac/changeset/21505

Removed:
   gnucash/trunk/src/gnc/Account.hpp
   gnucash/trunk/src/gnc/Book.cpp
   gnucash/trunk/src/gnc/Book.hpp
   gnucash/trunk/src/gnc/Commodity.hpp
   gnucash/trunk/src/gnc/GncInstance.hpp
   gnucash/trunk/src/gnc/Numeric.cpp
   gnucash/trunk/src/gnc/Numeric.hpp
   gnucash/trunk/src/gnc/Split.cpp
   gnucash/trunk/src/gnc/Split.hpp
   gnucash/trunk/src/gnc/Transaction.cpp
   gnucash/trunk/src/gnc/Transaction.hpp
Modified:
   gnucash/trunk/src/gnc/CMakeLists.txt
   gnucash/trunk/src/gnc/main.cpp
Log:
[Cutecash] Remove separate Qt wrappers of engine objects by glibmm wrappers.

Deleted: gnucash/trunk/src/gnc/Account.hpp
===================================================================
--- gnucash/trunk/src/gnc/Account.hpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Account.hpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,103 +0,0 @@
-/*
- * Account.hpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#ifndef GNC_ACCOUNT_HPP
-#define GNC_ACCOUNT_HPP
-
-// gnucash includes
-#include "config.h"
-extern "C"
-{
-#include "qof.h"
-#include "engine/Account.h"
-}
-
-#include "gnc/GncInstance.hpp"
-#include "gnc/Commodity.hpp"
-#include "gnc/Numeric.hpp"
-
-#include <QtCore/QString>
-#include <QtCore/QList>
-#include <QtCore/QMetaType>
-
-namespace gnc
-{
-
-
-/** Wrapper around a gnucash ::Account pointer with C++ methods for
- * easier setter and getter access.
- *
- * Unfortunately this object has no information about whether the
- * underlying gnucash ::Account object is still alive or has been
- * deleted.
- */
-class Account : public GncInstance< ::Account >
-{
-public:
-    typedef GncInstance< ::Account > base_class;
-    Account(element_type* ptr = 0)
-            : base_class(ptr)
-    { }
-    QString getName() const { return QString::fromUtf8(xaccAccountGetName(gobj())); }
-    QString getFullName() const { return gchar_to_QString(gnc_account_get_full_name (gobj())); }
-    QString getCode() const { return QString::fromUtf8(xaccAccountGetCode(gobj())); }
-    QString getDescription() const { return QString::fromUtf8(xaccAccountGetDescription(gobj())); }
-    Commodity getCommodity() const { return xaccAccountGetCommodity(gobj()); }
-    int getCommoditySCU() const { return xaccAccountGetCommoditySCU(gobj()); }
-
-    ::SplitList* getSplitList() const { return xaccAccountGetSplitList(gobj()); }
-
-    /** @name Account tree traversal */
-    //@{
-
-    Account get_parent() const { return gnc_account_get_parent(gobj()); }
-    Account get_root() { return gnc_account_get_root(gobj()); }
-    bool is_root() const { return gnc_account_is_root(gobj()); }
-    gint n_children() const { return gnc_account_n_children(gobj()); }
-    GList *get_children() const { return gnc_account_get_children(gobj()); }
-    GList *get_descendants () const { return gnc_account_get_descendants (gobj()); }
-    Account nth_child (gint num) const { return gnc_account_nth_child(gobj(), num); }
-
-
-    /** Return the index of this account in the children's list of its
-     * parent account.
-     */
-    gint child_index () const
-    {
-        Account parent(get_parent());
-        if (parent.gobj())
-            return gnc_account_child_index(parent.gobj(), gobj());
-        else
-            return 0;
-    }
-
-    gint get_current_depth () const { return gnc_account_get_current_depth(gobj()); }
-    gint get_tree_depth () const { return gnc_account_get_tree_depth(gobj()); }
-    //@}
-
-};
-
-} // END namespace gnc
-
-Q_DECLARE_METATYPE(gnc::Account)
-
-#endif

Deleted: gnucash/trunk/src/gnc/Book.cpp
===================================================================
--- gnucash/trunk/src/gnc/Book.cpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Book.cpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,34 +0,0 @@
-/*
- * Book.cpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#include "config.h"
-#include "gnc/Book.hpp"
-#include "gnc/Account.hpp"
-
-namespace gnc
-{
-Account Book::get_root_account()
-{
-    return Account(gnc_book_get_root_account (gobj()));
-}
-
-} // END namespace gnc

Deleted: gnucash/trunk/src/gnc/Book.hpp
===================================================================
--- gnucash/trunk/src/gnc/Book.hpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Book.hpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,63 +0,0 @@
-/*
- * Book.hpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#ifndef GNC_BOOK_HPP
-#define GNC_BOOK_HPP
-
-// gnucash includes
-extern "C"
-{
-#include "qof.h"
-#include "engine/gnc-hooks.h"
-#include "engine/Account.h"
-}
-
-#include "gnc/GncInstance.hpp"
-
-namespace gnc
-{
-class Account;
-
-/** Wrapper around a gnucash ::QofBook pointer with C++ methods for
- * easier setter and getter access.
- *
- * Unfortunately this object has no information about whether the
- * underlying gnucash ::QofBook object is still alive or has been
- * deleted.
- */
-class Book : public GncInstance< ::QofBook >
-{
-public:
-    typedef GncInstance< ::QofBook > base_class;
-    Book(element_type* ptr = 0)
-            : base_class(ptr)
-    { }
-    Book(const base_class& x)
-            : base_class(x)
-    { }
-
-    Account get_root_account();
-};
-
-} // END namespace gnc
-
-#endif

Modified: gnucash/trunk/src/gnc/CMakeLists.txt
===================================================================
--- gnucash/trunk/src/gnc/CMakeLists.txt	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/CMakeLists.txt	2011-10-28 20:34:44 UTC (rev 21505)
@@ -16,16 +16,12 @@
 SET (gnc_SOURCES
   AccountItemModel.cpp
   AccountSelectionDelegate.cpp
-  Book.cpp
   Cmd.cpp
-  Numeric.cpp
   QofEventWrapper.cpp
   RecentFileMenu.cpp
   Session.cpp
-  Split.cpp
   SplitListModel.cpp
   SplitListView.cpp
-  Transaction.cpp
   main.cpp
   mainwindow.cpp
   mainwindow-file.cpp
@@ -48,16 +44,9 @@
   fpo/ViewletView.hpp
 )
 SET (gnc_HEADERS ${gnc_QOBJECT_HEADERS}
-  Account.hpp
-  Book.hpp
   Cmd.hpp
-  Commodity.hpp
-  GncInstance.hpp
-  Numeric.hpp
   QofEventWrapper.hpp
   Session.hpp
-  Split.hpp
-  Transaction.hpp
   WeakPointer.hpp
 )
 
@@ -123,7 +112,7 @@
   TARGET_LINK_LIBRARIES (cutecash gnc-aqbanking)
 #  TARGET_LINK_LIBRARIES (cutecash ${AQBANKING_LIBRARIES} ${GWENHYWFAR_LIBRARIES})
 ENDIF (WITH_AQBANKING)
-#TARGET_LINK_LIBRARIES (cutecash libgncmod-gtkmm) # requires replacing the qt-based engine wrappers
+TARGET_LINK_LIBRARIES (cutecash libgncmod-gtkmm)
 TARGET_LINK_LIBRARIES (cutecash engine gnc-module core-utils qof)
 
 TARGET_LINK_LIBRARIES (cutecash ${GLIBMM_LIBRARIES})

Deleted: gnucash/trunk/src/gnc/Commodity.hpp
===================================================================
--- gnucash/trunk/src/gnc/Commodity.hpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Commodity.hpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,76 +0,0 @@
-/*
- * Commodity.hpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#ifndef GNC_COMMODITY_HPP
-#define GNC_COMMODITY_HPP
-
-// gnucash includes
-#include "config.h"
-extern "C"
-{
-#include "qof.h"
-#include "engine/gnc-commodity.h"
-}
-
-#include "gnc/GncInstance.hpp"
-#include <QtCore/QMetaType>
-#include <QtCore/QString>
-
-/** Wrapper around a gnucash gnc_commodity pointer */
-namespace gnc
-{
-
-class Commodity : public GncInstance<gnc_commodity>
-{
-public:
-    typedef GncInstance<gnc_commodity> base_class;
-    Commodity(element_type *ptr = 0)
-            : base_class(ptr)
-    {}
-    QString get_mnemonic() const { return gnc_commodity_get_mnemonic(gobj()); }
-    QString get_namespace() const { return gnc_commodity_get_namespace(gobj()); }
-    QString get_fullname() const { return gnc_commodity_get_fullname(gobj()); }
-    QString get_printname() const { return gnc_commodity_get_printname(gobj()); }
-
-    int get_fraction() const { return gnc_commodity_get_fraction(gobj()); }
-    bool get_quote_flag() const { return gnc_commodity_get_quote_flag(gobj()); }
-
-    bool is_currency() const { return gnc_commodity_is_currency(gobj()); }
-
-    bool equal(const Commodity& other) const { return gnc_commodity_equal(gobj(), other.gobj()); }
-};
-
-inline bool operator==(const Commodity& a, const Commodity& b)
-{
-    return a.equal(b);
-}
-
-inline bool operator!=(const Commodity& a, const Commodity& b)
-{
-    return !(a == b);
-}
-
-} // END namespace gnc
-
-Q_DECLARE_METATYPE(gnc::Commodity)
-
-#endif

Deleted: gnucash/trunk/src/gnc/GncInstance.hpp
===================================================================
--- gnucash/trunk/src/gnc/GncInstance.hpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/GncInstance.hpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,70 +0,0 @@
-/*
- * GncInstance.hpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#ifndef GNC_GNCINSTANCE_HPP
-#define GNC_GNCINSTANCE_HPP
-
-// gnucash includes
-#include "config.h"
-extern "C"
-{
-#include "qof.h"
-}
-
-#include "gnc/WeakPointer.hpp"
-#include <QString>
-
-namespace gnc
-{
-
-/** Wrapper around the "base class" QofInstance which already offers
- * some common methods. We cannot name it QofInstance because those
- * stupid C macros (like QOF_CHECK_TYPE) would always confuse our
- * namespaced declaration with the C declaration. I hate macros!
- *
- * Unfortunately this object has no information about whether the
- * underlying gnucash ::Transaction object is still alive or has been
- * deleted.
- */
-template<class T>
-class GncInstance : public WeakPointer< T >
-{
-public:
-    typedef WeakPointer< T > base_class;
-    GncInstance(T* ptr = 0)
-            : base_class(ptr)
-    { }
-
-    GncInstance< ::QofBook > getBook() const { return qof_instance_get_book (QOF_INSTANCE(base_class::gobj())); }
-    ::GncGUID getGUID() const { return qof_entity_get_guid(QOF_INSTANCE(base_class::gobj())); }
-
-    bool is_dirty() const { return qof_instance_get_dirty(QOF_INSTANCE(base_class::gobj())); }
-    void set_dirty() { return qof_instance_set_dirty(QOF_INSTANCE(base_class::gobj())); }
-    void mark_clean() { return qof_instance_mark_clean(QOF_INSTANCE(base_class::gobj())); }
-
-    //bool check_type(const char* type_id) { return (0 == g_strcmp0(type_id, QOF_INSTANCE(base_class::gobj())->e_type)); }
-    //Slots getSlots() const { return qof_instance_get_slots(QOF_INSTANCE(gobj())); }
-};
-
-} // END namespace gnc
-
-#endif

Deleted: gnucash/trunk/src/gnc/Numeric.cpp
===================================================================
--- gnucash/trunk/src/gnc/Numeric.cpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Numeric.cpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,74 +0,0 @@
-/*
- * Numeric.cpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#include "Numeric.hpp"
-#include "gnc/Account.hpp"
-#include "gnc/Split.hpp"
-
-extern "C"
-{
-#include "app-utils/gnc-exp-parser.h"
-}
-
-namespace gnc
-{
-
-// These are in the cpp file to avoid circular dependency between the
-// headers
-
-PrintAmountInfo::PrintAmountInfo(const Account& account, bool use_symbol)
-        : base_class(gnc_account_print_info(account.gobj(), use_symbol))
-{}
-PrintAmountInfo::PrintAmountInfo(const Split& split, bool use_symbol)
-        : base_class(gnc_split_amount_print_info(split.gobj(), use_symbol))
-{}
-
-QString Numeric::printAmount(const PrintAmountInfo& info) const
-{
-    char buf[256];
-    if (!xaccSPrintAmount (buf, *this, info))
-        buf[0] = '\0';
-    return QString::fromUtf8(buf);
-}
-
-QString Numeric::parse(const QString& str)
-{
-    QString errorString;
-
-    const char* input = str.toUtf8();
-    char *error_loc;
-    Numeric result;
-    gboolean p = gnc_exp_parser_parse(input, &result, &error_loc);
-    if (p)
-    {
-        *this = result;
-    }
-    else
-    {
-        errorString = QString::fromUtf8(gnc_exp_parser_error_string());
-    }
-
-    return errorString;
-}
-
-
-} // END namespace gnc

Deleted: gnucash/trunk/src/gnc/Numeric.hpp
===================================================================
--- gnucash/trunk/src/gnc/Numeric.hpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Numeric.hpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,220 +0,0 @@
-/*
- * Numeric.hpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#ifndef GNC_NUMERIC_HPP
-#define GNC_NUMERIC_HPP
-
-// gnucash includes
-#include "config.h"
-extern "C"
-{
-#include "qof.h"
-#include "gnc-date.h"
-#include "app-utils/gnc-ui-util.h"
-#include "app-utils/gnc-ui-balances.h"
-}
-
-#include <QtCore/QDateTime>
-#include <QtCore/QMetaType>
-#include <QtCore/QString>
-
-namespace gnc
-{
-
-class Account;
-class Split;
-
-/** Conversion of a newly allocated gchar* to QString, which will
- * correctly g_free() the newly allocated gchar* as well.
- *
- * If a gchar* does not have to be freed again, QString::fromUtf8() is
- * sufficient and we do not need to define an extra function here.
- */
-inline QString gchar_to_QString(gchar* tmp_string)
-{
-    if (!tmp_string)
-        return QString();
-    QString result = QString::fromUtf8(tmp_string);
-    g_free(tmp_string);
-    return result;
-}
-
-inline QDateTime toQDateTime(const ::Timespec& timespec)
-{
-    QDateTime result = QDateTime::fromTime_t(timespec.tv_sec);
-    result.addMSecs(timespec.tv_nsec / 1000000);
-    result.setTimeSpec(Qt::UTC);
-    return result;
-}
-inline QDate toQDate(const ::GDate& d)
-{
-    if (g_date_valid(&d))
-        return QDate(g_date_year(&d), g_date_month(&d), g_date_day(&d));
-    else
-        return QDate();
-}
-inline ::Timespec toTimespec(const QDateTime& qdt)
-{
-    ::Timespec result;
-    result.tv_sec = qdt.toTime_t();
-    result.tv_nsec = qdt.time().msec() * 1000000;
-    return result;
-}
-
-/** Copies the pointer values from the given GList into the specified output
- * list type, such as std::vector<FooBar*>. */
-template<class ResultListType>
-ResultListType fromGList(GList* glist)
-{
-    ResultListType result;
-    GList* list = glist;
-    while (list)
-    {
-        result.push_back(reinterpret_cast< typename ResultListType::value_type >(list->data));
-        list = g_list_next(list);
-    }
-    return result;
-}
-
-
-/** Wrapper around a gnucash ::GNCPrintAmountInfo structure with C++
- * methods for easier setter and getter access.
- *
- * Since this class is a derived class of the original gnucash struct,
- * it keeps the data by-value and its member variables will always
- * exist as long as this object exists.
- */
-class PrintAmountInfo : public ::GNCPrintAmountInfo
-{
-public:
-    typedef ::GNCPrintAmountInfo base_class;
-
-    PrintAmountInfo(const base_class& other)
-            : base_class(other)
-    {}
-    PrintAmountInfo(bool use_symbol)
-            : base_class(gnc_default_print_info(use_symbol))
-    {}
-
-    /* If the boolean set to true, then prefix 3 letter ISO 4217
-       currency code to the amount. */
-    PrintAmountInfo(const Account& account, bool use_symbol);
-    PrintAmountInfo(const Split& split, bool use_symbol);
-
-    static PrintAmountInfo share_places(int decplaces) { return gnc_share_print_info_places(decplaces); }
-    static PrintAmountInfo default_share() { return gnc_default_share_print_info(); }
-    static PrintAmountInfo default_price() { return gnc_default_price_print_info(); }
-    static PrintAmountInfo integral() { return gnc_integral_print_info(); }
-};
-
-
-/** Wrapper around a gnucash ::gnc_numeric structure with C++ methods
- * for easier setter and getter access.
- *
- * Since this class is a derived class of the original gnucash struct,
- * it keeps the data by-value and its member variables will always
- * exist as long as this object exists.
- */
-class Numeric : public ::gnc_numeric
-{
-public:
-    typedef ::gnc_numeric base_class;
-    Numeric()
-    {
-        base_class::num = 0;
-        base_class::denom = 1;
-    }
-    Numeric(gint64 num, gint64 denom)
-    {
-        base_class::num = num;
-        base_class::denom = denom;
-    }
-    Numeric(const base_class& other) : base_class(other) {}
-    static Numeric zero() { return Numeric(0, 1); }
-    Numeric(double in, gint64 denom, gint how)
-    {
-        *this = double_to_gnc_numeric(in, denom, how);
-    }
-
-    // Watch out: This conversion never seems to work!
-    static bool string_to_numeric(const QString& str, Numeric& n)
-    {
-        return string_to_gnc_numeric(str.toUtf8(), &n);
-    }
-    Numeric(GNCNumericErrorCode error_code)
-    {
-        *this = gnc_numeric_error(error_code);
-    }
-
-    gint64 num() const { return base_class::num; }
-    gint64 denom() const { return base_class::denom; }
-    gdouble to_double() const { return gnc_numeric_to_double(*this); }
-    QString to_string() const
-    {
-        return gchar_to_QString(gnc_numeric_to_string(*this));
-    }
-
-    GNCNumericErrorCode check() const { return gnc_numeric_check(*this); }
-    gint compare(const Numeric& b) const { return gnc_numeric_compare(*this, b); }
-    bool zero_p() const { return gnc_numeric_zero_p(*this); }
-    bool negative_p() const { return gnc_numeric_negative_p(*this); }
-    bool positive_p() const { return gnc_numeric_positive_p(*this); }
-    bool eq(const Numeric& b) const { return gnc_numeric_eq(*this, b); }
-    bool equal(const Numeric& b) const { return gnc_numeric_equal(*this, b); }
-    bool same(const Numeric& b, gint64 denom, gint how) const { return gnc_numeric_same(*this, b, denom, how); }
-
-    Numeric add(const Numeric& b, gint64 denom, gint how) const { return gnc_numeric_add(*this, b, denom, how); }
-    Numeric sub(const Numeric& b, gint64 denom, gint how) const { return gnc_numeric_sub(*this, b, denom, how); }
-    Numeric mul(const Numeric& b, gint64 denom, gint how) const { return gnc_numeric_mul(*this, b, denom, how); }
-    Numeric div(const Numeric& b, gint64 denom, gint how) const { return gnc_numeric_div(*this, b, denom, how); }
-    Numeric neg() const { return gnc_numeric_neg(*this); }
-    Numeric abs() const { return gnc_numeric_abs(*this); }
-
-    Numeric add_fixed(const Numeric& b) const { return gnc_numeric_add_fixed(*this, b); }
-    Numeric sub_fixed(const Numeric& b) const { return gnc_numeric_sub_fixed(*this, b); }
-
-    Numeric reduce() const { return gnc_numeric_reduce(*this); }
-
-    QString printAmount(const PrintAmountInfo& info) const;
-
-    /** Parses the given string by the expression parser. On success,
-     * the value is written into this object and an empty string is
-     * returned. On error, this object is unchanged and a string with
-     * the error message is returned. */
-    QString parse(const QString& str);
-};
-
-inline bool operator==(const Numeric& a, const Numeric& b)
-{
-    return a.equal(b);
-}
-
-inline bool operator!=(const Numeric& a, const Numeric& b)
-{
-    return !(a == b);
-}
-
-} // END namespace gnc
-
-Q_DECLARE_METATYPE(gnc::Numeric)
-
-#endif

Deleted: gnucash/trunk/src/gnc/Split.cpp
===================================================================
--- gnucash/trunk/src/gnc/Split.cpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Split.cpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,93 +0,0 @@
-/*
- * Split.cpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#include "Split.hpp"
-
-#include "gnc/Account.hpp"
-#include "gnc/Book.hpp"
-#include "gnc/Transaction.hpp"
-
-namespace gnc
-{
-
-Account Split::getAccount() const { return xaccSplitGetAccount(gobj()); }
-void Split::setAccount(Account acc) { xaccSplitSetAccount(gobj(), acc.gobj()); }
-void Split::setAccount(::Account* acc) { xaccSplitSetAccount(gobj(), acc); }
-
-
-Transaction Split::getParent() const { return xaccSplitGetParent(gobj()); }
-void Split::setParent(Transaction& trans) { xaccSplitSetParent(gobj(), trans.gobj()); }
-
-
-TmpSplit::TmpSplit(const Split& s, const TmpTransaction* parent_trans)
-        : m_account(s.getAccount().gobj())
-        , m_parent(parent_trans)
-        , m_memo(s.getMemo())
-        , m_action(s.getAction())
-        , m_reconcile(s.getReconcile())
-        , m_amount(s.getAmount())
-        , m_value(s.getValue())
-{}
-
-TmpSplit::TmpSplit(::Account* account)
-{
-    clear(account);
-}
-
-TmpSplit* TmpSplit::getOtherSplit() const
-{
-    if (!m_parent)
-        return NULL;
-    const TmpTransaction& p = *m_parent;
-    if (p.countSplits() != 2)
-        return NULL;
-    TmpTransaction::TmpSplitQList& splits = const_cast<TmpTransaction&>(p).getSplits();
-    if (splits.front().getAccount() != m_account)
-        return &splits.front();
-    else
-        return &splits.back();
-}
-
-void TmpSplit::clear(::Account* account)
-{
-    m_account = account;
-    m_parent = NULL;
-    m_memo.clear();
-    m_action.clear();
-    m_reconcile = NREC;
-    m_amount = Numeric::zero();
-    m_value = Numeric::zero();
-}
-
-void TmpSplit::copyInto(Transaction& t) const
-{
-    Split s(xaccMallocSplit(t.getBook().gobj()));
-    s.setAccount(m_account);
-    s.setParent(t);
-    s.setMemo(m_memo);
-    s.setAction(m_action);
-    s.setReconcile(m_reconcile);
-    s.setAmount(m_amount);
-    s.setValue(m_value);
-}
-
-} // END namespace gnc

Deleted: gnucash/trunk/src/gnc/Split.hpp
===================================================================
--- gnucash/trunk/src/gnc/Split.hpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Split.hpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,178 +0,0 @@
-/*
- * Split.hpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#ifndef GNC_SPLIT_HPP
-#define GNC_SPLIT_HPP
-
-// gnucash includes
-#include "config.h"
-extern "C"
-{
-#include "qof.h"
-#include "engine/Split.h"
-}
-
-#include <QtCore/QList>
-#include <QtCore/QMetaType>
-#include <QtCore/QString>
-
-#include "gnc/GncInstance.hpp"
-#include "gnc/Numeric.hpp"
-#include <vector>
-
-namespace gnc
-{
-class Book;
-class Account;
-class Transaction;
-class TmpTransaction;
-
-typedef std::vector< ::Split*> SplitQList;
-
-
-/** Wrapper around a gnucash ::Split pointer with C++ methods for
- * easier setter and getter access.
- *
- * Unfortunately this object has no information about whether the
- * underlying gnucash ::Split object is still alive or has been
- * deleted.
- */
-class Split : public GncInstance< ::Split >
-{
-public:
-    typedef GncInstance< ::Split > base_class;
-    Split(element_type* ptr = 0)
-            : base_class(ptr)
-    { }
-
-    Account getAccount() const;
-    void setAccount(Account acc);
-    void setAccount(::Account* acc);
-
-    Transaction getParent() const;
-    void setParent(Transaction& trans);
-
-    QString getMemo() const { return QString::fromUtf8(xaccSplitGetMemo(gobj())); }
-    void setMemo(const QString& v) { xaccSplitSetMemo(gobj(), v.toUtf8()); }
-
-    QString getAction() const { return QString::fromUtf8(xaccSplitGetAction(gobj())); }
-    void setAction(const QString& v) { xaccSplitSetAction(gobj(), v.toUtf8()); }
-
-    char getReconcile() const { return xaccSplitGetReconcile(gobj()); }
-    void setReconcile(char v) { xaccSplitSetReconcile(gobj(), v); }
-
-    Split getOtherSplit() const { return xaccSplitGetOtherSplit(gobj()); }
-
-    QString getCorrAccountFullName() const
-    {
-        return gchar_to_QString(xaccSplitGetCorrAccountFullName(gobj()));
-    }
-    QString getCorrAccountName() const { return QString::fromUtf8(xaccSplitGetCorrAccountName(gobj())); }
-    QString getCorrAccountCode() const { return QString::fromUtf8(xaccSplitGetCorrAccountCode(gobj())); }
-
-    void setAmount(const Numeric& amount) { xaccSplitSetAmount(gobj(), amount); }
-    Numeric getAmount() const { return xaccSplitGetAmount(gobj()); }
-    void setValue(const Numeric& value) { xaccSplitSetValue(gobj(), value); }
-    Numeric getValue() const { return xaccSplitGetValue(gobj()); }
-    Numeric getSharePrice() const { return xaccSplitGetSharePrice(gobj()); }
-    Numeric getBalance() const { return xaccSplitGetBalance(gobj()); }
-    Numeric getClearedBalance() const { return xaccSplitGetClearedBalance(gobj()); }
-    Numeric getReconciledBalance() const { return xaccSplitGetReconciledBalance(gobj()); }
-
-
-    static SplitQList fromGList(GList* glist)
-    {
-        return gnc::fromGList<SplitQList>(glist);
-    }
-};
-
-
-/** This is a temporary split which belongs to a temporary transaction
- * (class gnc::TmpTransaction). Each of this tmp splits has all data
- * fields just like a "real" split, but it is not (yet) added to the
- * respective Account and Book. In other words, it is not stored in
- * the book yet.
- *
- * For this reason this class supports a full copy-by-value, which
- * will create new independent instances of all data fields. */
-class TmpSplit
-{
-public:
-    /** Creates a new tmp split whose content is copied from the given
-     * real transaction and it should belong to the given
-     * TmpTransaction (but it is not added to the TmpTransaction's
-     * split list here). */
-    TmpSplit(const Split& s, const TmpTransaction* parent_trans);
-
-    /** Creates a new empty tmp split, with the Account pointer
-     * initialized with the given value. */
-    TmpSplit(::Account* account = NULL);
-
-    /** Clears all data fields of this split. */
-    void clear(::Account* account = NULL);
-
-    /** Copies the content of this tmp split into the given real
-     * transaction by allocating a new real gnc::Split and adding it
-     * to the given real gnc::Transaction. */
-    void copyInto(Transaction& t) const;
-
-    ::Account* getAccount() const { return m_account; }
-    void setAccount(::Account* v) { m_account = v;}
-
-    const TmpTransaction* getParent() const { return m_parent; }
-    void setParent(const TmpTransaction* v) { m_parent = v; }
-
-    /** Returns a pointer to the "Other" split if it exists, or NULL
-     * if none or multiple of them exist. */
-    TmpSplit* getOtherSplit() const;
-
-    QString getMemo() const { return m_memo; }
-    void setMemo(const QString& v) { m_memo = v; }
-
-    QString getAction() const { return m_action; }
-    void setAction(const QString& v) { m_action = v; }
-
-    char getReconcile() const { return m_reconcile; }
-    void setReconcile(char v) { m_reconcile = v; }
-
-    Numeric getAmount() const { return m_amount; }
-    void setAmount(const Numeric& v) { m_amount = v; }
-
-    Numeric getValue() const { return m_value; }
-    void setValue(const Numeric& v) { m_value = v; }
-
-private:
-    ::Account* m_account;
-    const TmpTransaction* m_parent;
-    QString m_memo;
-    QString m_action;
-    char m_reconcile;
-    Numeric m_amount;
-    Numeric m_value;
-};
-
-} // END namespace gnc
-
-Q_DECLARE_METATYPE(gnc::Split)
-Q_DECLARE_METATYPE(gnc::TmpSplit)
-
-#endif

Deleted: gnucash/trunk/src/gnc/Transaction.cpp
===================================================================
--- gnucash/trunk/src/gnc/Transaction.cpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Transaction.cpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,128 +0,0 @@
-/*
- * Transaction.cpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#include "Transaction.hpp"
-#include "gnc/Split.hpp"
-
-namespace gnc
-{
-
-Split Transaction::findSplitByAccount(const Account& acc) const
-{
-    return xaccTransFindSplitByAccount(gobj(), acc.gobj());
-}
-Split Transaction::getSplit(int i) const
-{
-    return xaccTransGetSplit(gobj(), i);
-}
-void Transaction::appendSplit(Split& split)
-{
-    xaccSplitSetParent(split.gobj(), gobj());
-}
-int Transaction::getSplitIndex(const Split& split) const
-{
-    return xaccTransGetSplitIndex(gobj(), split.gobj());
-}
-Transaction::element_type* Transaction::newInstance(const Book& b)
-{
-    return xaccMallocTransaction (b.gobj());
-}
-
-// ////////////////////////////////////////////////////////////
-
-TmpTransaction::TmpTransaction()
-{
-    clear();
-}
-TmpTransaction::TmpTransaction(const Transaction& t)
-        : m_num(t.getNum())
-        , m_description(t.getDescription())
-        , m_notes(t.getNotes())
-        , m_commodity(t.getCurrency())
-        , m_datePosted(t.getDatePosted())
-        , m_dateTimeEntered(t.getDateEntered())
-{
-    SplitQList slist = Split::fromGList(t.getSplitList());
-    Q_FOREACH(Split s, slist)
-    {
-        m_splits.push_back(TmpSplit(s, this));
-    }
-}
-
-void TmpTransaction::clear()
-{
-    m_splits.clear();
-    resetContent();
-}
-
-void TmpTransaction::resetContent()
-{
-    m_num.clear();
-    m_description.clear();
-    m_notes.clear();
-    m_commodity.reset();
-    m_datePosted = QDate();
-    m_dateTimeEntered = QDateTime();
-    for (int i = 0; i < m_splits.size(); ++i)
-    {
-        TmpSplit& split = m_splits[i];
-        split.clear();
-        split.setParent(this);
-    }
-}
-
-void TmpTransaction::copyTo(Transaction& t) const
-{
-    t.setNum(m_num);
-    t.setDescription(m_description);
-    if (!m_notes.isEmpty())
-        t.setNotes(m_notes);
-    t.setCurrency(m_commodity);
-    t.setDatePosted(m_datePosted);
-    t.setDateEntered(m_dateTimeEntered);
-    for (int i = 0; i < m_splits.size(); ++i)
-    {
-        m_splits[i].copyInto(t);
-    }
-}
-
-Transaction TmpTransaction::createAsReal() const
-{
-    Q_ASSERT (!m_splits.isEmpty());
-    Account acc(m_splits.front().getAccount());
-    Q_ASSERT (acc);
-    Book book(acc.getBook());
-    Q_ASSERT (book);
-    Transaction trans(Transaction::newInstance(book));
-    trans.beginEdit();
-    copyTo(trans);
-    trans.commitEdit();
-    return trans;
-}
-
-void TmpTransaction::push_back(const TmpSplit& s)
-{
-    m_splits.push_back(s);
-    m_splits.back().setParent(this);
-}
-
-} // END namespace gnc

Deleted: gnucash/trunk/src/gnc/Transaction.hpp
===================================================================
--- gnucash/trunk/src/gnc/Transaction.hpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/Transaction.hpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -1,175 +0,0 @@
-/*
- * Transaction.hpp
- * Copyright (C) 2010 Christian Stimming
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, contact:
- *
- * Free Software Foundation           Voice:  +1-617-542-5942
- * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
- * Boston, MA  02110-1301,  USA       gnu at gnu.org
- */
-
-#ifndef GNC_TRANSACTION_HPP
-#define GNC_TRANSACTION_HPP
-
-// gnucash includes
-#include "config.h"
-extern "C"
-{
-#include "qof.h"
-#include "engine/Transaction.h"
-}
-
-#include "gnc/Account.hpp"
-#include "gnc/Book.hpp"
-#include "gnc/Commodity.hpp"
-#include "gnc/Numeric.hpp"
-#include "gnc/GncInstance.hpp"
-
-#include <QtCore/QString>
-#include <QtCore/QList>
-#include <QtCore/QMetaType>
-
-namespace gnc
-{
-
-class Split;
-class TmpSplit;
-
-/** Wrapper around a gnucash ::Transaction pointer with C++ methods for
- * easier setter and getter access.
- *
- * Unfortunately this object has no information about whether the
- * underlying gnucash ::Transaction object is still alive or has been
- * deleted.
- */
-class Transaction : public GncInstance< ::Transaction >
-{
-public:
-    typedef GncInstance< ::Transaction > base_class;
-    Transaction(element_type* ptr = 0)
-            : base_class(ptr)
-    { }
-
-    void beginEdit() { xaccTransBeginEdit(gobj()); }
-    void commitEdit() { xaccTransCommitEdit(gobj()); }
-    void rollbackEdit() { xaccTransRollbackEdit(gobj()); }
-    bool isOpen() const { return xaccTransIsOpen(gobj()); }
-
-
-    QString getNum() const { return QString::fromUtf8(xaccTransGetNum(gobj())); }
-    void setNum(const QString& v) { xaccTransSetNum(gobj(), v.toUtf8()); }
-
-    QString getDescription() const { return QString::fromUtf8(xaccTransGetDescription(gobj())); }
-    void setDescription(const QString& v) { xaccTransSetDescription(gobj(), v.toUtf8()); }
-
-    QString getNotes() const { return QString::fromUtf8(xaccTransGetNotes(gobj())); }
-    void setNotes(const QString& v) { xaccTransSetNotes(gobj(), v.toUtf8()); }
-
-    int countSplits() const { return xaccTransCountSplits(gobj()); }
-    Split findSplitByAccount(const Account& acc) const;
-    void appendSplit(Split& split);
-    Split getSplit(int i) const;
-    int getSplitIndex(const Split& split) const;
-    ::SplitList* getSplitList() const { return xaccTransGetSplitList(gobj()); }
-
-    Commodity getCurrency() const { return xaccTransGetCurrency(gobj()); }
-    void setCurrency(const Commodity& c) { xaccTransSetCurrency(gobj(), c.gobj()); }
-
-    Numeric getImbalanceValue() const { return xaccTransGetImbalanceValue(gobj()); }
-    bool isBalanced() const { return xaccTransIsBalanced(gobj()); }
-    Numeric getAccountConvRate(const Account& acc) const { return xaccTransGetAccountConvRate(gobj(), acc.gobj()); }
-
-    void setDatePosted(const QDate& d) { xaccTransSetDate(gobj(), d.day(), d.month(), d.year()); }
-    void setDateEntered(const QDateTime& t) { xaccTransSetDateEnteredSecs(gobj(), t.toTime_t()); }
-    QDate getDatePosted() const { return toQDate(xaccTransGetDatePostedGDate(gobj())); }
-    QDateTime getDateEntered() const { return toQDateTime(xaccTransRetDateEnteredTS(gobj())); }
-
-    static element_type* newInstance(const Book& b);
-};
-
-
-/** This is a temporary transaction. Each of this tmp transactions has
- * all data fields just like a "real" transaction, but it is not (yet)
- * added to the respective Account and Book. In other words, it is not
- * stored in the book yet.
- *
- * For this reason this class supports a full copy-by-value, which
- * will create new independent instances of all data fields. */
-class TmpTransaction
-{
-public:
-    typedef QList<TmpSplit> TmpSplitQList;
-
-    /** Creates an empty tmp transaction */
-    TmpTransaction();
-
-    /** Creates a tmp transaction whose content is copied from the
-     * given real transaction */
-    TmpTransaction(const Transaction& t);
-
-    /** Clears all data fields of this transaction, including deletion
-     * of all splits stored here. */
-    void clear();
-
-    /** Clears all data fields, but does not delete the splits and
-     * instead only resets the data fields of all splits */
-    void resetContent();
-
-    /** Copies the content of this tmp transaction into the given real
-     * transaction. */
-    void copyTo(Transaction& t) const;
-
-    /** Allocates a new real transaction in the Book and Account as
-     * stored in the tmp transaction, copies the content of this tmp
-     * transaction into the newly allocated one, and returns the
-     * pointer to the newly created real transaction. */
-    Transaction createAsReal() const;
-
-    QString getNum() const { return m_num; }
-    void setNum(const QString& v) { m_num = v; }
-
-    QString getDescription() const { return m_description; }
-    void setDescription(const QString& v) { m_description = v; }
-
-    void push_back(const TmpSplit& s);
-    const TmpSplitQList& getSplits() const { return m_splits; }
-    TmpSplitQList& getSplits() { return m_splits; }
-    int countSplits() const { return m_splits.size(); }
-
-    Commodity getCommodity() const { return m_commodity; }
-    void setCommodity(const Commodity& v) { m_commodity = v; }
-
-    QDate getDatePosted() const { return m_datePosted; }
-    void setDatePosted(const QDate& v) { m_datePosted = v; }
-
-    QDateTime getDateEntered() const { return m_dateTimeEntered; }
-    void setDateEntered(const QDateTime& v) { m_dateTimeEntered = v; }
-
-private:
-    QString m_num;
-    QString m_description;
-    QString m_notes;
-    TmpSplitQList m_splits;
-    Commodity m_commodity;
-    QDate m_datePosted;
-    QDateTime m_dateTimeEntered;
-};
-
-} // END namespace gnc
-
-Q_DECLARE_METATYPE(gnc::Transaction)
-Q_DECLARE_METATYPE(gnc::TmpTransaction)
-
-#endif

Modified: gnucash/trunk/src/gnc/main.cpp
===================================================================
--- gnucash/trunk/src/gnc/main.cpp	2011-10-28 20:34:31 UTC (rev 21504)
+++ gnucash/trunk/src/gnc/main.cpp	2011-10-28 20:34:44 UTC (rev 21505)
@@ -179,7 +179,7 @@
 
     // Initialize glibmm
     Glib::init();
-    //gnc::wrap_init(); // requires replacing the qt-based engine wrappers
+    gnc::wrap_init();
 
     // Call the statically-linked versions of the backend init
     // functions



More information about the gnucash-changes mailing list