Diffstat (limited to 'noncore/multimedia/tonleiter/tonleiterdata.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/tonleiter/tonleiterdata.h | 73 |
1 files changed, 38 insertions, 35 deletions
diff --git a/noncore/multimedia/tonleiter/tonleiterdata.h b/noncore/multimedia/tonleiter/tonleiterdata.h index a5e6884..71d05fd 100644 --- a/noncore/multimedia/tonleiter/tonleiterdata.h +++ b/noncore/multimedia/tonleiter/tonleiterdata.h | |||
@@ -2,45 +2,48 @@ | |||
2 | #define TONLEITER_DATA_H | 2 | #define TONLEITER_DATA_H |
3 | 3 | ||
4 | #include <qobject.h> | 4 | #include <qobject.h> |
5 | 5 | ||
6 | #include "tonleiterdatahelper.h" | 6 | #include "tonleiterdatahelper.h" |
7 | 7 | ||
8 | class TonleiterData : public QObject | 8 | namespace Data |
9 | { | 9 | { |
10 | Q_OBJECT | 10 | class TonleiterData : public QObject |
11 | private: | 11 | { |
12 | QValueList<Instrument> instruments; | 12 | Q_OBJECT |
13 | int currentInstrumentID; | 13 | private: |
14 | 14 | QValueList<Instrument> instruments; | |
15 | QValueList<Scale> scales; | 15 | int currentInstrumentID; |
16 | int currentScaleID; | 16 | |
17 | 17 | QValueList<Scale> scales; | |
18 | int currentNote; | 18 | int currentScaleID; |
19 | bool drawnames; | 19 | |
20 | public: | 20 | int currentNote; |
21 | TonleiterData(QObject* parent); | 21 | bool drawnames; |
22 | ~TonleiterData(); | 22 | public: |
23 | signals: | 23 | TonleiterData(QObject* parent); |
24 | void dataChange(); | 24 | ~TonleiterData(); |
25 | public slots: | 25 | signals: |
26 | void setCurrentInstrumetID(int id); | 26 | void dataChange(); |
27 | void setCurrentScaleID(int id); | 27 | public slots: |
28 | void setCurrentNote(int id); | 28 | void setCurrentInstrumetID(int id); |
29 | void setDrawNames(bool dn); | 29 | void setCurrentScaleID(int id); |
30 | private: | 30 | void setCurrentNote(int id); |
31 | void loadData(); | 31 | void setDrawNames(bool dn); |
32 | void saveData(); | 32 | private: |
33 | public: | 33 | void loadData(); |
34 | int noOfInstruments(); | 34 | void saveData(); |
35 | Instrument getInstrument(int id); | 35 | public: |
36 | int getCurrentInstrumentID(); | 36 | int noOfInstruments(); |
37 | 37 | Instrument getInstrument(int id); | |
38 | int noOfScales(); | 38 | int getCurrentInstrumentID(); |
39 | Scale getScale(int id); | 39 | |
40 | int getCurrentScaleID(); | 40 | int noOfScales(); |
41 | 41 | Scale getScale(int id); | |
42 | int getCurrentBaseNote(); | 42 | int getCurrentScaleID(); |
43 | bool isDrawNames(); | 43 | |
44 | int getCurrentBaseNote(); | ||
45 | bool isDrawNames(); | ||
46 | }; | ||
44 | }; | 47 | }; |
45 | 48 | ||
46 | #endif //TONLEITER_DATA_H | 49 | #endif //TONLEITER_DATA_H |