Re: G2 branch doesn't build

2005-04-03 Thread Neil Williams
On Sunday 03 April 2005 12:48 am, Derek Atkins wrote:
 I 
 wouldn't think you need to reimplement the whole thing -- just change the
 file selection API to use the existing API hooks.

Thanks for doing that for me, Derek. I saw the patch on the list this morning.

  http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooser.html
 
  I just chose the one that gave the most useful dialog.

 GnuCash already uses a file chooser dialog -- we need to in the file save
 or save as code paths.  We should just reuse this API.  Did you look for
 a gnc_file_selection API?

I looked in the doxygen output, but src/app-file/gnome/gnc_file_dialog (where 
I've just found the call you've used) isn't documented within doxygen.

 If nothing else you should look in the 
 gnc-file API docs.

Sorry, a more thorough search was obviously required when the code was first 
built. I was looking for it in src/gnome/ or src/gnome-utils.


-- 

Neil Williams
=
http://www.dcglug.org.uk/
http://www.nosoftwarepatents.com/
http://sourceforge.net/projects/isbnsearch/
http://www.neil.williamsleesmill.me.uk/
http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3



pgpLVUVUHkqmy.pgp
Description: PGP signature
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: G2 branch doesn't build

2005-04-03 Thread Neil Williams
On Sunday 03 April 2005 12:56 am, David Hampton wrote:
 On Sun, 2005-04-03 at 00:10 +0100, Neil Williams wrote:
  On Saturday 02 April 2005 11:13 pm, David Hampton wrote:
   This is gtk-2.4 code.  ATM, the g2 branch is still supposed to be based
   on 2.2.
 
  Where is this documented?

 I don't know that it ever was.  We talked on IRC about switching to
 gtk-2.4

I'm rarely on IRC - I never particularly liked the medium and there are 
timezone issues too. I've been asleep during this whole thread and you are 
probably asleep now that I'm replying. You're 5 hours behind GMT, is that 
right? 9am here (BST +0100) 3am with you (-0500).

  I'm actually using libgtk2.0-dev   2.6.2-4  so how do I prevent this
  happening?

 What distro?  (Just curious.  Redhat won't have 2.6 until FC4.)

Debian unstable.

  Gtk doesn't do that in the 2.0 API.

 Its in the gtk API docs at http://developer.gnome.org/doc/API/2.0/gtk/ .
 Anything added in gtk-2.4 or later is documented to when it was added to
 in the API.

OK, I see that now.
http://developer.gnome.org/doc/API/2.0/gtk/gtk-migrating-GtkFileChooser.html

Thereagain, until now I didn't now that GnuCash wasn't intended to use 2.4!
:-)

  Apart from src/business/business-gnome which is a repeat of the same
  code, does the rest of the QSF stuff build?

 Builds on my FC3 system, but then that's gtk-2.4 based.  I'll fire up a
 compile on my vmware FC1 system and see how many problems there are.

Thanks for doing that. It's good to know it was only this one choice that 
caused a problem.

-- 

Neil Williams
=
http://www.dcglug.org.uk/
http://www.nosoftwarepatents.com/
http://sourceforge.net/projects/isbnsearch/
http://www.neil.williamsleesmill.me.uk/
http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3



pgpbdkNeymvkV.pgp
Description: PGP signature
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: G2 branch doesn't build

2005-04-03 Thread Derek Atkins
Neil Williams [EMAIL PROTECTED] writes:

 On Sunday 03 April 2005 12:48 am, Derek Atkins wrote:
 I 
 wouldn't think you need to reimplement the whole thing -- just change the
 file selection API to use the existing API hooks.

 Thanks for doing that for me, Derek. I saw the patch on the list this morning.

No problem.  I figured it would just be easier to make the fix and let
you sort it out later then it would be to try to walk you through
finding it.

  http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooser.html
 
  I just chose the one that gave the most useful dialog.

 GnuCash already uses a file chooser dialog -- we need to in the file save
 or save as code paths.  We should just reuse this API.  Did you look for
 a gnc_file_selection API?

 I looked in the doxygen output, but src/app-file/gnome/gnc_file_dialog (where 
 I've just found the call you've used) isn't documented within doxygen.

Yea..  Not everything is documented in doxygen.  We know that.  :)
If anyone wants to supply doxygen comment patches.. Please do :)

 If nothing else you should look in the 
 gnc-file API docs.

 Sorry, a more thorough search was obviously required when the code was first 
 built. I was looking for it in src/gnome/ or src/gnome-utils.

It's okay..  You're still learning the code.  :)

-derek

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: G2 branch doesn't build

2005-04-03 Thread Derek Atkins
David Hampton [EMAIL PROTECTED] writes:

 On Sun, 2005-04-03 at 00:10 +0100, Neil Williams wrote:
 On Saturday 02 April 2005 11:13 pm, David Hampton wrote:
  This is gtk-2.4 code.  ATM, the g2 branch is still supposed to be based
  on 2.2.
 
 Where is this documented?

 I don't know that it ever was.  We talked on IRC about switching to
 gtk-2.4

It's where we discussed and decided that the current G2 target is
RHEL3/FC1.  We might change that to EL4/FC3 considering that EL4 has
been released and we WILL probably have another 6 months until FCS
with the G2 branch...

 I'm actually using libgtk2.0-dev   2.6.2-4  so how do I prevent this 
 happening?

 What distro?  (Just curious.  Redhat won't have 2.6 until FC4.)

Indeed.  FC3 and RHEL4 has Gnome-2.6 / Gtk-2.4... Sort of.  Actually
they have libgnome-2.8 but gtk2-2.4.

 Gtk doesn't do that in the 2.0 API.

 Its in the gtk API docs at http://developer.gnome.org/doc/API/2.0/gtk/ .
 Anything added in gtk-2.4 or later is documented to when it was added to
 in the API.

 Apart from src/business/business-gnome which is a repeat of the same code, 
 does the rest of the QSF stuff build?

 Builds on my FC3 system, but then that's gtk-2.4 based.  I'll fire up a
 compile on my vmware FC1 system and see how many problems there are.

No need.  I fired it up on EL3 and it fails there.  FC1 will be about
the same. :)

I just decided to fix it myself last night.

 David

-derek

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: G2 branch doesn't build

2005-04-03 Thread Derek Atkins
Neil Williams [EMAIL PROTECTED] writes:

 I'm rarely on IRC - I never particularly liked the medium and there are 
 timezone issues too. I've been asleep during this whole thread and you are 
 probably asleep now that I'm replying. You're 5 hours behind GMT, is that 
 right? 9am here (BST +0100) 3am with you (-0500).

We've got people in IRC from Australia..  They have bigger tz issues
that you.  We also get many other european members into IRC (including
Mr. Stimming, periodically).  A few of us are active in IRC from
when we wake until when we go to sleep.  In my case this is from
around 9-10am ET through about 12m.  Your evenings definitely overlap
with our days ;)

 Thereagain, until now I didn't now that GnuCash wasn't intended to use 2.4!
 :-)

Sorry, I thought it had been made quite clear.  I appologize for not
checking with you to make sure the message was received.

 Thanks for doing that. It's good to know it was only this one choice that 
 caused a problem.

It was the only thing to keep it from compiling.  :)

-derek

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel



Re: G2 branch doesn't build

2005-04-03 Thread Josh Sled
On Sun, 2005-04-03 at 04:08, Neil Williams wrote:

 Thereagain, until now I didn't now that GnuCash wasn't intended to use 2.4!
 :-)

Yeah, the only place this is in the source tree is ./configure.in [[[
# Look for libgnomeui by pkg-config
PKG_CHECK_MODULES(GNOME, libgnomeui-2.0 = 2.2
   gtk+-2.0 = 2.2)
]]].

  Builds on my FC3 system, but then that's gtk-2.4 based.  I'll fire up a
  compile on my vmware FC1 system and see how many problems there are.
 
 Thanks for doing that. It's good to know it was only this one choice that 
 caused a problem.

This has come up a couple/few times; specifically:

- what distros are we targeting?
- what's then the min(library_version) provided for our deps?

We should probably collect all that info into a file for reference. 
Since deps have, and will continue to be (given our desire to lag the
major distros by ~6 months), an important gnucash issue we should
probably have a README.dependencies or something.  The current
dependency list in README is from 2001.

...jsled

-- 
http://asynchronous.org/ - `a=jsled; b=asynchronous.org; echo [EMAIL PROTECTED]
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: G2 branch doesn't build

2005-04-03 Thread Derek Atkins
Josh Sled [EMAIL PROTECTED] writes:

 This has come up a couple/few times; specifically:

 - what distros are we targeting?
 - what's then the min(library_version) provided for our deps?

 We should probably collect all that info into a file for reference. 
 Since deps have, and will continue to be (given our desire to lag the
 major distros by ~6 months), an important gnucash issue we should
 probably have a README.dependencies or something.  The current
 dependency list in README is from 2001.

Well, the README hasn't been updated for the G2 branch at all, so
that's not too surprising.  It should've been updated for the 1.8
release, but that WAS a while ago (and didn't really change the
dependencies beyond 1.6, except for g-wrap).

-derek
-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


QSF, pilot-link and GnuCash

2005-04-03 Thread Neil Williams
Progress !

GnuCash (G2 branch) can export certain entities to QSF XML (thanks to Derek 
tempering my enthusiasm for Gtk 2.4!)

Just today, pilot-link has also come through and I've just synced 1,000 Palm 
entries (contacts, dates, expenses and tasks) to QSF XML (770kb) for the very 
first time. It took about 25 seconds to read the data from the Palm and under 
5 seconds to prepare the QSF from the usual pilot-link objects and write 
1,000 entities to disk.

There are little bits left to do on both sides and then I have more to do on 
the maps / other methods to convert between objects. On the GnuCash side, I 
will be working on a revamped merge druid, support for Account and 
Transaction exports and more documentation. On the pilot-link side, I'm 
working on reading SQL commands from a file (they can already be provided on 
the command line), supporting date ranges (all records this month, all 
records this year etc.) and reading Palm category fields.

I'll also be looking at extending Linas' work in QOF to support a SQL query 
using 'like' and wildcards:
where field like %cash%
http://code.neil.williamsleesmill.me.uk/doxygen/group__SQL.html#ga4

pilot-link now has a method for providing QSF XML data streams and when the 
maps are finalised, a program like GnuCash could call one of:
pilot-qof -aq
pilot-qof -a -s select * from pilot_address where entryFirstname = Neil;
pilot-qof -a --exclude pilot_expenses
pilot-qof -a --database pilot_datebook --date-string 04-12-31
http://code.neil.williamsleesmill.me.uk/manpages.html

A simple dialog in GnuCash to ask the user to press HotSync on the Palm and a 
data stream can be piped to GnuCash and then to book_merge. Create invoices, 
new customers, new transactions (from expenses), all sorts. Later versions 
will allow writing data to the Palm - once I've got the courage! That Palm is 
the basis of my self-employment!!!

The user will also be able to select the pilot-link offline storage QSF XML 
(e.g. ~/myofflinefile.xml) and read that directly within GnuCash using the 
File-Import QSF command.

Alternatively, pass a command to pilot-qof to query the XML and produce a 
smaller dataset of just what the user needs:
pilot-qof -o ~/myofflinefile.xml -s select * from pilot_address where 
entryFirstname = Neil; -w mynewfile.xml
e.g. The results of that query can then be written to a new file - queries can 
be made recursive.

I'm also continuing with qof-generator that will provide easy creation of new 
QOF objects as examples or mini-applications for specific purposes. e.g. to 
create a C application that can convert between objects instead of using a 
map. I'm doing this because these example objects with mini-applications are 
the fastest and simplest way of testing the framework and creating new maps.
http://qof-gen.sourceforge.net/
http://sourceforge.net/projects/qof-gen/

The pilot-link code isn't in pilot-link CVS yet, there's a code freeze due to 
the upcoming v0.12 release. 

You might say I'm a tad pleased to get it working!
:-)

-- 

Neil Williams
=
http://www.dcglug.org.uk/
http://www.nosoftwarepatents.com/
http://sourceforge.net/projects/isbnsearch/
http://www.neil.williamsleesmill.me.uk/
http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3



pgpFxHNxTrijG.pgp
Description: PGP signature
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: QSF, pilot-link and GnuCash

2005-04-03 Thread Derek Atkins
Neil Williams [EMAIL PROTECTED] writes:

 Progress !

 GnuCash (G2 branch) can export certain entities to QSF XML (thanks to Derek 
 tempering my enthusiasm for Gtk 2.4!)

You're welcome.

 Just today, pilot-link has also come through and I've just synced 1,000 Palm 
 entries (contacts, dates, expenses and tasks) to QSF XML (770kb) for the very 
 first time. It took about 25 seconds to read the data from the Palm and under 
 5 seconds to prepare the QSF from the usual pilot-link objects and write 
 1,000 entities to disk.

Congrats!!!

-derek

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   [EMAIL PROTECTED]PGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel