/[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 1840 by capela, Thu Feb 19 11:44:57 2009 UTC revision 2722 by capela, Tue Mar 3 17:41:04 2015 UTC
# Line 1  Line 1 
1  // qsamplerInstrumentListForm.h  // qsamplerInstrumentListForm.h
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2003-2009, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2003-2015, 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    
28  #include "qsamplerInstrumentList.h"  class QModelIndex;
   
29  class QComboBox;  class QComboBox;
30    
   
31  namespace QSampler {  namespace QSampler {
32    
33    class InstrumentListView;
34    
35  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
36  // QSampler::InstrumentListForm -- Instrument map list form interface.  // QSampler::InstrumentListForm -- Instrument map list form interface.
37  //  //
# Line 42  class InstrumentListForm : public QMainW Line 42  class InstrumentListForm : public QMainW
42    
43  public:  public:
44    
45          InstrumentListForm(QWidget* pParent = NULL, Qt::WindowFlags wflags = 0);          InstrumentListForm(QWidget *pParent = NULL, Qt::WindowFlags wflags = 0);
46          ~InstrumentListForm();          ~InstrumentListForm();
47    
48  public slots:  public slots:
49    
50            void newInstrument();
51          void editInstrument();          void editInstrument();
52          void editInstrument(const QModelIndex& index);          void editInstrument(const QModelIndex& index);
         void newInstrument();  
53          void deleteInstrument();          void deleteInstrument();
54          void refreshInstruments();          void refreshInstruments();
55          void activateMap(int);          void activateMap(int);
56    
57          void stabilizeForm();          void stabilizeForm();
58    
         // Handle custom context menu here...  
         void contextMenu(const QPoint& pos);  
   
59  protected:  protected:
60    
61          void showEvent(QShowEvent *);          void showEvent(QShowEvent *);
62          void hideEvent(QHideEvent *);          void hideEvent(QHideEvent *);
63          void closeEvent(QCloseEvent *);          void closeEvent(QCloseEvent *);
64    
65            void contextMenuEvent(QContextMenuEvent *);
66    
67  private:  private:
68    
69          Ui::qsamplerInstrumentListForm m_ui;          Ui::qsamplerInstrumentListForm m_ui;
70    
71          MidiInstrumentsModel m_model;          QComboBox *m_pMapComboBox;
         MidiInstrumentsDelegate m_delegate;  
72    
73          QComboBox* m_pMapComboBox;          InstrumentListView *m_pInstrumentListView;
74  };  };
75    
76  } // namespace QSampler  } // namespace QSampler

Legend:
Removed from v.1840  
changed lines
  Added in v.2722

  ViewVC Help
Powered by ViewVC