25 |
#include <qfileinfo.h> |
#include <qfileinfo.h> |
26 |
#include <qtooltip.h> |
#include <qtooltip.h> |
27 |
#include <qpopupmenu.h> |
#include <qpopupmenu.h> |
28 |
|
#include <qobjectlist.h> |
29 |
|
|
30 |
#include <math.h> |
#include <math.h> |
31 |
|
|
102 |
} |
} |
103 |
|
|
104 |
|
|
105 |
|
// Channel display background effect. |
106 |
|
void qsamplerChannelStrip::setDisplayEffect ( bool bDisplayEffect ) |
107 |
|
{ |
108 |
|
QPixmap pm; |
109 |
|
if (bDisplayEffect) |
110 |
|
pm = QPixmap::fromMimeSource("displaybg1.png"); |
111 |
|
setDisplayBackground(pm); |
112 |
|
} |
113 |
|
|
114 |
|
|
115 |
|
// Update main display background pixmap. |
116 |
|
void qsamplerChannelStrip::setDisplayBackground ( const QPixmap& pm ) |
117 |
|
{ |
118 |
|
// Set the main origin... |
119 |
|
ChannelInfoFrame->setPaletteBackgroundPixmap(pm); |
120 |
|
|
121 |
|
// Iterate for every child text label... |
122 |
|
QObjectList *pList = ChannelInfoFrame->queryList("QLabel"); |
123 |
|
if (pList) { |
124 |
|
for (QLabel *pLabel = (QLabel *) pList->first(); pLabel; pLabel = (QLabel *) pList->next()) |
125 |
|
pLabel->setPaletteBackgroundPixmap(pm); |
126 |
|
delete pList; |
127 |
|
} |
128 |
|
|
129 |
|
// And this standalone too. |
130 |
|
StreamVoiceCountTextLabel->setPaletteBackgroundPixmap(pm); |
131 |
|
} |
132 |
|
|
133 |
|
|
134 |
// Channel setup dialog slot. |
// Channel setup dialog slot. |
135 |
void qsamplerChannelStrip::channelSetup (void) |
void qsamplerChannelStrip::channelSetup (void) |
136 |
{ |
{ |