65 |
{ |
{ |
66 |
QListViewItem::setRenameEnabled(0, true); |
QListViewItem::setRenameEnabled(0, true); |
67 |
|
|
68 |
QListViewItem::setPixmap(0, QPixmap::fromMimeSource("itemGroup.png")); |
QListViewItem::setPixmap(0, QPixmap(":/icons/itemGroup.png")); |
69 |
QListViewItem::setText(0, sName); |
QListViewItem::setText(0, sName); |
70 |
} |
} |
71 |
|
|
76 |
{ |
{ |
77 |
QListViewItem::setRenameEnabled(0, true); |
QListViewItem::setRenameEnabled(0, true); |
78 |
|
|
79 |
QListViewItem::setPixmap(0, QPixmap::fromMimeSource("itemGroup.png")); |
QListViewItem::setPixmap(0, QPixmap(":/icons/itemGroup.png")); |
80 |
} |
} |
81 |
|
|
82 |
|
|
119 |
{ |
{ |
120 |
// Set the proper pixmap of this... |
// Set the proper pixmap of this... |
121 |
if (rtti() == qsamplerInstrumentList::Group) { |
if (rtti() == qsamplerInstrumentList::Group) { |
122 |
QListViewItem::setPixmap(0, QPixmap::fromMimeSource( |
QListViewItem::setPixmap(0, QPixmap(bOpen ? |
123 |
bOpen ? "itemGroupOpen.png" : "itemGroup.png")); |
":/icons/itemGroupOpen.png" : ":/icons/itemGroup.png")); |
124 |
} |
} |
125 |
// Open it up... |
// Open it up... |
126 |
QListViewItem::setOpen(bOpen); |
QListViewItem::setOpen(bOpen); |
190 |
// Item refreshment. |
// Item refreshment. |
191 |
void qsamplerInstrumentItem::update (void) |
void qsamplerInstrumentItem::update (void) |
192 |
{ |
{ |
193 |
QListViewItem::setPixmap(0, QPixmap::fromMimeSource("itemFile.png")); |
QListViewItem::setPixmap(0, QPixmap(":/icons/itemFile.png")); |
194 |
|
|
195 |
const QString s = "-"; |
const QString s = "-"; |
196 |
if (m_pInstrument) { |
if (m_pInstrument) { |
263 |
QListView::setColumnWidth(5, 240); // File |
QListView::setColumnWidth(5, 240); // File |
264 |
|
|
265 |
m_pNewGroupAction = new QAction( |
m_pNewGroupAction = new QAction( |
266 |
QIconSet(QPixmap::fromMimeSource("itemGroupNew.png")), |
QIcon(":/icons/itemGroupNew.png"), |
267 |
tr("New &Group"), tr("Ctrl+G"), this); |
tr("New &Group"), tr("Ctrl+G"), this); |
268 |
m_pNewItemAction = new QAction( |
m_pNewItemAction = new QAction( |
269 |
QIconSet(QPixmap::fromMimeSource("itemNew.png")), |
QIcon(":/icons/itemNew.png"), |
270 |
tr("New &Instrument..."), tr("Ins"), this); |
tr("New &Instrument..."), tr("Ins"), this); |
271 |
m_pEditItemAction = new QAction( |
m_pEditItemAction = new QAction( |
272 |
QIconSet(QPixmap::fromMimeSource("formEdit.png")), |
QIcon(":/icons/formEdit.png"), |
273 |
tr("&Edit..."), tr("Enter"), this); |
tr("&Edit..."), tr("Enter"), this); |
274 |
m_pRenameAction = new QAction(tr("&Rename"), tr("F2"), this); |
m_pRenameAction = new QAction(tr("&Rename"), tr("F2"), this); |
275 |
m_pDeleteAction = new QAction( |
m_pDeleteAction = new QAction( |
276 |
QIconSet(QPixmap::fromMimeSource("formRemove.png")), |
QIcon(":/icons/formRemove.png"), |
277 |
tr("&Delete"), tr("Del"), this); |
tr("&Delete"), tr("Del"), this); |
278 |
m_pRefreshAction = new QAction( |
m_pRefreshAction = new QAction( |
279 |
QIconSet(QPixmap::fromMimeSource("formRefresh.png")), |
QIcon(":/icons/formRefresh.png"), |
280 |
tr("Re&fresh"), tr("F5"), this); |
tr("Re&fresh"), tr("F5"), this); |
281 |
|
|
282 |
m_pNewGroupAction->setToolTip(tr("New Group")); |
m_pNewGroupAction->setToolTip(tr("New Group")); |