/[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 1509 by capela, Thu Nov 22 11:10:44 2007 UTC revision 2067 by capela, Sat Mar 13 20:14:38 2010 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-2010, 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 25  Line 25 
25    
26  #include "ui_qsamplerInstrumentListForm.h"  #include "ui_qsamplerInstrumentListForm.h"
27    
 #include "qsamplerInstrumentList.h"  
   
28  class QComboBox;  class QComboBox;
29    
   
30  namespace QSampler {  namespace QSampler {
31    
32    class InstrumentListView;
33    
34    //-------------------------------------------------------------------------
35    // QSampler::InstrumentListForm -- Instrument map list form interface.
36    //
37    
38  class InstrumentListForm : public QMainWindow  class InstrumentListForm : public QMainWindow
39  {  {
40          Q_OBJECT          Q_OBJECT
41    
42  public:  public:
43    
44          InstrumentListForm(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);          InstrumentListForm(QWidget *pParent = NULL, Qt::WindowFlags wflags = 0);
45  ~InstrumentListForm();          ~InstrumentListForm();
46    
47  public slots:  public slots:
48    
49            void newInstrument();
50          void editInstrument();          void editInstrument();
51          void editInstrument(const QModelIndex& index);          void editInstrument(const QModelIndex& index);
         void newInstrument();  
52          void deleteInstrument();          void deleteInstrument();
53          void refreshInstruments();          void refreshInstruments();
54          void activateMap(int);          void activateMap(int);
55    
56            void stabilizeForm();
57    
58  protected:  protected:
59    
60          void showEvent(QShowEvent *);          void showEvent(QShowEvent *);
61          void hideEvent(QHideEvent *);          void hideEvent(QHideEvent *);
62          void closeEvent(QCloseEvent *);          void closeEvent(QCloseEvent *);
63    
64            void contextMenuEvent(QContextMenuEvent *);
65    
66  private:  private:
67    
68          Ui::qsamplerInstrumentListForm m_ui;          Ui::qsamplerInstrumentListForm m_ui;
69    
70          MidiInstrumentsModel m_model;          QComboBox *m_pMapComboBox;
         MidiInstrumentsDelegate m_delegate;  
71    
72          QComboBox* m_pMapComboBox;          InstrumentListView *m_pInstrumentListView;
73  };  };
74    
75  } // namespace QSampler  } // namespace QSampler

Legend:
Removed from v.1509  
changed lines
  Added in v.2067

  ViewVC Help
Powered by ViewVC