kdenonbeta/kdedebian/kapture [POSSIBLY UNSAFE]

2004-07-15 Thread Peter Rockai
CVS commit by mornfall: 

Change the status handling in PkgCache. The PkgCache::PkgState is now
a bitfield and there is a bunch of static predicates in PkgCache to
query this bitfield on both current status (st*) and possible actions
(can*). Should un-burden frontends of reimplementing this stuff again
and again.


  M +5 -9  libcapture/filters.cpp   1.23
  M +11 -16libcapture/grouper.cpp   1.32
  M +28 -37libcapture/pkgcache.cpp   1.29 [POSSIBLY UNSAFE: system]
  M +27 -2 libcapture/pkgcache.h   1.23
  M +25 -26libkapture/listtreewidget.cpp   1.35
  M +15 -14libkapture/pkgcelemview.cpp   1.12





kdenonbeta/kdedebian/kapture [POSSIBLY UNSAFE]

2004-07-13 Thread Peter Rockai
CVS commit by mornfall: 

Work on DPkgPM in lib{c,k}apture. Reimplement the script invokation in
libcapture, make it modular and possible to override the fork/exec (as
is the case with dpkg now). The WithPkgs variant is as-of-yet disabled,
but being worked on. The invocation seems to work... libkapture
overrides will follow.


  M +123 -21   libcapture/dpkgpm.cpp   1.5 [POSSIBLY UNSAFE: printf]
  M +7 -1  libcapture/dpkgpm.h   1.3
  M +2 -23 libkapture/dpkgpm.cpp   1.9
  M +3 -3  libkapture/dpkgpm.h   1.5





kdenonbeta/kdedebian/kapture [POSSIBLY UNSAFE]

2004-05-29 Thread Peter Rockai
CVS commit by mornfall: 

- update TODO
- start to sort out the package installation mess
- start to use _error for error reporting (hm, will need some support
  for real-time warning/error display...)


  M +5 -1  TODO   1.19
  M +77 -70libcapture/pkgmanager.cpp   1.15 [POSSIBLY UNSAFE: printf]
  M +4 -0  libcapture/pkgmanager.h   1.10
  M +1 -1  libkapture/Makefile.am   1.9
  M +8 -0  libkapture/kapturemanager.cpp   1.11
  M +4 -1  libkapture/kapturemanager.h   1.7





kdenonbeta/kdedebian/kapture [POSSIBLY UNSAFE]

2004-05-16 Thread Peter Rockai
CVS commit by mornfall: 

- fix the package status display (will be removed/installed)
- fix the annoying "PKG" tab titles (use package name instead)
- start the extended state init routine (should work, but will need
  progress meter or sth, as on my machine it takes like 70 seconds...
  aww; otherwise, it seems to work quite well, still needs some fixes in
  pkgcache.cpp (python is triggering a situation where wanted == unwanted)


  M +2 -2  kapture/kapture.cpp   1.9
  M +22 -0 libcapture/pkgcache.cpp   1.14
  M +1 -0  libcapture/pkgcache.h   1.13
  M +1 -0  libcapture/pkgmanager.cpp   1.12
  M +1 -1  libkapture/listtreewidget.cpp   1.3
  M +8 -4  libkapture/pkgnodeview.cpp   1.9 [POSSIBLY UNSAFE: printf]





kdenonbeta/kdedebian/kapture [POSSIBLY UNSAFE]

2004-01-31 Thread Peter Rockai
CVS commit by mornfall: 

- implement package installation (well, it blocks for now (need
  asynchronization or something) but it works... (oh, and with apt-listchanges
  it sucks a bit right now))
- sketch a prototype of PkgManager::CommitStatus, that should be fed with info
  from the _commit routine and present this to user; also should handle "are
  you sure" type of thing)
- fix a segfault in upgrade when no package was selected (was a bug in
  PkgNodeViewCommon)


  Alibkapture/acqprogress.cpp   1.4 [POSSIBLY UNSAFE: printf] [no 
copyright]
  Alibkapture/acqprogress.h   1.5 [no copyright]
  M +245 -244  libcapture/pkgmanager.cpp   1.7
  M +43 -11libcapture/pkgmanager.h   1.7
  M +1 -1  libkapture/kapturemanager.cpp   1.7
  M +1 -0  libkapture/pkgnodeview.cpp   1.2





kdenonbeta/kdedebian/kapture [POSSIBLY UNSAFE]

2004-01-30 Thread Peter Rockai
CVS commit by mornfall: 

- update TODO
- usual (;p) renaming fun:
  DetailsView -> NodeView
  PkgView -> TreeView
  PkgListView -> ListTreeView
  PkgList -> ListTreeWidget
- implemented package download (click the (currently misnamed) "Install
  New Software" button) -- the AcqProgress side of things needs
  finishing
- some code reformatting
- fix pkgcache-test.cpp
- fix a segfault with some tag databases
- nuke a stale libcapture/pkgitem.h
- reduce #include's somewhat

CCMAIL: [EMAIL PROTECTED]


  Alibkapture/listtreeview.cpp   1.1 [no copyright]
  Alibkapture/listtreeview.h   1.1 [UNKNOWN]
  Alibkapture/listtreeviewui.ui   1.1
  Alibkapture/listtreewidget.cpp   1.1 [no copyright]
  Alibkapture/listtreewidget.h   1.1 [UNKNOWN]
  Alibkapture/nodeview.cpp   1.1 [no copyright]
  Alibkapture/nodeview.h   1.1 [UNKNOWN]
  Alibkapture/pkgnodeview.cpp   1.1 [no copyright]
  Alibkapture/pkgnodeview.h   1.1 [UNKNOWN]
  Alibkapture/pkgnodeviewcommonui.ui   1.1
  Alibkapture/pkgnodeviewdetailsui.ui   1.1
  Alibkapture/treeview.cpp   1.1 [no copyright]
  Alibkapture/treeview.h   1.1 [UNKNOWN]
  M +5 -0  README   1.6
  M +28 -5 TODO   1.10
  M +12 -11kapture/kapture.cpp   1.6
  M +3 -3  kapture/kapture.h   1.4
  M +0 -2  libcapture/depgroupers.h   1.2
  M +11 -22libcapture/feeder.h   1.4
  M +10 -8 libcapture/filters.h   1.3
  M +1 -4  libcapture/grouper.h   1.5
  M +2 -2  libcapture/pkgcache-test.cpp   1.5
  M +6 -2  libcapture/pkgcache.h   1.5
  M +7 -11 libcapture/pkggroup.h   1.4
  M +873 -10   libcapture/pkgmanager.cpp   1.6 [POSSIBLY UNSAFE: printf]
  M +10 -9 libcapture/pkgmanager.h   1.6
  M +0 -1  libcapture/tagcollbuilder.h   1.2
  M +1 -3  libcapture/tree.h   1.2
  M +1 -1  libcapture/treebranchnode.h   1.3
  M +2 -2  libcapture/treegroupnode.h   1.3
  M +1 -1  libcapture/treenode.h   1.3
  M +1 -3  libcapture/treepkgnode.h   1.3
  M +7 -5  libkapture/Makefile.am   1.7
  M +21 -10libkapture/acqprogress.cpp   1.3
  M +3 -3  libkapture/acqprogress.h   1.4
  M +2 -2  libkapture/kaptureconfig.h   1.2
  M +21 -0 libkapture/kapturemanager.cpp   1.6
  M +3 -1  libkapture/kapturemanager.h   1.4
  M +1 -0  libkapture/operationmenu.cpp   1.3
  M +8 -8  part/partview.cpp   1.5
  M +4 -4  part/partview.h   1.5
  M +15 -7 part/partviewui.ui   1.3
  Rlibcapture/pkgitem.h   1.2
  Rlibkapture/detailview.cpp   1.1
  Rlibkapture/detailview.h   1.1
  Rlibkapture/pkgdetails.cpp   1.3
  Rlibkapture/pkgdetails.h   1.3
  Rlibkapture/pkgdetailscommon.cpp   1.2
  Rlibkapture/pkgdetailscommon.h   1.2
  Rlibkapture/pkgdetailscommonui.ui   1.1
  Rlibkapture/pkgdetailsdetails.cpp   1.2
  Rlibkapture/pkgdetailsdetails.h   1.1
  Rlibkapture/pkgdetailsdetailsui.ui   1.2
  Rlibkapture/pkglist.cpp   1.4
  Rlibkapture/pkglist.h   1.4
  Rlibkapture/pkglistview.cpp   1.4
  Rlibkapture/pkglistview.h   1.3
  Rlibkapture/pkglistviewui.ui   1.2
  Rlibkapture/pkgview.cpp   1.3
  Rlibkapture/pkgview.h   1.4
  Rlibkapture/pkgviewui.ui   1.1





kdenonbeta/kdedebian/kapture [POSSIBLY UNSAFE]

2004-01-08 Thread Peter Rockai
CVS commit by mornfall: 

- created new directory layout (see below)
- implement generic group-creating grouper (PkgGroupGrouper)
- reimplement PkgSectGrouper on top of PkgGroupGrouper
- implement proper PkgDepGrouper on top of PkgGroupGrouper
- implement PkgDepTGrouper to group dependencies by their type (Depends,
  Recommends, Suggests, Conflicts)
- implement PkgDepEndGrouper, an interface between IterDepend and IterPackage
  type groupers (uses PkgSimpleFeeder for now, doesn't support AllTargets, ie
  only SmartTargetPkg is shown)
- add constructTreeRoot () to PkgTreeFactory for creation of (now
  semi-special) root element of the tree
- make PkgDetails manage pkgRecords::Parser for current version and pass it
  around to it's children
- make PkgDetails KJanusWidget (with IconList face for now)
- implement first version of AcqStatus GUI, based on KMails ImapProgressDialog

DIRECTORIES (from README)
libcapture/ --> set of generic data structures and algorithms for APT frontend
building; will include all the code for building package trees, filtering,
package download and installation, debtags and similar

libkapture/ --> library of UI elements building on top of libcapture; will
include tree and icon view of packages, UI for managing filters and
groupers, UI for showing package details (using januswidget), package
installation wizard, progress widgets and more

(TODO) pkgpart/ --> simple kpart built on top of libkapture: allows for viewing
one package and installing it; should use support of local repository from
libcapture

(XXX: needed?) part/ --> more complex kpart showing an operationmenu, a set of
package views (tabbed with operationmenu), one packagedetails view and
forward/back buttons for navigation

kapture/ --> complex UI built on top of libkapture using kmdi; sports
a set of package views in form of toolviews, arbitrary number of detail
views in form of document views (ie tabbed, childframe or toplevel) and
operationmenu toolview

KMDI
I started to work on KMDI face for kapture. It turned out it's not feasible to
make MDI KPart, so i finally factored the code into proper libs/modules. Now
we have multiple "faces" for kapture, see above. With this commit, the code is
a bit confused... In kapture/, there lives the kpart shell as used in earlier
versions. This will be moved into part/ and kapture/ will be created from the
ground up as KMdi face for libkapture. It won't use the part/ or pkgpart/, but
will be complementing these. It will be the full-blown interface with support
for all the fancy layout and multi-view stuff we want. If you seek simple and
still quite useable interface, take a look at part/. I will try to keep part/
up-to-date, but well, it's not the main focus now. If you would like to help
maintaining it, you're welcome.

BUILDING WITH KDE 3.1 (from README)
You will need to get a copy of qextmdi source from kdevelop cvs in
kdevelop/lib/qextmdi. Put it to this source directory under name qextmdi and
run "patch -p0 < qextmdi.diff". This should make it possible to compile and
run kapture under KDE 3.1. Your mileage may vary. You are welcome to report
problems.

CCMAIL: [EMAIL PROTECTED]


  Aqextmdi.diff   1.1
  Alibcapture/.cvsignore   1.1
  Alibcapture/Makefile.am   1.1
  Alibcapture/pkgfeeder.cpp   1.1 [no copyright]
  Alibcapture/pkgfeeder.h   1.1 [LGPL (v2+)]
  Alibcapture/pkggrouper.cpp   1.1 [LGPL (v2+)]
  Alibcapture/pkggrouper.h   1.1 [LGPL (v2+)]
  Alibcapture/pkgitem.h   1.1 [LGPL (v2+)]
  Alibcapture/pkgmanager.cpp   1.1 [LGPL (v2+)]
  Alibcapture/pkgmanager.h   1.1 [LGPL (v2+)]
  Alibcapture/pkgsubtree.cpp   1.1 [LGPL (v2+)]
  Alibcapture/pkgsubtree.h   1.1 [LGPL (v2+)]
  Alibcapture/pkgtree.cpp   1.1 [LGPL (v2+)]
  Alibcapture/pkgtree.h   1.1 [LGPL (v2+)]
  Alibcapture/pkgtreefactory.h   1.1 [LGPL]
  Alibcapture/pkgtreeitem.cpp   1.1 [LGPL (v2+)]
  Alibcapture/pkgtreeitem.h   1.1 [LGPL (v2+)]
  Alibcapture/pkgtreenode.cpp   1.1 [LGPL (v2+)]
  Alibcapture/pkgtreenode.h   1.1 [LGPL (v2+)]
  Alibcapture/stl_util.cpp   1.1 [LGPL (v2+)]
  Alibcapture/stl_util.h   1.1 [LGPL (v2+)]
  Alibkapture/.cvsignore   1.1
  Alibkapture/Makefile.am   1.1
  Alibkapture/acqprogress.cpp   1.1 [POSSIBLY UNSAFE: printf] [no 
copyright]
  Alibkapture/acqprogress.h   1.1 [no copyright]
  Alibkapture/kaptureconfig.cpp   1.1 [no copyright]
  Alibkapture/kaptureconfig.h   1.1 [UNKNOWN]
  Alibkapture/kaptureconfigbase.kcfgc   1.1
  Alibkapture/kapturemanager.cpp   1.1 [no copyright]
  Alibkapture/kapturemanager.h   1.1 [UNKNOWN]
  Alibkapture/operationmenu.cpp   1.1 [no copyright]
  A