CVS commit by mornfall: - add support for apt-get update operation; however, the progress indicator is borrowed from apt-get for now, so you will see update progress only in terminal window you used to start kapture; needs GUI progress meter implementation (can wait) - removed PkgDepTree, as it was replaced by PkgFeeder concept (see below) - fix most of the memory leaks (thanks valgrind); comprises adding/implementing destructors where appropriate - fix bug in stl_util.cpp (domi, we both missed it; however, it was introduced by me) - reset minpos to 0 when cutting string into 2 pieces - reorganize pkggrouper.cpp, group method impls by class, use folding - fix PkgGrouperFactory's loadFromString and saveToString (they should work properly now) - fix infinite loop in PkgFilterGrouper::addPackage (when discarding package, it didn't advance the feeder to a next one) - move PkgFeeder and related stuff into pkgfeeder.h - implement PkgCacheFeeder (properly, PkgSimpleFeeder was a bit insane proof of concept) - make PkgManager notify interested objects about cache changes (only on update for now), make PkgTree use this concept (see pkgmanager.h -> PkgManager::Watcher and pkgtree.h) - implement PkgSubTree tree-building for real (was marked as todo in source and methods were empty; it worked because QListViewItems build their own hierarchy) - adapt PkgTree and PkgList (from kapture) to use PkgFeeder properly - few other minor changes
CCMAIL: [EMAIL PROTECTED] A acqprogress.cc 1.1 [POSSIBLY UNSAFE: printf] [no copyright] A acqprogress.h 1.1 [no copyright] A kapture.kcfg 1.1 A operationmenu.cpp 1.1 [no copyright] A pkgfeeder.cpp 1.1 [no copyright] A pkgfeeder.h 1.1 [LGPL (v2+)] M +4 -3 Makefile.am 1.5 M +12 -0 kapture_part.cpp 1.7 M +3 -0 kapture_part.h 1.3 M +9 -1 mainview.cpp 1.4 M +4 -0 mainview.h 1.3 M +7 -2 operationmenu.h 1.2 M +6 -9 operationmenuui.ui 1.2 M +7 -2 pkgdetails.cpp 1.4 M +1 -0 pkgdetails.h 1.4 M +101 -57 pkggrouper.cpp 1.11 M +5 -39 pkggrouper.h 1.13 M +16 -6 pkglist.cpp 1.9 M +3 -1 pkglist.h 1.7 M +16 -10 pkglistview.cpp 1.2 M +4 -5 pkglistview.h 1.2 M +81 -4 pkgmanager.cpp 1.2 M +17 -1 pkgmanager.h 1.2 M +32 -4 pkgsubtree.cpp 1.5 M +6 -0 pkgsubtree.h 1.6 M +33 -22 pkgtree.cpp 1.8 M +12 -15 pkgtree.h 1.5 M +7 -0 pkgtreeitem.cpp 1.6 M +5 -0 pkgtreeitem.h 1.8 M +3 -1 pkgtreenode.h 1.10 M +1 -0 pkgview.h 1.4 M +12 -6 stl_util.cpp 1.6