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 |
25 |
|
|
26 |
#include "ui_qsamplerInstrumentListForm.h" |
#include "ui_qsamplerInstrumentListForm.h" |
27 |
|
|
28 |
#include "qsamplerInstrumentList.h" |
class QModelIndex; |
29 |
|
class QComboBox; |
|
#include <QComboBox> |
|
30 |
|
|
31 |
namespace QSampler { |
namespace QSampler { |
32 |
|
|
33 |
class InstrumentListForm : public QMainWindow { |
class InstrumentListView; |
34 |
Q_OBJECT |
|
35 |
|
//------------------------------------------------------------------------- |
36 |
|
// QSampler::InstrumentListForm -- Instrument map list form interface. |
37 |
|
// |
38 |
|
|
39 |
|
class InstrumentListForm : public QMainWindow |
40 |
|
{ |
41 |
|
Q_OBJECT |
42 |
|
|
43 |
public: |
public: |
|
MidiInstrumentsModel model; |
|
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: |
49 |
void refreshInstruments(); |
|
50 |
void activateMap(int); |
void newInstrument(); |
51 |
|
void editInstrument(); |
52 |
|
void editInstrument(const QModelIndex& index); |
53 |
|
void deleteInstrument(); |
54 |
|
void refreshInstruments(); |
55 |
|
void activateMap(int); |
56 |
|
|
57 |
|
void stabilizeForm(); |
58 |
|
|
59 |
protected: |
protected: |
|
QComboBox* m_pMapComboBox; |
|
60 |
|
|
61 |
void showEvent(QShowEvent* pShowEvent); |
void showEvent(QShowEvent *); |
62 |
void hideEvent(QHideEvent* pHideEvent); |
void hideEvent(QHideEvent *); |
63 |
|
void closeEvent(QCloseEvent *); |
64 |
|
|
65 |
|
void contextMenuEvent(QContextMenuEvent *); |
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 |