43 #define YUILogComponent "qt-pkg" 45 #include <YUIException.h> 47 #include <QVBoxLayout> 50 #include "QY2ComboTabWidget.h" 51 #include "QY2LayoutUtils.h" 52 #include "YQPkgRepoFilterView.h" 53 #include "YQPkgRepoList.h" 54 #include "YQPkgSearchFilterView.h" 55 #include "YQPkgStatusFilterView.h" 64 YUI_CHECK_NEW( _repoList );
78 if ( selection && selection->
zyppRepo() )
80 return zypp::Repository::noRepository;
84 void YQPkgRepoFilterView::primaryFilter()
89 void YQPkgRepoFilterView::primaryFilterIfVisible()
zypp::Repository selectedRepo() const
Current selected repository, or if nothing is selected.
void filter()
Filter according to the view's rules and current selection.
YQPkgRepoListItem * selection() const
Returns the currently selected item or 0 if there is none.
ZyppRepo zyppRepo() const
Returns the ZYPP repository this item corresponds to.
YQPkgRepoFilterView(QWidget *parent)
Constructor.
This is a base class for filter views containing a secondary filter.
void init(QWidget *primary_widget)
Initialize the primary widget.
Display a list of libzypp repositories.
void filterIfVisible()
Same as filter(), but only if this widget is currently visible.
virtual ~YQPkgRepoFilterView()
Destructor.