Entropy Piano Tuner  1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
EditPianoSheetDialog Class Reference

Dialog to edit the piano data sheet stored in a Piano. More...

#include <editpianosheetdialog.h>

+ Inheritance diagram for EditPianoSheetDialog:
+ Collaboration diagram for EditPianoSheetDialog:

Public Member Functions

 EditPianoSheetDialog (const Piano &piano, QWidget *parent=0)
 Default constructor. More...
 
 ~EditPianoSheetDialog ()
 Default destructor. More...
 
void applyData (Piano *piano) const
 Applys the current values in the dialog to the given piano. More...
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event)
 Reimplemented keyPressEvent(QKeyEvent*) More...
 

Private Slots

void onSetTuningTimeToNow ()
 Slot to set the tuning time to the current time. More...
 
void onNumberOfKeysChanged (int k)
 The current number of keys changed. More...
 
void onDefaultConcertPitch ()
 Slot to set the concert pitch to its default value. More...
 
void onDefaultNumberOfKeys ()
 Slot to set the number of keys to its default value. More...
 
void onDefaultKeyNumberOfA ()
 Slot to set the key number of A to its default value. More...
 
void onDefaultKeysOnBassBridge ()
 Slot to set the keys on bass bridge to its default value. More...
 

Private Attributes

Ui::EditPianoSheetDialog * ui
 The Ui of the dialog. More...
 

Detailed Description

Dialog to edit the piano data sheet stored in a Piano.

Definition at line 35 of file editpianosheetdialog.h.

Constructor & Destructor Documentation

EditPianoSheetDialog::EditPianoSheetDialog ( const Piano piano,
QWidget *  parent = 0 
)
explicit

Default constructor.

Parameters
piano: The piano
parent: The parent widget

Definition at line 33 of file editpianosheetdialog.cpp.

+ Here is the call graph for this function:

EditPianoSheetDialog::~EditPianoSheetDialog ( )

Default destructor.

Definition at line 69 of file editpianosheetdialog.cpp.

Member Function Documentation

void EditPianoSheetDialog::applyData ( Piano piano) const

Applys the current values in the dialog to the given piano.

Parameters
pianoThe piano whose data will be set

Definition at line 74 of file editpianosheetdialog.cpp.

+ Here is the call graph for this function:

void EditPianoSheetDialog::keyPressEvent ( QKeyEvent *  event)
protected

Reimplemented keyPressEvent(QKeyEvent*)

Parameters
TheQKeyEvent

Pressing return does not close the dialog anymore when editing a field.

Definition at line 93 of file editpianosheetdialog.cpp.

void EditPianoSheetDialog::onDefaultConcertPitch ( )
privateslot

Slot to set the concert pitch to its default value.

Definition at line 115 of file editpianosheetdialog.cpp.

void EditPianoSheetDialog::onDefaultKeyNumberOfA ( )
privateslot

Slot to set the key number of A to its default value.

Definition at line 123 of file editpianosheetdialog.cpp.

void EditPianoSheetDialog::onDefaultKeysOnBassBridge ( )
privateslot

Slot to set the keys on bass bridge to its default value.

Definition at line 127 of file editpianosheetdialog.cpp.

void EditPianoSheetDialog::onDefaultNumberOfKeys ( )
privateslot

Slot to set the number of keys to its default value.

Definition at line 119 of file editpianosheetdialog.cpp.

void EditPianoSheetDialog::onNumberOfKeysChanged ( int  k)
privateslot

The current number of keys changed.

Parameters
k: The new number of keys.

This will adjust the maximal selectible index of the key number of A.

Definition at line 111 of file editpianosheetdialog.cpp.

void EditPianoSheetDialog::onSetTuningTimeToNow ( )
privateslot

Slot to set the tuning time to the current time.

Definition at line 107 of file editpianosheetdialog.cpp.

Member Data Documentation

Ui::EditPianoSheetDialog* EditPianoSheetDialog::ui
private

The Ui of the dialog.

Definition at line 110 of file editpianosheetdialog.h.


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