traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/commands CopyClip.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/commands CopyClip.cpp
Date: Tue, 04 Sep 2007 15:04:15 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/09/04 15:04:15

Removed files:
        src/commands   : CopyClip.cpp 

Log message:
        obsolete file 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/commands/CopyClip.cpp?cvsroot=traverso&r1=1.12&r2=0

Patches:
Index: CopyClip.cpp
===================================================================
RCS file: CopyClip.cpp
diff -N CopyClip.cpp
--- CopyClip.cpp        16 Jan 2007 20:21:08 -0000      1.12
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,95 +0,0 @@
-/*
-    Copyright (C) 2005-2006 Remon Sijrier 
- 
-    This file is part of Traverso
- 
-    Traverso is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
- 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
- 
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
- 
-    $Id: CopyClip.cpp,v 1.12 2007/01/16 20:21:08 r_sijrier Exp $
-*/
-
-#include "CopyClip.h"
-
-#include <libtraversocore.h>
-#include <ViewPort.h>
-
-// Always put me below _all_ includes, this is needed
-// in case we run with memory leak detection enabled!
-#include "Debugger.h"
-
-
-CopyClip::CopyClip(Song* song, AudioClip* clip)
-       : Command(clip, QObject::tr("Copy Clip"))
-{
-        m_song = song;
-        m_clip = clip;
-        newCreatedClip = (AudioClip*) 0;
-}
-
-
-CopyClip::~CopyClip()
-{}
-
-
-int CopyClip::begin_hold()
-{
-        return 1;
-}
-
-
-int CopyClip::finish_hold()
-{
-//         int x = m_song->snapped_x(cpointer().x());
-        int y = cpointer().y();
-//         newInsertBlock = m_song->xpos_to_frame( x );
-//         targetTrack = m_song->get_track_under_y(y);
-       
-        return 1;
-}
-
-
-int CopyClip::prepare_actions()
-{
-       newCreatedClip = 
pm().get_project()->get_audiosource_manager()->get_clip(m_clip->get_id());
-        newCreatedClip->set_track_start_frame(newInsertBlock);
-        newCreatedClip->set_song(m_song);
-        newCreatedClip->set_track(targetTrack);
-        return 1;
-}
-
-int CopyClip::do_action()
-{
-        PENTER;
-       ie().process_command(targetTrack->add_clip(newCreatedClip, false));
-        return 1;
-}
-
-
-int CopyClip::undo_action()
-{
-        PENTER;
-        ie().process_command(targetTrack->remove_clip(newCreatedClip, false));
-        return 1;
-}
-
-
-int CopyClip::jog()
-{
-        return 1;
-}
-
-
-// eof
-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]