/[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 1840 by capela, Thu Feb 19 11:44:57 2009 UTC
# Line 1  Line 1 
1  // qsamplerInstrumentListForm.h  // qsamplerInstrumentListForm.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2003-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2003-2009, 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 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      void showEvent(QShowEvent* pShowEvent);          // Handle custom context menu here...
60      void hideEvent(QHideEvent* pHideEvent);          void contextMenu(const QPoint& pos);
61    
62  protected slots:  protected:
63      void editInstrument();  
64      void editInstrument(const QModelIndex& index);          void showEvent(QShowEvent *);
65      void newInstrument();          void hideEvent(QHideEvent *);
66      void deleteInstrument();          void closeEvent(QCloseEvent *);
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.1840

  ViewVC Help
Powered by ViewVC