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

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.
enum CASourceViewPort::CASourceViewPortType [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().


| CASourceViewPort::CASourceViewPort | ( | CAVoice * | voice, |
| QWidget * | parent = 0 |
||
| ) |
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.

| CASourceViewPort::~CASourceViewPort | ( | ) | [virtual] |
| void CASourceViewPort::CACommit | ( | QString | documentString | ) | [signal] |
| CASourceViewPort * CASourceViewPort::clone | ( | ) | [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().

| CASourceViewPort * CASourceViewPort::clone | ( | QWidget * | parent | ) | [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().

| CADocument* CASourceViewPort::document | ( | ) | [inline] |
References _document.
Referenced by clone(), rebuild(), CAMainWin::sourceViewPortCommit(), and CAUndoCommand::undoDocument().

| CALyricsContext* CASourceViewPort::lyricsContext | ( | ) | [inline] |
References _lyricsContext.
Referenced by clone(), rebuild(), CAMainWin::removeSheet(), CAMainWin::sourceViewPortCommit(), and CAUndoCommand::undoDocument().

| void CASourceViewPort::on_commit_clicked | ( | ) | [private, slot] |
References _textEdit, and CACommit().
Referenced by setupUI().


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


| void CASourceViewPort::selectAll | ( | ) | [inline] |
References _textEdit.
| void CASourceViewPort::setDocument | ( | CADocument * | doc | ) | [inline] |
References _document.
Referenced by CAUndoCommand::undoDocument().

| void CASourceViewPort::setLyricsContext | ( | CALyricsContext * | c | ) | [inline] |
References _lyricsContext.
Referenced by CAMainWin::sourceViewPortCommit(), and CAUndoCommand::undoDocument().

| void CASourceViewPort::setSourceViewPortType | ( | CASourceViewPortType | t | ) | [inline] |
References _sourceViewPortType.
Referenced by CASourceViewPort().

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


| void CASourceViewPort::setVoice | ( | CAVoice * | voice | ) | [inline] |
References _voice, and voice().
Referenced by CAMainWin::sourceViewPortCommit(), and CAUndoCommand::undoDocument().


| CASourceViewPortType CASourceViewPort::sourceViewPortType | ( | ) | [inline] |
References _sourceViewPortType.
| CAVoice* CASourceViewPort::voice | ( | ) | [inline] |
References _voice.
Referenced by CASourceViewPort(), clone(), rebuild(), CAMainWin::removeSheet(), setVoice(), CAMainWin::sourceViewPortCommit(), and CAUndoCommand::undoDocument().

friend class CASourceViewPort::CATextEdit [friend] |
QPushButton* CASourceViewPort::_commit [private] |
Referenced by setupUI(), and ~CASourceViewPort().
CADocument* CASourceViewPort::_document [private] |
Referenced by CASourceViewPort(), document(), and setDocument().
QGridLayout* CASourceViewPort::_layout [private] |
Referenced by setupUI(), and ~CASourceViewPort().
CALyricsContext* CASourceViewPort::_lyricsContext [private] |
Referenced by CASourceViewPort(), lyricsContext(), and setLyricsContext().
QPushButton* CASourceViewPort::_revert [private] |
Referenced by setupUI(), and ~CASourceViewPort().
Referenced by setSourceViewPortType(), and sourceViewPortType().
QTextEdit* CASourceViewPort::_textEdit [private] |
Referenced by on_commit_clicked(), rebuild(), selectAll(), setupUI(), and ~CASourceViewPort().
CAVoice* CASourceViewPort::_voice [private] |
Referenced by CASourceViewPort(), setVoice(), and voice().
1.8.0