comparison main/MainWindow.cpp @ 1047:2aaeb77609cf recording

OK, we can record -- sort of
author Chris Cannam
date Tue, 18 Aug 2015 16:47:54 +0100
parents 691a8210e480
children 2f8018eb1573 25e1cc4f34eb
comparison
equal deleted inserted replaced
1046:ecb0615e0ea0 1047:2aaeb77609cf
56 #include "widgets/TransformFinder.h" 56 #include "widgets/TransformFinder.h"
57 #include "widgets/LabelCounterInputDialog.h" 57 #include "widgets/LabelCounterInputDialog.h"
58 #include "widgets/ActivityLog.h" 58 #include "widgets/ActivityLog.h"
59 #include "widgets/UnitConverter.h" 59 #include "widgets/UnitConverter.h"
60 #include "audio/AudioCallbackPlaySource.h" 60 #include "audio/AudioCallbackPlaySource.h"
61 #include "audio/AudioRecordTarget.h"
61 #include "audio/PlaySpeedRangeMapper.h" 62 #include "audio/PlaySpeedRangeMapper.h"
62 #include "data/fileio/DataFileReaderFactory.h" 63 #include "data/fileio/DataFileReaderFactory.h"
63 #include "data/fileio/PlaylistFileReader.h" 64 #include "data/fileio/PlaylistFileReader.h"
64 #include "data/fileio/WavFileWriter.h" 65 #include "data/fileio/WavFileWriter.h"
65 #include "data/fileio/CSVFileWriter.h" 66 #include "data/fileio/CSVFileWriter.h"
153 m_rwdAction(0), 154 m_rwdAction(0),
154 m_ffwdAction(0), 155 m_ffwdAction(0),
155 m_ffwdSimilarAction(0), 156 m_ffwdSimilarAction(0),
156 m_ffwdEndAction(0), 157 m_ffwdEndAction(0),
157 m_playAction(0), 158 m_playAction(0),
159 m_recordAction(0),
158 m_playSelectionAction(0), 160 m_playSelectionAction(0),
159 m_playLoopAction(0), 161 m_playLoopAction(0),
160 m_soloModified(false), 162 m_soloModified(false),
161 m_prevSolo(false), 163 m_prevSolo(false),
162 m_playControlsSpacer(0), 164 m_playControlsSpacer(0),
1982 tr("Fast Forward to End")); 1984 tr("Fast Forward to End"));
1983 m_ffwdEndAction->setShortcut(tr("End")); 1985 m_ffwdEndAction->setShortcut(tr("End"));
1984 m_ffwdEndAction->setStatusTip(tr("Fast-forward to the end")); 1986 m_ffwdEndAction->setStatusTip(tr("Fast-forward to the end"));
1985 connect(m_ffwdEndAction, SIGNAL(triggered()), this, SLOT(ffwdEnd())); 1987 connect(m_ffwdEndAction, SIGNAL(triggered()), this, SLOT(ffwdEnd()));
1986 connect(this, SIGNAL(canPlay(bool)), m_ffwdEndAction, SLOT(setEnabled(bool))); 1988 connect(this, SIGNAL(canPlay(bool)), m_ffwdEndAction, SLOT(setEnabled(bool)));
1989
1990 m_recordAction = toolbar->addAction(il.load("record"),
1991 tr("Record"));
1992 m_recordAction->setCheckable(true);
1993 m_recordAction->setShortcut(tr("Ctrl+Space"));
1994 m_recordAction->setStatusTip(tr("Record a new audio file"));
1995 connect(m_recordAction, SIGNAL(triggered()), this, SLOT(record()));
1996 connect(m_recordTarget, SIGNAL(recordStatusChanged(bool)),
1997 m_recordAction, SLOT(setChecked(bool)));
1998 connect(this, SIGNAL(canRecord(bool)),
1999 m_recordAction, SLOT(setEnabled(bool)));
1987 2000
1988 toolbar = addToolBar(tr("Play Mode Toolbar")); 2001 toolbar = addToolBar(tr("Play Mode Toolbar"));
1989 2002
1990 m_playSelectionAction = toolbar->addAction(il.load("playselection"), 2003 m_playSelectionAction = toolbar->addAction(il.load("playselection"),
1991 tr("Constrain Playback to Selection")); 2004 tr("Constrain Playback to Selection"));