42 #define YUILogComponent "qt-ui" 45 #include "YQIconPool.h" 47 #include "icons/autodel.xpm" 48 #include "icons/autodel_disabled.xpm" 49 #include "icons/autoinstall.xpm" 50 #include "icons/autoinstall_disabled.xpm" 51 #include "icons/autoupdate.xpm" 52 #include "icons/autoupdate_disabled.xpm" 53 #include "icons/del.xpm" 54 #include "icons/del_disabled.xpm" 55 #include "icons/install.xpm" 56 #include "icons/install_disabled.xpm" 57 #include "icons/keepinstalled.xpm" 58 #include "icons/keepinstalled_disabled.xpm" 59 #include "icons/noinst.xpm" 60 #include "icons/noinst_disabled.xpm" 61 #include "icons/protected.xpm" 62 #include "icons/protected_disabled.xpm" 63 #include "icons/taboo.xpm" 64 #include "icons/taboo_disabled.xpm" 65 #include "icons/update.xpm" 66 #include "icons/update_disabled.xpm" 67 #include "icons/tree_plus.xpm" 68 #include "icons/tree_minus.xpm" 69 #include "icons/warning_sign.xpm" 70 #include "icons/satisfied.xpm" 72 #include "icons/normal_conflict.xpm" 73 #include "icons/select_conflict.xpm" 74 #include "icons/delete_conflict.xpm" 75 #include "icons/unresolvable_conflict.xpm" 77 #include "icons/checklist_off.xpm" 78 #include "icons/checklist_on.xpm" 80 #include "icons/step_current.xpm" 81 #include "icons/step_todo.xpm" 82 #include "icons/step_done.xpm" 84 #include "icons/tab_remove.xpm" 85 #include "icons/arrow_left.xpm" 86 #include "icons/arrow_right.xpm" 87 #include "icons/arrow_up.xpm" 88 #include "icons/arrow_down.xpm" 98 QPixmap YQIconPool::pkgAutoInstall() {
return iconPool()->
cachedIcon( autoinstall_xpm ); }
99 QPixmap YQIconPool::pkgAutoUpdate() {
return iconPool()->
cachedIcon( autoupdate_xpm ); }
101 QPixmap YQIconPool::pkgKeepInstalled() {
return iconPool()->
cachedIcon( keepinstalled_xpm ); }
103 QPixmap YQIconPool::pkgProtected() {
return iconPool()->
cachedIcon( protected_xpm ); }
105 QPixmap YQIconPool::disabledPkgTaboo() {
return iconPool()->
cachedIcon( taboo_disabled_xpm ); }
106 QPixmap YQIconPool::disabledPkgDel() {
return iconPool()->
cachedIcon( del_disabled_xpm ); }
107 QPixmap YQIconPool::disabledPkgUpdate() {
return iconPool()->
cachedIcon( update_disabled_xpm ); }
108 QPixmap YQIconPool::disabledPkgInstall() {
return iconPool()->
cachedIcon( install_disabled_xpm ); }
109 QPixmap YQIconPool::disabledPkgAutoInstall() {
return iconPool()->
cachedIcon( autoinstall_disabled_xpm ); }
110 QPixmap YQIconPool::disabledPkgAutoUpdate() {
return iconPool()->
cachedIcon( autoupdate_disabled_xpm ); }
111 QPixmap YQIconPool::disabledPkgAutoDel() {
return iconPool()->
cachedIcon( autodel_disabled_xpm ); }
112 QPixmap YQIconPool::disabledPkgKeepInstalled() {
return iconPool()->
cachedIcon( keepinstalled_disabled_xpm ); }
113 QPixmap YQIconPool::disabledPkgNoInst() {
return iconPool()->
cachedIcon( noinst_disabled_xpm ); }
114 QPixmap YQIconPool::disabledPkgProtected() {
return iconPool()->
cachedIcon( protected_disabled_xpm ); }
116 QPixmap YQIconPool::checkMarkOn() {
return iconPool()->
cachedIcon( checklist_on_xpm ); }
117 QPixmap YQIconPool::checkMarkOff() {
return iconPool()->
cachedIcon( checklist_off_xpm ); }
119 QPixmap YQIconPool::normalPkgConflict() {
return iconPool()->
cachedIcon( normal_conflict_xpm ); }
120 QPixmap YQIconPool::severePkgConflict() {
return iconPool()->
cachedIcon( normal_conflict_xpm ); }
121 QPixmap YQIconPool::unresolvablePkgConflict() {
return iconPool()->
cachedIcon( unresolvable_conflict_xpm ); }
122 QPixmap YQIconPool::deletePkgConflict() {
return iconPool()->
cachedIcon( delete_conflict_xpm ); }
123 QPixmap YQIconPool::tabooPkgConflict() {
return iconPool()->
cachedIcon( normal_conflict_xpm ); }
124 QPixmap YQIconPool::selectPkgConflict() {
return iconPool()->
cachedIcon( select_conflict_xpm ); }
129 QPixmap YQIconPool::warningSign() {
return iconPool()->
cachedIcon( warning_sign_xpm ); }
130 QPixmap YQIconPool::pkgSatisfied() {
return iconPool()->
cachedIcon( satisfied_xpm ); }
132 QPixmap YQIconPool::stepCurrent() {
return iconPool()->
cachedIcon( step_current_xpm ); }
138 QPixmap YQIconPool::arrowRight() {
return iconPool()->
cachedIcon( arrow_right_xpm ); }
152 YQIconPool::YQIconPool()
157 YQIconPool::~YQIconPool()
167 QPixmap iconPtr = _iconCache[ xpm_data ];
169 if ( iconPtr.isNull() )
171 iconPtr = QPixmap( xpm_data );
172 _iconCache.insert( xpm_data, iconPtr );
static YQIconPool * iconPool()
Return the global icon pool.
QPixmap cachedIcon(const char **xpm_data)
Return the cached icon for 'xpm_data' ( an included XPM file ).