|
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.
| CAViewPort::~CAViewPort | ( | ) | [virtual] |
| void CAViewPort::clicked | ( | ) | [signal] |
This signal is emitted when mousePressEvent() is called. Parent class is usually connected to this event.
Referenced by mousePressEvent(), and CASourceViewPort::setupUI().

| CAViewPort * CAViewPort::clone | ( | ) | [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().

| CAViewPort * CAViewPort::clone | ( | QWidget * | parent | ) | [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.
| void CAViewPort::closed | ( | CAViewPort * | ) | [signal] |
| void CAViewPort::closeEvent | ( | QCloseEvent * | ) | [inline, protected, slot] |
| void CAViewPort::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, slot] |
Reimplemented in CAScoreViewPort.
References clicked().
Referenced by CASourceViewPort::CATextEdit::focusInEvent().


| void CAViewPort::rebuild | ( | ) | [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, and CASourceViewPort.
| void CAViewPort::setViewPortType | ( | CAViewPortType | t | ) | [inline, protected] |
References _viewPortType.
Referenced by CASourceViewPort::CASourceViewPort(), and CAScoreViewPort::initScoreViewPort().

| CAViewPortType CAViewPort::viewPortType | ( | ) | [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().

CAViewPortType CAViewPort::_viewPortType [protected] |
Referenced by setViewPortType(), and viewPortType().
const int CAViewPort::DEFAULT_VIEWPORT_HEIGHT = 400 [static] |
Referenced by CAMainWin::on_uiNewViewport_triggered().
const int CAViewPort::DEFAULT_VIEWPORT_WIDTH = 600 [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.0