Audacity  2.2.2
Classes | Macros | Functions | Variables
ImportLOF.cpp File Reference
#include "../Audacity.h"
#include "ImportLOF.h"
#include <wx/string.h>
#include <wx/utils.h>
#include <wx/intl.h>
#include <wx/textfile.h>
#include <wx/tokenzr.h>
#include "../WaveTrack.h"
#include "ImportPlugin.h"
#include "Import.h"
#include "../NoteTrack.h"
#include "../Project.h"
#include "../FileFormats.h"
#include "../Prefs.h"
#include "../Internat.h"
#include "../widgets/ErrorDialog.h"

Go to the source code of this file.

Classes

class  LOFImportPlugin
 An ImportPlugin for LOF data. More...
 
class  LOFImportFileHandle
 An ImportFileHandle for LOF data. More...
 

Macros

#define BINARY_FILE_CHECK_BUFFER_SIZE   1024
 
#define DESC   _("List of Files in basic text format")
 

Functions

void GetLOFImportPlugin (ImportPluginList &importPluginList, UnusableImportPluginList &WXUNUSED(unusableImportPluginList))
 
static int CountNumTracks (AudacityProject *proj)
 

Variables

static const wxChar * exts []
 

Macro Definition Documentation

#define BINARY_FILE_CHECK_BUFFER_SIZE   1024

Definition at line 94 of file ImportLOF.cpp.

Referenced by LOFImportPlugin::Open().

#define DESC   _("List of Files in basic text format")

Function Documentation

static int CountNumTracks ( AudacityProject proj)
static

Definition at line 271 of file ImportLOF.cpp.

References AudacityProject::GetTracks().

Referenced by LOFImportFileHandle::lofOpenFiles().

272 {
273  int count = 0;
274  Track *t;
275  TrackListIterator iter(proj->GetTracks());
276 
277  t = iter.First();
278 
279  while(t) {
280  count++;
281  t = iter.Next();
282  }
283 
284  return count;
285 }
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:102
An iterator for a TrackList.
Definition: Track.h:402
TrackList * GetTracks()
Definition: Project.h:192
void GetLOFImportPlugin ( ImportPluginList importPluginList,
UnusableImportPluginList WXUNUSEDunusableImportPluginList 
)

Definition at line 171 of file ImportLOF.cpp.

Referenced by Importer::Initialize().

173 {
174  importPluginList.push_back( std::make_unique<LOFImportPlugin>() );
175 }

Variable Documentation

const wxChar* exts[]
static
Initial value:
=
{
wxT("lof")
}

Definition at line 98 of file ImportLOF.cpp.