Connected the labels in the TransportView to update when track change.

This commit is contained in:
Daniel Önnerby 2008-04-29 18:11:46 +00:00
parent 1d7072fd8c
commit 94f71d27c5

View File

@ -112,7 +112,18 @@ void TransportController::OnTrackChange(musik::core::TrackPtr track){
return;
}
// this->transportView.titleLabel. // HMM.. Can't find how to set the labels
win32cpp::uistring title(_T("-"));
win32cpp::uistring artist(_T("-"));
if(track->GetValue("title"))
title.assign( track->GetValue("title") );
if(track->GetValue("visual_artist"))
artist.assign( track->GetValue("visual_artist") );
this->transportView.titleLabel->SetCaption(title);
this->transportView.artistLabel->SetCaption(artist);
}