LMMS
Loading...
Searching...
No Matches
lmms::gui::MicrotunerConfig Class Reference

#include <MicrotunerConfig.h>

Inheritance diagram for lmms::gui::MicrotunerConfig:
lmms::SerializingObject

Public Slots

void updateScaleList (int index)
 Update list of available scales.
void updateKeymapList (int index)
 Update list of available keymaps.
void updateScaleForm ()
 Fill all the scale-related values based on currently selected scale.
void updateKeymapForm ()
 Fill all the keymap-related values based on currently selected keymap.

Public Member Functions

 MicrotunerConfig ()
void saveSettings (QDomDocument &document, QDomElement &element) override
void loadSettings (const QDomElement &element) override
QString nodeName () const override
QSize sizeHint () const override
Public Member Functions inherited from lmms::SerializingObject
 SerializingObject ()
virtual ~SerializingObject ()
virtual QDomElement saveState (QDomDocument &_doc, QDomElement &_parent)
virtual void restoreState (const QDomElement &_this)
void setHook (SerializingObjectHook *_hook)
SerializingObjectHookhook ()

Private Slots

bool loadScaleFromFile ()
 Parse an .scl file and apply the loaded scale if it is valid.
bool loadKeymapFromFile ()
 Parse a .kbm file and apply the loaded keymap if it is valid.
bool saveScaleToFile ()
 Save currently entered scale definition as .scl file.
bool saveKeymapToFile ()
 Save currently entered keymap definition as .kbm file.

Private Member Functions

bool validateScaleForm ()
 Validate the scale name and entered interval definitions.
bool validateKeymapForm ()
 Validate the entered key mapping and other values.
bool applyScale ()
 Parse and apply the entered scale definition.
bool applyKeymap ()
 Parse and apply the entered keymap definition.

Private Attributes

ComboBoxModel m_scaleComboModel
 ID of scale currently selected for editing.
ComboBoxModel m_keymapComboModel
 ID of keymap currently selected for editing.
QLineEdit * m_scaleNameEdit
 edit field for the scale name or description
QLineEdit * m_keymapNameEdit
 edit field for the keymap name or description
QPlainTextEdit * m_scaleTextEdit
 text editor field for interval definitions
QPlainTextEdit * m_keymapTextEdit
 text editor field for key mappings
IntModel m_firstKeyModel
 model for spinbox of currently edited first key
IntModel m_lastKeyModel
 model for spinbox of currently edited last key
IntModel m_middleKeyModel
 model for spinbox of currently edited middle key
IntModel m_baseKeyModel
 model for spinbox of currently edited base key
FloatModel m_baseFreqModel
 model for spinbox of currently edited base note frequency

Constructor & Destructor Documentation

◆ MicrotunerConfig()

lmms::gui::MicrotunerConfig::MicrotunerConfig ( )

Member Function Documentation

◆ applyKeymap()

bool lmms::gui::MicrotunerConfig::applyKeymap ( )
private

Parse and apply the entered keymap definition.

Returns
true if input is valid, false if problems were detected

◆ applyScale()

bool lmms::gui::MicrotunerConfig::applyScale ( )
private

Parse and apply the entered scale definition.

Returns
true if input is valid, false if problems were detected

◆ loadKeymapFromFile

bool lmms::gui::MicrotunerConfig::loadKeymapFromFile ( )
privateslot

Parse a .kbm file and apply the loaded keymap if it is valid.

Returns
true if input is valid, false if problems were detected

◆ loadScaleFromFile

bool lmms::gui::MicrotunerConfig::loadScaleFromFile ( )
privateslot

Parse an .scl file and apply the loaded scale if it is valid.

Returns
true if input is valid, false if problems were detected

◆ loadSettings()

void lmms::gui::MicrotunerConfig::loadSettings ( const QDomElement & element)
overridevirtual

◆ nodeName()

QString lmms::gui::MicrotunerConfig::nodeName ( void ) const
inlineoverridevirtual

◆ saveKeymapToFile

bool lmms::gui::MicrotunerConfig::saveKeymapToFile ( )
privateslot

Save currently entered keymap definition as .kbm file.

Returns
true if input is valid, false if problems were detected

◆ saveScaleToFile

bool lmms::gui::MicrotunerConfig::saveScaleToFile ( )
privateslot

Save currently entered scale definition as .scl file.

Returns
true if input is valid, false if problems were detected

◆ saveSettings()

void lmms::gui::MicrotunerConfig::saveSettings ( QDomDocument & document,
QDomElement & element )
overridevirtual

◆ sizeHint()

QSize lmms::gui::MicrotunerConfig::sizeHint ( ) const
inlineoverride

◆ updateKeymapForm

void lmms::gui::MicrotunerConfig::updateKeymapForm ( )
slot

Fill all the keymap-related values based on currently selected keymap.

◆ updateKeymapList

void lmms::gui::MicrotunerConfig::updateKeymapList ( int index)
slot

Update list of available keymaps.

Parameters
indexIndex of the keymap to update; update all keymaps if -1 or out of range.

◆ updateScaleForm

void lmms::gui::MicrotunerConfig::updateScaleForm ( )
slot

Fill all the scale-related values based on currently selected scale.

◆ updateScaleList

void lmms::gui::MicrotunerConfig::updateScaleList ( int index)
slot

Update list of available scales.

Parameters
indexIndex of the scale to update; update all scales if -1 or out of range.

◆ validateKeymapForm()

bool lmms::gui::MicrotunerConfig::validateKeymapForm ( )
private

Validate the entered key mapping and other values.

Returns
true if input is valid, false if problems were detected

◆ validateScaleForm()

bool lmms::gui::MicrotunerConfig::validateScaleForm ( )
private

Validate the scale name and entered interval definitions.

Returns
true if input is valid, false if problems were detected

Member Data Documentation

◆ m_baseFreqModel

FloatModel lmms::gui::MicrotunerConfig::m_baseFreqModel
private

model for spinbox of currently edited base note frequency

◆ m_baseKeyModel

IntModel lmms::gui::MicrotunerConfig::m_baseKeyModel
private

model for spinbox of currently edited base key

◆ m_firstKeyModel

IntModel lmms::gui::MicrotunerConfig::m_firstKeyModel
private

model for spinbox of currently edited first key

◆ m_keymapComboModel

ComboBoxModel lmms::gui::MicrotunerConfig::m_keymapComboModel
private

ID of keymap currently selected for editing.

◆ m_keymapNameEdit

QLineEdit* lmms::gui::MicrotunerConfig::m_keymapNameEdit
private

edit field for the keymap name or description

◆ m_keymapTextEdit

QPlainTextEdit* lmms::gui::MicrotunerConfig::m_keymapTextEdit
private

text editor field for key mappings

◆ m_lastKeyModel

IntModel lmms::gui::MicrotunerConfig::m_lastKeyModel
private

model for spinbox of currently edited last key

◆ m_middleKeyModel

IntModel lmms::gui::MicrotunerConfig::m_middleKeyModel
private

model for spinbox of currently edited middle key

◆ m_scaleComboModel

ComboBoxModel lmms::gui::MicrotunerConfig::m_scaleComboModel
private

ID of scale currently selected for editing.

◆ m_scaleNameEdit

QLineEdit* lmms::gui::MicrotunerConfig::m_scaleNameEdit
private

edit field for the scale name or description

◆ m_scaleTextEdit

QPlainTextEdit* lmms::gui::MicrotunerConfig::m_scaleTextEdit
private

text editor field for interval definitions


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