author | waspe <waspe> | 2003-11-16 19:31:57 (UTC) |
---|---|---|
committer | waspe <waspe> | 2003-11-16 19:31:57 (UTC) |
commit | e7a81ed5ba0dc6b996f179d1dc40d778492218a9 (patch) (unidiff) | |
tree | 62081f88e6dad4df5a2f278050cf402c2da9ed98 /noncore/multimedia/tonleiter/tonleiterdata.h | |
parent | 0b0c071017298ebd189420f85b5aa8d44885c50e (diff) | |
download | opie-e7a81ed5ba0dc6b996f179d1dc40d778492218a9.zip opie-e7a81ed5ba0dc6b996f179d1dc40d778492218a9.tar.gz opie-e7a81ed5ba0dc6b996f179d1dc40d778492218a9.tar.bz2 |
first commit
Diffstat (limited to 'noncore/multimedia/tonleiter/tonleiterdata.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/tonleiter/tonleiterdata.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/noncore/multimedia/tonleiter/tonleiterdata.h b/noncore/multimedia/tonleiter/tonleiterdata.h new file mode 100644 index 0000000..a5e6884 --- a/dev/null +++ b/noncore/multimedia/tonleiter/tonleiterdata.h | |||
@@ -0,0 +1,46 @@ | |||
1 | #ifndef TONLEITER_DATA_H | ||
2 | #define TONLEITER_DATA_H | ||
3 | |||
4 | #include <qobject.h> | ||
5 | |||
6 | #include "tonleiterdatahelper.h" | ||
7 | |||
8 | class TonleiterData : public QObject | ||
9 | { | ||
10 | Q_OBJECT | ||
11 | private: | ||
12 | QValueList<Instrument> instruments; | ||
13 | int currentInstrumentID; | ||
14 | |||
15 | QValueList<Scale> scales; | ||
16 | int currentScaleID; | ||
17 | |||
18 | int currentNote; | ||
19 | bool drawnames; | ||
20 | public: | ||
21 | TonleiterData(QObject* parent); | ||
22 | ~TonleiterData(); | ||
23 | signals: | ||
24 | void dataChange(); | ||
25 | public slots: | ||
26 | void setCurrentInstrumetID(int id); | ||
27 | void setCurrentScaleID(int id); | ||
28 | void setCurrentNote(int id); | ||
29 | void setDrawNames(bool dn); | ||
30 | private: | ||
31 | void loadData(); | ||
32 | void saveData(); | ||
33 | public: | ||
34 | int noOfInstruments(); | ||
35 | Instrument getInstrument(int id); | ||
36 | int getCurrentInstrumentID(); | ||
37 | |||
38 | int noOfScales(); | ||
39 | Scale getScale(int id); | ||
40 | int getCurrentScaleID(); | ||
41 | |||
42 | int getCurrentBaseNote(); | ||
43 | bool isDrawNames(); | ||
44 | }; | ||
45 | |||
46 | #endif //TONLEITER_DATA_H | ||