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

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

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

revision 1499 by capela, Tue Nov 20 16:48:04 2007 UTC revision 1558 by capela, Thu Dec 6 09:35:33 2007 UTC
# Line 27  Line 27 
27    
28  #include "qsamplerInstrumentList.h"  #include "qsamplerInstrumentList.h"
29    
30  #include <QComboBox>  class QComboBox;
31    
32    
33  namespace QSampler {  namespace QSampler {
34    
35  class InstrumentListForm : public QMainWindow {  //-------------------------------------------------------------------------
36  Q_OBJECT  // QSampler::InstrumentListForm -- Instrument map list form interface.
37    //
38    
39    class InstrumentListForm : public QMainWindow
40    {
41            Q_OBJECT
42    
43  public:  public:
     MidiInstrumentsModel model;  
     MidiInstrumentsDelegate delegate;  
44    
45      InstrumentListForm(QWidget* parent = 0, Qt::WindowFlags flags = 0);          InstrumentListForm(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);
46     ~InstrumentListForm();          ~InstrumentListForm();
47    
48  public slots:  public slots:
     void refreshInstruments();  
     void activateMap(int);  
49    
50  protected:          void editInstrument();
51      QComboBox* m_pMapComboBox;          void editInstrument(const QModelIndex& index);
52            void newInstrument();
53            void deleteInstrument();
54            void refreshInstruments();
55            void activateMap(int);
56    
57            void stabilizeForm();
58    
59            // Handle custom context menu here...
60            void contextMenu(const QPoint& pos);
61    
62      void showEvent(QShowEvent* pShowEvent);  protected:
     void hideEvent(QHideEvent* pHideEvent);  
63    
64  protected slots:          void showEvent(QShowEvent *);
65      void editInstrument();          void hideEvent(QHideEvent *);
66      void editInstrument(const QModelIndex& index);          void closeEvent(QCloseEvent *);
     void newInstrument();  
     void deleteInstrument();  
67    
68  private:  private:
69      Ui::qsamplerInstrumentListForm ui;  
70            Ui::qsamplerInstrumentListForm m_ui;
71    
72            MidiInstrumentsModel m_model;
73            MidiInstrumentsDelegate m_delegate;
74    
75            QComboBox* m_pMapComboBox;
76  };  };
77    
78  } // namespace QSampler  } // namespace QSampler

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

  ViewVC Help
Powered by ViewVC