Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

tonleiterdata.h

Go to the documentation of this file.
00001 #ifndef TONLEITER_DATA_H
00002 #define TONLEITER_DATA_H
00003 
00004 #include <qobject.h>
00005 
00006 #include "tonleiterdatahelper.h"
00007 
00008 namespace Data
00009 {
00010     class TonleiterData : public QObject
00011     {
00012         Q_OBJECT
00013     private:
00014         QValueList<Instrument> instruments;
00015         int currentInstrumentID;
00016 
00017         QValueList<Scale> scales;
00018         int currentScaleID;
00019 
00020         int currentNote;
00021         bool drawnames;
00022     public:
00023         TonleiterData(QObject* parent);
00024         ~TonleiterData();
00025     signals:
00026         void dataChange();
00027     public slots:
00028         void setCurrentInstrumetID(int id);
00029         void setCurrentScaleID(int id);
00030         void setCurrentNote(int id);
00031         void setDrawNames(bool dn);
00032     private:
00033         void loadData();
00034         void saveData();
00035     public:
00036         int noOfInstruments();
00037         Instrument getInstrument(int id);
00038         int getCurrentInstrumentID();
00039 
00040         int noOfScales();
00041         Scale getScale(int id);
00042         int getCurrentScaleID();
00043 
00044         int getCurrentBaseNote();
00045         bool isDrawNames();
00046     };
00047 };
00048 
00049 #endif //TONLEITER_DATA_H

Generated on Sat Nov 5 16:17:35 2005 for OPIE by  doxygen 1.4.2