|
Canorus
0.0
|
Widget that shows the current score source in various syntax. More...
#include <sourceview.h>

Classes | |
| class | CATextEdit |
Public Slots | |
| void | rebuild () |
Signals | |
| void | CACommit (QString documentString) |
Signals inherited from CAView | |
| void | clicked () |
| void | closed (CAView *) |
Public Member Functions | |
| CASourceView (CADocument *doc, QWidget *parent=0) | |
| CASourceView (CAVoice *voice, QWidget *parent=0) | |
| CASourceView (CALyricsContext *lc, QWidget *parent=0) | |
| virtual | ~CASourceView () |
| CASourceView * | clone () |
| CASourceView * | clone (QWidget *parent) |
| CASourceViewType | sourceViewType () |
| void | setSourceViewType (CASourceViewType t) |
| CADocument * | document () |
| CAVoice * | voice () |
| CALyricsContext * | lyricsContext () |
| void | setDocument (CADocument *doc) |
| void | setVoice (CAVoice *voice) |
| void | setLyricsContext (CALyricsContext *c) |
| void | selectAll () |
Public Member Functions inherited from CAView | |
| CAView (QWidget *parent=0) | |
| virtual | ~CAView () |
| CAViewType | viewType () |
| virtual void | rebuild ()=0 |
Private Types | |
| enum | CASourceViewType { LilyPond, CanorusML } |
Private Slots | |
| void | on_commit_clicked () |
Private Member Functions | |
| void | setupUI () |
Private Attributes | |
| QTextEdit * | _textEdit |
| QPushButton * | _commit |
| QPushButton * | _revert |
| QGridLayout * | _layout |
| CASourceViewType | _sourceViewType |
| CADocument * | _document |
| CAVoice * | _voice |
| CALyricsContext * | _lyricsContext |
Friends | |
| class | CASourceView::CATextEdit |
Additional Inherited Members | |
Public Types inherited from CAView | |
| enum | CAViewType { ScoreView, SourceView } |
Static Public Attributes inherited from CAView | |
| static const int | DEFAULT_VIEW_WIDTH = 600 |
| static const int | DEFAULT_VIEW_HEIGHT = 400 |
Protected Slots inherited from CAView | |
| void | mousePressEvent (QMouseEvent *e) |
| void | closeEvent (QCloseEvent *) |
Protected Member Functions inherited from CAView | |
| void | setViewType (CAViewType t) |
Protected Attributes inherited from CAView | |
| CAViewType | _viewType |
Widget that shows the current score source in various syntax.
This widget is a view which shows in the main text area the syntax of the current score (or voice, staff). It includes 2 buttons for committing the changes to the score and reverting any changes back from the score.
|
private |
| CASourceView::CASourceView | ( | CADocument * | doc, |
| QWidget * | parent = 0 |
||
| ) |
Constructor for CanorusML syntax - requires the whole document.
References _document, _lyricsContext, _voice, CanorusML, setSourceViewType(), setupUI(), CAView::setViewType(), and CAView::SourceView.
Referenced by clone().


| CASourceView::CASourceView | ( | CAVoice * | voice, |
| QWidget * | parent = 0 |
||
| ) |
Constructor for LilyPond syntax - requires the current voice.
References _document, _lyricsContext, _voice, LilyPond, setSourceViewType(), setupUI(), CAView::setViewType(), CAView::SourceView, and voice().

| CASourceView::CASourceView | ( | CALyricsContext * | lc, |
| QWidget * | parent = 0 |
||
| ) |
Constructor for LilyPond syntax - requires the current lyrics context to show the lyrics.
References _document, _lyricsContext, _voice, LilyPond, setSourceViewType(), setupUI(), CAView::setViewType(), and CAView::SourceView.

|
signal |
|
virtual |
Returns a pointer to the new cloned view with the same parent. This function is usually called when a user creates a new docked view.
Implements CAView.
References CASourceView(), document(), lyricsContext(), and voice().

|
virtual |
Returns a pointer to the new cloned view with the parent parent. This function is usually called when a user creates a new undocked view.
Implements CAView.
References CASourceView(), document(), lyricsContext(), and voice().

|
inline |
References _document.
Referenced by clone(), rebuild(), CAMainWin::sourceViewCommit(), and CAUndoCommand::undoDocument().

|
inline |
References _lyricsContext.
Referenced by clone(), rebuild(), CAMainWin::removeSheet(), CAMainWin::sourceViewCommit(), and CAUndoCommand::undoDocument().

|
privateslot |
References _textEdit, and CACommit().
Referenced by setupUI().

|
slot |
Generates the score source from the current score and fill the text area with it.
References _textEdit, document(), CAExport::exportDocument(), CAExport::exportLyricsContext(), CAExport::exportVoice(), lyricsContext(), voice(), and CAExport::wait().
Referenced by setupUI().


|
inline |
References _textEdit.
|
inline |
References _document.
Referenced by CAUndoCommand::undoDocument().

|
inline |
References _lyricsContext.
Referenced by CAMainWin::sourceViewCommit(), and CAUndoCommand::undoDocument().

|
inline |
References _sourceViewType.
Referenced by CASourceView().

|
private |
References _commit, _layout, _revert, _textEdit, CAView::clicked(), on_commit_clicked(), and rebuild().
Referenced by CASourceView().


|
inline |
References _voice, and voice().
Referenced by CAMainWin::sourceViewCommit(), and CAUndoCommand::undoDocument().


|
inline |
References _sourceViewType.
|
inline |
References _voice.
Referenced by CASourceView(), clone(), rebuild(), CAMainWin::removeSheet(), setVoice(), CAMainWin::sourceViewCommit(), and CAUndoCommand::undoDocument().

|
friend |
|
private |
Referenced by setupUI(), and ~CASourceView().
|
private |
Referenced by CASourceView(), document(), and setDocument().
|
private |
Referenced by setupUI(), and ~CASourceView().
|
private |
Referenced by CASourceView(), lyricsContext(), and setLyricsContext().
|
private |
Referenced by setupUI(), and ~CASourceView().
|
private |
Referenced by setSourceViewType(), and sourceViewType().
|
private |
Referenced by on_commit_clicked(), rebuild(), selectAll(), setupUI(), and ~CASourceView().
|
private |
Referenced by CASourceView(), setVoice(), and voice().