author | waspe <waspe> | 2003-11-20 19:34:08 (UTC) |
---|---|---|
committer | waspe <waspe> | 2003-11-20 19:34:08 (UTC) |
commit | e6a5ed6de7e821a070d571045ff063f8c41b0b79 (patch) (unidiff) | |
tree | 8455d7bf537cf804337b6c03b28f891ee3f286ce /noncore/multimedia/tonleiter/tonleiterdata.h | |
parent | f43e28fe8f226039d96ebda4e6c4d26e4f3320ba (diff) | |
download | opie-e6a5ed6de7e821a070d571045ff063f8c41b0b79.zip opie-e6a5ed6de7e821a070d571045ff063f8c41b0b79.tar.gz opie-e6a5ed6de7e821a070d571045ff063f8c41b0b79.tar.bz2 |
added preliminary edit dialogs
default config added
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 | |||
@@ -6,40 +6,43 @@ | |||
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 | ||