|
Canorus 0.0
|
Base class for various views. More...
#include <view.h>

Public Types | |
| enum | CAViewType { ScoreView , SourceView } |
Signals | |
| void | clicked () |
| void | closed (CAView *) |
Public Member Functions | |
| CAView (QWidget *parent=0) | |
| virtual | ~CAView () |
| CAViewType | viewType () |
| virtual CAView * | clone ()=0 |
| virtual CAView * | clone (QWidget *parent)=0 |
| virtual void | rebuild ()=0 |
Static Public Attributes | |
| static const int | DEFAULT_VIEW_WIDTH = 600 |
| static const int | DEFAULT_VIEW_HEIGHT = 400 |
Protected Slots | |
| void | mousePressEvent (QMouseEvent *e) |
| void | closeEvent (QCloseEvent *) |
Protected Member Functions | |
| void | setViewType (CAViewType t) |
Protected Attributes | |
| CAViewType | _viewType |
Base class for various views.
CAView is the base widget for different types of views of the document. Viewport can represent a score view, envelope view, score source view etc.
| enum CAView::CAViewType |
| CAView::CAView | ( | 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 CASourceView::setupUI().

|
pure 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.
Implemented in CAScoreView, and CASourceView.
Referenced by CAMainWin::on_uiNewView_triggered(), CAViewContainer::splitHorizontally(), and CAViewContainer::splitVertically().

|
pure 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.
Implemented in CAScoreView, and CASourceView.
|
signal |
|
inlineprotectedslot |
References closed().
|
protectedslot |
References clicked().
Referenced by CASourceView::CATextEdit::focusInEvent(), and CAScoreView::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 view is introduced.
Implemented in CAScoreView.
|
inlineprotected |
References _viewType.
Referenced by CASourceView::CASourceView(), and CAScoreView::initScoreView().

|
inline |
References _viewType.
Referenced by CAMainWin::initView(), CAMainWin::on_uiSelectAll_triggered(), CAMainWin::on_uiZoomToFit_triggered(), CAMainWin::on_uiZoomToHeight_triggered(), CAMainWin::on_uiZoomToSelection_triggered(), CAMainWin::on_uiZoomToWidth_triggered(), and CAMainWin::sourceViewCommit().

|
protected |
Referenced by setViewType(), and viewType().
|
static |
Referenced by CAMainWin::on_uiNewView_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_uiNewView_triggered().