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

Classes | |
| class | CATextEdit |
Public Slots | |
| void | rebuild () |
Signals | |
| void | CACommit (QString documentString) |
Signals inherited from CAViewPort | |
| void | clicked () |
| void | closed (CAViewPort *) |
Public Member Functions | |
| CASourceViewPort (CADocument *doc, QWidget *parent=0) | |
| CASourceViewPort (CAVoice *voice, QWidget *parent=0) | |
| CASourceViewPort (CALyricsContext *lc, QWidget *parent=0) | |
| virtual | ~CASourceViewPort () |
| CASourceViewPort * | clone () |
| CASourceViewPort * | clone (QWidget *parent) |
| CASourceViewPortType | sourceViewPortType () |
| void | setSourceViewPortType (CASourceViewPortType 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 CAViewPort | |
| CAViewPort (QWidget *parent=0) | |
| virtual | ~CAViewPort () |
| CAViewPortType | viewPortType () |
| virtual void | rebuild ()=0 |
Private Types | |
| enum | CASourceViewPortType { LilyPond, CanorusML } |
Private Slots | |
| void | on_commit_clicked () |
Private Member Functions | |
| void | setupUI () |
Private Attributes | |
| QTextEdit * | _textEdit |
| QPushButton * | _commit |
| QPushButton * | _revert |
| QGridLayout * | _layout |
| CASourceViewPortType | _sourceViewPortType |
| CADocument * | _document |
| CAVoice * | _voice |
| CALyricsContext * | _lyricsContext |
Friends | |
| class | CASourceViewPort::CATextEdit |
Additional Inherited Members | |
Public Types inherited from CAViewPort | |
| enum | CAViewPortType { ScoreViewPort, SourceViewPort } |
Static Public Attributes inherited from CAViewPort | |
| static const int | DEFAULT_VIEWPORT_WIDTH = 600 |
| static const int | DEFAULT_VIEWPORT_HEIGHT = 400 |
Protected Slots inherited from CAViewPort | |
| void | mousePressEvent (QMouseEvent *e) |
| void | closeEvent (QCloseEvent *) |
Protected Member Functions inherited from CAViewPort | |
| void | setViewPortType (CAViewPortType t) |
Protected Attributes inherited from CAViewPort | |
| CAViewPortType | _viewPortType |
Widget that shows the current score source in various syntax.
This widget is a viewport 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 |
| CASourceViewPort::CASourceViewPort | ( | CADocument * | doc, |
| QWidget * | parent = 0 |
||
| ) |
Constructor for CanorusML syntax - requires the whole document.
References _document, _lyricsContext, _voice, CanorusML, setSourceViewPortType(), setupUI(), CAViewPort::setViewPortType(), and CAViewPort::SourceViewPort.
Referenced by clone().


Constructor for LilyPond syntax - requires the current voice.
References _document, _lyricsContext, _voice, LilyPond, setSourceViewPortType(), setupUI(), CAViewPort::setViewPortType(), CAViewPort::SourceViewPort, and voice().

| CASourceViewPort::CASourceViewPort | ( | CALyricsContext * | lc, |
| QWidget * | parent = 0 |
||
| ) |
Constructor for LilyPond syntax - requires the current lyrics context to show the lyrics.
References _document, _lyricsContext, _voice, LilyPond, setSourceViewPortType(), setupUI(), CAViewPort::setViewPortType(), and CAViewPort::SourceViewPort.

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

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

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

|
inline |
References _lyricsContext.
Referenced by clone(), rebuild(), CAMainWin::removeSheet(), CAMainWin::sourceViewPortCommit(), 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::sourceViewPortCommit(), and CAUndoCommand::undoDocument().

|
inline |
References _sourceViewPortType.
Referenced by CASourceViewPort().

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


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


|
inline |
References _sourceViewPortType.
|
inline |
References _voice.
Referenced by CASourceViewPort(), clone(), rebuild(), CAMainWin::removeSheet(), setVoice(), CAMainWin::sourceViewPortCommit(), and CAUndoCommand::undoDocument().

|
friend |
|
private |
Referenced by setupUI(), and ~CASourceViewPort().
|
private |
Referenced by CASourceViewPort(), document(), and setDocument().
|
private |
Referenced by setupUI(), and ~CASourceViewPort().
|
private |
Referenced by CASourceViewPort(), lyricsContext(), and setLyricsContext().
|
private |
Referenced by setupUI(), and ~CASourceViewPort().
|
private |
Referenced by setSourceViewPortType(), and sourceViewPortType().
|
private |
Referenced by on_commit_clicked(), rebuild(), selectAll(), setupUI(), and ~CASourceViewPort().
|
private |
Referenced by CASourceViewPort(), setVoice(), and voice().
1.8.3