Entropy Piano Tuner
1.1.3 (documentation not yet complete)
An open-source experimental software for piano tuning by entropy minimization
|
Dialog to edit the piano data sheet stored in a Piano. More...
#include <editpianosheetdialog.h>
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... | |
Dialog to edit the piano data sheet stored in a Piano.
Definition at line 35 of file editpianosheetdialog.h.
|
explicit |
Default constructor.
piano | : The piano |
parent | : The parent widget |
Definition at line 33 of file editpianosheetdialog.cpp.
EditPianoSheetDialog::~EditPianoSheetDialog | ( | ) |
Default destructor.
Definition at line 69 of file editpianosheetdialog.cpp.
void EditPianoSheetDialog::applyData | ( | Piano * | piano | ) | const |
Applys the current values in the dialog to the given piano.
piano | The piano whose data will be set |
Definition at line 74 of file editpianosheetdialog.cpp.
|
protected |
Reimplemented keyPressEvent(QKeyEvent*)
The | QKeyEvent |
Pressing return does not close the dialog anymore when editing a field.
Definition at line 93 of file editpianosheetdialog.cpp.
|
privateslot |
Slot to set the concert pitch to its default value.
Definition at line 115 of file editpianosheetdialog.cpp.
|
privateslot |
Slot to set the key number of A to its default value.
Definition at line 123 of file editpianosheetdialog.cpp.
|
privateslot |
Slot to set the keys on bass bridge to its default value.
Definition at line 127 of file editpianosheetdialog.cpp.
|
privateslot |
Slot to set the number of keys to its default value.
Definition at line 119 of file editpianosheetdialog.cpp.
|
privateslot |
The current number of keys changed.
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.
|
privateslot |
Slot to set the tuning time to the current time.
Definition at line 107 of file editpianosheetdialog.cpp.
|
private |
The Ui of the dialog.
Definition at line 110 of file editpianosheetdialog.h.