![]()  | 
  
    Songbook-Client
    0.7
    
   This application is a manager of customguitar songbooks 
   | 
 
Song is the internal representation of a song. More...
#include "song.hh"
Static Public Member Functions | |
| static Song | fromFile (const QString &path) | 
| static Song | fromString (const QString &text, const QString &path=QString()) | 
| static QString | toString (const Song &song) | 
| static QLocale::Language | languageFromString (const QString &languageName=QString()) | 
| static QString | languageToString (const QLocale::Language language) | 
| static QString | latexToUtf8 (const QString &str) | 
| static QString | utf8ToLatex (const QString &str) | 
Public Attributes | |
| QString | title | 
| QString | artist | 
| QString | album | 
| QString | originalSong | 
| QString | url | 
| QString | coverName | 
| QString | coverPath | 
| QString | path | 
| QLocale | locale | 
| bool | isLilypond | 
| int | columnCount | 
| int | capo | 
| int | transpose | 
| QStringList | gtabs | 
| QStringList | utabs | 
| QStringList | lyrics | 
| QStringList | scripture | 
Static Public Attributes | |
| static QRegExp | reSgFile | 
| static QRegExp | reArtist | 
| static QRegExp | reAlbum | 
| static QRegExp | reOriginalSong | 
| static QRegExp | reUrl | 
| static QRegExp | reCoverName | 
| static QRegExp | reLilypond | 
| static QRegExp | reLanguage | 
| static QRegExp | reColumnCount | 
| static QRegExp | reCapo | 
| static QRegExp | reTranspose | 
| static QRegExp | reCover | 
| static QRegExp | reBlankLine | 
| static QRegExp | reGtab | 
| static QRegExp | reUtab | 
| static QRegExp | reBegin | 
| static QRegExp | reEnd | 
| static QRegExp | reBeginVerse | 
| static QRegExp | reEndVerse | 
| static QRegExp | reBeginBridge | 
| static QRegExp | reEndBridge | 
| static QRegExp | reBeginChorus | 
| static QRegExp | reEndChorus | 
| static QRegExp | reBeginScripture | 
| static QRegExp | reEndScripture | 
Song is the internal representation of a song.
Provides the internal representation of a song from a songbook library.
      
  | 
  static | 
Constructs a Song object from a file whose absolute path is path.
      
  | 
  static | 
Constructs a Song object whose content is text.
      
  | 
  static | 
Converts a language string languageName to a QLocale object. Language strings are usually strings used by babel (LaTeX module). For example: english, french etc.
      
  | 
  static | 
Converts a QLocale object language as a plain string (ie english, french) that can be used by babel (LaTeX module).
      
  | 
  static | 
Converts LaTeX special sequences to utf8 characters. For example: \'e -> é.
      
  | 
  static | 
Returns the contents of the song song.
      
  | 
  static | 
Converts some utf8 characters to LaTeX sequences. For example: & -> &.
| QString Song::album | 
the album of the song.
| QString Song::artist | 
the artist of the song.
| int Song::capo | 
the capo of the song.
| int Song::columnCount | 
the number of columns of the song in the PDF.
| QString Song::coverName | 
the cover file name (relative, without extension).
| QString Song::coverPath | 
the cover file name (absolute).
| QStringList Song::gtabs | 
the list of guitar chords.
| bool Song::isLilypond | 
true if the song contains lilypond sheets.
| QLocale Song::locale | 
the locale of the song.
| QStringList Song::lyrics | 
the song contents.
| QString Song::originalSong | 
the original song.
| QString Song::path | 
the path of the .sg file (absolute).
      
  | 
  static | 
Extracts the album of the song from a .sg file.
      
  | 
  static | 
Extracts the artist of the song from a .sg file.
      
  | 
  static | 
Finds starting LaTeX environments.
      
  | 
  static | 
Finds starting bridge environments.
      
  | 
  static | 
Finds starting chorus environments.
      
  | 
  static | 
Finds starting scripture environments.
      
  | 
  static | 
Finds starting verse environments.
      
  | 
  static | 
Finds blank lines.
      
  | 
  static | 
Extracts the capo of the song from a .sg file.
      
  | 
  static | 
Extracts the number of columns of the song from a .sg file.
      
  | 
  static | 
Extracts the cover filename associated with the song from a .sg file.
      
  | 
  static | 
Extracts the cover of the song from a .sg file.
      
  | 
  static | 
Finds ending LaTeX environments.
      
  | 
  static | 
Finds ending bridge environments.
      
  | 
  static | 
Finds ending chorus environments.
      
  | 
  static | 
Finds ending scripture environments.
      
  | 
  static | 
Finds ending verse environments.
      
  | 
  static | 
Extracts gtab macros (guitar diagrams) that are used for CChord objects.
      
  | 
  static | 
Extracts the language of the song from a .sg file.
      
  | 
  static | 
Looks for lilypond macros within a .sg file.
      
  | 
  static | 
Extracts the original song of the song from a .sg file.
      
  | 
  static | 
Extracts the contents of a .sg file. This regular expression captures 5 fields:
      
  | 
  static | 
Extracts the transposition information of the song from a .sg file.
      
  | 
  static | 
Extracts the artist website of the song from a .sg file.
      
  | 
  static | 
Extracts utab macros (ukulele diagrams) that are used for CChord objects.
| QStringList Song::scripture | 
the song scriptures (comments/notes at the end in the PDF).
| QString Song::title | 
the title of the song.
| int Song::transpose | 
the transposition information.
| QString Song::url | 
the website of the artist.
| QStringList Song::utabs | 
the list of ukulele chords.
 1.8.1.1