private void EmitPlayListNodeSelected(PlayListPlay plNode) { if (PlayListNodeSelectedEvent != null) PlayListNodeSelectedEvent(plNode); }
public void Add(PlayListPlay plNode) { Model.AppendValues(plNode); }
private void EmitApplyRate(PlayListPlay plNode) { if (ApplyRateEvent != null) ApplyRateEvent (plNode); }
protected virtual void OnApplyRate(PlayListPlay plNode) { if(ApplyCurrentRate != null) ApplyCurrentRate(plNode); }
public void SetActivePlay(PlayListPlay plNode, int index) { playlisttreeview1.Selection.SelectPath(new TreePath(index.ToString())); playlisttreeview1.LoadedPlay = plNode; }
private void LoadPlaylistPlay(PlayListPlay play) { if(OpenedProject != null) { guiToolkit.ErrorMessage(Catalog.GetString( "Please, close the opened project to play the playlist.")); Stop(); return; } StartClock(); player.SetPlayListElement(play.MediaFile.FilePath, play.Start.MSeconds, play.Stop.MSeconds, play.Rate, playlist.HasNext()); selectedTimeNode = play; }
private void Add(PlayListPlay plNode) { playlist.Add(plNode); playlistWidget.Add(plNode); }
protected override bool OnButtonPressEvent(EventButton evnt) { if((evnt.Type == EventType.ButtonPress) && (evnt.Button == 3)) { TreePath path; GetPathAtPos((int)evnt.X,(int)evnt.Y,out path); if(path!=null) { ListStore list = ((ListStore)Model); Model.GetIter(out selectedIter,path); selectedPlay = (PlayListPlay)(list.GetValue(selectedIter,0)); setRate.Sensitive = selectedPlay == loadedPlay; menu.Popup(); } } return base.OnButtonPressEvent(evnt); }