|
|
@ -75,14 +75,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
RollTitle::RollTitle( TQWidget *tqparent ) : TQLabel( "I", tqparent )
|
|
|
|
RollTitle::RollTitle( TQWidget *tqparent ) : TQLabel( "I", tqparent )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQColorGroup cg = tqparentWidget()->tqcolorGroup();
|
|
|
|
TQColorGroup cg = parentWidget()->tqcolorGroup();
|
|
|
|
TQColor base = cg.base();
|
|
|
|
TQColor base = cg.base();
|
|
|
|
TQColor selection = cg.highlight();
|
|
|
|
TQColor selection = cg.highlight();
|
|
|
|
int r = (base.red() + selection.red()) / 2;
|
|
|
|
int r = (base.red() + selection.red()) / 2;
|
|
|
|
int b = (base.blue() + selection.blue()) / 2;
|
|
|
|
int b = (base.blue() + selection.blue()) / 2;
|
|
|
|
int g = (base.green() + selection.green()) / 2;
|
|
|
|
int g = (base.green() + selection.green()) / 2;
|
|
|
|
back = TQColor(r, g, b);
|
|
|
|
back = TQColor(r, g, b);
|
|
|
|
fore = tqparentWidget()->tqcolorGroup().text();
|
|
|
|
fore = parentWidget()->tqcolorGroup().text();
|
|
|
|
setPaletteBackgroundColor( back );
|
|
|
|
setPaletteBackgroundColor( back );
|
|
|
|
setPaletteForegroundColor( fore );
|
|
|
|
setPaletteForegroundColor( fore );
|
|
|
|
setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
|
|
|
|
setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
|
|
|
@ -149,7 +149,7 @@ void RollTitle::rollTitle()
|
|
|
|
void RollTitle::paintEvent( TQPaintEvent *pe )
|
|
|
|
void RollTitle::paintEvent( TQPaintEvent *pe )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQLabel::paintEvent( pe );
|
|
|
|
TQLabel::paintEvent( pe );
|
|
|
|
TQColorGroup cg = tqparentWidget()->tqcolorGroup();
|
|
|
|
TQColorGroup cg = parentWidget()->tqcolorGroup();
|
|
|
|
TQColor base = cg.base();
|
|
|
|
TQColor base = cg.base();
|
|
|
|
TQColor selection = cg.highlight();
|
|
|
|
TQColor selection = cg.highlight();
|
|
|
|
int r = (base.red() + selection.red()) / 2;
|
|
|
|
int r = (base.red() + selection.red()) / 2;
|
|
|
@ -157,7 +157,7 @@ void RollTitle::paintEvent( TQPaintEvent *pe )
|
|
|
|
int g = (base.green() + selection.green()) / 2;
|
|
|
|
int g = (base.green() + selection.green()) / 2;
|
|
|
|
back=TQColor(r,g,b);
|
|
|
|
back=TQColor(r,g,b);
|
|
|
|
setPaletteBackgroundColor( back );
|
|
|
|
setPaletteBackgroundColor( back );
|
|
|
|
fore = tqparentWidget()->tqcolorGroup().text();
|
|
|
|
fore = parentWidget()->tqcolorGroup().text();
|
|
|
|
setPaletteForegroundColor( fore );
|
|
|
|
setPaletteForegroundColor( fore );
|
|
|
|
setTitle( title );
|
|
|
|
setTitle( title );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1172,7 +1172,7 @@ void PlayList::add(const TQStringList& urlList, TQListViewItem* after)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mrlList.clear();
|
|
|
|
mrlList.clear();
|
|
|
|
kdDebug() << "PlayList: Try loading ram playlist\n";
|
|
|
|
kdDebug() << "PlayList: Try loading ram playlist\n";
|
|
|
|
if (PlaylistImport::ram(mrl, mrlList, mainWidget->tqparentWidget()))
|
|
|
|
if (PlaylistImport::ram(mrl, mrlList, mainWidget->parentWidget()))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQValueList<MRL>::ConstIterator end(mrlList.end());
|
|
|
|
TQValueList<MRL>::ConstIterator end(mrlList.end());
|
|
|
|
for (TQValueList<MRL>::ConstIterator it = mrlList.begin(); it != end; ++it)
|
|
|
|
for (TQValueList<MRL>::ConstIterator it = mrlList.begin(); it != end; ++it)
|
|
|
@ -1829,8 +1829,8 @@ void PlayList::nextPlaylist()
|
|
|
|
m_playlistSelector->setCurrentItem(nextPlaylist);
|
|
|
|
m_playlistSelector->setCurrentItem(nextPlaylist);
|
|
|
|
m_currentPlaylist = nextPlaylist;
|
|
|
|
m_currentPlaylist = nextPlaylist;
|
|
|
|
add(m_playlistDirectory + pl + ".kaffeine", NULL);
|
|
|
|
add(m_playlistDirectory + pl + ".kaffeine", NULL);
|
|
|
|
if (mainWidget->tqparentWidget())
|
|
|
|
if (mainWidget->parentWidget())
|
|
|
|
mainWidget->tqparentWidget()->setFocus();
|
|
|
|
mainWidget->parentWidget()->setFocus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void PlayList::slotPlaylistActivated(int index)
|
|
|
|
void PlayList::slotPlaylistActivated(int index)
|
|
|
@ -1842,8 +1842,8 @@ void PlayList::slotPlaylistActivated(int index)
|
|
|
|
clearList();
|
|
|
|
clearList();
|
|
|
|
m_currentPlaylist = index;
|
|
|
|
m_currentPlaylist = index;
|
|
|
|
add(m_playlistDirectory + pl + ".kaffeine", NULL);
|
|
|
|
add(m_playlistDirectory + pl + ".kaffeine", NULL);
|
|
|
|
if (mainWidget->tqparentWidget())
|
|
|
|
if (mainWidget->parentWidget())
|
|
|
|
mainWidget->tqparentWidget()->setFocus();
|
|
|
|
mainWidget->parentWidget()->setFocus();
|
|
|
|
/* if (!isQueueMode())
|
|
|
|
/* if (!isQueueMode())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
getCurrent();
|
|
|
|
getCurrent();
|
|
|
@ -1868,8 +1868,8 @@ void PlayList::slotNewPlaylistName(const TQString& text)
|
|
|
|
kdDebug() << "PlayList: Set playlist name to: " << text << endl;
|
|
|
|
kdDebug() << "PlayList: Set playlist name to: " << text << endl;
|
|
|
|
m_playlistSelector->changeItem(text, m_currentPlaylist);
|
|
|
|
m_playlistSelector->changeItem(text, m_currentPlaylist);
|
|
|
|
saveCurrentPlaylist();
|
|
|
|
saveCurrentPlaylist();
|
|
|
|
if (mainWidget->tqparentWidget())
|
|
|
|
if (mainWidget->parentWidget())
|
|
|
|
mainWidget->tqparentWidget()->setFocus();
|
|
|
|
mainWidget->parentWidget()->setFocus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQString PlayList::queryCurrentPlaylist()
|
|
|
|
TQString PlayList::queryCurrentPlaylist()
|
|
|
|