|
Canorus
0.7
|
#include <drawablekeysignature.h>

Public Member Functions | |
| CADrawableKeySignature (CAKeySignature *keySig, CADrawableStaff *staff, double x, double y) | |
| ~CADrawableKeySignature () | |
| void | draw (QPainter *p, CADrawSettings s) |
| CADrawableKeySignature * | clone (CADrawableContext *newContext=0) |
| CAKeySignature * | keySignature () |
Static Public Member Functions | |
| static void | populateComboBox (QComboBox *c) |
| static CADiatonicKey | comboBoxRowToDiatonicKey (int row) |
| static int | diatonicKeyToRow (CADiatonicKey k) |
| static void | populateComboBoxDirection (QComboBox *c) |
Private Attributes | |
| QList< CADrawableAccidental * > | _drawableAccidentalList |
| CADrawableKeySignature::CADrawableKeySignature | ( | CAKeySignature * | keySig, |
| CADrawableStaff * | drawableStaff, | ||
| double | x, | ||
| double | y | ||
| ) |
Copyright (c) 2006-2009, 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.
Default constructor.
\a y marks the top line Y coordinate of the staff in absolute world units.References _drawableAccidentalList, CAKeySignature::accidentals(), CAClef::c1(), CADrawableStaff::calculateCenterYCoord(), CADrawableMusElement::DrawableKeySignature, CADrawableStaff::getClef(), CADrawableStaff::getKeySignature(), CAStaff::numberOfLines(), CADrawableMusElement::setDrawableMusElementType(), CADrawable::setHeight(), CADrawable::setWidth(), CADrawable::setYPos(), CADrawableStaff::staff(), and CADrawable::yPos().
Referenced by clone().


| CADrawableKeySignature * CADrawableKeySignature::clone | ( | CADrawableContext * | newContext = 0 | ) | [virtual] |
Implements CADrawableMusElement.
References CADrawableMusElement::_drawableContext, CADrawableKeySignature(), keySignature(), and CADrawable::xPos().

| CADiatonicKey CADrawableKeySignature::comboBoxRowToDiatonicKey | ( | int | row | ) | [static] |
This function returns the selected diatonic key dependent on the selected row.
References CADiatonicKey::Major, and CADiatonicKey::Minor.
Referenced by CATransposeView::on_uiApply_clicked(), and CAMainWin::on_uiKeySig_activated().

| int CADrawableKeySignature::diatonicKeyToRow | ( | CADiatonicKey | k | ) | [static] |
Returns the item index in the combo box corresponding to the given diatonic key k.
References CADiatonicKey::gender(), CADiatonicKey::Minor, and CADiatonicKey::numberOfAccs().
Referenced by CATransposeView::show(), CAMainWin::updateFMToolBar(), and CAMainWin::updateKeySigToolBar().


| void CADrawableKeySignature::draw | ( | QPainter * | p, |
| CADrawSettings | s | ||
| ) | [virtual] |
Implements CADrawable.
References _drawableAccidentalList, CADrawSettings::x, CADrawable::xPos(), CADrawSettings::y, CADrawable::yPos(), and CADrawSettings::z.

| CAKeySignature* CADrawableKeySignature::keySignature | ( | ) | [inline] |
References CADrawableMusElement::_musElement.
Referenced by clone(), and CAEngraver::reposit().

| void CADrawableKeySignature::populateComboBox | ( | QComboBox * | c | ) | [static] |
This function adds key signatures to the given combobox in order major-minor-major-... from most flats to most sharps.
This function usually called when initializing the main window.
Referenced by CAMainWin::createCustomActions(), and CATransposeView::setupCustomUi().

| void CADrawableKeySignature::populateComboBoxDirection | ( | QComboBox * | c | ) | [static] |
Adds directions Up and Down with icons to the given combo box.
Referenced by CATransposeView::setupCustomUi().

QList<CADrawableAccidental*> CADrawableKeySignature::_drawableAccidentalList [private] |
Referenced by CADrawableKeySignature(), draw(), and ~CADrawableKeySignature().
1.8.0