![]()  | 
  
    Songbook-Client
    0.7
    
   This application is a manager of customguitar songbooks 
   | 
 
CSongHeaderEditor is a widget that manages a Song metadata in a CSongEditor. More...
#include <song-header-editor.hh>
Public Types | |
| enum | ViewMode { FullViewMode, MiniViewMode } | 
Public Slots | |
| void | update () | 
| void | toggleView () | 
Signals | |
| void | contentsChanged () | 
| void | languageChanged (const QLocale &) | 
Public Member Functions | |
| CSongHeaderEditor (QWidget *parent=0) | |
| Constructor.  | |
| ~CSongHeaderEditor () | |
| Destructor.  | |
| Song & | song () | 
| CSongEditor * | songEditor () const | 
| void | setSongEditor (CSongEditor *songEditor) | 
| const QImage & | cover () | 
| void | setLibrary (CLibrary *library) | 
| LineEdit * | titleLineEdit () const | 
| LineEdit * | artistLineEdit () const | 
| QSize | sizeHint () const | 
CSongHeaderEditor is a widget that manages a Song metadata in a CSongEditor.
A Song is composed of a header (metadata) and a body (lyrics). The CSongHeaderEditor hides the plain text of the song's header to present them in a more user-friendly way through appropriated QWidgets that allow to fill the fields such as artist name, album, cover, capo etc.
Two different views can be toggled:
This enum describes available view modes for CSongHeaderEditor objects.
| LineEdit * CSongHeaderEditor::artistLineEdit | ( | ) | const | 
Returns the artist line edit widget.
      
  | 
  signal | 
This signal is emitted when any of the contents in the header is changed.
| const QImage & CSongHeaderEditor::cover | ( | ) | 
Getter on the song's cover
      
  | 
  signal | 
This signal is emitted when the language of the song is changed.
| void CSongHeaderEditor::setLibrary | ( | CLibrary * | library | ) | 
Sets the library library. The library is used to provide completion models for title and artist line edits.
| void CSongHeaderEditor::setSongEditor | ( | CSongEditor * | songEditor | ) | 
Setter on the embedding SongEditor
| songEditor | the embedding song editor | 
| QSize CSongHeaderEditor::sizeHint | ( | ) | const | 
Returns the preferred size of the widget.
| Song & CSongHeaderEditor::song | ( | ) | 
Getter on the song from whose metadata is used to build this instance of CSongHeaderEditor.
| CSongEditor * CSongHeaderEditor::songEditor | ( | ) | const | 
Getter on the embedding SongEditor
| LineEdit * CSongHeaderEditor::titleLineEdit | ( | ) | const | 
Returns the title line edit widget.
      
  | 
  slot | 
Toggles between full-view mode and mini-view mode.
      
  | 
  slot | 
Updates the elements of the header from the song contents.
 1.8.1.1