return _playlist->has_subtitles ();
}
-string
-Film::playlist_description () const
-{
- return _playlist->description ();
-}
-
void
Film::set_audio_mapping (AudioMapping m)
{
ContentVideoFrame content_length () const;
- std::string playlist_description () const;
-
void set_loop (int);
int loop () const;
return !fc->subtitle_streams().empty();
}
-
-string
-Playlist::description () const
-{
- stringstream s;
-
- if (_video.empty ()) {
- s << _("There is no video.") << "\n";
- } else {
- s << _("Video will come from ");
- list<shared_ptr<const VideoContent> >::const_iterator i = _video.begin();
- while (i != _video.end ()) {
- s << (*i)->file().filename().string();
- ++i;
- if (i != _video.end ()) {
- s << ", ";
- }
- }
- if (_video.size() > 1) {
- s << " " << _("in sequence.");
- }
- s << "\n";
- }
-
- if (_audio.empty ()) {
- s << _("There is no audio.") << "\n";
- } else {
- if (_audio_from == AUDIO_FFMPEG) {
- s << _("Audio will come from the video files.") << "\n";
- } else {
- s << _("Audio will come from ");
- list<shared_ptr<const AudioContent> >::const_iterator i = _audio.begin();
- while (i != _audio.end ()) {
- s << (*i)->file().filename().string();
- ++i;
- if (i != _audio.end ()) {
- s << ", ";
- }
- }
- if (_audio.size() > 1) {
- s << _(" run simultaneously.");
- }
- s << "\n";
- }
- }
-
- return s.str ();
-}
return _content;
}
- std::string description () const;
-
boost::shared_ptr<FFmpegContent> ffmpeg () const;
std::list<boost::shared_ptr<const VideoContent> > video () const {
add_label_to_sizer (h, _content_panel, _("times"));
_content_sizer->Add (h, 0, wxALL, 6);
- _playlist_description = new wxStaticText (_content_panel, wxID_ANY, wxT ("\n \n \n \n "));
- _content_sizer->Add (_playlist_description, 0.25, wxEXPAND | wxALL, 6);
- wxFont font = _playlist_description->GetFont();
- font.SetStyle(wxFONTSTYLE_ITALIC);
- font.SetPointSize(font.GetPointSize() - 1);
- _playlist_description->SetFont(font);
-
_timeline_button = new wxButton (_content_panel, wxID_ANY, _("Timeline..."));
_content_sizer->Add (_timeline_button, 0, wxALL, 6);
/* Select the first item of content if non was selected before */
_content->SetItemState (0, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED);
}
-
- setup_playlist_description ();
}
void
_loop_count->Enable (_loop_content->GetValue ());
}
-void
-FilmEditor::setup_playlist_description ()
-{
- if (!_film) {
- _playlist_description->SetLabel (wxT (""));
- return;
- }
-
- _playlist_description->SetLabel (std_to_wx (_film->playlist_description ()));
-}
-
void
FilmEditor::timeline_clicked (wxCommandEvent &)
{
void setup_content_information ();
void setup_content_button_sensitivity ();
void setup_loop_sensitivity ();
- void setup_playlist_description ();
void active_jobs_changed (bool);
boost::shared_ptr<Content> selected_content ();
wxCheckBox* _loop_content;
wxSpinCtrl* _loop_count;
wxButton* _timeline_button;
- wxStaticText* _playlist_description;
wxButton* _edit_dci_button;
wxChoice* _format;
wxStaticText* _format_description;