Canorus  0.0
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
CAFileFormats Class Reference

File formats supported by Canorus This class contains the filters shown in file dialogs (eg. when opening/saving a document) and its internal enumeration values used when storing settings for default or last used filter. More...

#include <fileformats.h>

Public Types

enum  CAFileFormatType {
  CanorusML = 1, Can = 2, LilyPond = 3, MusicXML = 4,
  MXL = 16, ABCMusic = 5, NoteEdit = 6, MUP = 7,
  Finale = 8, Sibelius = 9, Noteworthy = 10, Igor = 11,
  Capella = 12, Midi = 13, PDF = 14, SVG = 15
}
 

Static Public Member Functions

static const QString getFilter (const CAFileFormatType)
 
static const CAFileFormatType getType (const QString)
 

Static Public Attributes

static const QString LILYPOND_FILTER = QObject::tr("LilyPond document (*.ly)")
 
static const QString CANORUSML_FILTER = QObject::tr("Canorus document (*.xml)")
 
static const QString CAN_FILTER = QObject::tr("Canorus archive (*.can)")
 
static const QString MUSICXML_FILTER = QObject::tr("MusicXML document (*.musicxml)")
 
static const QString MXL_FILTER = QObject::tr("Compressed MusicXML document (*.mxl)")
 
static const QString NOTEEDIT_FILTER = QObject::tr("NoteEdit document (*.not)")
 
static const QString ABCMUSIC_FILTER = QObject::tr("ABC music document (*.abc)")
 
static const QString FINALE_FILTER = QObject::tr("Finale document (*.mus)")
 
static const QString SIBELIUS_FILTER = QObject::tr("Sibelius document (*.sib)")
 
static const QString CAPELLA_FILTER = QObject::tr("Capella document (*.cap)")
 
static const QString MIDI_FILTER = QObject::tr("Midi file (*.mid *.midi)")
 
static const QString PDF_FILTER = QObject::tr("PDF file (*.pdf)")
 
static const QString SVG_FILTER = QObject::tr("SVG file (*.svg)")
 

Detailed Description

File formats supported by Canorus This class contains the filters shown in file dialogs (eg. when opening/saving a document) and its internal enumeration values used when storing settings for default or last used filter.

Copyright (c) 2006-2008, Reinhard Katzmann, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.

Copyright (c) 2006-2008, Reinhard Katzmann, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE.GPL for details.

Member Enumeration Documentation

◆ CAFileFormatType

Enumerator
CanorusML 
Can 
LilyPond 
MusicXML 
MXL 
ABCMusic 
NoteEdit 
MUP 
Finale 
Sibelius 
Noteworthy 
Igor 
Capella 
Midi 
PDF 
SVG 

Member Function Documentation

◆ getFilter()

const QString CAFileFormats::getFilter ( const  CAFileFormatType)
static

Converts the file format enumeration to filter as string.

References Can, CAN_FILTER, CanorusML, CANORUSML_FILTER, LilyPond, LILYPOND_FILTER, MusicXML, MUSICXML_FILTER, MXL, MXL_FILTER, PDF, PDF_FILTER, SVG, and SVG_FILTER.

Referenced by CACanorus::initCommonGUI(), and CASettingsDialog::setupPages().

Here is the caller graph for this function:

◆ getType()

const CAFileFormats::CAFileFormatType CAFileFormats::getType ( const QString  t)
static

Converts the file format filter string to enumeration appropriate for storing in config file.

References Can, CAN_FILTER, CanorusML, CANORUSML_FILTER, LilyPond, LILYPOND_FILTER, MusicXML, MUSICXML_FILTER, MXL, MXL_FILTER, PDF, PDF_FILTER, SVG, and SVG_FILTER.

Referenced by CASettingsDialog::applySettings().

Here is the caller graph for this function:

Member Data Documentation

◆ ABCMUSIC_FILTER

const QString CAFileFormats::ABCMUSIC_FILTER = QObject::tr("ABC music document (*.abc)")
static

◆ CAN_FILTER

const QString CAFileFormats::CAN_FILTER = QObject::tr("Canorus archive (*.can)")
static

◆ CANORUSML_FILTER

const QString CAFileFormats::CANORUSML_FILTER = QObject::tr("Canorus document (*.xml)")
static

◆ CAPELLA_FILTER

const QString CAFileFormats::CAPELLA_FILTER = QObject::tr("Capella document (*.cap)")
static

◆ FINALE_FILTER

const QString CAFileFormats::FINALE_FILTER = QObject::tr("Finale document (*.mus)")
static

◆ LILYPOND_FILTER

const QString CAFileFormats::LILYPOND_FILTER = QObject::tr("LilyPond document (*.ly)")
static

◆ MIDI_FILTER

const QString CAFileFormats::MIDI_FILTER = QObject::tr("Midi file (*.mid *.midi)")
static

◆ MUSICXML_FILTER

const QString CAFileFormats::MUSICXML_FILTER = QObject::tr("MusicXML document (*.musicxml)")
static

◆ MXL_FILTER

const QString CAFileFormats::MXL_FILTER = QObject::tr("Compressed MusicXML document (*.mxl)")
static

◆ NOTEEDIT_FILTER

const QString CAFileFormats::NOTEEDIT_FILTER = QObject::tr("NoteEdit document (*.not)")
static

◆ PDF_FILTER

const QString CAFileFormats::PDF_FILTER = QObject::tr("PDF file (*.pdf)")
static

◆ SIBELIUS_FILTER

const QString CAFileFormats::SIBELIUS_FILTER = QObject::tr("Sibelius document (*.sib)")
static

◆ SVG_FILTER

const QString CAFileFormats::SVG_FILTER = QObject::tr("SVG file (*.svg)")
static

The documentation for this class was generated from the following files: