예제 #1
0
 private void EmitPlayListNodeSelected(PlayListPlay plNode)
 {
     if (PlayListNodeSelectedEvent != null)
         PlayListNodeSelectedEvent(plNode);
 }
예제 #2
0
 public void Add(PlayListPlay plNode)
 {
     Model.AppendValues(plNode);
 }
예제 #3
0
 private void EmitApplyRate(PlayListPlay plNode)
 {
     if (ApplyRateEvent != null)
         ApplyRateEvent (plNode);
 }
예제 #4
0
 protected virtual void OnApplyRate(PlayListPlay plNode)
 {
     if(ApplyCurrentRate != null)
         ApplyCurrentRate(plNode);
 }
예제 #5
0
 public void SetActivePlay(PlayListPlay plNode, int index)
 {
     playlisttreeview1.Selection.SelectPath(new TreePath(index.ToString()));
     playlisttreeview1.LoadedPlay = plNode;
 }
예제 #6
0
        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;
        }
예제 #7
0
 private void Add(PlayListPlay plNode)
 {
     playlist.Add(plNode);
     playlistWidget.Add(plNode);
 }
예제 #8
0
 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);
 }