|
Canorus
0.7
|
#include <drawablekeysignature.h>

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 |
Additional Inherited Members | |
Public Types inherited from CADrawableMusElement | |
| enum | CADrawableMusElementType { DrawableNote, DrawableRest, DrawableClef, DrawableKeySignature, DrawableTimeSignature, DrawableBarline, DrawableAccidental, DrawableSlur, DrawableTuplet, DrawableSyllable, DrawableFunctionMark, DrawableFunctionMarkSupport, DrawableMark } |
Protected Member Functions inherited from CADrawableMusElement | |
| void | setDrawableMusElementType (CADrawableMusElementType t) |
Protected Attributes inherited from CADrawableMusElement | |
| CADrawableMusElementType | _drawableMusElementType |
| CADrawableContext * | _drawableContext |
| CAMusElement * | _musElement |
| bool | _selectable |
Static Protected Attributes inherited from CADrawable | |
| static const int | SCALE_HANDLES_SIZE = 2 |
| 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.
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 | ( | ) |
References _drawableAccidentalList.
|
virtual |
Implements CADrawableMusElement.
References CADrawableMusElement::_drawableContext, CADrawableKeySignature(), keySignature(), and CADrawable::xPos().

|
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().

|
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().


|
virtual |
Implements CADrawable.
References _drawableAccidentalList, CADrawSettings::x, CADrawable::xPos(), CADrawSettings::y, CADrawable::yPos(), and CADrawSettings::z.

|
inline |
References CADrawableMusElement::_musElement.
Referenced by clone(), and CAEngraver::reposit().

|
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().

|
static |
Adds directions Up and Down with icons to the given combo box.
Referenced by CATransposeView::setupCustomUi().

|
private |
Referenced by CADrawableKeySignature(), draw(), and ~CADrawableKeySignature().
1.8.3