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.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright 2015 Haye Hinrichsen, Christoph Wick
3  *
4  * This file is part of Entropy Piano Tuner.
5  *
6  * Entropy Piano Tuner is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * Entropy Piano Tuner is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along with
17  * Entropy Piano Tuner. If not, see http://www.gnu.org/licenses/.
18  *****************************************************************************/
19 
20 #ifndef EDITPIANOSHEETDIALOG_H
21 #define EDITPIANOSHEETDIALOG_H
22 
23 #include <QDialog>
24 
25 class Piano;
26 
27 namespace Ui {
29 }
30 
35 class EditPianoSheetDialog : public QDialog
36 {
37  Q_OBJECT
38 
39 public:
46  explicit EditPianoSheetDialog(const Piano &piano, QWidget *parent = 0);
47 
52 
58  void applyData(Piano *piano) const;
59 
60 protected:
67  void keyPressEvent(QKeyEvent *event);
68 
69 private slots:
74  void onSetTuningTimeToNow();
75 
82  void onNumberOfKeysChanged(int k);
83 
88  void onDefaultConcertPitch();
89 
94  void onDefaultNumberOfKeys();
95 
100  void onDefaultKeyNumberOfA();
101 
107 
108 private:
110  Ui::EditPianoSheetDialog *ui;
111 };
112 
113 #endif // EDITPIANOSHEETDIALOG_H
void onDefaultKeyNumberOfA()
Slot to set the key number of A to its default value.
Definition: piano.h:40
Dialog to edit the piano data sheet stored in a Piano.
Ui::EditPianoSheetDialog * ui
The Ui of the dialog.
void keyPressEvent(QKeyEvent *event)
Reimplemented keyPressEvent(QKeyEvent*)
EditPianoSheetDialog(const Piano &piano, QWidget *parent=0)
Default constructor.
void onDefaultConcertPitch()
Slot to set the concert pitch to its default value.
void onDefaultKeysOnBassBridge()
Slot to set the keys on bass bridge to its default value.
void onNumberOfKeysChanged(int k)
The current number of keys changed.
~EditPianoSheetDialog()
Default destructor.
void onSetTuningTimeToNow()
Slot to set the tuning time to the current time.
void onDefaultNumberOfKeys()
Slot to set the number of keys to its default value.
void applyData(Piano *piano) const
Applys the current values in the dialog to the given piano.