Hello community,
here is the log from the commit of package yast2-qt
checked in at Fri Oct 13 16:36:46 CEST 2006.
--------
--- yast2-qt/yast2-qt.changes 2006-10-04 17:40:21.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-qt/yast2-qt.changes 2006-10-13 13:13:44.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Oct 12 17:32:16 CEST 2006 - sh@suse.de
+
+- Implemented feature #301222: Easy access to updating all packages
+- V 2.13.66
+
+-------------------------------------------------------------------
Old:
----
yast2-qt-2.13.65.tar.bz2
New:
----
yast2-qt-2.13.66.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-qt.spec ++++++
--- /var/tmp/diff_new_pack.My0j2s/_old 2006-10-13 16:36:21.000000000 +0200
+++ /var/tmp/diff_new_pack.My0j2s/_new 2006-10-13 16:36:21.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-qt (Version 2.13.65)
+# spec file for package yast2-qt (Version 2.13.66)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-qt
-Version: 2.13.65
-Release: 1
+Version: 2.13.66
+Release: 2
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-qt-2.13.65.tar.bz2
+Source0: yast2-qt-2.13.66.tar.bz2
prefix: /usr
BuildRequires: boost-devel curl-devel dbus-1-devel docbook-xsl-stylesheets doxygen hal-devel libdrm-devel libjpeg-devel libxcrypt-devel libxslt libzypp-devel perl-XML-Writer qt3-devel rpm-devel sgml-skel update-desktop-files yast2-core-devel yast2-devtools
Summary: YaST2 - Graphical User Interface
@@ -42,7 +42,7 @@
Stefan Hundhammer
%prep
-%setup -n yast2-qt-2.13.65
+%setup -n yast2-qt-2.13.66
%build
%{prefix}/bin/y2tool y2autoconf
@@ -85,6 +85,9 @@
%doc %{prefix}/share/doc/packages/yast2-qt
%changelog -n yast2-qt
+* Thu Oct 12 2006 - sh@suse.de
+- Implemented feature #301222: Easy access to updating all packages
+- V 2.13.66
* Wed Oct 04 2006 - sh@suse.de
- Fixed bug #208694: Allow deleting patches
(only the patch meta data will be deleted, packages will remain
++++++ yast2-qt-2.13.65.tar.bz2 -> yast2-qt-2.13.66.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/Makefile.am new/yast2-qt-2.13.66/Makefile.am
--- old/yast2-qt-2.13.65/Makefile.am 2006-10-04 17:28:51.000000000 +0200
+++ new/yast2-qt-2.13.66/Makefile.am 2006-10-13 13:10:24.000000000 +0200
@@ -67,7 +67,7 @@
# because the prerequisite is made here (not anymore!)
# and we don't want any paths in y2autoconf
# info '(autoconf)config.status Invocation'
-$(RPMNAME).pc: $(RPMNAME).pc.in
+$(RPMNAME).pc: $(RPMNAME).pc.in config.status
./config.status --file=$@:$<
if CREATE_PKGCONFIG_NOARCH
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/Makefile.in new/yast2-qt-2.13.66/Makefile.in
--- old/yast2-qt-2.13.65/Makefile.in 2006-10-04 17:29:10.000000000 +0200
+++ new/yast2-qt-2.13.66/Makefile.in 2006-10-13 13:10:42.000000000 +0200
@@ -773,7 +773,7 @@
# because the prerequisite is made here (not anymore!)
# and we don't want any paths in y2autoconf
# info '(autoconf)config.status Invocation'
-@CREATE_PKGCONFIG_TRUE@$(RPMNAME).pc: $(RPMNAME).pc.in
+@CREATE_PKGCONFIG_TRUE@$(RPMNAME).pc: $(RPMNAME).pc.in config.status
@CREATE_PKGCONFIG_TRUE@ ./config.status --file=$@:$<
dist-hook:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/VERSION new/yast2-qt-2.13.66/VERSION
--- old/yast2-qt-2.13.65/VERSION 2006-10-04 17:27:11.000000000 +0200
+++ new/yast2-qt-2.13.66/VERSION 2006-10-12 17:31:48.000000000 +0200
@@ -1 +1 @@
-2.13.65
+2.13.66
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/configure new/yast2-qt-2.13.66/configure
--- old/yast2-qt-2.13.65/configure 2006-10-04 17:29:04.000000000 +0200
+++ new/yast2-qt-2.13.66/configure 2006-10-13 13:10:37.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for yast2-qt 2.13.65.
+# Generated by GNU Autoconf 2.59 for yast2-qt 2.13.66.
#
# Report bugs to http://bugs.opensuse.org/.
#
@@ -423,8 +423,8 @@
# Identity of this package.
PACKAGE_NAME='yast2-qt'
PACKAGE_TARNAME='yast2-qt'
-PACKAGE_VERSION='2.13.65'
-PACKAGE_STRING='yast2-qt 2.13.65'
+PACKAGE_VERSION='2.13.66'
+PACKAGE_STRING='yast2-qt 2.13.66'
PACKAGE_BUGREPORT='http://bugs.opensuse.org/'
ac_unique_file="RPMNAME"
@@ -959,7 +959,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures yast2-qt 2.13.65 to adapt to many kinds of systems.
+\`configure' configures yast2-qt 2.13.66 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1030,7 +1030,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of yast2-qt 2.13.65:";;
+ short | recursive ) echo "Configuration of yast2-qt 2.13.66:";;
esac
cat <<\_ACEOF
@@ -1176,7 +1176,7 @@
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-yast2-qt configure 2.13.65
+yast2-qt configure 2.13.66
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1190,7 +1190,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by yast2-qt $as_me 2.13.65, which was
+It was created by yast2-qt $as_me 2.13.66, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1920,7 +1920,7 @@
# Define the identity of the package.
PACKAGE='yast2-qt'
- VERSION='2.13.65'
+ VERSION='2.13.66'
cat >>confdefs.h <<_ACEOF
@@ -2131,7 +2131,7 @@
-VERSION="2.13.65"
+VERSION="2.13.66"
RPMNAME="yast2-qt"
MAINTAINER="Stefan Hundhammer "
@@ -20277,7 +20277,7 @@
} >&5
cat >&5 <<_CSEOF
-This file was extended by yast2-qt $as_me 2.13.65, which was
+This file was extended by yast2-qt $as_me 2.13.66, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -20340,7 +20340,7 @@
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-yast2-qt config.status 2.13.65
+yast2-qt config.status 2.13.66
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/configure.in new/yast2-qt-2.13.66/configure.in
--- old/yast2-qt-2.13.65/configure.in 2006-10-04 17:28:50.000000000 +0200
+++ new/yast2-qt-2.13.66/configure.in 2006-10-13 13:10:24.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2-qt
dnl
-dnl -- This file is generated by y2autoconf 2.13.22 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.13.27 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-qt, 2.13.65, http://bugs.opensuse.org/, yast2-qt)
+AC_INIT(yast2-qt, 2.13.66, http://bugs.opensuse.org/, yast2-qt)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.13.65"
+VERSION="2.13.66"
RPMNAME="yast2-qt"
MAINTAINER="Stefan Hundhammer "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/packages-qt.pot new/yast2-qt-2.13.66/packages-qt.pot
--- old/yast2-qt-2.13.65/packages-qt.pot 2006-08-25 18:03:35.000000000 +0200
+++ new/yast2-qt-2.13.66/packages-qt.pot 2006-10-06 16:41:19.000000000 +0200
@@ -8,7 +8,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-08-25 18:03+0200\n"
+"POT-Creation-Date: 2006-10-06 16:41+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -85,10 +85,10 @@
msgstr ""
#. "OK" button
-#: src/QY2FloppyMountDialog.cc:216 src/YQPackageSelector.cc:1205
+#: src/QY2FloppyMountDialog.cc:216 src/YQPackageSelector.cc:1206
#: src/YQPkgDescriptionDialog.cc:99 src/YQPkgDiskUsageList.cc:125
#: src/YQPkgDiskUsageList.cc:134 src/YQPkgTextDialog.cc:48
-#: src/QY2FloppyMountDialog.cc:216 src/YQPackageSelector.cc:1205
+#: src/QY2FloppyMountDialog.cc:216 src/YQPackageSelector.cc:1206
#: src/YQPackageSelectorBase.cc:174 src/YQPackageSelectorBase.cc:212
#: src/YQPkgDescriptionDialog.cc:99 src/YQPkgDiskUsageList.cc:125
#: src/YQPkgDiskUsageList.cc:134 src/YQPkgTextDialog.cc:48
@@ -268,50 +268,50 @@
msgid "&Patch"
msgstr ""
-#: src/YQPackageSelector.cc:678 src/YQPackageSelector.cc:678
+#: src/YQPackageSelector.cc:679 src/YQPackageSelector.cc:679
msgid "&Extras"
msgstr ""
-#: src/YQPackageSelector.cc:680 src/YQPackageSelector.cc:680
+#: src/YQPackageSelector.cc:681 src/YQPackageSelector.cc:681
msgid "Show &Automatic Package Changes"
msgstr ""
#. Translators: This is about packages ending in "-devel", so don't translate that "-devel"!
-#: src/YQPackageSelector.cc:691 src/YQPackageSelector.cc:691
+#: src/YQPackageSelector.cc:692 src/YQPackageSelector.cc:692
msgid "Install All Matching -&devel Packages"
msgstr ""
#. Translators: This is about packages ending in "-debuginfo", so don't translate that "-debuginfo"!
-#: src/YQPackageSelector.cc:694 src/YQPackageSelector.cc:694
+#: src/YQPackageSelector.cc:695 src/YQPackageSelector.cc:695
msgid "Install All Matching -de&buginfo Packages"
msgstr ""
-#: src/YQPackageSelector.cc:704 src/YQPackageSelector.cc:704
+#: src/YQPackageSelector.cc:705 src/YQPackageSelector.cc:705
msgid "&Help"
msgstr ""
#. Note: The help functions and their texts are moved out
#. to a separate source file YQPackageSelectorHelp.cc
#. Menu entry for help overview
-#: src/YQPackageSelector.cc:710 src/YQPackageSelector.cc:710
+#: src/YQPackageSelector.cc:711 src/YQPackageSelector.cc:711
msgid "&Overview"
msgstr ""
#. Menu entry for help about used symbols ( icons )
-#: src/YQPackageSelector.cc:713 src/YQPackageSelector.cc:713
+#: src/YQPackageSelector.cc:714 src/YQPackageSelector.cc:714
msgid "&Symbols"
msgstr ""
#. Menu entry for keyboard help
-#: src/YQPackageSelector.cc:716 src/YQPackageSelector.cc:716
+#: src/YQPackageSelector.cc:717 src/YQPackageSelector.cc:717
msgid "&Keys"
msgstr ""
-#: src/YQPackageSelector.cc:919 src/YQPackageSelector.cc:919
+#: src/YQPackageSelector.cc:920 src/YQPackageSelector.cc:920
msgid "All package dependencies are OK."
msgstr ""
-#: src/YQPackageSelector.cc:935 src/YQPackageSelector.cc:935
+#: src/YQPackageSelector.cc:936 src/YQPackageSelector.cc:936
msgid "Patches"
msgstr ""
@@ -325,8 +325,8 @@
#. filter
#. startsWith
#. filter
-#: src/YQPackageSelector.cc:994 src/YQPackageSelector.cc:1004
-#: src/YQPackageSelector.cc:994 src/YQPackageSelector.cc:1004
+#: src/YQPackageSelector.cc:995 src/YQPackageSelector.cc:1005
+#: src/YQPackageSelector.cc:995 src/YQPackageSelector.cc:1005
msgid "Save Package List"
msgstr ""
@@ -338,15 +338,15 @@
#. parent
#. Post error popup.
#. parent
-#: src/YQPackageSelector.cc:1032 src/YQPackageSelector.cc:1086
+#: src/YQPackageSelector.cc:1033 src/YQPackageSelector.cc:1087
#: src/YQPkgConflictList.cc:145 src/YQPkgList.cc:376
-#: src/YQPackageSelector.cc:1032 src/YQPackageSelector.cc:1086
+#: src/YQPackageSelector.cc:1033 src/YQPackageSelector.cc:1087
#: src/YQPkgConflictList.cc:145 src/YQPkgList.cc:376
msgid "Error"
msgstr ""
#. caption
-#: src/YQPackageSelector.cc:1033 src/YQPackageSelector.cc:1033
+#: src/YQPackageSelector.cc:1034 src/YQPackageSelector.cc:1034
msgid "Error writing package list to %1"
msgstr ""
@@ -364,17 +364,17 @@
#. filter
#. parent
#. name
-#: src/YQPackageSelector.cc:1050 src/YQPackageSelector.cc:1062
-#: src/YQPackageSelector.cc:1050 src/YQPackageSelector.cc:1062
+#: src/YQPackageSelector.cc:1051 src/YQPackageSelector.cc:1063
+#: src/YQPackageSelector.cc:1051 src/YQPackageSelector.cc:1063
msgid "Load Package List"
msgstr ""
#. caption
-#: src/YQPackageSelector.cc:1087 src/YQPackageSelector.cc:1087
+#: src/YQPackageSelector.cc:1088 src/YQPackageSelector.cc:1088
msgid "Error loading package list from %1"
msgstr ""
-#: src/YQPackageSelector.cc:1203 src/YQPackageSelector.cc:1203
+#: src/YQPackageSelector.cc:1204 src/YQPackageSelector.cc:1204
msgid "Added Subpackages:"
msgstr ""
@@ -835,7 +835,7 @@
msgid "Summary"
msgstr ""
-#: src/YQPkgList.cc:49 src/YQPkgList.cc:49 src/YQPkgPatchList.cc:52
+#: src/YQPkgList.cc:49 src/YQPkgList.cc:49 src/YQPkgPatchList.cc:53
msgid "Size"
msgstr ""
@@ -858,7 +858,7 @@
#: src/YQPkgList.cc:185 src/YQPkgList.cc:292 src/YQPkgObjList.cc:478
#: src/YQPkgList.cc:185 src/YQPkgList.cc:292 src/YQPkgObjList.cc:478
-#: src/YQPkgPatchList.cc:269
+#: src/YQPkgPatchList.cc:280
msgid "&All in This List"
msgstr ""
@@ -1175,7 +1175,7 @@
msgid "Installation Source"
msgstr ""
-#: src/YQPkgVersionsView.cc:280 src/YQPkgVersionsView.cc:280
+#: src/YQPkgVersionsView.cc:283 src/YQPkgVersionsView.cc:283
msgid "This version is installed in your system."
msgstr ""
@@ -1288,64 +1288,64 @@
msgid "URL"
msgstr ""
-#: src/YQPkgPatchFilterView.cc:66
+#: src/YQPkgPatchFilterView.cc:65
msgid "&Show Patch Category:"
msgstr ""
-#: src/YQPkgPatchFilterView.cc:71
+#: src/YQPkgPatchFilterView.cc:70
msgid "Installable Patches"
msgstr ""
-#: src/YQPkgPatchFilterView.cc:72
+#: src/YQPkgPatchFilterView.cc:71
msgid "Installable and Installed Patches"
msgstr ""
-#: src/YQPkgPatchFilterView.cc:73
+#: src/YQPkgPatchFilterView.cc:72
msgid "All Patches"
msgstr ""
-#: src/YQPkgPatchFilterView.cc:93
+#: src/YQPkgPatchFilterView.cc:92
msgid "Patch Description"
msgstr ""
-#: src/YQPkgPatchFilterView.cc:103
+#: src/YQPkgPatchFilterView.cc:102
msgid "Estimated Download Size:"
msgstr ""
-#: src/YQPkgPatchList.cc:50
+#: src/YQPkgPatchList.cc:51
msgid "Patch"
msgstr ""
-#: src/YQPkgPatchList.cc:51
+#: src/YQPkgPatchList.cc:52
msgid "Category"
msgstr ""
-#: src/YQPkgPatchList.cc:102
+#: src/YQPkgPatchList.cc:103
msgid "No patches available."
msgstr ""
-#: src/YQPkgPatchList.cc:178
+#: src/YQPkgPatchList.cc:179
msgid "Script"
msgstr ""
#. Translators: These are patch categories
-#: src/YQPkgPatchList.cc:365
+#: src/YQPkgPatchList.cc:376
msgid "YaST"
msgstr ""
-#: src/YQPkgPatchList.cc:366
+#: src/YQPkgPatchList.cc:377
msgid "security"
msgstr ""
-#: src/YQPkgPatchList.cc:367
+#: src/YQPkgPatchList.cc:378
msgid "recommended"
msgstr ""
-#: src/YQPkgPatchList.cc:368
+#: src/YQPkgPatchList.cc:379
msgid "optional"
msgstr ""
-#: src/YQPkgPatchList.cc:369
+#: src/YQPkgPatchList.cc:380
msgid "document"
msgstr ""
@@ -1355,17 +1355,17 @@
#. include the configuration workflow needed for that task, such of
#. configuring the web server. For the scope of the package selector, this
#. is only of little relevance, though.
-#: src/YQPkgPatternList.cc:54
+#: src/YQPkgPatternList.cc:55
msgid "Pattern"
msgstr ""
-#: src/YQUI_x11.cc:554
+#: src/YQUI_x11.cc:561
msgid ""
"You clicked the right mouse button where a left-click was expected.\n"
"Switch left and right mouse buttons?"
msgstr ""
#. Popup dialog caption
-#: src/YQUI_x11.cc:561
+#: src/YQUI_x11.cc:568
msgid "Unexpected Click"
msgstr ""
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/src/YQPackageSelector.cc new/yast2-qt-2.13.66/src/YQPackageSelector.cc
--- old/yast2-qt-2.13.65/src/YQPackageSelector.cc 2006-10-04 17:22:59.000000000 +0200
+++ new/yast2-qt-2.13.66/src/YQPackageSelector.cc 2006-10-12 16:59:12.000000000 +0200
@@ -23,6 +23,7 @@
#define DEPENDENCY_FEEDBACK_IF_OK 1
#define AUTO_CHECK_DEPENDENCIES_DEFAULT false
#define ALWAYS_SHOW_PATCHES_VIEW_IF_PATCHES_AVAILABLE 0
+#define GLOBAL_UPDATE_CONFIRMATION_THRESHOLD 20
#include
#include
@@ -645,6 +646,25 @@
submenu->insertSeparator();
_pkgList->actionInstallListSourceRpms->addTo( submenu );
_pkgList->actionDontInstallListSourceRpms->addTo( submenu );
+
+
+ //
+ // Submenu for all packages
+ //
+
+ submenu = new QPopupMenu( _pkgMenu );
+ CHECK_PTR( submenu );
+
+ // Translators: Unlike the "all in this list" submenu, this submenu
+ // refers to all packages globally, not only to those that are
+ // currently visible in the packages list.
+ _pkgMenu->insertItem( _( "All Packages" ), submenu );
+
+ submenu->insertItem( _( "Update if newer version available" ),
+ this, SLOT( globalUpdatePkg() ) );
+
+ submenu->insertItem( _( "Update unconditionally" ),
+ this, SLOT( globalUpdatePkgForce() ) );
}
@@ -661,7 +681,9 @@
_patchList->actionSetCurrentInstall->addTo( _patchMenu );
_patchList->actionSetCurrentDontInstall->addTo( _patchMenu );
_patchList->actionSetCurrentKeepInstalled->addTo( _patchMenu );
+#if ENABLE_DELETING_PATCHES
_patchList->actionSetCurrentDelete->addTo( _patchMenu );
+#endif
_patchList->actionSetCurrentUpdate->addTo( _patchMenu );
_patchList->actionSetCurrentTaboo->addTo( _patchMenu );
@@ -1098,6 +1120,43 @@
void
+YQPackageSelector::globalUpdatePkg( bool force )
+{
+ if ( ! _pkgList )
+ return;
+
+ int count = _pkgList->globalSetPkgStatus( S_Update, force,
+ true ); // countOnly
+ y2milestone( "%d pkgs found for update", count );
+
+ if ( count >= GLOBAL_UPDATE_CONFIRMATION_THRESHOLD )
+ {
+ if ( QMessageBox::question( this, "", // caption
+ // Translators: %1 is the number of affected packages
+ _( "%1 packages will be updated" ).arg( count ),
+ _( "&Continue" ), _( "C&ancel" ),
+ 0, // defaultButtonNumber (from 0)
+ 1 ) // escapeButtonNumber
+ == 1 ) // "Cancel"?
+ {
+ return;
+ }
+ }
+
+ (void) _pkgList->globalSetPkgStatus( S_Update, force,
+ false ); // countOnly
+
+ if ( _statusFilterView )
+ {
+ _filters->showPage( _statusFilterView );
+ _statusFilterView->clear();
+ _statusFilterView->showTransactions();
+ _statusFilterView->filter();
+ }
+}
+
+
+void
YQPackageSelector::installDevelPkgs()
{
installSubPkgs( "-devel" );
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/src/YQPkgList.cc new/yast2-qt-2.13.66/src/YQPkgList.cc
--- old/yast2-qt-2.13.65/src/YQPkgList.cc 2006-08-18 15:53:46.000000000 +0200
+++ new/yast2-qt-2.13.66/src/YQPkgList.cc 2006-10-12 17:21:25.000000000 +0200
@@ -123,7 +123,7 @@
if ( (*it)->installedObj() )
return true;
}
-
+
return false;
}
@@ -413,6 +413,83 @@
}
+int
+YQPkgList::globalSetPkgStatus( ZyppStatus newStatus, bool force, bool countOnly )
+{
+ YQUI::ui()->busyCursor();
+ int changedCount = 0;
+
+ for ( ZyppPoolIterator it = zyppPkgBegin();
+ it != zyppPkgEnd();
+ ++it )
+ {
+ ZyppSel selectable = *it;
+ ZyppStatus oldStatus = selectable->status();
+
+ if ( newStatus != oldStatus )
+ {
+ bool doChange = false;
+
+ switch ( newStatus )
+ {
+ case S_KeepInstalled:
+ case S_Del:
+ case S_AutoDel:
+ case S_Protected:
+ doChange = selectable->hasInstalledObj();
+ break;
+
+ case S_Update:
+ case S_AutoUpdate:
+
+ if ( force )
+ {
+ doChange = selectable->hasInstalledObj();
+ }
+ else // don't force - update only if useful (if candidate is newer)
+ {
+ const ZyppObj candidate = selectable->candidateObj();
+ const ZyppObj installed = selectable->installedObj();
+
+ if ( candidate && installed )
+ {
+ doChange = ( installed->edition() < candidate->edition() );
+ }
+ }
+ break;
+
+ case S_Install:
+ case S_AutoInstall:
+ case S_NoInst:
+ case S_Taboo:
+ doChange = ! selectable->hasInstalledObj();
+ break;
+ }
+
+ if ( doChange )
+ {
+ if ( ! countOnly )
+ selectable->set_status( newStatus );
+
+ changedCount++;
+ // y2milestone( "Updating %s", selectable->name().c_str() );
+ }
+ }
+ }
+
+ if ( changedCount > 0 && ! countOnly )
+ {
+ emit updateItemStates();
+ emit updatePackages();
+ emit statusChanged();
+ }
+
+ YQUI::ui()->normalCursor();
+
+ return changedCount;
+}
+
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/src/YQPkgPatchList.cc new/yast2-qt-2.13.66/src/YQPkgPatchList.cc
--- old/yast2-qt-2.13.65/src/YQPkgPatchList.cc 2006-10-04 17:17:10.000000000 +0200
+++ new/yast2-qt-2.13.66/src/YQPkgPatchList.cc 2006-10-10 12:02:35.000000000 +0200
@@ -288,6 +288,7 @@
{
if ( event )
{
+#if ! ENABLE_DELETING_PATCHES
if ( event->ascii() == '-' )
{
QListViewItem * selectedListViewItem = selectedItem();
@@ -303,6 +304,7 @@
}
}
}
+#endif
}
YQPkgObjList::keyPressEvent( event );
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/src/YQPkgStatusFilterView.cc new/yast2-qt-2.13.66/src/YQPkgStatusFilterView.cc
--- old/yast2-qt-2.13.65/src/YQPkgStatusFilterView.cc 2006-08-18 15:53:46.000000000 +0200
+++ new/yast2-qt-2.13.66/src/YQPkgStatusFilterView.cc 2006-10-12 16:49:55.000000000 +0200
@@ -174,7 +174,7 @@
bool
-YQPkgStatusFilterView::check( ZyppSel selectable,
+YQPkgStatusFilterView::check( ZyppSel selectable,
ZyppObj zyppObj )
{
bool match = false;
@@ -212,4 +212,62 @@
+void YQPkgStatusFilterView::clear()
+{
+ _showDel->setChecked( false );
+ _showInstall->setChecked( false );
+ _showUpdate->setChecked( false );
+ _showAutoDel->setChecked( false );
+ _showAutoInstall->setChecked( false );
+ _showAutoUpdate->setChecked( false );
+ _showTaboo->setChecked( false );
+ _showProtected->setChecked( false );
+ _showKeepInstalled->setChecked( false );
+ _showNoInst->setChecked( false );
+}
+
+
+void YQPkgStatusFilterView::showTransactions()
+{
+ showManualTransactions();
+ showAutoTransactions();
+}
+
+
+void YQPkgStatusFilterView::showManualTransactions()
+{
+ _showDel->setChecked( true );
+ _showInstall->setChecked( true );
+ _showUpdate->setChecked( true );
+}
+
+
+void YQPkgStatusFilterView::showAutoTransactions()
+{
+ _showAutoDel->setChecked( true );
+ _showAutoInstall->setChecked( true );
+ _showAutoUpdate->setChecked( true );
+}
+
+
+void YQPkgStatusFilterView::showLocks()
+{
+ _showTaboo->setChecked( true );
+ _showProtected->setChecked( true );
+}
+
+
+void YQPkgStatusFilterView::showInstalled()
+{
+ _showKeepInstalled->setChecked( true );
+}
+
+
+void YQPkgStatusFilterView::showNotInstalled()
+{
+ _showNoInst->setChecked( true );
+}
+
+
+
#include "YQPkgStatusFilterView.moc"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/src/include/YQPackageSelector.h new/yast2-qt-2.13.66/src/include/YQPackageSelector.h
--- old/yast2-qt-2.13.65/src/include/YQPackageSelector.h 2006-08-18 15:53:44.000000000 +0200
+++ new/yast2-qt-2.13.66/src/include/YQPackageSelector.h 2006-10-12 17:29:46.000000000 +0200
@@ -99,13 +99,13 @@
/**
* Install any -devel package for packages that are installed or marked for
- * installation
+ * installation
**/
void installDevelPkgs();
/**
* Install any -debuginfo package for packages that are installed or marked
- * for installation
+ * for installation
**/
void installDebugInfoPkgs();
@@ -130,7 +130,7 @@
**/
void keyboardHelp();
-
+
signals:
/**
@@ -170,7 +170,22 @@
* Add the "Patches" filter view upon hotkey (F2).
**/
void hotkeyInsertPatchFilterView();
-
+
+ /**
+ * Set the status of all installed packages (all in the pool, not only
+ * those currently displayed in the package list) to "update", if there is
+ * a candidate package that is newer than the installed package.
+ */
+ void globalUpdatePkg() { globalUpdatePkg( false ); }
+
+ /**
+ * Set the status of all installed packages (all in the pool, not only
+ * those currently displayed in the package list) to "update", even if the
+ * candidate package is not newer than the installed package.
+ */
+ void globalUpdatePkgForce() { globalUpdatePkg( true ); }
+
+
protected:
@@ -220,13 +235,23 @@
void connectPatchList();
/**
+ * Set the status of all installed packages (all in the pool, not only
+ * those currently displayed in the package list) to "update" and switch to
+ * the "Installation Summary" view afterwards.
+ *
+ * 'force' indicates if this should also be done if the the candidate
+ * package is not newer than the installed package.
+ **/
+ void globalUpdatePkg( bool force );
+
+ /**
* Return HTML code describing a symbol (an icon).
**/
QString symHelp( const QString & imgFileName,
const QString & summary,
const QString & explanation );
-
+
/**
* Return HTML code describing a key.
**/
@@ -238,7 +263,7 @@
* Basic HTML formatting: Embed text into <p> ... </p>
**/
static QString para( const QString & text );
-
+
/**
* Basic HTML formatting: Embed text into <li> ... </li>
**/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/src/include/YQPkgList.h new/yast2-qt-2.13.66/src/include/YQPkgList.h
--- old/yast2-qt-2.13.65/src/include/YQPkgList.h 2006-08-18 15:53:44.000000000 +0200
+++ new/yast2-qt-2.13.66/src/include/YQPkgList.h 2006-10-10 17:57:02.000000000 +0200
@@ -72,6 +72,21 @@
**/
static bool haveInstalledPkgs();
+ /**
+ * Set the status of all packages in the pool to a new value.
+ * This is not restricted to the current content of this package list.
+ * All selectables in the ZYPP pool are affected.
+ *
+ * 'force' indicates if it should be done even if it is not very useful,
+ * e.g., if packages should be updated even if there is no newer version.
+ *
+ * If 'countOnly' is 'true', the status is not actually changed, only the
+ * number of packages that would be affected is return.
+ *
+ * Return value: The number of status changes
+ **/
+ int globalSetPkgStatus( ZyppStatus newStatus, bool force, bool countOnly );
+
public slots:
@@ -82,10 +97,10 @@
**/
void addPkgItem ( ZyppSel selectable,
ZyppPkg zyppPkg );
-
+
/**
* Add a pkg to the list, but display it dimmed (grey text foreground
- * rather than normal black).
+ * rather than normal black).
**/
void addPkgItemDimmed( ZyppSel selectable,
ZyppPkg zyppPkg );
@@ -148,7 +163,7 @@
* Create ( additional ) actions for the context menus.
**/
void createActions();
-
+
/**
* Create the context menu for items that are not installed.
*
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/src/include/YQPkgStatusFilterView.h new/yast2-qt-2.13.66/src/include/YQPkgStatusFilterView.h
--- old/yast2-qt-2.13.65/src/include/YQPkgStatusFilterView.h 2006-08-18 15:53:44.000000000 +0200
+++ new/yast2-qt-2.13.66/src/include/YQPkgStatusFilterView.h 2006-10-12 16:49:59.000000000 +0200
@@ -81,6 +81,44 @@
void filterIfVisible();
+ /**
+ * Reset all check boxes (set them all to "off")
+ **/
+ void clear();
+
+ /**
+ * Set up the check boxes so all pending transactions are displayed.
+ **/
+ void showTransactions();
+
+ /**
+ * Set up the check boxes so pending manual transactions (no "auto" states)
+ * are displayed.
+ **/
+ void showManualTransactions();
+
+ /**
+ * Set up the check boxes so pending automatic transactions (the "auto" states)
+ * are displayed.
+ **/
+ void showAutoTransactions();
+
+ /**
+ * Set the check boxes for locked packages ("Taboo" and "Protected") to "on".
+ **/
+ void showLocks();
+
+ /**
+ * Set the check box for installed packages to "on".
+ **/
+ void showInstalled();
+
+ /**
+ * Set the check box for not installed packages to "on".
+ **/
+ void showNotInstalled();
+
+
signals:
/**
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/src/include/icons/Makefile.am new/yast2-qt-2.13.66/src/include/icons/Makefile.am
--- old/yast2-qt-2.13.65/src/include/icons/Makefile.am 2006-10-04 17:26:42.000000000 +0200
+++ new/yast2-qt-2.13.66/src/include/icons/Makefile.am 2006-10-06 14:51:27.000000000 +0200
@@ -65,8 +65,6 @@
sel_autoinstall.xpm \
sel_autoupdate.xpm \
taboo.xpm \
- tree_minus.xpm \
- tree_plus.xpm \
update.xpm
#tree_plus and tree_minus added here to compile
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.13.65/src/include/icons/Makefile.in new/yast2-qt-2.13.66/src/include/icons/Makefile.in
--- old/yast2-qt-2.13.65/src/include/icons/Makefile.in 2006-10-04 17:29:10.000000000 +0200
+++ new/yast2-qt-2.13.66/src/include/icons/Makefile.in 2006-10-13 13:10:42.000000000 +0200
@@ -268,8 +268,6 @@
sel_autoinstall.xpm \
sel_autoupdate.xpm \
taboo.xpm \
- tree_minus.xpm \
- tree_plus.xpm \
update.xpm
#tree_plus and tree_minus added here to compile
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org