42 #ifndef YQPkgChangesDialog_h 43 #define YQPkgChangesDialog_h 70 FilterIndexAutomatic = 2
80 FilterAutomatic = 0x2,
83 Q_DECLARE_FLAGS(Filters,
Filter);
91 OptionAutoAcceptIfEmpty = 0x1
93 Q_DECLARE_FLAGS(Options,
Option);
107 void setFilter(
const QRegExp ®exp, Filters f );
122 const QString & message,
123 const QString & acceptButtonLabel,
124 const QString & rejectButtonLabel = QString(),
125 Filters f = FilterAutomatic,
126 Options o = OptionAutoAcceptIfEmpty );
142 const QString & message,
143 const QRegExp & regexp,
144 const QString & acceptButtonLabel,
145 const QString & rejectButtonLabel = QString(),
146 Filters f = FilterAutomatic,
147 Options o = OptionAutoAcceptIfEmpty );
175 const QString & message,
176 const QString & acceptButtonLabel,
177 const QString & rejectButtonLabel = QString() );
185 void filter( Filters f = FilterAutomatic );
193 void filter(
const QRegExp & regexp, Filters f = FilterAutomatic );
198 virtual bool extraFilter( ZyppSel sel, ZyppPkg pkg );
212 Q_DECLARE_OPERATORS_FOR_FLAGS(YQPkgChangesDialog::Filters);
213 Q_DECLARE_METATYPE(YQPkgChangesDialog::Filters);
231 const QString &message,
232 const QString &acceptButtonLabel,
233 const QString &rejectButtonLabel = QString() );
248 const QString & message,
249 const QString & acceptButtonLabel,
250 const QString & rejectButtonLabel = QString(),
251 Filters f = FilterAutomatic,
252 Options o = OptionAutoAcceptIfEmpty );
257 virtual bool extraFilter( ZyppSel sel, ZyppPkg pkg );
262 #endif // ifndef YQPkgChangesDialog_h
void setFilter(Filters f)
Set the current filter This will change the combo box current selected filter and update the list...
FilterIndex
filter combobox entries
static bool showUnsupportedPackagesDialog(QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString(), Filters f=FilterAutomatic, Options o=OptionAutoAcceptIfEmpty)
Static convenience method: Post a changes dialog with text 'message', a list of changed packages and ...
virtual bool extraFilter(ZyppSel sel, ZyppPkg pkg)
extra filter for child classes
void slotFilterChanged(int index)
called when the filter is changed
Changes dialog: Show a dialog with a list of packages that are changed.
bool isEmpty() const
Returns 'true' if the pkg list is empty.
YQPkgUnsupportedPackagesDialog(QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString())
Constructor: Creates a changes dialog with text 'message' on top, a list packages with an "auto" stat...
static bool showChangesDialog(QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString(), Filters f=FilterAutomatic, Options o=OptionAutoAcceptIfEmpty)
Static convenience method: Post a changes dialog with text 'message', a list of changed packages and ...
virtual QSize sizeHint() const
Returns the preferred size.
Display a list of zypp::Package objects.
virtual bool extraFilter(ZyppSel sel, ZyppPkg pkg)
leave supported packages out.
YQPkgChangesDialog(QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString())
Constructor: Creates a changes dialog with text 'message' on top, a list packages with an "auto" stat...
void filter(Filters f=FilterAutomatic)
Apply the filter criteria: Fill the pkg list with pkgs that have a "modify" status ( install...