Hello community,
here is the log from the commit of package libyui-ncurses-pkg for openSUSE:Factory checked in at 2018-11-02 10:50:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui-ncurses-pkg (Old)
and /work/SRC/openSUSE:Factory/.libyui-ncurses-pkg.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libyui-ncurses-pkg"
Fri Nov 2 10:50:01 2018 rev:33 rq:644601 version:2.48.9
Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui-ncurses-pkg/libyui-ncurses-pkg.changes 2018-09-11 17:09:45.744109508 +0200
+++ /work/SRC/openSUSE:Factory/.libyui-ncurses-pkg.new/libyui-ncurses-pkg.changes 2018-11-02 10:50:08.978285740 +0100
@@ -1,0 +2,6 @@
+Wed Oct 24 12:58:23 WEST 2018 - igonzalezsosa@suse.com
+
+- Remove the RPM Groups view (FATE#326485).
+- 2.48.9
+
+-------------------------------------------------------------------
Old:
----
libyui-ncurses-pkg-2.48.8.tar.bz2
New:
----
libyui-ncurses-pkg-2.48.9.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libyui-ncurses-pkg-doc.spec ++++++
--- /var/tmp/diff_new_pack.SEQOtO/_old 2018-11-02 10:50:10.578285552 +0100
+++ /var/tmp/diff_new_pack.SEQOtO/_new 2018-11-02 10:50:10.578285552 +0100
@@ -20,7 +20,7 @@
%define so_version 9
Name: %{parent}-doc
-Version: 2.48.8
+Version: 2.48.9
Release: 0
Source: %{parent}-%{version}.tar.bz2
@@ -36,7 +36,7 @@
Url: http://github.com/libyui/
Summary: Libyui-ncurses-pkg documentation
-License: LGPL-2.1 or LGPL-3.0
+License: LGPL-2.1-only OR LGPL-3.0-only
Group: Documentation/HTML
%description
++++++ libyui-ncurses-pkg.spec ++++++
--- /var/tmp/diff_new_pack.SEQOtO/_old 2018-11-02 10:50:10.594285550 +0100
+++ /var/tmp/diff_new_pack.SEQOtO/_new 2018-11-02 10:50:10.594285550 +0100
@@ -17,7 +17,7 @@
Name: libyui-ncurses-pkg
-Version: 2.48.8
+Version: 2.48.9
Release: 0
Source: %{name}-%{version}.tar.bz2
@@ -41,7 +41,7 @@
Url: http://github.com/libyui/
Summary: Libyui - yast2 package selector widget for the ncurses UI
-License: LGPL-2.1 or LGPL-3.0
+License: LGPL-2.1-only OR LGPL-3.0-only
Group: System/Libraries
%description
++++++ libyui-ncurses-pkg-2.48.8.tar.bz2 -> libyui-ncurses-pkg-2.48.9.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/SOURCECONF.cmake new/libyui-ncurses-pkg-2.48.9/SOURCECONF.cmake
--- old/libyui-ncurses-pkg-2.48.8/SOURCECONF.cmake 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/SOURCECONF.cmake 2018-10-24 16:30:34.000000000 +0200
@@ -7,7 +7,6 @@
NCPkgFilterLocale.cc
NCPkgFilterMain.cc
NCPkgFilterPattern.cc
- NCPkgFilterRPMGroups.cc
NCPkgFilterRepo.cc
NCPkgFilterService.cc
NCPkgFilterSearch.cc
@@ -40,7 +39,6 @@
NCPkgFilterLocale.h
NCPkgFilterMain.h
NCPkgFilterPattern.h
- NCPkgFilterRPMGroups.h
NCPkgFilterRepo.h
NCPkgFilterService.h
NCPkgFilterSearch.h
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/VERSION.cmake new/libyui-ncurses-pkg-2.48.9/VERSION.cmake
--- old/libyui-ncurses-pkg-2.48.8/VERSION.cmake 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/VERSION.cmake 2018-10-24 16:30:34.000000000 +0200
@@ -1,6 +1,6 @@
SET( VERSION_MAJOR "2" )
SET( VERSION_MINOR "48" )
-SET( VERSION_PATCH "8" )
+SET( VERSION_PATCH "9" )
SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" )
##### This is need for the libyui core, ONLY.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/package/libyui-ncurses-pkg-doc.spec new/libyui-ncurses-pkg-2.48.9/package/libyui-ncurses-pkg-doc.spec
--- old/libyui-ncurses-pkg-2.48.8/package/libyui-ncurses-pkg-doc.spec 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/package/libyui-ncurses-pkg-doc.spec 2018-10-24 16:30:34.000000000 +0200
@@ -19,7 +19,7 @@
%define so_version 9
Name: %{parent}-doc
-Version: 2.48.8
+Version: 2.48.9
Release: 0
Source: %{parent}-%{version}.tar.bz2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/package/libyui-ncurses-pkg.changes new/libyui-ncurses-pkg-2.48.9/package/libyui-ncurses-pkg.changes
--- old/libyui-ncurses-pkg-2.48.8/package/libyui-ncurses-pkg.changes 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/package/libyui-ncurses-pkg.changes 2018-10-24 16:30:34.000000000 +0200
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Wed Oct 24 12:58:23 WEST 2018 - igonzalezsosa@suse.com
+
+- Remove the RPM Groups view (FATE#326485).
+- 2.48.9
+
+-------------------------------------------------------------------
Tue Aug 21 09:49:14 CEST 2018 - schubi@suse.de
- Changed dir of COPYING file.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/package/libyui-ncurses-pkg.spec new/libyui-ncurses-pkg-2.48.9/package/libyui-ncurses-pkg.spec
--- old/libyui-ncurses-pkg-2.48.8/package/libyui-ncurses-pkg.spec 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/package/libyui-ncurses-pkg.spec 2018-10-24 16:30:34.000000000 +0200
@@ -17,7 +17,7 @@
Name: libyui-ncurses-pkg
-Version: 2.48.8
+Version: 2.48.9
Release: 0
Source: %{name}-%{version}.tar.bz2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/src/NCPackageSelector.cc new/libyui-ncurses-pkg-2.48.9/src/NCPackageSelector.cc
--- old/libyui-ncurses-pkg-2.48.8/src/NCPackageSelector.cc 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/src/NCPackageSelector.cc 2018-10-24 16:30:34.000000000 +0200
@@ -46,7 +46,6 @@
#include "NCSpacing.h"
#include "NCRichText.h"
#include "NCLabel.h"
-#include "NCPkgFilterRPMGroups.h"
#include "NCPopupInfo.h"
#include "NCSelectionBox.h"
#include "NCMenuButton.h"
@@ -109,8 +108,7 @@
// Constructor
//
NCPackageSelector::NCPackageSelector( long modeFlags )
- : filterPopup( 0 )
- , depsPopup( 0 )
+ : depsPopup( 0 )
, patternPopup( 0 )
, languagePopup( 0 )
, repoPopup( 0 )
@@ -479,10 +477,6 @@
{
retVal = CancelHandler( event );
}
- else if ( event.widget == filterPopup )
- {
- retVal = filterPopup->handleEvent();
- }
else if ( event.widget == filterMain )
{
retVal = filterMain->handleEvent();
@@ -1023,7 +1017,6 @@
delete replaceChild;
- filterPopup = 0;
patternPopup = 0;
languagePopup = 0;
repoPopup = 0;
@@ -1077,26 +1070,6 @@
servicePopup->setKeyboardFocus();
break;
}
- case RPMGroups:
- {
- filterPopup = new NCPkgFilterRPMGroups ( replPoint, " ", this);
- filterPopup->setSize( oldSize.Sze.W, oldSize.Sze.H );
- filterPopup->Redraw();
-
- YStringTreeItem * defaultGroup = filterPopup->getDefaultRpmGroup();
-
- if ( defaultGroup )
- {
- yuiMilestone() << "default RPM group: " << defaultGroup->value().translation() << endl;
- filterPopup->showRPMGroupPackages ( defaultGroup->value().translation(), defaultGroup );
- }
- else
- {
- yuiError() << "No default RPM group available" << endl;
- }
- filterPopup->setKeyboardFocus();
- break;
- }
case Search:
{
searchPopup = new NCPkgFilterSearch( replPoint, YD_VERT, this );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/src/NCPackageSelector.h new/libyui-ncurses-pkg-2.48.9/src/NCPackageSelector.h
--- old/libyui-ncurses-pkg-2.48.8/src/NCPackageSelector.h 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/src/NCPackageSelector.h 2018-10-24 16:30:34.000000000 +0200
@@ -60,7 +60,6 @@
#include
#include
-#include "NCPkgFilterRPMGroups.h"
#include "NCPkgFilterSearch.h"
#include "NCPkgFilterInstSummary.h"
#include "NCPkgTable.h"
@@ -80,7 +79,6 @@
class LangCode;
class NCPkgPopupDeps;
class NCPkgDiskspace;
-class NCPkgFilterRPMGroups;
class NCPkgFilterSearch;
class NCPkgFilterInstSummary;
class NCPkgFilterClassification;
@@ -130,8 +128,6 @@
tHandlerMap eventHandlerMap; // event handler map
- NCPkgFilterRPMGroups * filterPopup; // the rpm group tags popup
-
NCPkgPopupDeps * depsPopup; // the package dependeny popup
NCPkgFilterPattern * patternPopup; // the pattern popup
@@ -213,7 +209,6 @@
Languages,
Repositories,
Services,
- RPMGroups,
Search,
Summary,
PkgClassification
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/src/NCPkgFilterMain.cc new/libyui-ncurses-pkg-2.48.9/src/NCPkgFilterMain.cc
--- old/libyui-ncurses-pkg-2.48.8/src/NCPkgFilterMain.cc 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/src/NCPkgFilterMain.cc 2018-10-24 16:30:34.000000000 +0200
@@ -72,9 +72,6 @@
languages = new YItem( _( "Languages" ) );
items.push_back( languages );
- rpmgroups = new YItem( _( "RPM Groups" ) );
- items.push_back( rpmgroups );
-
repositories = new YItem( _( "Repositories" ) );
items.push_back( repositories );
@@ -103,9 +100,7 @@
YItem *currentItem = selectedItem();
- if ( currentItem == rpmgroups )
- pkg->replaceFilter ( NCPackageSelector::RPMGroups );
- else if ( currentItem == patterns )
+ if ( currentItem == patterns )
pkg->replaceFilter ( NCPackageSelector::Patterns );
else if ( currentItem == languages )
pkg->replaceFilter ( NCPackageSelector::Languages );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/src/NCPkgFilterRPMGroups.cc new/libyui-ncurses-pkg-2.48.9/src/NCPkgFilterRPMGroups.cc
--- old/libyui-ncurses-pkg-2.48.8/src/NCPkgFilterRPMGroups.cc 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/src/NCPkgFilterRPMGroups.cc 1970-01-01 01:00:00.000000000 +0100
@@ -1,366 +0,0 @@
-/****************************************************************************
-|
-| Copyright (c) [2002-2011] Novell, Inc.
-| All Rights Reserved.
-|
-| This program is free software; you can redistribute it and/or
-| modify it under the terms of version 2 of the GNU General Public License as
-| published by the Free Software Foundation.
-|
-| This program is distributed in the hope that it will be useful,
-| but WITHOUT ANY WARRANTY; without even the implied warranty of
-| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-| GNU General Public License for more details.
-|
-| You should have received a copy of the GNU General Public License
-| along with this program; if not, contact Novell, Inc.
-|
-| To contact Novell about this file by physical or electronic mail,
-| you may find current contact information at www.novell.com
-|
-|***************************************************************************/
-
-
-/*---------------------------------------------------------------------\
-| |
-| __ __ ____ _____ ____ |
-| \ \ / /_ _/ ___|_ _|___ \ |
-| \ V / _` \___ \ | | __) | |
-| | | (_| |___) || | / __/ |
-| |_|\__,_|____/ |_| |_____| |
-| |
-| core system |
-| (C) SuSE GmbH |
-\----------------------------------------------------------------------/
-
- File: NCPkgFilterRPMGroups.cc
-
- Author: Gabriele Strattner
-
-/-*/
-#define YUILogComponent "ncurses-pkg"
-#include
-
-#include "NCPkgFilterRPMGroups.h"
-
-#include "NCTree.h"
-#include "YMenuButton.h"
-#include "YDialog.h"
-#include "YTreeItem.h"
-#include "NCLayoutBox.h"
-#include "NCPkgStrings.h"
-#include "NCPackageSelector.h"
-
-#include "NCZypp.h"
-
-using std::endl;
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// CLASS NAME : NCRpmGroupItem
-//
-// DESCRIPTION : class derived from YTreeItem with additional
-// property to store the original rpm group item
-//
-//
-class NCRpmGroupItem : public YTreeItem {
-
-private:
- YStringTreeItem * rpmGroupItem;
-
-public:
-
- NCRpmGroupItem( YTreeItem * parent,
- const std::string & label,
- YStringTreeItem * origItem )
- : YTreeItem( parent, label ),
- rpmGroupItem( origItem )
- {
-
- }
-
- NCRpmGroupItem( const std::string & label,
- YStringTreeItem * origItem )
- : YTreeItem( label ),
- rpmGroupItem( origItem )
- {
-
- }
-
- YStringTreeItem * getOrigItem() const { return rpmGroupItem; }
-
-};
-
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPkgFilterRPMGroups::NCPkgFilterRPMGroups
-// METHOD TYPE : Constructor
-//
-// DESCRIPTION :
-//
-
-NCPkgFilterRPMGroups::NCPkgFilterRPMGroups( YWidget *parent, std::string label, NCPackageSelector * pkg )
- : NCTree( parent, label )
- , filterTree( this )
- , packager ( pkg )
- , _rpmGroupsTree (0)
-{
- // create the layout (the NCTree)
- setNotify(true);
-
- _rpmGroupsTree = new YRpmGroupsTree ();
-
- ZyppPoolIterator b = zyppPkgBegin ();
- ZyppPoolIterator e = zyppPkgEnd ();
- ZyppPoolIterator i;
-
- for ( i = b; i != e; ++i )
- {
- ZyppPkg zyppPkg = tryCastToZyppPkg( (*i)->theObj() );
- if ( zyppPkg )
- {
- _rpmGroupsTree->addRpmGroup (zyppPkg->group ());
- yuiDebug() << "Adding group: " << zyppPkg->group() << endl;
- }
- }
-
- if (_rpmGroupsTree )
- {
- // clone the tree (fill the NCTree)
- cloneTree( _rpmGroupsTree->root(), 0 );
- }
-}
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPkgFilterRPMGroups::~NCPkgFilterRPMGroups
-// METHOD TYPE : Destructor
-//
-// DESCRIPTION :
-//
-NCPkgFilterRPMGroups::~NCPkgFilterRPMGroups()
-{
-}
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPkgFilterRPMGroups::showFilterPopup
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
-bool NCPkgFilterRPMGroups::handleEvent( )
-{
-
- YStringTreeItem * origItem;
- const YTreeItem * item = filterTree->getCurrentItem();
-
- if ( item )
- {
- const NCRpmGroupItem * rpmGroupItem = dynamic_cast(item);
-
- if ( rpmGroupItem )
- {
- // get the original rpm group item (YStringTreeItem)
- origItem = rpmGroupItem->getOrigItem();
-
- if ( origItem )
- {
- std::string label = origItem->value().translation();
-
- // fill the package list
- showRPMGroupPackages( label, origItem );
-
- yuiMilestone() << "Selected RPM group: " << label << endl;
- }
- }
- }
- else
- {
- yuiError() << "Current item not valid" << endl;
- }
-
- return true;
-}
-
-YStringTreeItem * NCPkgFilterRPMGroups::getDefaultRpmGroup()
-{
- if ( _rpmGroupsTree &&
- _rpmGroupsTree->root() )
- return _rpmGroupsTree->root()->firstChild();
- else
- return 0;
-}
-
-
-bool NCPkgFilterRPMGroups::checkPackage( ZyppObj opkg, ZyppSel slb,
- YStringTreeItem * rpmGroup )
-{
- ZyppPkg pkg = tryCastToZyppPkg (opkg);
- if ( ! pkg || ! rpmGroup )
- return false;
-
- NCPkgTable * packageList = packager->PackageList();
-
- if ( !packageList )
- {
- yuiError() << "Widget is not a valid NCPkgTable widget" << endl;
- return false;
- }
-
- std::string group_str = _rpmGroupsTree->rpmGroup (rpmGroup);
- yuiDebug() << group_str << endl;
- // is the requested rpm group a prefix of this package's group?
- if ( pkg->group ().find (group_str) == 0 )
- {
- yuiDebug() << slb->name() << endl;
- packageList->createListEntry( pkg, slb );
-
- return true;
- }
- else
- {
- return false;
- }
-}
-
-bool NCPkgFilterRPMGroups::showRPMGroupPackages ( const std::string & label, YStringTreeItem *rpmGroup )
-{
- NCPkgTable * packageList = packager->PackageList();
-
- if ( !packageList )
- {
- yuiError() << "No valid NCPkgTable widget" << endl;
- return false;
- }
-
- // clear the package table
- packageList->itemsCleared ();
-
- // get the package list and sort it
- std::list<ZyppSel> pkgList( zyppPkgBegin (), zyppPkgEnd () );
-
- // fill the package table
- std::list<ZyppSel>::iterator listIt;
- ZyppPkg pkgPtr;
-
-
- for ( listIt = pkgList.begin(); listIt != pkgList.end(); ++listIt )
- {
- ZyppSel selectable = *listIt;
-
- // Multiple instances of this package may or may not be in the same
- // RPM group, so let's check both the installed version (if there
- // is any) and the candidate version.
- //
- // Make sure we emit only one filterMatch() signal if both exist
- // and both are in the same RPM group. We don't want multiple list
- // entries for the same package!
-
- bool match =
- checkPackage( selectable->candidateObj(), selectable, rpmGroup ) ||
- checkPackage( selectable->installedObj(), selectable, rpmGroup );
-
- // If there is neither an installed nor a candidate package, check
- // any other instance.
-
- if ( ! match &&
- ! selectable->installedObj() &&
- ! selectable->candidateObj() )
- checkPackage( selectable->theObj(), selectable, rpmGroup );
-
- }
-
- // show the package list
- packageList->setCurrentItem( 0 );
- packageList->drawList();
- packageList->showInformation();
-
- yuiMilestone() << "Filling package list" << endl;
-
- if ( ! label.empty() )
- {
- YLabel *packageLabel = packager->PackageLabel();
- // show the selected filter label
- if ( packageLabel )
- {
- packageLabel->setText( label );
- }
- }
-
- return true;
-
-}
-
-///////////////////////////////////////////////////////////////////
-//
-//
-// METHOD NAME : NCPkgFilterRPMGroups::addItem
-// METHOD TYPE : void
-//
-// DESCRIPTION :
-//
-void NCPkgFilterRPMGroups::addItem( YTreeItem * newItem )
-{
- if ( !filterTree )
- {
- yuiError() << "ERROR: rpm groups tree not available" << endl;
- return;
- }
-
- filterTree->addItem( newItem );
-
-}
-
-/////////////////////////////////////////////////////////////////////
-////
-////
-//// METHOD NAME : NCPopup::wHandleInput
-//// METHOD TYPE : NCursesEvent
-////
-//// DESCRIPTION :
-////
-NCursesEvent NCPkgFilterRPMGroups::wHandleInput( wint_t ch )
-{
- return NCTree::wHandleInput( ch );
-}
-
-///////////////////////////////////////////////////////////////////
-//
-// cloneTree
-//
-// Adds all tree items got from YPkgRpmGroupTagsFilterView to
-// the filter popup tree
-//
-void NCPkgFilterRPMGroups::cloneTree( YStringTreeItem * parentOrig, NCRpmGroupItem * parentClone )
-{
- YStringTreeItem * child = parentOrig->firstChild();
- NCRpmGroupItem * clone;
-
- while ( child )
- {
- yuiDebug() << "Rpm group (translated): " << child->value().translation() << endl;
-
- if ( parentClone )
- {
- // YTreeItems which have a parent will automatically register
- // this item with the parent item.
- clone = new NCRpmGroupItem( parentClone, child->value().translation(), child );
- }
- else
- {
- clone = new NCRpmGroupItem( child->value().translation(), child );
- // use addItem() only for the toplevel items
- addItem( clone );
- }
-
- cloneTree( child, clone );
- child = child->next();
- }
-}
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libyui-ncurses-pkg-2.48.8/src/NCPkgFilterRPMGroups.h new/libyui-ncurses-pkg-2.48.9/src/NCPkgFilterRPMGroups.h
--- old/libyui-ncurses-pkg-2.48.8/src/NCPkgFilterRPMGroups.h 2018-08-22 09:39:28.000000000 +0200
+++ new/libyui-ncurses-pkg-2.48.9/src/NCPkgFilterRPMGroups.h 1970-01-01 01:00:00.000000000 +0100
@@ -1,109 +0,0 @@
-/****************************************************************************
-|
-| Copyright (c) [2002-2011] Novell, Inc.
-| All Rights Reserved.
-|
-| This program is free software; you can redistribute it and/or
-| modify it under the terms of version 2 of the GNU General Public License as
-| published by the Free Software Foundation.
-|
-| This program is distributed in the hope that it will be useful,
-| but WITHOUT ANY WARRANTY; without even the implied warranty of
-| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-| GNU General Public License for more details.
-|
-| You should have received a copy of the GNU General Public License
-| along with this program; if not, contact Novell, Inc.
-|
-| To contact Novell about this file by physical or electronic mail,
-| you may find current contact information at www.novell.com
-|
-|***************************************************************************/
-
-
-/*---------------------------------------------------------------------\
-| |
-| __ __ ____ _____ ____ |
-| \ \ / /_ _/ ___|_ _|___ \ |
-| \ V / _` \___ \ | | __) | |
-| | | (_| |___) || | / __/ |
-| |_|\__,_|____/ |_| |_____| |
-| |
-| core system |
-| (C) SuSE GmbH |
-\----------------------------------------------------------------------/
-
- File: NCPkgFilterRPMGroups.h
-
- Author: Gabriele Strattner
-
-/-*/
-#ifndef NCPkgFilterRPMGroups_h
-#define NCPkgFilterRPMGroups_h
-
-#include <iosfwd>
-
-#include <vector>
-#include <string>
-
-#include "NCPopup.h"
-#include "NCTree.h"
-#include "NCLabel.h"
-#include "NCRichText.h"
-#include "NCZypp.h"
-
-#include
-
-class NCTree;
-class NCPackageSelector;
-class NCRpmGroupItem;
-
-///////////////////////////////////////////////////////////////////
-//
-// CLASS NAME : NCPkgFilterRPMGroups
-//
-// DESCRIPTION :
-//
-class NCPkgFilterRPMGroups : public NCTree {
-
- NCPkgFilterRPMGroups & operator=( const NCPkgFilterRPMGroups & );
- NCPkgFilterRPMGroups ( const NCPkgFilterRPMGroups & );
-
-private:
-
- NCTree * filterTree; // the YTree
-
- NCPackageSelector * packager; // connection to the PackageSelector
-
- YRpmGroupsTree * _rpmGroupsTree; // rpm groups of the found packages
-
- // internal use (copies tree items)
- void cloneTree( YStringTreeItem * parentOrig, NCRpmGroupItem * parentClone );
-
-protected:
-
- void setCurrentItem( int index );
-
- virtual NCursesEvent wHandleInput( wint_t ch );
-
-public:
-
- NCPkgFilterRPMGroups( YWidget *parent, std::string label, NCPackageSelector * packager );
- virtual ~NCPkgFilterRPMGroups();
-
- bool handleEvent();
-
- YStringTreeItem * getDefaultRpmGroup();
-
- bool checkPackage( ZyppObj opkg, ZyppSel slb, YStringTreeItem *rpmGroup);
-
- bool showRPMGroupPackages ( const std::string & label, YStringTreeItem *rpmGroup );
-
- void addItem( YTreeItem * newItem );
-
-};
-
-///////////////////////////////////////////////////////////////////
-
-
-#endif // NCPkgFilterRPMGroups_h