|
Canorus
0.7
|
Base class for various viewports. More...
#include <viewport.h>

Public Types | |
| enum | CAViewPortType { ScoreViewPort, SourceViewPort } |
Signals | |
| void | clicked () |
| void | closed (CAViewPort *) |
Public Member Functions | |
| CAViewPort (QWidget *parent=0) | |
| virtual | ~CAViewPort () |
| CAViewPortType | viewPortType () |
| virtual CAViewPort * | clone ()=0 |
| virtual CAViewPort * | clone (QWidget *parent)=0 |
| virtual void | rebuild ()=0 |
Static Public Attributes | |
| static const int | DEFAULT_VIEWPORT_WIDTH = 600 |
| static const int | DEFAULT_VIEWPORT_HEIGHT = 400 |
Protected Slots | |
| void | mousePressEvent (QMouseEvent *e) |
| void | closeEvent (QCloseEvent *) |
Protected Member Functions | |
| void | setViewPortType (CAViewPortType t) |
Protected Attributes | |
| CAViewPortType | _viewPortType |
Base class for various viewports.
CAViewPort is the base widget for different types of views of the document. Viewport can represent a score view, envelope view, score source view etc.
| CAViewPort::CAViewPort | ( | QWidget * | p = 0 | ) |
The default constructor. Creates a widget with the parent widget p.
|
virtual |
|
signal |
This signal is emitted when mousePressEvent() is called. Parent class is usually connected to this event.
Referenced by mousePressEvent(), and CASourceViewPort::setupUI().

|
pure 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.
Implemented in CAScoreViewPort, and CASourceViewPort.
Referenced by CAMainWin::on_uiNewViewport_triggered(), CAViewPortContainer::splitHorizontally(), and CAViewPortContainer::splitVertically().

|
pure 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.
Implemented in CAScoreViewPort, and CASourceViewPort.
|
signal |
|
inlineprotectedslot |
|
protectedslot |
References clicked().
Referenced by CASourceViewPort::CATextEdit::focusInEvent(), and CAScoreViewPort::mousePressEvent().


|
pure virtual |
Synchronizes/Rebuilds the UI part from the abstract one. This function is usually called when a user creates changes to the score or a new viewport is introduced.
Implemented in CAScoreViewPort.
|
inlineprotected |
References _viewPortType.
Referenced by CASourceViewPort::CASourceViewPort(), and CAScoreViewPort::initScoreViewPort().

|
inline |
References _viewPortType.
Referenced by CAMainWin::on_uiSelectAll_triggered(), CAMainWin::on_uiZoomToFit_triggered(), CAMainWin::on_uiZoomToHeight_triggered(), CAMainWin::on_uiZoomToSelection_triggered(), CAMainWin::on_uiZoomToWidth_triggered(), and CAMainWin::sourceViewPortCommit().

|
protected |
Referenced by setViewPortType(), and viewPortType().
|
static |
Referenced by CAMainWin::on_uiNewViewport_triggered().
|
static |
Copyright (c) 2006-2007, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
Referenced by CAMainWin::on_uiNewViewport_triggered().
1.8.3