41 #ifndef YQPkgLangList_h 42 #define YQPkgLangList_h 44 #include <YQPkgObjList.h> 145 const zypp::Locale & lang );
155 zypp::Locale
zyppLang()
const {
return _zyppLang; }
162 int statusCol()
const {
return _langList->statusCol(); }
168 virtual ZyppStatus
status()
const;
169 virtual void setStatus( ZyppStatus newStatus,
bool sendSignals =
true );
187 virtual bool operator< (
const QTreeWidgetItem & other )
const;
203 zypp::Locale _zyppLang;
207 #endif // ifndef YQPkgLangList_h Abstract base class to display a list of zypp::ResObjects.
virtual bool bySelection() const
Returns 'true' if this selectable's status is set by a selection (rather than by the user or by the d...
void filterIfVisible()
Same as filter(), but only if this widget is currently visible.
virtual void cycleStatus()
Cycle the package status to the next valid value.
virtual bool operator<(const QTreeWidgetItem &other) const
Sorting function.
virtual ~YQPkgLangListItem()
Destructor.
void filter()
Filter according to the view's rules and current selection.
zypp::Locale zyppLang() const
Returns the original object within the package manager backend.
void fillList()
Fill the language list.
virtual void updateActions(YQPkgObjListItem *item=0)
update from base class to not access selectables
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
Emitted during filtering for each pkg that matches the filter.
YQPkgLangList(QWidget *parent)
Constructor.
YQPkgLangListItem * selection() const
Returns the currently selected item or 0 if there is none.
virtual ZyppStatus status() const
override this two as we don't have a real selectable and the status depends on the language ...
virtual void setStatus(ZyppStatus newStatus, bool sendSignals=true)
Set the (binary RPM) package status.
void filterFinished()
Emitted when filtering is finished.
void addLangItem(const zypp::Locale &lang)
Add a selection to the list.
Display a list of zypp::Selection objects.
YQPkgLangListItem(YQPkgLangList *pkgSelList, const zypp::Locale &lang)
Constructor.
void filterStart()
Emitted when the filtering starts.
virtual ~YQPkgLangList()
Destructor.
virtual void applyChanges()
Propagate status changes in this list to other lists: Have the solver transact all languages...
virtual void init()
overloaded