Canorus  0.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
CAKeySignatureUI Class Reference

Keysignature user interface objects creation. More...

#include <keysignatureui.h>

Inheritance diagram for CAKeySignatureUI:
Inheritance graph
[legend]

Public Member Functions

 CAKeySignatureUI (CAMainWin *poMainWin, const QString &oHash)
 
 ~CAKeySignatureUI ()
 
void updateKeySigToolBar ()
 
CAKeySignatureCtlctl ()
 

Static Public Member Functions

static void populateComboBox (QComboBox *c)
 
static void populateComboBoxDirection (QComboBox *c)
 

Protected Attributes

CAMainWin_poMainWin
 
CAKeySignatureCtl_poKeySignatureCtl
 
QToolBar * uiKeySigToolBar
 
QComboBox * uiKeySig
 

Detailed Description

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)

Constructor & Destructor Documentation

◆ CAKeySignatureUI()

CAKeySignatureUI::CAKeySignatureUI ( CAMainWin poMainWin,
const QString &  oHash 
)

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.

Here is the call graph for this function:

◆ ~CAKeySignatureUI()

CAKeySignatureUI::~CAKeySignatureUI ( )

References uiKeySig, and uiKeySigToolBar.

Member Function Documentation

◆ ctl()

CAKeySignatureCtl& CAKeySignatureUI::ctl ( )
inline

References _poKeySignatureCtl.

Referenced by CAMainWin::setupCustomUi().

Here is the caller graph for this function:

◆ populateComboBox()

void CAKeySignatureUI::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.

See also
CADrawableKeySignature::comboBoxRowToDiatonicKey(), CADrawableKeySignature::populateComboBoxDirection()

References CADiatonicKey::diatonicKeyToString(), CADiatonicKey::Major, and CADiatonicKey::Minor.

Referenced by CAKeySignatureUI(), CAMainWin::createCustomActions(), and CATransposeView::setupCustomUi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ populateComboBoxDirection()

void CAKeySignatureUI::populateComboBoxDirection ( QComboBox *  c)
static

Adds directions Up and Down with icons to the given combo box.

See also
CADrawableKeySignature::comboBoxRowToDiatonicKey(), CADrawableKeySignature::populateComboBox()

Referenced by CATransposeView::setupCustomUi().

Here is the caller graph for this function:

◆ updateKeySigToolBar()

void CAKeySignatureUI::updateKeySigToolBar ( )

Member Data Documentation

◆ _poKeySignatureCtl

CAKeySignatureCtl* CAKeySignatureUI::_poKeySignatureCtl
protected

Referenced by CAKeySignatureUI(), and ctl().

◆ _poMainWin

CAMainWin* CAKeySignatureUI::_poMainWin
protected

◆ uiKeySig

QComboBox* CAKeySignatureUI::uiKeySig
protected

◆ uiKeySigToolBar

QToolBar* CAKeySignatureUI::uiKeySigToolBar
protected

The documentation for this class was generated from the following files: