[yast-commit] r68024 - in /trunk/ncurses-pkg/src: Makefile.am NCPackageSelector.cc NCPackageSelector.h NCPkgFilterClassification.cc NCPkgFilterClassification.h NCPkgFilterMain.cc NCPkgFilterMain.h
Author: gs
Date: Wed Apr 25 14:12:39 2012
New Revision: 68024
URL: http://svn.opensuse.org/viewcvs/yast?rev=68024&view=rev
Log:
first step to show package classification (e.g.
recommended packages),
new entry 'Package Classification' added to filter
Added:
trunk/ncurses-pkg/src/NCPkgFilterClassification.cc
trunk/ncurses-pkg/src/NCPkgFilterClassification.h
Modified:
trunk/ncurses-pkg/src/Makefile.am
trunk/ncurses-pkg/src/NCPackageSelector.cc
trunk/ncurses-pkg/src/NCPackageSelector.h
trunk/ncurses-pkg/src/NCPkgFilterMain.cc
trunk/ncurses-pkg/src/NCPkgFilterMain.h
Modified: trunk/ncurses-pkg/src/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses-pkg/src/Makefile.am?rev=68024&r1=68023&r2=68024&view=diff
==============================================================================
--- trunk/ncurses-pkg/src/Makefile.am (original)
+++ trunk/ncurses-pkg/src/Makefile.am Wed Apr 25 14:12:39 2012
@@ -41,6 +41,7 @@
NCPkgFilterLocale.h \
NCPkgFilterRPMGroups.h \
NCPkgFilterInstSummary.h \
+ NCPkgFilterClassification.h \
NCPkgStrings.h \
NCZypp.h
@@ -72,6 +73,7 @@
NCPkgFilterLocale.cc \
NCPkgFilterRPMGroups.cc \
NCPkgFilterInstSummary.cc \
+ NCPkgFilterClassification.cc \
NCPkgStrings.cc
Modified: trunk/ncurses-pkg/src/NCPackageSelector.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses-pkg/src/NCPackageSelector.cc?rev=68024&r1=68023&r2=68024&view=diff
==============================================================================
--- trunk/ncurses-pkg/src/NCPackageSelector.cc (original)
+++ trunk/ncurses-pkg/src/NCPackageSelector.cc Wed Apr 25 14:12:39 2012
@@ -53,6 +53,7 @@
#include "NCPkgFilterPattern.h"
#include "NCPkgFilterLocale.h"
#include "NCPkgFilterRepo.h"
+#include "NCPkgFilterClassification.h"
#include "NCPkgPopupDeps.h"
#include "NCPkgPopupDiskspace.h"
#include "NCPkgMenuDeps.h"
@@ -980,6 +981,15 @@
pkgList->fillSummaryList(NCPkgTable::L_Changes);
break;
}
+ case PkgClassification:
+ {
+ pkgClass = new NCPkgFilterClassification( replPoint, this );
+ pkgClass->setSize( oldSize.Sze.W, oldSize.Sze.H );
+ pkgClass->Redraw();
+ pkgClass->setKeyboardFocus();
+ break;
+ }
+
default:
yuiError() << "zatim nic" << endl;
}
Modified: trunk/ncurses-pkg/src/NCPackageSelector.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses-pkg/src/NCPackageSelector.h?rev=68024&r1=68023&r2=68024&view=diff
==============================================================================
--- trunk/ncurses-pkg/src/NCPackageSelector.h (original)
+++ trunk/ncurses-pkg/src/NCPackageSelector.h Wed Apr 25 14:12:39 2012
@@ -82,6 +82,7 @@
class NCPkgFilterRPMGroups;
class NCPkgFilterSearch;
class NCPkgFilterInstSummary;
+class NCPkgFilterClassification;
class NCPkgPopupFile;
class NCPkgMenuExtras;
class NCPkgMenuDeps;
@@ -141,6 +142,8 @@
NCPkgFilterSearch * searchPopup; // the package search popup
NCPkgFilterInstSummary *inst_summary;
+ NCPkgFilterClassification * pkgClass; // classification of packages
+
bool youMode; // YOU
bool updateMode; // Update
bool testMode; // testing
@@ -204,7 +207,8 @@
Repositories,
RPMGroups,
Search,
- Summary
+ Summary,
+ PkgClassification
};
/**
Added: trunk/ncurses-pkg/src/NCPkgFilterClassification.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses-pkg/src/NCPkgFilterClassification.cc?rev=68024&view=auto
==============================================================================
--- trunk/ncurses-pkg/src/NCPkgFilterClassification.cc (added)
+++ trunk/ncurses-pkg/src/NCPkgFilterClassification.cc Wed Apr 25 14:12:39 2012
@@ -0,0 +1,138 @@
+/****************************************************************************
+|
+| 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: NCPkgFilterRepo.cc
+
+ Author: Gabriele Mohr
participants (1)
-
gs@svn2.opensuse.org