コード例 #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);
 }