/[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 2064 by capela, Fri Mar 12 16:02:32 2010 UTC revision 2387 by capela, Sat Dec 29 00:21:11 2012 UTC
# Line 1  Line 1 
1  // qsamplerInstrumentList.h  // qsamplerInstrumentList.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2003-2010, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2003-2012, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, Christian Schoenebeck     Copyright (C) 2007, Christian Schoenebeck
6    
7     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
# Line 35  class Instrument; Line 35  class Instrument;
35    
36  class InstrumentListModel : public QAbstractItemModel  class InstrumentListModel : public QAbstractItemModel
37  {  {
         Q_OBJECT  
   
38  public:  public:
39    
40          // Constructor.          // Constructor.
# Line 59  public: Line 57  public:
57    
58          // Own methods          // Own methods
59          const Instrument *addInstrument(int iMap, int iBank, int iProg);          const Instrument *addInstrument(int iMap, int iBank, int iProg);
60          void removeInstrument(const Instrument *pInstrument);          void removeInstrument(Instrument *pInstrument);
61          void updateInstrument(const Instrument *pInstrument);          void updateInstrument(Instrument *pInstrument);
62            void resortInstrument(Instrument *pInstrument);
63    
64          // General reloader.          // General reloader.
65          void refresh();          void refresh();
# Line 95  private: Line 94  private:
94    
95  class InstrumentListView : public QTreeView  class InstrumentListView : public QTreeView
96  {  {
         Q_OBJECT  
   
97  public:  public:
98    
99          // Constructor.          // Constructor.
100          InstrumentListView(QWidget *pParent = 0);          InstrumentListView(QWidget *pParent = NULL);
101    
102          // Destructor.          // Destructor.
103          ~InstrumentListView();          ~InstrumentListView();
# Line 111  public: Line 108  public:
108    
109          // Own methods          // Own methods
110          const Instrument *addInstrument(int iMap, int iBank, int iProg);          const Instrument *addInstrument(int iMap, int iBank, int iProg);
111          void removeInstrument(const Instrument *pInstrument);          void removeInstrument(Instrument *pInstrument);
112          void updateInstrument(const Instrument *pInstrument);          void updateInstrument(Instrument *pInstrument);
113            void resortInstrument(Instrument *pInstrument);
114    
115          // General reloader.          // General reloader.
116          void refresh();          void refresh();

Legend:
Removed from v.2064  
changed lines
  Added in v.2387

  ViewVC Help
Powered by ViewVC