/[svn]/qsampler/trunk/src/qsamplerInstrumentList.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerInstrumentList.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1523 by capela, Sun Nov 25 11:40:47 2007 UTC revision 1558 by capela, Thu Dec 6 09:35:33 2007 UTC
# Line 30  Line 30 
30    
31  #include "qsamplerInstrument.h"  #include "qsamplerInstrument.h"
32    
33    namespace QSampler {
34    
35  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
36  // MidiInstrumentsModel - data model for MIDI prog mappings (used for QTableView)  // QSampler::MidiInstrumentsModel - data model for MIDI prog mappings
37  //  //                                  (used for QTableView)
38    
39  class MidiInstrumentsModel : public QAbstractTableModel  class MidiInstrumentsModel : public QAbstractTableModel
40  {  {
# Line 55  public: Line 56  public:
56          QAbstractTableModel::reset;          QAbstractTableModel::reset;
57    
58          // Own methods          // Own methods
59          qsamplerInstrument* addInstrument(int iMap = 0,          Instrument* addInstrument(int iMap = 0,
60                  int iBank = -1, int iProg = -1);                  int iBank = -1, int iProg = -1);
61          void removeInstrument(const qsamplerInstrument& instrument);          void removeInstrument(const Instrument& instrument);
62    
63          void resort(const qsamplerInstrument& instrument);          void resort(const Instrument& instrument);
64    
65          // Map selector.          // Map selector.
66          void setMidiMap(int iMidiMap);          void setMidiMap(int iMidiMap);
# Line 77  public slots: Line 78  public slots:
78    
79  private:  private:
80    
81          typedef QMap<int, QList<qsamplerInstrument> > InstrumentsMap;          typedef QMap<int, QList<Instrument> > InstrumentsMap;
82    
83          InstrumentsMap m_instruments;          InstrumentsMap m_instruments;
84    
# Line 87  private: Line 88  private:
88    
89    
90  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
91  // MidiInstrumentsDelegate - table cell renderer for MIDI prog mappings  // QSampler::MidiInstrumentsDelegate - table cell renderer for MIDI prog
92  // (doesn't actually do anything ATM, but is already there for a future  // mappings (doesn't actually do anything ATM, but is already there for
93  // cell editor widget implementation)  // a future cell editor widget implementation)
94    
95  class MidiInstrumentsDelegate : public QItemDelegate  class MidiInstrumentsDelegate : public QItemDelegate
96  {  {
# Line 110  public: Line 111  public:
111                  const QStyleOptionViewItem& option, const QModelIndex& index) const;                  const QStyleOptionViewItem& option, const QModelIndex& index) const;
112  };  };
113    
114    } // namespace QSampler
115    
116  #endif  // __qsamplerInstrumentList_h  #endif  // __qsamplerInstrumentList_h
117    

Legend:
Removed from v.1523  
changed lines
  Added in v.1558

  ViewVC Help
Powered by ViewVC