From: <fab...@go...> - 2008-01-27 17:36:31
|
Hi, My idea was just to keep things simple, so if it's simpler with mailing list code it's fine for me. Fab On Jan 26, 2008 2:05 AM, Matthew Gates <mat...@gm...> wrote: > I took the code from the parser example I posted to this list recently, > and > integrated it into Stellarium. It seems to work fine in so far as the > QSettings object is currently used for reading the config for some > classes. > The call to str_to_vec3f changes back to a string call rather than > QStringList. > > It doesn't suffer from the " (longitude) problem, and copes with comments > properely (i.e. doesn't consider them to be keys and/or values). > > Fabien, I'd like to add this to SVN (attachment - untar in src dir). You > can > modify the QT ini parser code and replace it later if you like. I looked > at the QT code, and it's a lot more compicated than mine. It also stills > to be modified to handle comments and quotes how we want it to. > > The QT parser does everything char by char or with basic string > operations, > making it a lot harder to understand than mine, which uses QRegExp to do > all the work. While it might be better tested and is probably more > efficient than my code, it seems like a lot of effort for not much > benefit. > > > Matthew > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Stellarium-pubdevel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > > |