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

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

  ViewVC Help
Powered by ViewVC