|
Canorus
0.0
|
Keysignature user interface objects creation. More...
#include <keysignatureui.h>

Public Member Functions | |
| CAKeySignatureUI (CAMainWin *poMainWin, const QString &oHash) | |
| ~CAKeySignatureUI () | |
| void | updateKeySigToolBar () |
| CAKeySignatureCtl & | ctl () |
Static Public Member Functions | |
| static void | populateComboBox (QComboBox *c) |
| static void | populateComboBoxDirection (QComboBox *c) |
Protected Attributes | |
| CAMainWin * | _poMainWin |
| CAKeySignatureCtl * | _poKeySignatureCtl |
| QToolBar * | uiKeySigToolBar |
| QComboBox * | uiKeySig |
Keysignature user interface objects creation.
Copyright (c) 2006-2010, Reinhard Katzmann, 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.
This class creates the key signature user interface parts of the main window (toolbar, combobox)
Default Construktor Besides standard initialization it creates it's ui objects. Also the control object is created here. Inbetween the combobox (for selection) gets populated Finally the Toolbar is added to the main win Toolbar and hidden
References _poKeySignatureCtl, _poMainWin, populateComboBox(), CAKeySignatureCtl::setupActions(), uiKeySig, and uiKeySigToolBar.

| CAKeySignatureUI::~CAKeySignatureUI | ( | ) |
References uiKeySig, and uiKeySigToolBar.
|
inline |
References _poKeySignatureCtl.
Referenced by CAMainWin::setupCustomUi().

|
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.
References CADiatonicKey::diatonicKeyToString(), CADiatonicKey::Major, and CADiatonicKey::Minor.
Referenced by CAKeySignatureUI(), CAMainWin::createCustomActions(), and CATransposeView::setupCustomUi().


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

| void CAKeySignatureUI::updateKeySigToolBar | ( | ) |
Shows/Hides the key signature properties tool bar according to the current state.
References _poMainWin, CAMainWin::currentScoreView(), CAKeySignature::diatonicKey(), CAMusElementFactory::diatonicKeyGender(), CAMusElementFactory::diatonicKeyNumberOfAccs(), CADiatonicKey::diatonicKeyToString(), CAMainWin::EditMode, CAMainWin::InsertMode, CAMainWin::isInsertKeySigChecked(), CAMainWin::mode(), CAMainWin::musElementFactory(), CAScoreView::selection(), uiKeySig, and uiKeySigToolBar.
Referenced by CAMainWin::updateToolBars().


|
protected |
Referenced by CAKeySignatureUI(), and ctl().
|
protected |
Referenced by CAKeySignatureUI(), and updateKeySigToolBar().
|
protected |
Referenced by CAKeySignatureUI(), updateKeySigToolBar(), and ~CAKeySignatureUI().
|
protected |
Referenced by CAKeySignatureUI(), updateKeySigToolBar(), and ~CAKeySignatureUI().